:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #5eead4;
  --secondary: #4a90a4;
  --accent: #6b9080;
  --healing: #34d399;
  --calm-blue: #7dd3fc;
  --bg: #f7fafa;
  --bg-alt: #f0f7f4;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(13, 148, 136, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 148, 136, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #edf1f5;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.8));
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "APEX";
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: clamp(5rem, 14vw, 18rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(13, 148, 136, 0.08);
  text-shadow: 0 0 32px rgba(13, 148, 136, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-header,
main,
.section,
.site-footer,
.container,
.dashboard-layout {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, rgba(105, 117, 129, 0.96), rgba(123, 137, 147, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(54, 66, 76, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(15, 118, 110, 0.3);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5de1c3;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(93, 225, 195, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, #2ec4b6, #0c9f9a);
  color: white;
  box-shadow: 0 8px 20px rgba(18, 167, 160, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #f2f5f7, #eef3f6);
  color: #1d4d5c;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

.btn-donate {
  background: linear-gradient(135deg, #f7b650, #f29e2d);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-donate:hover {
  background: linear-gradient(135deg, #ffbf5c, #f39a19);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 40%, #e0f2f1 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: block;
  width: 100%;
  max-width: 100%;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  width: 100%;
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero-welcome {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--primary-dark);
  font-weight: 800;
  margin-top: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.hero-booking-callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(255,255,255,0.92));
  border: 1px solid rgba(13,148,136,0.16);
  box-shadow: 0 20px 40px rgba(13,148,136,0.08);
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-booking-callout .callout-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero-booking-callout h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 20px 40px rgba(13,148,136,0.08); transform: translateY(0); }
  50% { box-shadow: 0 28px 60px rgba(13,148,136,0.14); transform: translateY(-2px); }
}

.who-we-are-section {
  padding: 4rem 0;
}

.who-we-are-content {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.who-we-are-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.who-we-are-content .animated-slogan {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 3s linear infinite, fadeInUp 1.2s ease forwards;
  opacity: 0;
}


.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Scan prompt card */
.scan-prompt-card {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.scan-prompt-card:hover {
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scan-prompt-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.scan-prompt-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.scan-prompt-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Workflow steps */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.workflow-step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.workflow-step .step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 1rem;
}

.workflow-step .step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.workflow-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.workflow-connector {
  display: none;
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-category-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-category-visual {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-alt), #e0f2f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-category-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-body h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.product-category-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.value-card h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.team-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  color: white;
  display: block;
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.modal-close {
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-alt);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: #ecfdf5;
}

.upload-zone.has-file {
  border-color: var(--healing);
  background: #ecfdf5;
}

.upload-zone input {
  display: none;
}

.upload-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  display: none;
}

.upload-preview.visible {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group textarea,
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
  background: var(--text);
  color: white;
  padding: 1.5rem;
}

.dashboard-sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.dashboard-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.dashboard-main {
  padding: 2rem;
  background: var(--bg);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.alert-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 1rem;
  animation: pulse 2s infinite;
}

.alert-banner.visible {
  display: flex;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.alert-banner .alert-icon {
  font-size: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scans-table {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.scans-table table {
  width: 100%;
  border-collapse: collapse;
}

.scans-table th,
.scans-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.scans-table th {
  background: var(--bg-alt);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.scans-table tr.new-scan {
  background: #ecfdf5;
}

.scans-table tr:hover {
  background: var(--bg-alt);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-new {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-reviewed {
  background: #e0f2fe;
  color: #0369a1;
}

/* Product detail page */
.product-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  color: white;
  padding: 3rem 0;
}

.product-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: white;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.device-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}

.device-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.device-card-image {
  height: 160px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.device-card-body {
  padding: 1.25rem;
}

.device-card-body h3 {
  margin-bottom: 0.5rem;
}

.device-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Journey CTA */
.journey-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.journey-cta h2 {
  margin-bottom: 0.75rem;
}

.journey-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.journey-cta .btn {
  background: white;
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: min(32rem, calc(100vw - 2rem));
}

.toast-message {
  line-height: 1.4;
  flex: 1;
}

.toast-ok {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.toast-ok:hover {
  background: rgba(255, 255, 255, 0.2);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--primary-dark);
}

/* About page */
.about-block {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-block h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.about-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.collaborators {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.collab-card {
  background: var(--surface);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom APEX Styling Enhancements */

/* Donate Button */
.btn-donate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-donate:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Tabs inside Scan Upload Form */
.form-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  font-family: inherit;
}
.tab-btn:hover {
  color: var(--primary);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quality Checklist Card */
.quality-checklist-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow);
}
.quality-checklist-card h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}
.checklist-item input {
  width: auto !important;
  margin-right: 0.5rem;
  transform: scale(1.1);
  accent-color: var(--primary);
}

/* Animated Slogan */
.animated-slogan {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin-top: 2rem;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite, fadeInUp 1.2s ease forwards;
  opacity: 0;
}
@keyframes shine {
  to { background-position: 200% center; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Appointment Widget */
.floating-appointment-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: var(--font);
}
.widget-toggle {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
  animation: widgetPulse 2s infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.widget-toggle:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 35px rgba(13, 148, 136, 0.5);
  animation: none;
}
.widget-popover {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
  animation: popoverIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.widget-popover.active {
  display: block;
}
.popover-header {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.popover-header h3 {
  font-size: 1rem;
  color: var(--primary-dark);
}
.popover-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}
.popover-body {
  padding: 1.25rem;
}
.popover-detail {
  margin-bottom: 0.75rem;
}
.popover-detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.popover-detail p {
  font-size: 0.95rem;
  margin: 0;
}

@keyframes widgetPulse {
  0% { transform: scale(1); box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 8px 40px rgba(13, 148, 136, 0.6); }
  100% { transform: scale(1); box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4); }
}
@keyframes popoverIn {
  from { opacity: 0; transform: scale(0.9) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Home Page Appointment Section */
.appointment-section {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e0f2f1 100%);
  padding: 5rem 0;
}
.appointment-card-full {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.appointment-info h2 {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.appointment-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.appointment-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.detail-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.detail-icon {
  width: 46px;
  height: 46px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  border: 1px solid var(--border);
}
.detail-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.detail-item p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.appointment-cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 250px;
}
.calendar-visual {
  font-size: 8rem;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
.pulse-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
  animation: pulseRing 3s ease-out infinite;
}
.appointment-scheduler-card,
.widget-scheduler-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}
.scheduler-header h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}
.scheduler-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.scheduler-field {
  display: grid;
  gap: 0.5rem;
}
.scheduler-field span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.scheduler-field input[type="date"],
.booking-actions input[type="text"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--surface);
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.slot-card {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #f8fdfb;
  color: var(--text-dark);
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.slot-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.slot-card.selected {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
}
.slot-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-alt);
}
.slot-card .slot-time {
  font-weight: 700;
}
.slot-card .slot-available {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.booking-actions {
  display: grid;
  gap: 0.85rem;
}
.booking-actions .btn {
  width: 100%;
}
.booking-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.booking-message {
  min-height: 2rem;
  font-size: 0.95rem;
  color: var(--primary-dark);
}
@media (max-width: 768px) {
  .slot-grid {
    grid-template-columns: 1fr;
  }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
  .appointment-card-full {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  .appointment-cta-visual {
    height: 150px;
  }
  .calendar-visual {
    font-size: 5rem;
  }
  .floating-appointment-widget {
    bottom: 16px;
    right: 16px;
  }
  .widget-toggle {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  .widget-popover {
    width: 280px;
    bottom: 60px;
  }
}

/* Decorative watermark (wireframe cell motif) on hero banners */
.hero,
.product-hero {
  position: relative;
  overflow: hidden;
}

.hero::after,
.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230d9488' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230d9488' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230d9488' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230d9488' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 340px 340px, 220px 220px, 150px 150px, 260px 260px;
  background-position: 98% 8%, 2% 95%, 55% 100%, 100% 110%;
  opacity: 0.35;
}

.product-hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='38'/%3E%3Cellipse cx='100' cy='100' rx='80' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='64' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='48' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='32' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='16' ry='92'/%3E%3Ccircle cx='100' cy='100' r='51'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='77'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px 300px, 200px 200px, 140px 140px, 240px 240px;
  opacity: 0.30;
}

.hero > .container,
.product-hero > .container {
  position: relative;
  z-index: 1;
}
