/* =========================================================================
   cukker — premium dark design system
   Shared by index.html (dashboard) and trip-planner.html (detail/downloads)
   ========================================================================= */

/* ----------------------------- Tokens ---------------------------------- */
:root {
  /* Surfaces */
  --bg:            #0A0B10;
  --bg-2:          #0C0E14;
  --surface:       #13151D;
  --surface-2:     #171A23;
  --hairline:      rgba(255, 255, 255, 0.08);
  --hairline-2:    rgba(255, 255, 255, 0.12);

  /* Text */
  --text:          #F5F7FA;
  --text-muted:    #99A1B3;
  --text-dim:      #6B7384;

  /* Signature accents (nods to the map: route-teal + start-amber) */
  --teal:          #2DD4BF;
  --cyan:          #22D3EE;
  --amber:         #F59E0B;
  --accent-grad:   linear-gradient(100deg, #2DD4BF 0%, #22D3EE 45%, #F59E0B 115%);
  --accent-grad-soft: linear-gradient(100deg, rgba(45,212,191,.18), rgba(34,211,238,.14) 50%, rgba(245,158,11,.14));

  /* Radii & shadows */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow-md: 0 20px 50px -20px rgba(0,0,0,.65);
  --shadow-glow: 0 0 60px -12px rgba(45,212,191,.35);

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .5s;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------- Ambient background layers ----------------------- */
/* Soft colored glow blobs */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.bg-ambient::before,
.bg-ambient::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.bg-ambient::before {
  top: -22vmax; left: -14vmax;
  background: radial-gradient(circle at center, rgba(45,212,191,.35), transparent 62%);
}
.bg-ambient::after {
  bottom: -26vmax; right: -16vmax;
  background: radial-gradient(circle at center, rgba(245,158,11,.22), transparent 62%);
}
/* Faint dotted grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 35%, transparent 78%);
}
/* Grain overlay */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------- Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; }
.section-pad { padding-block: clamp(64px, 10vw, 128px); }

/* ----------------------------- Type ------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 7px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: rgba(45,212,191,.06);
  backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px 2px rgba(45,212,191,.7);
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent-grad);
  color: #04221E;
  box-shadow: 0 10px 30px -10px rgba(45,212,191,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(45,212,191,.7); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--hairline-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--hairline-2); background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ----------------------------- Nav ------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10,11,16,.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); background: rgba(10,11,16,.82); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; }
.brand b { font-weight: 600; }
.brand .tld { color: var(--text-dim); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: rgba(12,14,20,.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline);
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 16px; }
}

/* ----------------------------- Hero ------------------------------------ */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(40px, 7vw, 80px); }
.hero h1 {
  font-size: clamp(40px, 7.2vw, 82px);
  margin-top: 26px;
  max-width: 15ch;
}
.hero .lede { margin-top: 24px; font-size: clamp(17px, 2.2vw, 21px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; color: var(--text-dim); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal); }

/* --------------------------- Agent tiles ------------------------------- */
.agents-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.agents-head h2 { font-size: clamp(28px, 4vw, 44px); }
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.tile {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  padding: 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline);
  overflow: hidden;
  min-height: 300px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  isolation: isolate;
}
/* gradient ring highlight on top edge */
.tile::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .7;
  pointer-events: none;
}
/* glow that appears on hover */
.tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px 220px at var(--mx, 70%) 0%, rgba(45,212,191,.16), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.tile.live:hover,
.tile.live:focus-visible {
  transform: translateY(-6px);
  border-color: var(--hairline-2);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.tile.live:hover::after,
.tile.live:focus-visible::after { opacity: 1; }

.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-grad-soft);
  border: 1px solid var(--hairline-2);
}
.tile-icon svg { width: 28px; height: 28px; color: var(--teal); }

.pill {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.pill-live { color: var(--teal); background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.3); }
.pill-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px 1px rgba(45,212,191,.9); animation: pulse 2s var(--ease) infinite; }
.pill-soon { color: var(--text-dim); background: rgba(255,255,255,.04); border: 1px solid var(--hairline); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tile h3 { font-size: 23px; margin-top: 22px; }
.tile .tile-desc { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* Hover-reveal process steps */
.tile-steps {
  margin-top: 20px;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease), margin-top .45s var(--ease);
}
.tile-steps > div { overflow: hidden; }
.tile.live:hover .tile-steps,
.tile.live:focus-visible .tile-steps { grid-template-rows: 1fr; opacity: 1; }
.tile-steps ol { list-style: none; padding: 0; display: grid; gap: 10px; padding-top: 4px; }
.tile-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); }
.tile-steps li .n {
  flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
  color: #04221E; background: var(--accent-grad);
}

.tile-foot {
  margin-top: 22px;
  display: flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 600; font-size: 14.5px;
}
.tile-foot svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tile.live:hover .tile-foot svg { transform: translateX(5px); }

/* The "coming soon" ghost tiles */
.tile.soon { opacity: .62; cursor: default; }
.tile.soon .tile-icon { background: rgba(255,255,255,.03); }
.tile.soon .tile-icon svg { color: var(--text-dim); }

/* On touch devices, reveal steps by default (no hover) */
.is-touch .tile-steps { grid-template-rows: 1fr; opacity: 1; }

/* ------------------------ Generic card / feature ----------------------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature .f-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-grad-soft);
  border: 1px solid var(--hairline-2);
  margin-bottom: 16px;
}
.feature .f-icon svg { width: 24px; height: 24px; color: var(--teal); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; }

/* ------------------------- Steps (how it works) ------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; }
.step .step-n {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--teal);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(45,212,191,.3);
  background: rgba(45,212,191,.07);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; }

/* -------------------------- Download cards ----------------------------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.dl-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--hairline-2); background: var(--surface-2); }
.dl-ic {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--teal);
}
.dl-meta { min-width: 0; flex: 1; }
.dl-meta .n { font-weight: 600; font-size: 14.5px; }
.dl-meta .d { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.dl-dl { flex: none; color: var(--text-muted); transition: color .2s var(--ease), transform .2s var(--ease); }
.dl-card:hover .dl-dl { color: var(--teal); transform: translateY(2px); }
.dl-dl svg { width: 20px; height: 20px; }

/* ------------------------------- FAQ ----------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .3s var(--ease); color: var(--text-muted); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }

/* ------------------------- Preview / showcase -------------------------- */
.showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 36px; } }
.preview-frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}
.preview-frame::after {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 60%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(45,212,191,.3), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.preview-frame img { border-radius: calc(var(--r-xl) - 12px); }
.badge-float {
  position: absolute; bottom: -16px; right: -10px;
  background: rgba(12,14,20,.9);
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(10px);
  padding: 12px 16px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md);
}
.badge-float .b-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px 2px rgba(45,212,191,.8); }

/* ------------------------------ Callout -------------------------------- */
.callout {
  display: flex; gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--accent-grad-soft);
  border: 1px solid rgba(45,212,191,.22);
}
.callout .c-ic { flex: none; color: var(--teal); }
.callout .c-ic svg { width: 22px; height: 22px; }
.callout h4 { font-size: 15.5px; font-family: var(--font-body); font-weight: 700; }
.callout p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ----------------------------- Back link ------------------------------- */
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .2s var(--ease), gap .2s var(--ease); }
.backlink:hover { color: var(--text); gap: 11px; }
.backlink svg { width: 16px; height: 16px; }

/* ------------------------------ Footer --------------------------------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 48px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer small { color: var(--text-dim); font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); font-size: 13.5px; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--text); }

/* --------------------------- Scroll reveal ----------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ----------------------------- Section head ---------------------------- */
.sec-head { max-width: 60ch; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); }
.sec-head p { color: var(--text-muted); margin-top: 16px; font-size: 17px; }
