/* FlightLog — site styles (dark-first, light theme via [data-theme="light"]) */

:root {
  --background: #050816;
  --foreground: #e8eaf6;
  --card: #0e1325;
  --popover: #0c1122;
  --muted: #131a30;
  --muted-foreground: #9ba3bb;
  --border: #e8eaf617;
  --input: #e8eaf61f;
  --primary: #5b5bf7;
  --primary-bright: #a5a5ff;
  --secondary: #8b5cf6;
  --accent: #00f5d4;
  --pink: #ff4ecd;
  --success: #00c853;
  --warning: #ffb020;
  --destructive: #ff4d6d;
  --glass-bg: #0e13258c;
  --glass-border: #e8eaf61a;
  --glow-primary: #5b5bf759;
  --grid-line: #e8eaf60b;
  --sheen: #e8eaf614;
  --elevation-1: 0 1px 2px #00000052, 0 16px 40px -24px #000000b8;
  --elevation-2: 0 1px 2px #0006, 0 28px 56px -28px #000000d9;
  --aurora-1: #5b5bf740;
  --aurora-2: #00f5d426;
  --aurora-3: #ff4d6d1f;

  --radius: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1216px;
  --gutter: 24px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Rajdhani", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --gradient-text: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 45%, var(--accent) 100%);
  --gradient-btn: linear-gradient(110deg, var(--primary), var(--secondary) 50%, var(--primary));
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --background: #f7f8fc;
  --foreground: #0b1020;
  --card: #ffffff;
  --popover: #ffffff;
  --muted: #eef0f8;
  --muted-foreground: #4d5468;
  --border: #0b10201a;
  --input: #0b102024;
  --primary-bright: #5b5bf7;
  --accent: #00c7ac;
  --glass-bg: #ffffff99;
  --glass-border: #0b102014;
  --glow-primary: #5b5bf740;
  --grid-line: #0b10200d;
  --sheen: #ffffffe6;
  --elevation-1: 0 1px 2px #0b10200a, 0 12px 32px -20px #0b102033;
  --elevation-2: 0 1px 2px #0b10200d, 0 24px 48px -24px #0b10204d;
  --aurora-1: #5b5bf726;
  --aurora-2: #00c7ac1f;
  --aurora-3: #ff4ecd14;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: 120px 0; }
.section--tight { padding: 72px 0; }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted-foreground); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page backdrop: faint grid + aurora glows */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .9; animation: drift 22s ease-in-out infinite alternate; }
.aurora--1 { width: 620px; height: 520px; left: 18%; top: -220px; background: var(--aurora-1); }
.aurora--2 { width: 520px; height: 440px; right: 4%; top: 80px; background: var(--aurora-2); animation-delay: -6s; }
.aurora--3 { width: 460px; height: 420px; left: -6%; top: 260px; background: var(--aurora-3); animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: #fff; background: var(--gradient-btn); background-size: 200% 100%;
  box-shadow: 0 8px 32px -8px var(--glow-primary);
  animation: sheen 6s linear infinite;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -8px var(--glow-primary); }
@keyframes sheen { to { background-position: -200% 0; } }
.btn--ghost { background: transparent; border-color: var(--input); }
.btn--ghost:hover { background: var(--muted); border-color: var(--glass-border); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* Store badges */
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px;
  border-radius: 16px; background: var(--foreground); color: var(--background);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.store:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -12px var(--glow-primary); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; line-height: 1; opacity: .7; }
.store b { display: block; font-size: 17px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); }
.header__bar {
  max-width: var(--container); margin: 0 auto; height: 56px; padding: 0 8px 0 18px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--elevation-1);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 16px -4px var(--glow-primary);
}
.logo__mark img { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted-foreground); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--foreground); background: var(--muted); }
.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--foreground); transition: background-color .2s;
}
.icon-btn:hover { background: var(--muted); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-light { display: block; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
.menu-btn { display: none; }
.mobile-nav {
  display: none; max-width: var(--container); margin: 8px auto 0; padding: 12px;
  border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
  background: var(--popover); box-shadow: var(--elevation-2);
}
.mobile-nav a { display: block; padding: 12px 14px; border-radius: 10px; }
.mobile-nav a:hover { background: var(--muted); }
.header.is-open .mobile-nav { display: block; }

/* ---------- Section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-bright);
}
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--primary-bright), transparent); opacity: .5; }
.head { margin-bottom: 56px; }
.head h2 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 16px; }
.head p { font-size: 18px; color: var(--muted-foreground); max-width: 620px; margin-top: 16px; }
.head--center { text-align: center; }
.head--center .eyebrow::before { content: ""; width: 48px; height: 1px; background: linear-gradient(270deg, var(--primary-bright), transparent); opacity: .5; }
.head--center p { margin-left: auto; margin-right: auto; }
.head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.head--split p { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 96px; text-align: center; overflow-x: clip; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px;
  border-radius: 999px; border: 1px solid #5b5bf766; background: #5b5bf714;
  font-size: 13px; color: var(--primary-bright); transition: background-color .2s;
}
.pill:hover { background: #5b5bf726; }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; letter-spacing: .04em; }
.pill svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 84px); letter-spacing: -0.045em; line-height: 1.02; margin: 28px auto 0; max-width: 900px; }
.typed { display: inline-block; min-width: 2ch; }
.typed::after { content: ""; display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -0.08em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted-foreground); max-width: 660px; margin: 24px auto 0; line-height: 1.6; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__fine { margin-top: 18px; font-size: 13px; color: var(--muted-foreground); }

/* Hero visual: phone mock with floating cards */
.stage { position: relative; margin: 72px auto 0; max-width: 980px; height: 620px; }
.stage__glow { position: absolute; left: 50%; top: 40%; width: 640px; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow-primary), transparent); filter: blur(30px); }
.phone {
  position: absolute; left: 50%; top: 0; width: 300px; height: 620px; transform: translateX(-50%);
  border-radius: 48px; padding: 12px; background: linear-gradient(160deg, #2a3150, #0b1020 40%, #1b2140);
  box-shadow: var(--elevation-2), 0 0 0 1px var(--glass-border), 0 40px 120px -40px var(--glow-primary);
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #070b1c; }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 2; }
.phone__screen svg { width: 100%; height: 100%; }
.float {
  position: absolute; width: 230px; padding: 16px; text-align: left;
  border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--elevation-2);
  animation: bob 7s ease-in-out infinite;
}
.float h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.float small { font-size: 12px; color: var(--muted-foreground); }
.float--l1 { left: 0; top: 70px; }
.float--l2 { left: 40px; top: 360px; animation-delay: -2s; }
.float--r1 { right: 0; top: 120px; animation-delay: -4s; }
.float--r2 { right: 30px; top: 400px; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 1px solid currentColor; }
.tag--ok { color: var(--success); background: #00c85314; }
.tag--warn { color: var(--warning); background: #ffb02014; }
.tag--bad { color: var(--destructive); background: #ff4d6d14; }
.rows { display: grid; gap: 8px; margin-top: 12px; font-size: 12px; }
.rows div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-foreground); }
.rows b { color: var(--foreground); font-weight: 500; font-family: var(--font-mono); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; }
.dot--warn { background: var(--warning); }
.dot--bad { background: var(--destructive); }
.bar { height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.big { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin-top: 8px; }

/* ---------- Marquee ---------- */
.marquee-wrap { text-align: center; }
.marquee-wrap > p { font-size: 14px; color: var(--muted-foreground); margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee + .marquee { margin-top: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 8px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); white-space: nowrap; font-weight: 500;
}
.chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.chip span { font-size: 13px; color: var(--muted-foreground); font-weight: 400; }

/* ---------- Cards & bento ---------- */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--elevation-1); padding: 28px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
/* Spotlight follows the cursor (set by JS through --mx / --my) */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), #5b5bf71f, transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: #5b5bf74d; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 20px; height: 20px; flex: none; }
.card p { color: var(--muted-foreground); margin-top: 10px; font-size: 15px; line-height: 1.6; }
.card > * { position: relative; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--teal { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.icon-tile--pink { background: linear-gradient(135deg, var(--pink), var(--warning)); }
.icon-tile--soft { background: #5b5bf726; color: var(--primary-bright); border: 1px solid #5b5bf74d; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(330px, auto); gap: 20px; }
.bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento__art { margin-top: 24px; flex: 1; display: flex; align-items: flex-end; }
.bento .card { display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.chips span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; width: 100%; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--primary)); opacity: .9; transform-origin: bottom; }
.is-visible .bars i { animation: grow 1s var(--ease) both; }
.bars i:nth-child(odd) { animation-delay: .1s; }
@keyframes grow { from { transform: scaleY(0); } }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.gauge { text-align: center; font-size: 12px; color: var(--muted-foreground); }
.gauge svg { width: 100%; max-width: 86px; margin: 0 auto 6px; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.formats span { text-align: center; padding: 9px 0; border-radius: 10px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; background: var(--muted); }

/* ---------- 3-column grid & check lists ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; color: var(--muted-foreground); }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks--1 { grid-template-columns: 1fr; }

/* ---------- A day on the line ---------- */
.profile { margin: 0 0 8px; color: var(--foreground); }
.day { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.day__step { padding: 22px 20px; }
.day__time { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-bright); }
.day__time b { display: none; width: 24px; height: 24px; border-radius: 50%; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.day__step h3 { font-size: 22px; margin-top: 12px; }
.day__step p { font-size: 14px; margin-top: 8px; }
@media (max-width: 1080px) {
  .profile { display: none; }
  .day { grid-template-columns: repeat(3, 1fr); }
  .day__time b { display: grid; }
}
@media (max-width: 900px) { .day { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .day { grid-template-columns: 1fr; } }

/* ---------- Divert flow ---------- */
.flow-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.flow-wrap h2 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 16px; }
.flow-wrap .lead { font-size: 18px; color: var(--muted-foreground); margin-top: 16px; line-height: 1.6; }
.scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.scenarios button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 13px; font-family: var(--font-mono); color: var(--muted-foreground); transition: all .2s; }
.scenarios button[aria-pressed="true"], .scenarios button:hover { color: #fff; border-color: transparent; background: var(--primary); }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; font-size: 13px; color: var(--muted-foreground); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--input); }
.disclaimer svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warning); }
.flow { padding: 0; }
.flow__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 13px; }
.flow__body { padding: 28px; display: grid; gap: 14px; }
.node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--muted); }
.node__icon { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #5b5bf726; color: var(--primary-bright); }
.node__icon svg { width: 18px; height: 18px; }
.node b { display: block; font-size: 14px; font-weight: 600; }
.node small { font-size: 12px; color: var(--muted-foreground); }
.node .tag { margin-left: auto; }
.link { height: 18px; width: 2px; margin-left: 33px; margin-block: -14px; background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px); background-size: 2px 8px; animation: flowdash 0.8s linear infinite; }
@keyframes flowdash { to { background-position: 0 8px; } }
.ranked { display: grid; gap: 8px; }
.ranked div { display: grid; grid-template-columns: 26px 60px 1fr 56px; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.ranked div:first-child { border-color: #00f5d466; box-shadow: 0 0 0 3px #00f5d414; }
.ranked em { font-style: normal; font-family: var(--font-mono); color: var(--muted-foreground); }
.ranked b { font-family: var(--font-mono); font-weight: 600; }
.ranked span { color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked strong { font-family: var(--font-mono); text-align: right; font-weight: 500; }

/* ---------- Placeholders for app captures ---------- */
.placeholder {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
  min-height: 220px; border-radius: 16px; border: 1px dashed var(--input);
  background:
    radial-gradient(circle at 30% 20%, #5b5bf71f, transparent 60%),
    radial-gradient(circle at 80% 90%, #00f5d414, transparent 50%),
    var(--muted);
  color: var(--muted-foreground); font-size: 13px; padding: 20px;
}
.placeholder b { font-family: var(--font-mono); font-size: 13px; color: var(--primary-bright); }
.placeholder--tall { min-height: 420px; }
.center-link { display: flex; justify-content: center; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-bright); font-weight: 500; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Imports grid ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 16px; }
.split .lead { font-size: 18px; color: var(--muted-foreground); margin-top: 16px; line-height: 1.6; }
.split .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  aspect-ratio: 1.35; border-radius: 18px; border: 1px solid var(--border); background: var(--card);
  display: grid; place-items: center; text-align: center; padding: 12px; gap: 4px;
  transition: transform .3s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: #5b5bf74d; }
.tile b { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tile small { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 20px; }
.gallery figure { break-inside: avoid; margin: 0 0 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.gallery .placeholder { border: 0; border-radius: 0; }
.gallery figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted-foreground); display: flex; justify-content: space-between; gap: 10px; }
.gallery figcaption b { color: var(--foreground); font-weight: 500; }
.gallery figcaption span { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Pricing ---------- */
.toggle { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 56px; font-size: 15px; color: var(--muted-foreground); }
.toggle .is-on { color: var(--foreground); }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--input); background: var(--muted); padding: 3px; }
.switch i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] i { transform: translateX(22px); }
.save { font-size: 12px; padding: 3px 10px; border-radius: 999px; color: var(--accent); border: 1px solid var(--accent); background: #00f5d414; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; align-items: start; }
.plan { padding: 36px; }
.plan h3 { font-size: 22px; }
.plan > p { margin-top: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; }
.price b { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted-foreground); font-size: 15px; }
.price-note { font-size: 13px; color: var(--accent); margin-top: 8px; min-height: 20px; }
.plan .btn { margin-top: 28px; }
.plan .checks { margin-top: 32px; }
.plan--pro { border-color: #5b5bf780; box-shadow: var(--elevation-2), 0 0 0 1px #5b5bf733, 0 30px 80px -40px var(--glow-primary); overflow: visible; }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--popover); border: 1px solid #5b5bf780; color: var(--primary-bright); white-space: nowrap; }
.plan__badge svg { width: 14px; height: 14px; }

/* ---------- Testimonials ---------- */
.quotes { columns: 3; column-gap: 20px; }
.quote { break-inside: avoid; margin-bottom: 20px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; }
.quote footer i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.quote footer small { display: block; color: var(--muted-foreground); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq h2 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 16px; }
.faq .lead { font-size: 17px; color: var(--muted-foreground); margin-top: 16px; }
.faq .actions { margin-top: 28px; }
.qa { border-radius: 18px; border: 1px solid var(--border); background: var(--card); margin-bottom: 12px; transition: border-color .2s; }
.qa[open] { border-color: #5b5bf74d; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 500; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; flex: none; color: var(--muted-foreground); transition: transform .25s var(--ease); }
.qa[open] summary svg { transform: rotate(45deg); color: var(--primary-bright); }
.qa div { padding: 0 24px 22px; color: var(--muted-foreground); line-height: 1.65; }
.qa a { color: var(--primary-bright); }

/* ---------- Blog / updates preview ---------- */
.post { padding: 0; }
.post .placeholder { border: 0; border-radius: 0; min-height: 190px; }
.post__body { padding: 24px; }
.post__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted-foreground); }
.post__meta .tag { color: var(--primary-bright); }
.post h3 { font-size: 20px; margin-top: 14px; line-height: 1.25; }
.post p { font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 96px 32px;
  border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 30% 20%, var(--aurora-1), transparent 70%),
    radial-gradient(500px 300px at 75% 80%, var(--aurora-2), transparent 70%),
    radial-gradient(400px 260px at 10% 90%, var(--aurora-3), transparent 70%);
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.04em; }
.cta p { font-size: 18px; color: var(--muted-foreground); max-width: 560px; margin: 20px auto 0; }
.cta .hero__cta { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 120px; padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { color: var(--muted-foreground); margin-top: 18px; max-width: 340px; font-size: 15px; line-height: 1.6; }
.footer h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--muted-foreground); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--foreground); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-foreground); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__actions .btn, .header__actions .login { display: none; }
  .menu-btn { display: grid; }
  .header__bar { justify-content: space-between; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .float--l2, .float--r2 { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .head--split, .flow-wrap, .split, .faq { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery, .quotes { columns: 2; }
  .plans { grid-template-columns: 1fr; }
  .float { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 132px 0 64px; }
  .stage { height: 560px; margin-top: 48px; }
  .phone { width: 270px; height: 560px; }
  .bento { grid-template-columns: 1fr; }
  .bento > :nth-child(1) { grid-column: auto; grid-row: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery, .quotes { columns: 1; }
  .checks { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .plan { padding: 28px; }
  .cta { padding: 64px 20px; }
  .ranked div { grid-template-columns: 22px 52px 1fr 48px; padding: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .store { width: 100%; justify-content: center; }
}

/* Keep the typed phrase on one line so the hero never jumps */
.typed { white-space: nowrap; }
@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .pill { font-size: 12px; }
}

/* Display font: Rajdhani — narrow and square, so no negative tracking, bolder weight, slightly larger sizes */
h1, h2, h3, h4, .logo, .big, .tile b, .price b, .cta h2 { letter-spacing: 0; font-weight: 700; }
.hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: .98; letter-spacing: -0.005em; }
.head h2, .flow-wrap h2, .split h2, .faq h2 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; }
.cta h2 { font-size: clamp(40px, 6vw, 74px); line-height: 1; }
.card h3 { font-size: 23px; }
.post h3 { font-size: 23px; }
.logo { font-size: 22px; }
@media (max-width: 640px) { .hero h1 { font-size: 44px; } }

/* Highlights: wide ENROUTE card (text left, drawing right) and refresh spinner */
.bento .card--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.bento .card--wide > div:first-child { display: flex; flex-direction: column; height: 100%; }
.bento .card--wide .bento__art { margin-top: 0; }
.spin { transform-origin: 0 0; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1080px) { .bento .card--wide { grid-column: auto; grid-template-columns: 1fr; gap: 0; } .bento .card--wide .bento__art { margin-top: 24px; } }

/* Live markers in drawings */
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.dashflow { animation: dashflow 1s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -11; } }

/* AI badge */
.ai-tag { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .04em; vertical-align: middle; color: var(--pink); background: #ff4ecd14; }

/* Anchored sections and cards clear the fixed header */
[id] { scroll-margin-top: 96px; }

/* ---------- Device frames with real captures ---------- */
.split--device { grid-template-columns: 1fr 1fr; }
.split--device .checks { margin-top: 28px; font-size: 15px; }
.tablet {
  justify-self: center; width: 100%; max-width: 500px; padding: 14px;
  border-radius: 34px; background: linear-gradient(160deg, #2a3150, #0b1020 45%, #1b2140);
  box-shadow: var(--elevation-2), 0 0 0 1px var(--glass-border), 0 40px 120px -40px var(--glow-primary);
}
.tablet img { width: 100%; height: auto; border-radius: 20px; }
.shot--light { display: none; }
:root[data-theme="light"] .shot--light { display: block; }
:root[data-theme="light"] .shot--dark { display: none; }
@media (max-width: 900px) { .split--device { grid-template-columns: 1fr; } }
.gallery img { width: 100%; height: auto; }
.post img { width: 100%; height: 190px; object-fit: cover; object-position: top center; }
