/* Zyryn website — base tokens & layout.
   Colors mirror lib/theme.dart (AppTheme) so web and app feel identical. */

:root {
  /* Surfaces */
  --obsidian: #030303;
  --void: #080806;
  --black-steel: #121212;
  --graphite: #1e1c18;
  --steel: #2a2a27;

  /* Gold ramp */
  --brushed-gold: #d8b75a;
  --molten-gold: #ffd66d;
  --antique-gold: #96722a;
  --champagne: #f7e7a6;

  /* Text / accents */
  --porcelain: #f4f0e5;
  --ash: #aaa394;
  --ember: #ff725e;

  --hairline: #2c281f;
  --hairline-strong: #3a3324;

  --brand-gradient: linear-gradient(135deg, var(--molten-gold) 0%, var(--brushed-gold) 48%, var(--antique-gold) 100%);
  --surface-gradient: linear-gradient(135deg, var(--black-steel) 0%, var(--void) 58%, var(--obsidian) 100%);

  --gold-glow: 0 12px 28px -8px rgba(216, 183, 90, 0.33);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --nav-h: 72px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--porcelain);
  background: var(--surface-gradient);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fixed canvas sits behind everything; pointer-events off so the page is usable. */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* A subtle vignette to deepen edges over the canvas. */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

main,
.page {
  position: relative;
  z-index: 1;
}

a {
  color: var(--champagne);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--molten-gold);
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1rem;
  color: var(--ash);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brushed-gold);
  margin-bottom: 14px;
}

.gold-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ash);
  max-width: 60ch;
}

.muted {
  color: var(--ash);
}
.tiny {
  font-size: 0.82rem;
}
.center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hidden {
  display: none !important;
}

/* Focus ring matches the app's white focus treatment for keyboard/D-pad. */
:focus-visible {
  outline: 2.5px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 48px 0 60px;
  background: rgba(3, 3, 3, 0.5);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  color: var(--ash);
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--champagne);
}
