@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #12182B;
  --ink-2: #1B2340;
  --ink-3: #232C4E;
  --mist: #ECE9DF;
  --parchment: #F3EFE4;
  --slate: #9AA3B8;
  --slate-dim: #6B7690;
  --wax: #9C3B3B;
  --wax-bright: #C24D4D;
  --brass: #C9A24B;
  --live-green: #5A8C6E;
  --grey-muted: #55607A;
  --border: rgba(236, 233, 223, 0.1);
  --border-strong: rgba(236, 233, 223, 0.18);
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--mist);
}

p { margin: 0; }

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

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 24, 43, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-logo .seal-mini {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--slate);
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--mist); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--mist);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--wax);
  color: var(--parchment);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--wax-bright); }

.btn-ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--border-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--brass); color: var(--brass); }

.btn-block { width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--brass);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--wax-bright);
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--slate);
  max-width: 480px;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate-dim);
}

/* Seal graphic */
.seal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-big {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
}

@media (prefers-reduced-motion: no-preference) {
  .seal-stamp {
    animation: stamp 0.9s cubic-bezier(.2,.9,.3,1.15) both;
    animation-delay: 0.15s;
  }
  @keyframes stamp {
    0%   { transform: scale(1.6) rotate(-8deg); opacity: 0; }
    60%  { transform: scale(0.96) rotate(1deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
  }
}

/* ---------- Section shared ---------- */
section { padding: 88px 0; border-top: 1px solid var(--border); }

.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head .eyebrow { justify-content: center; }

.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }

.section-head p {
  margin-top: 14px;
  color: var(--slate);
  font-size: 16.5px;
}

/* ---------- Platforms ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}

.platform-card.is-live { border-color: rgba(201, 162, 75, 0.35); }

.seal-small { width: 64px; height: 64px; margin: 0 auto 20px; }

.platform-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.platform-status {
  display: inline-block;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
}

.status-live {
  background: rgba(90, 140, 110, 0.15);
  color: var(--live-green);
  border: 1px solid rgba(90, 140, 110, 0.35);
}

.status-soon {
  background: rgba(107, 118, 144, 0.12);
  color: var(--slate);
  border: 1px solid var(--border-strong);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--ink);
  padding: 34px 30px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  color: var(--brass);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.65;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 16px;
}

.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-2);
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border: 1px solid var(--border-strong);
}

.cta-band h2 { font-size: clamp(24px, 3vw, 32px); max-width: 480px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--slate); font-size: 13.5px; }
.footer-links a:hover { color: var(--mist); }
.footer-copy { color: var(--slate-dim); font-size: 13px; }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--ink-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 42px 38px;
}

.auth-seal { width: 46px; height: 46px; margin-bottom: 22px; }

.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--slate); font-size: 14.5px; margin-bottom: 30px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 7px;
}

.field input, .field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--mist);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-submit { margin-top: 8px; }

.auth-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--slate);
}

.auth-foot a { color: var(--brass); }
.auth-foot a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--slate-dim);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12.5px;
  color: var(--slate);
  margin-top: -8px;
  margin-bottom: 18px;
}
.forgot-link:hover { color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .seal-stage { order: -1; }
  .seal-big { width: 200px; height: 200px; }
  .platform-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
}
