:root {
  --bg0: #06080c;
  --bg1: #0e141c;
  --bg2: #151d28;
  --ink: #edf2f7;
  --muted: #9aabc0;
  --accent: #d4a24c;
  --glow: #3ecfb2;
  --line: rgba(237, 242, 247, 0.1);
  --danger-soft: #7a8a9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(62, 207, 178, 0.08), transparent 55%),
    radial-gradient(1000px 600px at 10% 0%, rgba(212, 162, 76, 0.07), transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 40%, var(--bg0));
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.topnav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--ink), var(--glow) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--ink);
}

.navlinks a.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  min-height: calc(100vh - 4rem);
  display: grid;
  align-content: center;
  gap: 1.25rem;
}

.hero .brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  background: linear-gradient(125deg, #fff 10%, var(--glow) 48%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease both;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
  animation: rise 0.9s ease 0.1s both;
}

.hero .lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 0.9s ease 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  animation: rise 0.9s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(212, 162, 76, 0.2), rgba(62, 207, 178, 0.12));
  border-color: rgba(212, 162, 76, 0.45);
  color: var(--ink);
}

.btn-primary:hover {
  border-color: var(--accent);
}

.btn-ghost:hover {
  border-color: rgba(62, 207, 178, 0.5);
  color: var(--glow);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section .intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.cols-3,
.cols-2 {
  display: grid;
  gap: 1.5rem 2rem;
}

.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.block h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--accent);
}

.block p,
.prose p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose {
  max-width: 68ch;
}

.prose h3 {
  font-family: "Syne", sans-serif;
  margin: 1.75rem 0 0.6rem;
  font-size: 1.25rem;
}

.prose ul {
  margin: 0 0 1.25rem 1.2rem;
  color: var(--muted);
}

.prose li { margin-bottom: 0.4rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.stat strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  color: var(--glow);
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.timeline article h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.timeline time {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.note {
  border: 1px solid var(--line);
  background: rgba(21, 29, 40, 0.55);
  padding: 1.25rem 1.35rem;
  color: var(--muted);
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
}

.page-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

.breadcrumb {
  color: var(--danger-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--glow); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-family: "Syne", sans-serif;
  margin-bottom: 0.5rem;
}

.site-footer a:hover { color: var(--glow); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .cols-3,
  .stat-row,
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cols-3,
  .cols-2,
  .stat-row,
  .site-footer .inner { grid-template-columns: 1fr; }
  .navlinks { gap: 0.5rem 0.85rem; font-size: 0.82rem; }
}
