/* Vesta brand tokens */
:root {
  /* Surfaces */
  --bg: #0B0D10;
  --bg-elev: #14171C;
  --bg-card: #1A1E24;
  --hairline: rgba(240, 234, 224, 0.08);
  --hairline-strong: rgba(240, 234, 224, 0.16);

  /* Ink */
  --ink: #F0EAE0;
  --ink-2: #C8C2B6;
  --ink-3: #8A8678;
  --ink-4: #5C594F;

  /* Accents — vestal flame */
  --flame: #FF6B35;
  --flame-soft: #FFB199;
  --ember: #C9A86A;
  --ember-soft: #E8D9B0;

  /* Cream contrast block */
  --cream: #F0EAE0;
  --cream-deep: #E5DCC8;

  /* Misc */
  --ok: #6EE7B7;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-size: 16px;
}

.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'ss01';
}

/* Reset */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* Layout container */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* Eyebrow */
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 12px var(--flame);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cream);
  color: var(--bg);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(240,234,224,0.04); }
.btn-flame {
  background: var(--flame);
  color: var(--bg);
}
.btn-flame:hover { background: #ff7e4d; }

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(240,234,224,0.02);
}

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* Section spacing */
section { padding: 120px 0; scroll-margin-top: 80px; }
header { scroll-margin-top: 80px; }
@media (max-width: 720px) { section { padding: 80px 0; } }

/* Hairline divider used between sections */
.rule { height: 1px; background: var(--hairline); }

/* Flame glyph (the V mark) */
.mark {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}

/* Animations */
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.85; transform: scaleY(1.03); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal-up .8s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Form */
.field {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field::placeholder { color: var(--ink-4); }
.field:focus { border-color: var(--flame-soft); background: rgba(255,107,53,0.04); }
.field-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 8px;
}

/* Headings — set base sizes here, override per section */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.h-display {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h-display em {
  font-style: italic;
  color: var(--ember-soft);
}
.h-section {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
}

/* Stellar badge + X link hovers */
.stellar-badge:hover {
  border-color: var(--flame-soft) !important;
  background: linear-gradient(90deg, rgba(255,107,53,0.18), rgba(255,107,53,0.04)) !important;
}
.x-link:hover { color: var(--ink) !important; border-color: var(--ink-2) !important; }

/* Subtle grain on the body for premium feel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94, 0 0 0 0 0.92, 0 0 0 0 0.88, 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
