/* ------------------------------------------------------------------
   Founding Unicorn — styles
   Palette: deep ink, warm cream, brand violet, a thread of gold.
   Type: Cormorant Garamond (display) + Jost (text and UI).
   ------------------------------------------------------------------ */

:root {
  --ink: #0e0d16;
  --ink-2: #181626;
  --ink-3: #242134;
  --cream: #f4f1ea;
  --cream-2: #ebe6da;
  --paper: #faf8f3;
  --text: #1c1a27;
  --text-2: #4a4758;
  --muted: #7a7688;
  --line: rgba(14, 13, 22, 0.14);
  --line-strong: rgba(14, 13, 22, 0.3);
  --line-dark: rgba(255, 255, 255, 0.14);
  --iris: #5b3df5;
  --iris-deep: #4027c7;
  --lilac: #c8b6ff;
  --gold: #c9a86a;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --container: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; font-weight: 500; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 800px; }
@media (min-width: 900px) { :root { --gutter: 40px; } }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin-bottom: 0.45em;
}
.display em { font-style: italic; font-weight: 400; color: var(--lilac); }
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.005em;
  line-height: 1.08;
  margin-bottom: 0.7em;
}
h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin-bottom: 0.3em; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6em;
}
.eyebrow::before { content: ""; width: 2.2em; height: 1px; background: var(--gold); flex: none; }
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 2em;
}
.fine { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.rule {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
  border-left: 1px solid var(--gold);
  padding-left: 1.2em;
  margin: 1.8em 0;
}
.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.7em;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--iris); color: #fff; border-color: var(--iris); }
.btn-primary:hover { background: var(--iris-deep); border-color: var(--iris-deep); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: 0.8em 1.3em; font-size: 0.74rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 22, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
}
.nav-row { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.wordmark {
  display: grid;
  line-height: 1;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.wordmark b { font-weight: 500; color: #fff; }
.wordmark i { font-style: normal; font-weight: 500; color: var(--lilac); margin-top: 0.3em; }
.nav { display: none; gap: 2rem; }
.nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s;
}
.nav a:hover { color: #fff; }
.nav-row .btn { display: none; }
.nav-row .btn-primary { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.nav-row .btn-primary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem var(--gutter) 1.4rem;
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  text-decoration: none;
  padding: 0.8rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.mobile-nav .btn { margin-top: 0.8rem; justify-content: center; color: #fff; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-row .btn { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(4.5rem, 11vw, 9.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 85% 20%, rgba(91, 61, 245, 0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(201, 168, 106, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  width: clamp(260px, 38vw, 560px);
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}
.hero .lede { color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 3.4rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-proof {
  list-style: none;
  padding: 2rem 0 0;
  margin: 0;
  display: grid;
  gap: 1.4rem 2rem;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
}
.hero-proof li { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-proof strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  color: #fff;
}
.hero-proof span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.62); line-height: 1.5; }
@media (min-width: 900px) { .hero-proof { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tight { padding-top: clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--cream); }
.section p { color: var(--text-2); }
.section p.fine { color: var(--muted); }
.section p.rule { color: var(--text); }

/* ---------- Two-up cards ---------- */
.two-up { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-up { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.6vw, 3rem);
  display: flex;
  flex-direction: column;
}
.card .h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card-founders { background: var(--cream); }
.card-aes { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-aes p, .card-aes li { color: rgba(255, 255, 255, 0.8); }
.card-aes .fine { color: rgba(255, 255, 255, 0.55); }
.card-aes .btn-dark { background: var(--lilac); color: var(--ink); border-color: var(--lilac); }
.card-aes .btn-dark:hover { background: #fff; border-color: #fff; }

.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--text-2); line-height: 1.6; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 0.7rem; height: 1px;
  background: var(--gold);
}
.card-aes .checks li::before { background: var(--lilac); }

/* ---------- Pillars + steps ---------- */
#how { background: var(--ink); color: #fff; }
#how .h2 { color: #fff; }
.pillars { display: grid; gap: 1px; grid-template-columns: 1fr; margin: 2.5rem 0 3.5rem; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--ink); padding: clamp(1.8rem, 3vw, 2.6rem); }
.pillar h3 { color: #fff; font-size: 1.9rem; }
.pillar p { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 0.97rem; }
.pillar-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.steps h3 { color: #fff; font-size: 1.5rem; }
.steps p { color: rgba(255, 255, 255, 0.68); margin: 0; font-size: 0.95rem; }
.step-num { display: block; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lilac); margin-bottom: 0.9rem; }

/* ---------- Split layout ---------- */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 5rem; } }

.playbook-list { display: grid; }
.playbook {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--text);
}
.playbook:last-child { border-bottom: 1px solid var(--line); }
.playbook span { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); flex: none; }

.about-links { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 1.6rem; }
.about-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3em;
}
.about-split { align-items: stretch; }
.about-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.about-stat { display: grid; gap: 0.2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-dark); }
.about-stat strong { font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; line-height: 1; color: #fff; }
.about-stat span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); line-height: 1.5; }
.about-card .about-note { margin: 0; color: rgba(255, 255, 255, 0.5); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, 0.78); }
.contact p.fine { color: rgba(255, 255, 255, 0.5); }

.form-wrap { display: grid; gap: 1rem; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); overflow: hidden; }
.form-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95em 1em;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.form-tab:hover { color: #fff; }
.form-tab.is-active { background: var(--cream); color: var(--ink); }

.form {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.2rem;
}
.form[hidden] { display: none; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.label-hint { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); margin-left: 0.5em; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--iris);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.16);
}
.field textarea { resize: vertical; min-height: 7em; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5em;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231c1a27' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.9em center / 0.9em;
}
.field select:invalid { color: var(--muted); }
.field input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.6em 0.7em;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-2);
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6em 1em;
  margin-right: 0.9em;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; }
.contact .form-note { color: rgba(255, 255, 255, 0.55); text-align: center; margin: 0; }
.contact .form-note a { color: var(--lilac); }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); background: var(--cream); }
.footer-row { display: grid; gap: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand .wordmark b { color: var(--ink); }
.footer-brand .wordmark i { color: var(--iris); }
.footer-brand .fine { margin: 0.5rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.footer-nav a { text-decoration: none; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.footer-nav a:hover { color: var(--iris); }
.copyright { margin: 0; }
@media (min-width: 800px) { .footer-row { grid-template-columns: 1fr auto auto; align-items: center; } }
