/* ============================================================
   WebsiteRedirect - brand & marketing site
   Design tokens distilled from the product portal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&family=Sora:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --lime: #A6E000;
  --lime-bright: #B6F018;
  --lime-deep: #8BBE00;
  --lime-soft: #EDF8C8;

  /* Ink / neutrals (warm) */
  --ink: #16150F;          /* near-black, sidebar */
  --ink-2: #201E16;
  --ink-soft: #3A382E;
  --paper: #F5F3EC;        /* warm off-white page bg */
  --paper-2: #EFEDE3;
  --card: #FFFFFF;
  --line: #E7E4D8;
  --line-2: #DCD8C9;

  /* Text */
  --tx: #1A180F;
  --tx-2: #5C5A4E;
  --tx-3: #8A887B;
  --on-ink: #F4F2E8;
  --on-ink-2: #A8A597;

  /* Accents borrowed from the UI */
  --violet: #6D5BD0;
  --violet-soft: #ECE9FB;
  --green: #1E9E54;
  --green-soft: #E2F4E8;
  --amber: #C98A12;

  /* Shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(22,21,15,.05), 0 1px 1px rgba(22,21,15,.04);
  --shadow: 0 4px 16px rgba(22,21,15,.06), 0 1px 3px rgba(22,21,15,.05);
  --shadow-lg: 0 24px 60px -20px rgba(22,21,15,.22), 0 8px 24px -12px rgba(22,21,15,.14);
  --shadow-lime: 0 14px 34px -12px rgba(139,190,0,.55);

  /* Type */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 760px){ .section { padding: 64px 0; } .wrap { padding: 0 20px; } }

/* ---------- Type ---------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.022em; margin: 0; color: var(--tx); }
.display {
  font-size: clamp(40px, 6.6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.028em; }
.h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--tx-2); line-height: 1.5; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width: 18px; height: 2px; background: var(--lime-deep); border-radius: 2px; }
.mono { font-family: var(--mono); }
.text-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: var(--shadow-lime); }
.btn-lime:hover { background: var(--lime-bright); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--tx); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; line-height: 1;
}
.pill-code { background: var(--violet-soft); color: var(--violet); }
.pill-live { background: var(--green-soft); color: var(--green); }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(30,158,84,.18); }
.pill-ink { background: var(--ink); color: var(--on-ink); }
.pill-soft { background: #fff; border: 1px solid var(--line); color: var(--tx-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--lime);
  display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--tx); }
.logo-on-ink .logo-word { color: var(--on-ink); }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--tx-2); white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--tx); background: rgba(22,21,15,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 920px){
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
}

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  display: flex; flex-direction: column; padding: 20px 24px 40px;
  transform: translateY(-100%); transition: transform .35s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.mmenu.open { transform: translateY(0); visibility: visible; }
.mmenu-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.mmenu-links { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; }
.mmenu-links a { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mmenu .btn { margin-top: 24px; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding: 76px 0 36px; }
.footer a { color: var(--on-ink-2); transition: color .15s; }
.footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: var(--on-ink); font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(244,242,232,.12); font-size: 13.5px; color: var(--on-ink-2); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-bottom { flex-direction: column; gap: 14px; text-align: center; } }

/* utilities */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-720 { max-width: 720px; }
.maxw-640 { max-width: 640px; }
.grid { display: grid; }
.flex { display: flex; }
.tx2 { color: var(--tx-2); }
