/* ============================================================
   FlyHedral — flyhedral.com
   Brand grounds:  ink #262b31 · paper #e7e4de · tile-light #f3f1ec
   Accent (parent): amber #d9891c
   Type: Jost (wordmark/UI, uniform weight) · JetBrains Mono (respelling/utility)
   ============================================================ */

:root {
  --ink: #262b31;
  --ink-panel: #2e343b;
  --ink-line: #3a424b;
  --paper: #e7e4de;
  --tile-light: #f3f1ec;
  --amber: #d9891c;

  --text-on-dark: #eef0f1;
  --muted-on-dark: #97a1ab;
  --text-on-light: #2b2f34;
  --muted-on-light: #5f676f;

  --maxw: 1080px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: "Jost", "Century Gothic", "Futura", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(38, 43, 49, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-word {
  font-size: 1.28rem; font-weight: 500; letter-spacing: 0.01em;
}

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 1.8rem); }
.site-nav a { font-size: 0.98rem; color: var(--muted-on-dark); transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--text-on-dark); }
.nav-cta {
  color: var(--text-on-dark) !important;
  border: 1px solid var(--ink-line);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { border-color: var(--amber); background: rgba(217, 137, 28, 0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 9vh, 6rem);
  text-align: center;
  overflow: hidden;
}
/* soft instrument glow behind the mark */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 22%, rgba(217, 137, 28, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero-mark {
  width: clamp(84px, 16vw, 132px); height: auto; display: block; margin: 0 auto 1.4rem;
  filter: drop-shadow(0 6px 22px rgba(217, 137, 28, 0.28));
}

.hero-word {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.4rem);
  font-weight: 500;         /* uniform weight — no bold "Hedral" */
  letter-spacing: 0.005em;
  line-height: 1.02;
}

.respelling {
  margin: 0.9rem 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}
.respelling .stress { color: var(--amber); font-weight: 500; }
.respelling .dot { opacity: 0.55; margin: 0 0.12em; }

.hero-sequence {
  margin: 1.5rem auto 0; max-width: 22em;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--text-on-dark);
}
.hero-sequence .seq-word,
.hero-sequence .seq-payoff {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: seqReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-sequence .seq-word {
  margin-right: 0.3em;
  animation-delay: calc(0.35s + var(--i) * 0.4s);
}
.hero-sequence .seq-payoff {
  display: block;
  margin-top: 0.55rem;
  color: var(--amber);
  animation-delay: 2.6s;
}
@keyframes seqReveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sequence .seq-word,
  .hero-sequence .seq-payoff {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-tagline {
  margin: 0.9rem auto 0; max-width: 32em;
  font-size: clamp(1.05rem, 2.6vw, 1.32rem);
  color: var(--muted-on-dark);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin-top: 2.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber); color: #201503;
  box-shadow: 0 4px 18px rgba(217, 137, 28, 0.3);
}
.btn-primary:hover { background: #e6982f; box-shadow: 0 6px 24px rgba(217, 137, 28, 0.42); }
.btn-ghost { border-color: var(--ink-line); color: var(--text-on-dark); }
.btn-ghost:hover { border-color: var(--muted-on-dark); background: rgba(255,255,255,0.03); }

/* ---------- Products (light paper ground) ---------- */
.products {
  background: var(--paper); color: var(--text-on-light);
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid #d7d3ca;
}
.section-head { max-width: 46em; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head h2 {
  margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 500; letter-spacing: 0.005em;
}
.section-head p { margin: 0.7rem auto 0; max-width: 34em; color: var(--muted-on-light); font-size: 1.05rem; }

.product-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: var(--maxw); margin: 0 auto;
}

.product-card {
  background: var(--tile-light);
  border: 1px solid #dcd8cf;
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
/* Only live (linked) cards are interactive; the rest read as static. */
.product-card.is-live { cursor: pointer; }
.product-card.is-live:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tint) 55%, #dcd8cf);
  box-shadow: 0 12px 30px rgba(38, 43, 49, 0.1);
}

.product-open {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--tint);
  transition: transform .2s var(--ease);
}
.product-card.is-live:hover .product-open { transform: translateX(3px); }

.product-mark {
  width: 60px; height: 60px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tint) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--tint) 22%, transparent);
}
.product-mark svg { width: 46px; height: 46px; display: block; }

.product-card h3 {
  margin: 0 0 0.4rem; font-size: 1.3rem; font-weight: 500;
  display: inline-flex; align-items: baseline; gap: 0.5rem;
}
.product-card h3::before {
  content: "FlyHedral";
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-on-light); font-weight: 400;
}
.product-card p { margin: 0; color: var(--muted-on-light); font-size: 0.98rem; }

/* ---------- Waitlist ---------- */
.waitlist {
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.waitlist-inner { max-width: 540px; margin: 0 auto; }
.waitlist h2 { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 500; }
.waitlist > .waitlist-inner > p { margin: 0.8rem auto 0; color: var(--muted-on-dark); max-width: 32em; }

.waitlist-form {
  display: flex; gap: 0.6rem; margin-top: 1.8rem; flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input {
  flex: 1 1 240px; min-width: 0;
  padding: 0.75rem 1rem; border-radius: 999px;
  background: var(--ink-panel); border: 1px solid var(--ink-line);
  color: var(--text-on-dark); font: inherit; font-size: 1rem;
  transition: border-color .2s var(--ease);
}
.waitlist-form input::placeholder { color: #6f7883; }
.waitlist-form input:focus { outline: none; border-color: var(--amber); }
.waitlist-form .btn { flex: 0 0 auto; }

.form-status { margin: 1rem 0 0; min-height: 1.2em; font-size: 0.95rem; color: var(--muted-on-dark); }
.form-status.ok { color: #57c98a; }
.form-status.err { color: #e08a88; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink-line);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.footer-word { margin: 0; font-size: 1.1rem; font-weight: 500; }
.footer-respell {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted-on-dark);
  margin-left: 0.4rem;
}
.footer-respell strong { color: var(--amber); font-weight: 500; }
.footer-note { margin: 0.2rem 0 0; font-size: 0.86rem; color: var(--muted-on-dark); max-width: 46em; }
.footer-note em { color: var(--text-on-dark); font-style: italic; }
.footer-copy { margin: 0; color: var(--muted-on-dark); font-size: 0.9rem; }
