/* ── BOWTIE DESIGN SYSTEM ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --font-serif:  'Instrument Serif', Georgia, serif;
  --font-display: 'Instrument Serif', Georgia, serif;  /* alias for app.html */
  --font-sans:   'DM Sans', -apple-system, sans-serif;
  --font-mono:   'DM Mono', 'SF Mono', ui-monospace, monospace;

  --bg:          #fafaf8;
  --white:       #ffffff;
  --ink:         #0f0f0e;
  --text:        #0f0f0e;   /* alias — app.html uses --text */
  --ink-2:       #3d3d3a;
  --text-2:      #3d3d3a;
  --ink-3:       #8a8a85;
  --text-3:      #8a8a85;
  --ink-4:       #c4c4be;
  --text-4:      #c4c4be;
  --rule:        #e8e8e2;
  --border:      #e8e8e2;   /* alias — app.html uses --border */
  --rule-mid:    #d4d4cc;

  --blue:        #0057d9;
  --accent:      #0057d9;   /* alias — app.html uses --accent */
  --blue-dk:     #0047b8;
  --blue-lt:     #eef3ff;
  --blue-mid:    #ccdaff;

  --orange:      #c45000;
  --orange-lt:   #fff3ec;
  --green:       #1a7a3c;
  --green-lt:    #edf7f1;
  --purple:      #5856d6;
  --purple-lt:   #f0efff;
  --red:         #d93025;
  --red-lt:      #ffeeed;

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.container        { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 680px;  margin: 0 auto; padding: 0 28px; }
.container-wide   { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,250,248,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 0 28px;
  height: 60px; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 2px; flex: 1;
}
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: all 0.13s; white-space: nowrap;
}
.nav-link:hover  { background: var(--rule); color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-pill {
  font-size: 12px; font-weight: 600;
  color: var(--ink-3); letter-spacing: 0.1px;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--rule);
}
.nav-pill.hi { color: var(--blue); border-color: var(--blue-mid); background: var(--blue-lt); }
.btn-nav {
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 600;
  padding: 7px 18px; border-radius: 22px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.14s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav.primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 3px rgba(0,87,217,0.22);
}
.btn-nav.primary:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: 0 3px 12px rgba(0,87,217,0.28); }
.btn-nav.ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule);
}
.btn-nav.ghost:hover { background: var(--rule); color: var(--ink); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 11px 24px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.15s; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #2a2a28; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--rule-mid); }
.btn-outline:hover { border-color: var(--ink-3); background: var(--white); }
.btn-sm { font-size: 13px; padding: 8px 16px; border-radius: 9px; }
.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: 14px; }

/* ── SECTION TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px; display: block;
}
.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; letter-spacing: -0.8px;
  line-height: 1.1; color: var(--ink);
}
.section-sub {
  font-size: 17px; color: var(--ink-2);
  line-height: 1.6; letter-spacing: -0.1px;
}

/* ── WAITLIST INPUT ── */
.waitlist-row {
  display: flex; gap: 8px;
  max-width: 440px;
}
.waitlist-input {
  flex: 1; padding: 11px 18px;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  outline: none; transition: border-color 0.14s;
  box-shadow: var(--shadow-sm);
}
.waitlist-input:focus { border-color: var(--blue); }
.waitlist-input::placeholder { color: var(--ink-4); }
.success-note {
  display: none; padding: 12px 18px;
  background: var(--green-lt); border: 1px solid #a8daba;
  border-radius: var(--radius); color: var(--green);
  font-size: 14px; font-weight: 500;
  max-width: 440px;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 28px; margin-top: auto;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.footer-logo .logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-3); text-decoration: none; transition: color 0.12s; }
.footer-links a:hover { color: var(--ink-2); }
.footer-copy { font-size: 12px; color: var(--ink-4); }

/* ── ANIMATIONS ── */
@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }

/* ── RESPONSIVE ── */
@media(max-width: 720px) {
  .nav-link { display: none; }
  .container, .container-narrow { padding: 0 18px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-input, .btn { width: 100%; justify-content: center; }
}
