/* Notch — marketing site.
   Design philosophy borrowed from the "Message" template: near-black, cinematic,
   two-tone headings (bright lead + dimmed tail), dotted eyebrow labels, lots of
   negative space, and a fine film-grain texture over everything for depth.
   Standalone, no build step. Palette mirrors the app (src/app/globals.css). */

:root {
  --bg: #0d0d0d;
  --bg-2: #121212;
  --surface: #161616;
  --elevated: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #f2efe9;
  --dim: #6f6a64;       /* the "tail" colour of two-tone headings */
  --muted: #918c85;
  --faint: #5f5b56;
  --accent: #c9b99a;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film-grain texture across the whole page — the "depth" from the Message look.
   A tiny SVG noise tile, fixed, low opacity, never intercepts clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft ambient glows that drift behind the page, like the foggy depth in Message. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(201, 185, 154, 0.10), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(120, 140, 150, 0.06), transparent 60%);
}

main, nav, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Eyebrow label (● Section) ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── Headings (two-tone) ── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
.display { font-size: clamp(40px, 6.4vw, 74px); }
.title { font-size: clamp(30px, 4.6vw, 50px); }
.dim { color: var(--dim); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 500; font-size: 14.5px; padding: 12px 24px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--fg); color: #111; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(242, 239, 233, 0.12); }
.btn-ghost { border-color: var(--border-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--elevated); }
.btn-accent { background: var(--accent); color: #14110b; }
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.07); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(13, 13, 13, 0.66);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: #0f0f0f; border: 1px solid var(--border-strong); color: var(--accent);
  display: grid; place-items: center;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 17px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* ── Hero / waitlist ── */
.hero { text-align: center; padding: 132px 0 96px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.02);
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,185,154,0.18); }
.hero h1 { max-width: 15ch; margin: 0 auto 24px; }
.hero .lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 52ch; margin: 0 auto 38px; }

/* waitlist form */
.waitform { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.waitform input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg);
  border-radius: 999px; padding: 13px 22px; font-size: 15px; outline: none; transition: border-color 0.15s;
  font-family: inherit;
}
.waitform input::placeholder { color: var(--faint); }
.waitform input:focus { border-color: var(--accent); }
.hero .micro { margin-top: 16px; font-size: 13px; color: var(--faint); }
.waitdone { display: none; font-size: 15.5px; color: var(--accent); padding: 14px 0; }
.waitform.done { display: none; }
.waitdone.show { display: block; }

/* hero product preview mock */
.preview {
  margin: 64px auto 0; max-width: 880px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-2);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.preview .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.preview .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--elevated); display: inline-block; }
.preview .scene {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,185,154,0.10), transparent 55%),
    linear-gradient(180deg, #14171a, #0c0d0e 70%);
  display: grid; place-items: center; color: var(--faint); font-size: 13.5px; letter-spacing: 0.04em;
  position: relative;
}
.preview .scene span { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0,0,0,0.3); }

/* ── Generic section ── */
section.block { padding: 96px 0; border-top: 1px solid var(--border); }
.section-sub { color: var(--muted); max-width: 56ch; font-size: 16.5px; margin-top: 16px; }

/* ── Feature cards ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.fcard { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.fcard .scene {
  aspect-ratio: 16 / 11;
  background: linear-gradient(160deg, #1a1e20, #0d0f10);
  position: relative; overflow: hidden;
}
.fcard .scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 30% 20%, rgba(201,185,154,0.16), transparent 60%);
}
.fcard .body { padding: 22px 24px 26px; }
.fcard h3 { font-size: 18px; margin-bottom: 9px; }
.fcard p { color: var(--muted); font-size: 14.5px; }

/* ── Use-cases: scroll-driven category switcher ── */
.usecases .uc-head { margin-bottom: 8px; }
.uc-scroll { position: relative; }
.uc-sticky {
  position: sticky; top: 96px; height: 70vh; display: grid;
  grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
}
.uc-tabs { display: flex; flex-direction: column; gap: 4px; }
.uc-tab {
  text-align: left; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--dim); padding: 12px 0 12px 18px; border-left: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.uc-tab.active { color: var(--fg); border-left-color: var(--accent); }
.uc-tab small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; max-width: 36ch; opacity: 0; max-height: 0; transition: opacity 0.3s var(--ease), max-height 0.3s var(--ease); }
.uc-tab.active small { opacity: 1; max-height: 80px; }

.uc-stage { position: relative; height: 100%; min-height: 320px; }
.uc-panel {
  position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  opacity: 0; transform: scale(0.985); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  background: linear-gradient(165deg, #181c1f, #0c0e0f);
}
.uc-panel.active { opacity: 1; transform: scale(1); }
.uc-panel .glow { position: absolute; inset: 0; background: radial-gradient(70% 60% at 60% 30%, rgba(201,185,154,0.16), transparent 60%); }
.uc-panel .cap { position: absolute; left: 26px; bottom: 24px; right: 26px; }
.uc-panel .cap b { display: block; font-size: 16px; margin-bottom: 4px; }
.uc-panel .cap span { color: var(--muted); font-size: 14px; }
.uc-markers { position: absolute; top: 0; left: 0; width: 1px; }
.uc-marker { height: 90vh; }

/* ── Steps (how it works) ── */
.steps { margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.step { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; }
.step .n { color: var(--accent); font-size: 14px; font-weight: 600; min-width: 28px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
.steps .scene { aspect-ratio: 4 / 5; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(165deg, #181c1f, #0c0e0f); position: relative; overflow: hidden; }
.steps .scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 25%, rgba(201,185,154,0.14), transparent 60%); }

/* ── Trust band ── */
.trust { border: 1px solid var(--border); border-radius: 24px; padding: 52px; background: var(--surface); }
.trust h2 { margin-bottom: 16px; }
.trust p { color: var(--muted); max-width: 64ch; font-size: 16px; }
.trust .pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pill-tag { font-size: 13px; color: var(--fg); background: var(--elevated); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; }
.pill-tag b { color: var(--accent); font-weight: 600; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--fg); font-size: 15.5px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .pm { color: var(--faint); font-size: 20px; transition: transform 0.25s var(--ease); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { color: var(--muted); font-size: 14.5px; padding: 0 20px 18px; }
.faq-item.open .faq-a { max-height: 220px; }

/* ── CTA band ── */
.cta-band { text-align: center; padding: 120px 0; border-top: 1px solid var(--border); }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--muted); margin-bottom: 32px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 56px 0 44px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-brand { max-width: 30ch; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }

/* ── Legal pages ── */
.legal { padding: 80px 0 100px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; max-width: 72ch; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: 14px; }

/* ── Reveal-on-scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .uc-sticky { grid-template-columns: 1fr; height: auto; gap: 22px; position: static; }
  .uc-stage { height: 300px; }
  .uc-markers { display: none; }
  .uc-tab small { opacity: 1; max-height: 80px; }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .waitform { flex-direction: column; border-radius: 18px; }
  .waitform input, .waitform .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
