/* =================== TOKENS =================== */
:root {
  --ink: #0F0A1F;
  --ink-2: #2A2240;
  --ink-3: #5B5470;
  --ink-4: #8A839A;
  --paper: #FBFAFD;
  --paper-2: #F4F1FA;
  --paper-3: #ECE6F6;
  --line: #E4DEF0;
  --line-strong: #CFC5E3;

  --purple-50: #F5F1FE;
  --purple-100: #E9E0FD;
  --purple-200: #D2BFFB;
  --purple-300: #B697F7;
  --purple-400: #9971F0;
  --purple-500: #7C3AED;
  --purple-600: #6D28D9;
  --purple-700: #5B21B6;
  --purple-800: #4C1D95;
  --purple-900: #2E1065;

  --accent: #C4B5FD;
  --success: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(46, 16, 101, .06), 0 1px 3px rgba(46, 16, 101, .04);
  --shadow-md: 0 6px 16px rgba(46, 16, 101, .08), 0 2px 6px rgba(46, 16, 101, .05);
  --shadow-lg: 0 24px 48px -12px rgba(46, 16, 101, .22), 0 8px 16px rgba(46, 16, 101, .08);
  --shadow-xl: 0 40px 80px -20px rgba(46, 16, 101, .35);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
}

/* =================== RESET =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, .25), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--purple-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109, 40, 217, .35); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--purple-300); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* =================== HEADER =================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 253, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-name .dot { color: var(--purple-600); }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--purple-600); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-burger { display: flex; }
  .nav-row { gap: 12px; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 16px;
  }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(196, 181, 253, .25), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 24px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--purple-600), var(--purple-400) 60%, var(--purple-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: 19px; color: var(--ink-3); max-width: 540px; margin: 24px 0 32px; line-height: 1.55;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 520px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.trust-item span { font-size: 12.5px; color: var(--ink-3); }
.trust-divider { width: 1px; height: 28px; background: var(--line); }

/* hero visual */
.hero-visual { position: relative; height: 520px; }
.card-stack { position: relative; width: 100%; height: 100%; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: float 8s ease-in-out infinite;
}
.float-card.card-code {
  width: 360px; top: 30px; left: 0;
  padding: 0;
  font-family: var(--font-mono);
  background: #1a1130; color: #ddd;
  border-color: #2d1f54;
}
.float-card.card-code .card-tab {
  font-size: 11.5px; padding: 10px 16px; border-bottom: 1px solid #2d1f54; color: #b39ee0;
}
.float-card.card-code pre {
  margin: 0; padding: 16px 18px; font-size: 12.5px; line-height: 1.7;
  white-space: pre; overflow: hidden;
}
.kw { color: #c4a4ff; }
.fn { color: #93c5fd; }
.tag { color: #f472b6; }
.atr { color: #fbbf24; }
.str { color: #a7f3d0; }

.float-card.card-phone {
  width: 200px; height: 380px; top: 60px; right: 20px;
  padding: 12px;
  animation-delay: -2s;
  background: linear-gradient(165deg, #2A2240, #4C1D95);
}
.phone-screen {
  width: 100%; height: 100%; background: #fff; border-radius: 22px; padding: 18px; position: relative;
}
.phone-notch {
  width: 60px; height: 14px; background: #1a1130; border-radius: 0 0 10px 10px; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}
.phone-app { padding-top: 22px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.phone-h { width: 70%; height: 18px; background: var(--ink); border-radius: 4px; }
.phone-row { width: 100%; height: 60px; background: var(--paper-2); border-radius: 10px; }
.phone-row.short { width: 80%; height: 36px; }
.phone-cta {
  margin-top: auto; padding: 10px; background: var(--purple-600); color: #fff;
  border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600;
}

.float-card.card-tools {
  width: 280px; bottom: 30px; left: 60px;
  padding: 18px;
  animation-delay: -4s;
}
.tool-row { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.tool-row .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #FB7185; }
.dot-y { background: #FCD34D; }
.dot-g { background: #6EE7B7; }
.tool-title { margin-left: 10px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tool-progress { height: 6px; background: var(--paper-2); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.tool-progress .bar {
  height: 100%; width: 68%;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-300));
  border-radius: 4px;
  animation: bar 3s ease-in-out infinite alternate;
}
@keyframes bar { from { width: 50%; } to { width: 85%; } }
.tool-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 420px; transform: scale(.9); }
}
@media (max-width: 600px) {
  .hero { padding: 50px 0 40px; }
  .hero-visual { display: none; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .trust-divider { display: none; }
}

/* =================== MARQUEE =================== */
.marquee {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 28px; white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--font-display);
  font-size: 18px; color: var(--ink-2); font-weight: 500;
}
.marquee-track span:nth-child(even) { color: var(--purple-400); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================== SECTIONS =================== */
.section { padding: 100px 0; }
.section-tinted { background: var(--paper-2); }
.section-dark {
  background: linear-gradient(160deg, #1a1130 0%, #2A2240 50%, #4C1D95 100%);
  color: #fff;
}
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  color: var(--purple-600); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 500;
}
.section-head.light .section-eyebrow { color: var(--purple-300); }
.section-head h2 { margin-bottom: 16px; }
.section-lede { font-size: 18px; color: var(--ink-3); max-width: 600px; text-wrap: pretty; }
.section-head.light .section-lede { color: rgba(255,255,255,.7); }

@media (max-width: 700px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }
}

/* =================== SERVICES =================== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  padding: 32px 28px; background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--purple-50), transparent 40%);
  opacity: 0; transition: opacity .25s;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--purple-600);
  margin-bottom: 18px; letter-spacing: 0.05em;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-3); font-size: 15px; margin-bottom: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); font-weight: 500;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* =================== WORK =================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.work-card {
  grid-column: span 2;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.work-card.work-lg { grid-column: span 3; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work-img {
  aspect-ratio: 16/10; background: var(--purple-100); position: relative; overflow: hidden;
}
.work-img::after {
  content: attr(data-label); position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px;
  background: rgba(255,255,255,.9); border-radius: 999px; color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.placeholder-stripes {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(124, 58, 237, .12) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--purple-100), var(--purple-200));
}
.placeholder-stripes.alt {
  background:
    repeating-linear-gradient(-45deg, rgba(76, 29, 149, .12) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #E9E0FD, #C4B5FD);
}

/* === Mock screenshots === */
.mock { display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; }
.mock-window {
  width: 100%; height: 100%; background: #fff; border-radius: 10px;
  box-shadow: 0 18px 36px -16px rgba(46, 16, 101, .35);
  border: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(6px) rotate(-.4deg);
  transition: transform .3s ease;
}
.work-card:hover .mock-window { transform: translateY(0) rotate(0); }
.mock-chrome {
  display: flex; align-items: center; gap: 5px; padding: 8px 10px;
  background: #F7F4FB; border-bottom: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0;
}
.mock-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #E5DEEF; }
.mock-chrome span:nth-child(1) { background: #FCA5A5; }
.mock-chrome span:nth-child(2) { background: #FCD34D; }
.mock-chrome span:nth-child(3) { background: #86EFAC; }
.mock-url {
  margin-left: 8px; font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); background: #fff; padding: 3px 10px; border-radius: 999px;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cafe site */
.mock-cafe { background: linear-gradient(160deg, #2E1065, #4C1D95); }
.mock-cafe-hero {
  padding: 18px 18px 14px; background: linear-gradient(135deg, #1F1235, #3B1F70);
  color: #fff;
}
.cafe-eyebrow { font-family: var(--font-mono); font-size: 8px; letter-spacing: .15em; color: #C4B5FD; margin-bottom: 8px; }
.cafe-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 12px; }
.cafe-cta { display: inline-block; background: #FBBF24; color: #1F1235; padding: 5px 12px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.mock-cafe-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 6px; background: #fff; flex: 1; }
.cafe-tile { border-radius: 4px; min-height: 60px; }
.cafe-tile.t1 { background: linear-gradient(135deg, #92400E, #FBBF24); }
.cafe-tile.t2 { background: linear-gradient(135deg, #78350F, #B45309); }
.cafe-tile.t3 { background: linear-gradient(135deg, #44403C, #1C1917); }

/* Driver iOS app */
.mock-driver { background: linear-gradient(160deg, #4C1D95, #1E3A8A); padding: 14px; }
.mock-phone {
  width: 140px; height: 100%; max-height: 230px;
  background: #1F1235; border-radius: 18px; padding: 6px;
  border: 2px solid #0F0A1F;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
}
.mock-phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 8px; background: #0F0A1F; border-radius: 0 0 6px 6px; z-index: 2; }
.mock-phone-screen {
  width: 100%; height: 100%; background: #F4F1FA; border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden;
}
.driver-head { padding: 18px 12px 8px; }
.driver-time { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); margin-bottom: 4px; }
.driver-greet { font-size: 9px; color: var(--ink-3); margin-bottom: 2px; }
.driver-addr { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.2; }
.driver-map { flex: 1; background: linear-gradient(160deg, #6D28D9, #4C1D95); margin: 8px; border-radius: 8px; overflow: hidden; }
.driver-map svg { width: 100%; height: 100%; }
.driver-cta { margin: 0 12px 10px; padding: 6px; background: #7C3AED; color: #fff; text-align: center; border-radius: 6px; font-size: 10px; font-weight: 600; }

/* Dashboard */
.mock-dash { background: linear-gradient(160deg, #EDE9FE, #DDD6FE); }
.dash-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-stat { padding: 8px 10px; background: #F4F1FA; border-radius: 6px; }
.dash-stat-l { font-size: 8px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.dash-stat-v { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.dash-stat-v.warn { color: #B45309; }
.dash-chart { flex: 1; background: #F4F1FA; border-radius: 6px; padding: 6px; min-height: 60px; }
.dash-chart svg { width: 100%; height: 100%; }

/* Shop */
.mock-shop { background: linear-gradient(160deg, #FEE2E2, #DDD6FE); }
.shop-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.shop-hero { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--ink); padding: 4px 0; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; flex: 1; }
.shop-tile { border-radius: 4px; position: relative; overflow: hidden; min-height: 70px; }
.shop-tile.s1 { background: linear-gradient(160deg, #1F2937, #4B5563); }
.shop-tile.s2 { background: linear-gradient(160deg, #7C2D12, #DC2626); }
.shop-tile.s3 { background: linear-gradient(160deg, #064E3B, #047857); }
.shop-price { position: absolute; bottom: 4px; left: 4px; background: #fff; padding: 1px 5px; border-radius: 3px; font-size: 9px; font-weight: 600; color: var(--ink); }

/* Repair tracker */
.mock-repair { background: linear-gradient(160deg, #1F1235, #4C1D95); }
.repair-body { display: grid; grid-template-columns: 130px 1fr; flex: 1; }
.repair-side { background: #F4F1FA; padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.repair-side-h { font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.repair-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 5px; font-size: 10px; color: var(--ink-2); }
.repair-row.active { background: #fff; color: var(--purple-700); font-weight: 600; }
.repair-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-500); flex-shrink: 0; }
.repair-dot.warn { background: #F59E0B; }
.repair-dot.ok { background: #10B981; }
.repair-main { padding: 12px; background: #fff; }
.repair-card { background: linear-gradient(160deg, #F5F1FE, #fff); border: 1px solid var(--purple-200); border-radius: 8px; padding: 12px; }
.repair-tag { font-family: var(--font-mono); font-size: 8px; color: var(--purple-600); letter-spacing: .08em; margin-bottom: 4px; }
.repair-title { font-family: var(--font-display); font-weight: 600; font-size: 12px; margin-bottom: 8px; color: var(--ink); }
.repair-progress { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.repair-bar { height: 100%; width: 65%; background: linear-gradient(90deg, #7C3AED, #C4B5FD); border-radius: 2px; }
.repair-meta { display: flex; justify-content: space-between; font-size: 8px; color: var(--ink-3); }
.work-body { padding: 24px 22px 26px; }
.work-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--purple-600);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.work-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.work-body p { color: var(--ink-3); font-size: 14.5px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card.work-lg { grid-column: span 1; }
}
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* =================== TESTIMONIALS =================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote-card {
  margin: 0; padding: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  position: relative;
}
.quote-card::before {
  content: """; position: absolute; top: 4px; left: 22px;
  font-family: var(--font-display); font-size: 64px; color: var(--purple-200);
  line-height: 1;
}
.quote-card blockquote {
  margin: 0 0 24px; font-size: 17.5px; line-height: 1.6; color: var(--ink-2);
  font-family: var(--font-display); font-weight: 500;
  text-wrap: pretty;
}
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.quote-card figcaption strong { color: var(--ink); }
.quote-card figcaption span { color: var(--ink-3); }
@media (max-width: 700px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* =================== PRICING =================== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.price-card {
  position: relative;
  padding: 36px 30px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.price-card.price-feature {
  background: linear-gradient(160deg, rgba(124, 58, 237, .35), rgba(76, 29, 149, .55));
  border-color: rgba(196, 181, 253, .3);
  box-shadow: 0 30px 60px -20px rgba(124, 58, 237, .5);
  transform: translateY(-8px);
}
.price-flag {
  position: absolute; top: -12px; left: 30px;
  background: var(--accent); color: var(--purple-900);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.price-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--purple-300); margin-bottom: 18px;
}
.price-amount {
  font-family: var(--font-display); font-size: 48px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
}
.price-amount span { font-size: 18px; color: rgba(255,255,255,.6); font-weight: 400; margin-left: 4px; }
.price-desc { color: rgba(255,255,255,.7); font-size: 14.5px; margin-bottom: 22px; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.price-list li {
  font-size: 14px; color: rgba(255,255,255,.85);
  display: flex; align-items: flex-start; gap: 8px;
}
.price-list li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-6' stroke='%234C1D95' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}
.pricing-foot {
  margin-top: 36px; text-align: center; color: rgba(255,255,255,.7); font-size: 14.5px;
}
.pricing-foot strong { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .price-card.price-feature { transform: none; } }

/* =================== QUOTE ESTIMATOR =================== */
.quote-shell { max-width: 980px; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 10px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.quote-tab {
  padding: 10px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); transition: all .15s;
}
.quote-tab:hover { background: rgba(255,255,255,.7); }
.quote-tab.active { background: #fff; color: var(--purple-700); box-shadow: var(--shadow-sm); }

.quote-body { display: grid; grid-template-columns: 1.4fr 1fr; }
.quote-controls {
  padding: 36px; display: flex; flex-direction: column; gap: 24px;
  border-right: 1px solid var(--line);
}
.quote-control { display: flex; flex-direction: column; gap: 10px; }
.quote-control label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.quote-control .hint { font-size: 12.5px; color: var(--ink-4); }
.quote-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-option {
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.quote-option:hover { border-color: var(--purple-300); }
.quote-option.active { background: var(--purple-600); color: #fff; border-color: var(--purple-600); }
.quote-slider-row { display: flex; align-items: center; gap: 14px; }
.quote-slider-row input[type=range] { flex: 1; accent-color: var(--purple-600); }
.quote-slider-row .val {
  min-width: 56px; text-align: right; font-family: var(--font-mono); font-size: 14px;
  background: var(--paper-2); padding: 4px 10px; border-radius: 6px;
}
.quote-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote-check {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.quote-check input { accent-color: var(--purple-600); }
.quote-check:hover { border-color: var(--purple-300); }
.quote-check.checked { background: var(--purple-50); border-color: var(--purple-300); }

.quote-result {
  padding: 36px;
  background: linear-gradient(165deg, #2E1065 0%, #4C1D95 60%, #6D28D9 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.quote-result-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple-300); margin-bottom: 10px;
}
.quote-result-amount {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 12px;
}
.quote-result-meta { font-size: 14px; color: rgba(255,255,255,.78); margin-bottom: 22px; }
.quote-result-note { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 22px; line-height: 1.55; }

@media (max-width: 800px) {
  .quote-body { grid-template-columns: 1fr; }
  .quote-controls { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .quote-result { padding: 24px; }
}

/* =================== CONTACT =================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.contact-blocks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 36px 0;
}
.contact-block-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--purple-600); margin-bottom: 8px;
}
.contact-block-value {
  font-size: 15px; color: var(--ink); line-height: 1.55;
}
.contact-block-value.link { color: var(--purple-700); font-weight: 500; }
.contact-block-value.link:hover { text-decoration: underline; }

.map-card {
  position: relative; height: 200px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--purple-100), var(--purple-200));
  border: 1px solid var(--line);
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(76, 29, 149, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 29, 149, .1) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-roads {
  position: absolute; inset: 0;
  background:
    linear-gradient(35deg, transparent 48%, rgba(255,255,255,.6) 49%, rgba(255,255,255,.6) 51%, transparent 52%),
    linear-gradient(110deg, transparent 39%, rgba(255,255,255,.4) 40%, rgba(255,255,255,.4) 41%, transparent 42%),
    linear-gradient(0deg, transparent 70%, rgba(255,255,255,.5) 71%, rgba(255,255,255,.5) 72%, transparent 73%);
}
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-pin-dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--purple-600);
  border: 3px solid #fff; box-shadow: 0 4px 10px rgba(76, 29, 149, .4);
  position: relative;
}
.map-pin-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--purple-500);
  animation: ping 2.5s ease-out infinite;
}
@keyframes ping {
  0% { opacity: .8; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.8); }
}
.map-pin-label {
  background: #fff; padding: 5px 12px; border-radius: 8px; font-size: 12px;
  font-weight: 500; box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* =================== CHAT PANEL =================== */
.chat-panel {
  background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: flex; flex-direction: column;
  height: 580px;
  position: sticky; top: 90px;
}
.chat-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--purple-50), #fff);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--purple-500), var(--purple-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.chat-name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.chat-badge {
  font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  background: var(--purple-100); color: var(--purple-700);
  font-family: var(--font-body); letter-spacing: 0.02em;
}
.chat-status {
  font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.dot-online {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); animation: pulse 2s infinite;
}
.chat-log {
  flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px;
  background: var(--paper);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.msg {
  max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px;
  line-height: 1.5; animation: msgIn .25s ease-out;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot {
  background: #fff; border: 1px solid var(--line);
  border-bottom-left-radius: 4px; align-self: flex-start;
  color: var(--ink);
}
.msg.user {
  background: var(--purple-600); color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.msg.bot strong { color: var(--purple-700); }
.msg-typing {
  display: inline-flex; gap: 4px; align-items: center; padding: 6px 0;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4);
  animation: typing 1.2s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
.lead-form { background: var(--purple-50) !important; border-color: var(--purple-200) !important; max-width: 100% !important; width: 100%; }
.lead-form-inner { display: flex; flex-direction: column; gap: 8px; }
.lead-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.lead-form input:focus { outline: none; border-color: var(--purple-400); }
.lead-status { font-size: 12.5px; color: var(--ink-3); min-height: 16px; }
.lead-status.ok { color: var(--success); font-weight: 500; }
.lead-status.err { color: var(--danger); }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.msg-quote-card {
  margin-top: 8px; padding: 12px 14px; background: var(--purple-50);
  border: 1px solid var(--purple-200); border-radius: 10px;
  font-size: 13px;
}
.msg-quote-card strong { color: var(--purple-700); display: block; font-size: 16px; margin-bottom: 4px; }
.chat-form {
  display: flex; gap: 8px; padding: 14px;
  border-top: 1px solid var(--line); background: #fff;
}
.chat-form input {
  flex: 1; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.chat-form input:focus {
  outline: none; border-color: var(--purple-400);
  box-shadow: 0 0 0 3px var(--purple-100);
}
.chat-foot {
  font-size: 12.5px; padding: 12px 18px; color: var(--ink-3);
  background: var(--paper); border-top: 1px solid var(--line);
}
.chat-foot a { color: var(--purple-700); font-weight: 500; }
.chat-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .chat-panel { position: static; height: 520px; }
}
@media (max-width: 500px) { .contact-blocks { grid-template-columns: 1fr; } }

/* =================== FAQ =================== */
.faq-shell { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 22px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--purple-300); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--purple-600);
  transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 18px; color: var(--ink-3); font-size: 15px; line-height: 1.65;
  text-wrap: pretty;
}

/* =================== CTA STRIP =================== */
.cta-strip {
  background: linear-gradient(110deg, var(--purple-700), var(--purple-500));
  color: #fff; padding: 70px 0;
}
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-row h2 { max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =================== FOOTER =================== */
.site-footer {
  background: #0F0A1F; color: rgba(255,255,255,.7); padding: 70px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-blurb { font-size: 14px; line-height: 1.6; margin-top: 18px; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-family: var(--font-body);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--purple-300); }
.footer-col address { font-size: 14px; line-height: 1.6; font-style: normal; margin-bottom: 16px; }
.footer-link { display: block; font-size: 14px; margin-top: 6px; }
.footer-bottom {
  padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =================== FLOATING CHAT BUBBLE =================== */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  display: flex; flex-direction: row-reverse; align-items: center; gap: 12px;
}
.bubble-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--purple-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(124, 58, 237, .55);
  transition: transform .2s, background .2s;
  position: relative;
}
.bubble-btn:hover { transform: translateY(-2px) scale(1.05); background: var(--purple-700); }
.bubble-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--purple-400);
  animation: ping 2.4s ease-out infinite;
}
.bubble-tip {
  background: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  white-space: nowrap;
  animation: float-tip 4s ease-in-out infinite;
}
@keyframes float-tip {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
.chat-bubble.hidden { display: none; }

.chat-dock {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 380px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 48px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: none; flex-direction: column;
  transform-origin: bottom right;
  animation: dockIn .25s ease-out;
}
.chat-dock.open { display: flex; }
@keyframes dockIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.dock-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--purple-50), #fff);
  position: relative;
}
.dock-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink-3);
  transition: background .15s;
}
.dock-close:hover { background: var(--paper-2); color: var(--ink); }

/* =================== COOKIE BANNER =================== */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; z-index: 70;
  max-width: 480px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 18px;
  animation: cookieIn .35s ease-out;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-inner { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; }
.cookie-inner strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.cookie-inner a { color: var(--purple-600); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; padding: 10px 14px; font-size: 13.5px; }

/* =================== LEGAL PAGES =================== */
.legal-hero {
  padding: 80px 0 40px;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(124, 58, 237, .12), transparent 60%),
    var(--paper);
}
.legal-hero h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); margin-bottom: 12px; }
.legal-hero .meta { color: var(--ink-3); font-size: 14.5px; }
.legal-content { padding: 40px 0 100px; }
.legal-shell { display: grid; grid-template-columns: 240px 1fr; gap: 60px; max-width: 1100px; margin: 0 auto; }
.legal-toc { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.legal-toc h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.legal-toc ol { display: flex; flex-direction: column; gap: 8px; padding-left: 0; counter-reset: legal; }
.legal-toc li { counter-increment: legal; padding-left: 28px; position: relative; }
.legal-toc li::before { content: counter(legal, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }
.legal-toc a { color: var(--ink-2); transition: color .15s; }
.legal-toc a:hover { color: var(--purple-600); }
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 1.75rem; margin: 48px 0 18px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 28px 0 10px; font-size: 1.1rem; }
.legal-body p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.7; text-wrap: pretty; }
.legal-body ul { margin-bottom: 18px; padding-left: 22px; }
.legal-body ul li { list-style: disc; color: var(--ink-2); margin-bottom: 8px; line-height: 1.6; }
.legal-body a { color: var(--purple-700); text-decoration: underline; }
.legal-callout {
  background: var(--purple-50); border: 1px solid var(--purple-200); border-radius: var(--r-md);
  padding: 18px 22px; margin: 24px 0; font-size: 14.5px;
}
@media (max-width: 800px) {
  .legal-shell { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
}
