/* ================================================================
   SYNNAX — SHARED STYLES
   ================================================================ */

/* 1. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 2. VARIABLES */
:root {
  --purple: #7c3aed;
  --purple-hover: #6d28d9;
  --purple-light: #f3f0ff;
  --purple-mid: #ede9fe;
  --purple-border: rgba(124,58,237,0.22);
  --purple-dim: rgba(124,58,237,0.08);

  --teal: #10b981;
  --teal-light: #d1fae5;
  --teal-border: rgba(16,185,129,0.22);
  --teal-dim: rgba(16,185,129,0.08);

  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-light: #eff6ff;
  --blue-mid: #dbeafe;
  --blue-border: rgba(59,130,246,0.22);
  --blue-dim: rgba(59,130,246,0.08);

  --violet: #a855f7;
  --violet-hover: #9333ea;
  --violet-light: #fdf4ff;
  --violet-mid: #f3e8ff;
  --violet-border: rgba(168,85,247,0.22);
  --violet-dim: rgba(168,85,247,0.08);

  --text: #0d0d12;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --text-faint: #c4c4cc;

  --bg: #ffffff;
  --bg-soft: #f6f5fa;
  --border: #e4e4e7;
  --border-strong: #d1d1d8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
}

/* 3. BASE */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.06;
}
h1 { font-size: clamp(38px, 5.5vw, 74px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 50px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 32px); font-weight: 700; }
h4 { font-size: clamp(15px, 1.6vw, 21px); font-weight: 600; }
p  { font-size: clamp(14px, 1.4vw, 17px); color: var(--text-muted); line-height: 1.65; }

/* 5. LAYOUT */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }

/* 6. NAVIGATION */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 62px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 32px; gap: 0;
}

.nav-logo-wrap { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--text);
}
.nav-logo .logo-s { color: var(--purple); }
.nav-by {
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin-top: 2px; padding-left: 1px;
}

.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: 32px; flex: 1; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* 7a. NAV DROPDOWN MEGA-MENU */

/* Force height = nav height so top:100% lands exactly at the nav bottom border */
.nav-dropdown {
  position: relative;
  height: 62px;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-trigger:hover { color: var(--text); background: var(--bg-soft); }
.nav-dropdown-trigger.active { color: var(--text); font-weight: 600; }

.nav-caret { font-size: 12px; transition: transform 0.2s; }
.nav-dropdown-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--text); background: var(--bg-soft); }

.nav-dropdown-panel {
  position: absolute;
  top: 100%;        /* flush with nav bottom — no gap */
  left: -12px;
  width: 580px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none; /* merges visually with nav border-bottom */
  border-radius: 0 0 var(--r-xl) var(--r-xl); /* square top, rounded bottom */
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0s linear 0.15s;
  z-index: 200;
}
.nav-dropdown-panel.is-open {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0);
  transition: opacity 0.15s, transform 0.15s;
}

.nav-dd-col { padding: 16px; }
.nav-dd-col + .nav-dd-col { border-left: 1px solid var(--border); }

.nav-dd-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle);
  padding: 0 8px; margin-bottom: 6px;
}

.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: var(--r-md);
  color: var(--text); transition: background 0.15s;
}
a.nav-dd-item:hover { background: var(--bg-soft); }
a.nav-dd-item.active { background: var(--bg-soft); }

.nav-dd-item-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}

.nav-dd-item-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  font-weight: 600; line-height: 1.2; margin-bottom: 2px;
}
.nav-dd-item-desc { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

.nav-dd-item--soon { opacity: 0.6; cursor: default; }
.nav-dd-item--soon .nav-dd-item-name { display: flex; align-items: center; gap: 6px; }

.nav-soon {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 1px 6px; color: var(--text-subtle);
}

@media (max-width: 768px) {
  .nav-dropdown-panel {
    position: static; width: 100%; box-shadow: none; border: none;
    border-top: 1px solid var(--border); border-radius: 0;
    grid-template-columns: 1fr; transform: none;
    display: none;
  }
  .nav-dropdown-panel.is-open { display: grid; opacity: 1; visibility: visible; }
  .nav-dd-col + .nav-dd-col { border-left: none; border-top: 1px solid var(--border); }
}

/* 7. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: var(--r-md);
  cursor: pointer; transition: all 0.15s;
  border: none; white-space: nowrap; line-height: 1;
}
.btn-sm  { font-size: 13px; padding: 8px 16px; border-radius: var(--r-sm); }
.btn-lg  { font-size: 16px; padding: 15px 30px; border-radius: 14px; }

.btn-dark   { background: var(--text); color: #fff; }
.btn-dark:hover   { background: #1f1f2e; transform: translateY(-1px); }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-hover); transform: translateY(-1px); }

.btn-blue   { background: var(--blue); color: #fff; }
.btn-blue:hover   { background: var(--blue-hover); transform: translateY(-1px); }

.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: var(--violet-hover); transform: translateY(-1px); }

.btn-ghost  { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover  { background: var(--bg-soft); border-color: var(--border-strong); transform: translateY(-1px); }

/* 8. HERO */
.hero { padding: 130px 0 104px; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

#hero-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }

/* 9. LIVE STRIP */
.live-strip {
  display: flex; align-items: stretch;
  height: 46px;
  background: var(--bg);
  overflow: hidden;
}

.live-anchor {
  display: flex; align-items: center; gap: 9px;
  padding: 0 20px 0 24px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
  z-index: 2;
}

.live-anchor-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.live-anchor-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}

.live-track-wrap {
  flex: 1; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.live-track {
  display: flex; width: max-content; height: 100%;
  will-change: transform;
}

.live-track-inner { display: flex; align-items: center; height: 100%; }

.live-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px; height: 100%; white-space: nowrap;
  border-left: 1px solid var(--border);
}

.live-item-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-subtle);
}

.live-item-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}
.live-item-value.ticking { color: var(--purple); }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ticker-dot-pulse { animation: dotPulse 2s ease-in-out infinite; }

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

/* 10. BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.bento-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px; overflow: hidden;
  position: relative; display: block; color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.bento-card:hover .card-arrow { background: var(--text); border-color: var(--text); color: #fff; }

/* 11. PIPELINE CARDS */
.pipeline-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.pipeline-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  position: relative; overflow: hidden;
}

.pipeline-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 12px;
}

.pipeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.pipeline-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 12. CLIENT LOGOS */
.clients-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 24px; align-items: center; }
.client-logo  { display: flex; align-items: center; justify-content: center; height: 52px; }
.client-logo img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.42; transition: opacity 0.3s;
}
.client-logo img:hover { opacity: 0.85; }

/* 12b. SOCIAL PROOF */
.proof-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  align-items: center;
}
.proof-copy h2 { max-width: 460px; font-size: clamp(22px, 2.4vw, 34px); }
.proof-muted { color: var(--text-subtle); }

.proof-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--text);
}
.proof-link i { transition: transform 0.2s; }
.proof-link:hover i { transform: translateX(4px); }

.proof-card {
  position: relative; display: block; min-height: 340px;
  border-radius: var(--r-xl); overflow: hidden;
  /* Top layer is a placeholder "photo" — swap in url('Images/santacasa-photo.jpg') to use a real image */
  background:
    linear-gradient(180deg, rgba(13,13,18,0.65) 0%, rgba(13,13,18,0.35) 45%, rgba(13,13,18,0.96) 100%),
    url('Images/santa-casa-photo.jpg');
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
}

.proof-card-logo {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  height: 34px; filter: brightness(0) invert(1); opacity: 0.9;
}

.proof-card-body { position: absolute; left: 0; bottom: 0; padding: 28px; z-index: 2; }
.proof-stat {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800;
  font-size: clamp(44px, 6vw, 68px); line-height: 1;
  letter-spacing: -0.03em; color: #fff;
}
.proof-stat-label {
  font-size: 14px; color: rgba(255,255,255,0.7);
  max-width: 300px; margin-top: 10px; line-height: 1.45;
}
.proof-card-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 16px;
}

/* 13. FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px; flex-shrink: 0;
}
.feature-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 16px;
  font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 14. EYEBROW */
.eyebrow {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}

/* 15. STAT CARDS */
.stat-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif; font-size: 38px;
  font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -0.03em;
}
.stat-label { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* 16. ABOUT GRID */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 17. BROWSER FRAME */
.browser-frame {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.05);
}
.browser-bar {
  background: #f0eff5; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.browser-dots { display: flex; gap: 5px; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-url {
  flex: 1; background: #e2e1e8; border-radius: 6px; padding: 4px 12px;
  font-size: 12px; color: #888; text-align: center;
}
.browser-frame img { width: 100%; }

/* 17b. SCREENSHOT 3D SCENE */
.screenshot-scene {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.screenshot-card {
  position: relative;
  opacity: 0;
  transform: rotateX(10deg) rotateY(-5deg) translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--r-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);
  overflow: visible;
}
.screenshot-card.is-flat {
  opacity: 1;
  transform: rotateX(0deg) rotateY(0deg) translateY(0px);
}
.ss-bubble {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  backdrop-filter: blur(8px);
  max-width: 230px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
  pointer-events: none;
}
.ss-bubble.is-visible { opacity: 1; transform: translateY(0); }
.ss-bubble--right { right: -10px; }
.ss-bubble--left  { left: -10px; }
.ss-bubble--top    { top: 14%; }
.ss-bubble--mid    { top: 55%; }
.ss-bubble--bottom { bottom: 10%; }
.ss-bubble-icon { font-size: 18px; color: var(--purple); flex-shrink: 0; }
.ss-bubble-stat { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.ss-bubble-sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
@media (max-width: 768px) {
  .screenshot-card { transform: none !important; opacity: 1 !important; }
  .ss-bubble { display: none; }
  .qota-split { grid-template-columns: 1fr; gap: 32px; }
}

/* 17c. QOTA 2-COLUMN SPLIT */
.qota-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.qota-split-copy h2 { font-size: clamp(24px, 2.8vw, 40px); }
.qota-feature-list {
  list-style: none; margin-top: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.qota-feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text);
}

/* 18. BEFORE / AFTER */
.ba-wrap { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: stretch; }

.ba-before {
  background: #fff5f5; border: 1px solid #fecaca;
  border-right: none; border-radius: var(--r-lg) 0 0 var(--r-lg); padding: 28px;
}
.ba-after {
  border: 1px solid; border-left: none;
  border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 28px;
}
.ba-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
}
.ba-divider::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--border);
}
.ba-vs {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  font-weight: 700; color: var(--text-subtle); position: relative; z-index: 1;
}
.ba-col-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid; margin-bottom: 14px;
}
.ba-col-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ba-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px; border-radius: var(--r-sm); font-size: 14px;
  color: var(--text); margin-bottom: 6px; line-height: 1.5;
}
.ba-icon {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 1px;
}

/* 19. PRODUCT HERO */
.product-hero {
  padding: 80px 0 64px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.product-hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  margin-top: 48px; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* 20. FLOW */
.flow-grid { display: grid; align-items: start; gap: 0; }
.flow-4    { grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr; }

.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-faint); position: relative; padding-top: 28px;
}
.flow-arrow::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: calc(28px + 11px); height: 1px; background: var(--border); z-index: 0;
}
.flow-arrow span { background: var(--bg); padding: 0 4px; position: relative; z-index: 1; }

.flow-node {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; text-align: center;
}
.flow-node-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 12px;
}
.flow-node-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.flow-node-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* 21. TIMELINE (Doktor) */
.timeline { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
.timeline-step { display: grid; grid-template-columns: 28px 1fr; gap: 0; align-items: flex-start; }

.timeline-track { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  flex-shrink: 0; margin-top: 18px;
}
.timeline-connector { width: 2px; flex: 1; min-height: 12px; }
.timeline-step:last-child .timeline-connector { display: none; }

.timeline-content { padding: 0 0 24px 16px; }
.timeline-step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  font-weight: 700; letter-spacing: 0.06em; margin-bottom: 4px;
}
.timeline-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.timeline-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.timeline-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.timeline-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--violet-mid); border: 1px solid var(--violet-border); color: var(--violet);
}

/* Doktor vertical timeline (new layout) */
.timeline-item {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px;
  align-items: flex-start; position: relative; padding-bottom: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 11px; top: 24px; bottom: 0; width: 2px;
  background: var(--border);
}
.timeline-item .timeline-dot {
  margin-top: 14px; position: relative; z-index: 1;
}
.timeline-item.timeline-highlight:not(:last-child)::before { background: rgba(168,85,247,0.2); }
.timeline-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  transition: box-shadow 0.2s;
}
.timeline-card:hover { box-shadow: var(--shadow-sm); }
.timeline-card-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px;
  font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.timeline-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.timeline-step-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* 22. CTA SECTION */
.cta-section { background: var(--text); padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.58); }

/* 23. FOOTER */
.footer { background: var(--text); padding: 56px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px;
  font-weight: 800; letter-spacing: -0.04em; color: #fff;
  margin-bottom: 12px; display: block;
}
.footer-logo-text .logo-s { color: var(--purple); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.38); line-height: 1.65; margin-bottom: 20px; }
.footer-address { font-size: 13px; color: rgba(255,255,255,0.28); line-height: 1.65; }
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 16px;
}
.footer-link { display: block; font-size: 14px; color: rgba(255,255,255,0.48); margin-bottom: 10px; transition: color 0.2s; }
.footer-link:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.22); }

/* 24. PRODUCT ACCENT BAR */
.product-accent-bar { height: 4px; width: 100%; }

/* 25. DOKTOR PLUS */
.plus-section {
  background: var(--violet-light); border: 1px solid var(--violet-border);
  border-radius: var(--r-2xl); padding: 48px; overflow: hidden; position: relative;
}
.plus-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--violet-mid); border: 1px solid var(--violet-border);
  border-radius: var(--r-sm); padding: 5px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 16px;
}

/* 26. PATIENT MOCKUP */
.patient-mockup {
  background: #f5f5f7; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}
.mock-header {
  background: #fff; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.mock-nav { background: #fff; display: flex; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.mock-tab { font-size: 13px; color: #888; padding: 11px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mock-tab.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 600; }
.patient-banner { background: var(--purple); padding: 16px 20px; margin: 14px; border-radius: var(--r-md); color: #fff; }
.info-cells {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; margin: 0 14px; background: #fff;
}
.info-cell { padding: 10px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-cell:nth-child(3n)   { border-right: none; }
.info-cell:nth-last-child(-n+3) { border-bottom: none; }
.info-field-label { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.info-field-value { font-size: 13px; color: #333; font-weight: 500; }
.timeline-visual-wrap { padding: 14px 20px 20px; }

/* Doktor patient mockup (new full-page style) */
.patient-mockup-wrap {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.05);
  background: var(--bg);
}
.patient-mockup-topbar {
  background: #1a1a2e; padding: 10px 16px;
  display: flex; align-items: center; position: relative; min-height: 38px;
}
.patient-mockup-nav {
  background: var(--violet); padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.patient-mockup-header {
  background: linear-gradient(135deg, var(--violet) 0%, #7c3aed 100%);
  padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.patient-mockup-body { padding: 20px 24px 24px; }
.patient-info-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px;
}
.patient-info-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: 3px;
}
.patient-info-value { font-size: 13px; font-weight: 600; color: var(--text); }
.patient-timeline-item {
  background: var(--bg-soft); border-left: 3px solid var(--border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 14px;
}

/* 27. SPIN ANIMATION (robot) */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

/* 28. DEMO MODAL */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(13,13,18,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-backdrop.is-open {
  opacity: 1; pointer-events: auto;
}
.modal-card {
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 460px;
  padding: 44px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.05);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.32s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background 0.15s, color 0.15s;
  font-size: 15px; line-height: 1;
}
.modal-close:hover { background: #e4e4e7; color: var(--text); }
.modal-header { margin-bottom: 28px; }
.modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--text); margin-bottom: 6px;
}
.modal-header p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 7px;
}
.modal-field label .req { color: var(--purple); margin-left: 2px; }
.modal-field label .opt {
  text-transform: none; letter-spacing: 0;
  font-weight: 400; opacity: 0.65; font-size: 11px;
}
.modal-field input,
.modal-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 14px;
  font-family: 'Inter', sans-serif; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; outline: none; resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.modal-field input::placeholder,
.modal-field textarea::placeholder { color: #b0b0bc; }
.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.modal-field--error input,
.modal-field--error textarea {
  border-color: #ef4444;
  box-shadow: none;
  animation: modal-shake 0.28s ease;
}
@keyframes modal-shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-5px); }
  40%,80%  { transform: translateX(5px); }
}
.modal-submit {
  width: 100%; padding: 14px 20px; margin-top: 8px;
  background: var(--text); color: #fff; border: none;
  border-radius: 12px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.15s, opacity 0.15s;
}
.modal-submit:hover:not(:disabled) { background: #1a1a24; transform: translateY(-1px); }
.modal-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.modal-form-wrap {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.modal-form-wrap.is-hiding {
  opacity: 0; transform: translateY(-10px); pointer-events: none;
}
.modal-success {
  flex-direction: column; align-items: center; text-align: center;
  padding: 24px 16px 16px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.modal-success.is-visible { opacity: 1; transform: translateY(0); }
.modal-success-icon { width: 68px; height: 68px; margin-bottom: 22px; }
.modal-check-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: draw-circle 0.55s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}
.modal-check-mark {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 0.3s ease 0.65s forwards;
}
@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check  { to { stroke-dashoffset: 0; } }
.modal-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.modal-success p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 29. FAQ PANEL */
.faq-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 7000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple); border: none; cursor: pointer;
  box-shadow: 0 8px 28px rgba(124,58,237,0.4), var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.faq-fab:hover { transform: scale(1.06); background: var(--purple-hover); }
.faq-fab:active { transform: scale(0.97); }
.faq-fab-icon {
  position: absolute; font-size: 26px; color: #fff; line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.faq-fab-icon--open  { opacity: 1; transform: rotate(0deg) scale(1); }
.faq-fab-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.faq-fab.is-open .faq-fab-icon--open  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.faq-fab.is-open .faq-fab-icon--close { opacity: 1; transform: rotate(0deg) scale(1); }

.faq-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 8000;
  width: 420px; max-width: 92vw;
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-panel.is-open { transform: translateX(0); }

.faq-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 26px 26px 20px;
  border-bottom: 1px solid var(--border);
}
.faq-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--text);
  margin-bottom: 4px;
}
.faq-header p { font-size: 13px; color: var(--text-muted); }
.faq-close {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.faq-close:hover { background: #e4e4e7; color: var(--text); }

.faq-search-wrap { position: relative; padding: 18px 26px 6px; }
.faq-search-icon {
  position: absolute; left: 40px; top: 50%; transform: translateY(-30%);
  font-size: 17px; color: var(--text-subtle); pointer-events: none;
}
.faq-search {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px 11px 40px; font-size: 14px;
  font-family: 'Inter', sans-serif; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.faq-search::placeholder { color: var(--text-subtle); }
.faq-search:focus {
  border-color: var(--purple); background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.faq-body { flex: 1; overflow-y: auto; padding: 12px 26px 24px; }
.faq-group { margin-top: 18px; }
.faq-group:first-child { margin-top: 6px; }
.faq-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 4px; padding-left: 2px;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 2px; text-align: left;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text); line-height: 1.4;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--purple); }
.faq-chevron {
  flex-shrink: 0; font-size: 16px; color: var(--text-subtle);
  transition: transform 0.3s ease, color 0.15s;
}
.faq-item.is-expanded .faq-chevron { transform: rotate(180deg); color: var(--purple); }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-expanded .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.6;
  padding: 0 2px 16px;
}

.faq-empty {
  display: none; text-align: center; padding: 40px 0;
  font-size: 14px; color: var(--text-muted);
}

.faq-footer {
  padding: 18px 26px 22px; border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.faq-footer p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.faq-cta {
  width: 100%; padding: 13px 20px;
  background: var(--text); color: #fff; border: none;
  border-radius: 12px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.15s;
}
.faq-cta:hover { background: #1a1a24; transform: translateY(-1px); }
.faq-cta i { transition: transform 0.2s; }
.faq-cta:hover i { transform: translateX(3px); }

/* 30. RESPONSIVE */
@media (max-width: 1024px) {
  .bento-grid      { grid-template-columns: 1fr 1fr; }
  .features-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid      { grid-template-columns: 1fr; gap: 48px; }
  .flow-4 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    height: 32px;
  }
  .flow-arrow::before { top: 50%; left: 0; right: 0; }
}

@media (max-width: 768px) {
  .container       { padding: 0 20px; }
  h1               { font-size: clamp(32px, 8vw, 52px); }
  .hero            { padding: 64px 0 48px; }
  .section         { padding: 60px 0; }
  .bento-grid      { grid-template-columns: 1fr; }
  .features-grid   { grid-template-columns: 1fr; }
  .pipeline-grid   { grid-template-columns: 1fr; }
  .clients-grid    { grid-template-columns: repeat(3,1fr); }
  .ba-wrap         { grid-template-columns: 1fr; }
  .ba-before       { border-radius: var(--r-lg); border-right: 1px solid #fecaca; }
  .ba-divider      { display: none; }
  .ba-after        { border-left: 1px solid; border-radius: var(--r-lg); margin-top: 12px; }
  .about-stats     { grid-template-columns: 1fr 1fr; }
  .product-hero-stats { grid-template-columns: 1fr; max-width: 320px; }
  .proof-grid      { grid-template-columns: 1fr; gap: 28px; }
  .proof-card      { min-height: 260px; }
  .proof-copy h2   { max-width: none; }
  .footer-grid     { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom   { flex-direction: column; gap: 8px; text-align: center; }
  .nav-menu        { display: none; }
  .plus-section    { padding: 28px; }
  .info-cells      { grid-template-columns: 1fr 1fr; }
  .info-cell:nth-child(3n)   { border-right: 1px solid var(--border); }
  .info-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .info-cell:nth-child(2n)   { border-right: none; }
  .modal-card { padding: 28px 24px; border-radius: 20px; }
  .modal-header h2 { font-size: 19px; }
  .faq-panel { width: 100%; max-width: 100%; }
  .faq-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .faq-fab-icon { font-size: 24px; }
}
