/* ============================================================
   TASTE COMPASS — Pilot · Premium Scientific design system
   Shared across homepage + sales pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy:        #002B45;
  --navy-deep:   #001E32;
  --navy-deeper: #001523;
  --navy-mid:    #003A5C;
  --navy-panel:  #04263b;
  --sage:        #9BB8A6;
  --sage-light:  #cfe0d6;
  --sage-dark:   #6a9278;
  --amber:       #E8B86A;
  --cream:       #F7F6F2;
  --stone:       #E8E3DC;
  --ink:         #2E3A3F;

  --tx:          rgba(255,255,255,.92);
  --tx-soft:     rgba(255,255,255,.58);
  --tx-faint:    rgba(255,255,255,.36);
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.16);

  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow:    0 18px 50px rgba(0,0,0,.35);
  --shadow-lg: 0 32px 80px rgba(0,0,0,.45);
  --ease:  cubic-bezier(.22,1,.36,1);
  --maxw:  1240px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--tx);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--sage); color: var(--navy-deep); }

/* page atmosphere: deep gradient + fine grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(155,184,166,.10), transparent 55%),
    radial-gradient(100% 80% at -10% 110%, rgba(0,70,110,.45), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sage); margin-bottom: 22px;
}
.eyebrow .mono { color: var(--sage); }
.eyebrow .dash { width: 26px; height: 1px; background: var(--sage); opacity: .6; }

/* graphic-only kicker (no repeated words above headings) */
.kicker { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.kicker .dash { width: 32px; height: 1px; background: var(--sage); opacity: .5; }
.kicker .gem { width: 9px; height: 9px; background: var(--sage); transform: rotate(45deg); box-shadow: 0 0 16px rgba(155,184,166,.65); }
.h-display {
  font-weight: 900; line-height: 1.04; letter-spacing: -.03em; color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
}
.h2 {
  font-weight: 900; line-height: 1.08; letter-spacing: -.025em; color: #fff;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--tx-soft); line-height: 1.7; }
.text-sage { color: var(--sage); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 15px; border: none; border-radius: 999px;
  padding: 17px 32px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage); color: var(--navy-deep);
  box-shadow: 0 14px 36px rgba(155,184,166,.28);
}
.btn-primary:hover { transform: translateY(-2px); background: #aecbbb; box-shadow: 0 20px 48px rgba(155,184,166,.4); }
.btn-ghost {
  background: transparent; color: var(--tx); border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--sage); color: #fff; background: rgba(155,184,166,.06); }
.btn-lg { padding: 20px 40px; font-size: 16px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 74px;
  display: flex; align-items: center;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,30,50,.78);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; width: 100%; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a.link {
  color: var(--tx-soft); font-weight: 600; font-size: 14px;
  padding: 9px 15px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a.link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-cta { margin-left: 14px; }
.nav-toggle { display: none; }

/* ---------- Cards ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
}

/* ---------- Compass / SVG art ---------- */
.compass-art { width: 100%; height: auto; overflow: visible; }
.compass-bezel { transform-origin: 300px 300px; animation: bezel-spin 90s linear infinite; }
.compass-needle { transform-origin: 300px 300px; animation: needle-sway 8s ease-in-out infinite; }
.compass-poly { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.is-live .compass-poly { animation: draw 2s var(--ease) .3s forwards; }
.compass-vtx { opacity: 0; }
.is-live .compass-vtx { animation: pop .5s var(--ease) forwards; }
@keyframes bezel-spin { to { transform: rotate(360deg); } }
@keyframes needle-sway { 0%,100% { transform: rotate(-4deg);} 50% { transform: rotate(4deg);} }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0);} to { opacity: 1; transform: scale(1);} }

/* ---------- Glow orbs ---------- */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.orb-sage { background: radial-gradient(circle, rgba(155,184,166,.30), transparent 70%); }
.orb-amber { background: radial-gradient(circle, rgba(232,184,106,.14), transparent 70%); }
.orb-blue { background: radial-gradient(circle, rgba(0,90,140,.4), transparent 70%); }

/* ---------- Reveal on scroll (only when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line); padding: 34px 0;
  color: var(--tx-faint); font-size: 13px;
}
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--tx-soft); transition: color .2s; }
.foot a:hover { color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .compass-bezel, .compass-needle { animation: none; }
  .compass-poly { stroke-dashoffset: 0; }
  .compass-vtx { opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Responsive base ---------- */
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: absolute; top: 74px; left: 0; right: 0; margin: 0;
    background: rgba(0,30,50,.97); backdrop-filter: blur(16px);
    padding: 16px 22px 22px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open a.link { padding: 12px 14px; }
  .nav-links.open .nav-cta { margin: 8px 0 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: transparent; border: 0; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
}
