:root {
  --bg: #020617;
  --surface: #0f172a;
  --surface-soft: rgba(15, 23, 42, 0.58);
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #1e293b;
  --blue: #3b82f6;
  --orange: #f97316;
  --yellow: #eab308;
  --teal: #14b8a6;
  --purple: #a855f7;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.2), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.14), transparent 42%),
    linear-gradient(180deg, #020617 0%, #020617 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0));
}

.header-inner,
.main-content,
.site-footer {
  width: min(100% - 2.2rem, var(--max));
  margin: 0 auto;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(10px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  text-decoration: none;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.main-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: #60a5fa;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.75);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.34rem 0.52rem;
  cursor: pointer;
}

.lang-btn:hover {
  color: #cbd5e1;
}

.lang-btn.active {
  background: #1e293b;
  color: #e2e8f0;
}

.lang-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
}

.main-content {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.section {
  margin-bottom: 7.5rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

h1 span {
  color: var(--blue);
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
}

.hero .lead {
  margin-top: 1.45rem;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.74rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: #334155;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.panel {
  background: var(--surface-soft);
  border: 1px solid rgba(30, 41, 59, 0.85);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-bottom: 0.85rem;
  font-family: "Roboto Mono", monospace;
  font-size: 1.25rem;
}

.panel h2 span {
  color: var(--blue);
}

.panel h2 .orange {
  color: var(--orange);
}

.panel p {
  color: var(--muted);
}

.panel ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.84rem;
  color: #64748b;
}

.panel ul li {
  margin-top: 0.45rem;
}

.panel ul li::before {
  content: "> ";
}

.panel-accent {
  position: relative;
  overflow: hidden;
}

.panel-accent::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  filter: blur(42px);
}

.section-title {
  margin-bottom: 0.9rem;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 70ch;
}

.timeline {
  margin-left: 0.4rem;
  border-left: 2px solid var(--line);
  padding-left: 1.2rem;
}

.timeline-item {
  margin-top: 2rem;
}

.timeline-item:first-child {
  margin-top: 0;
}

.time {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  color: #60a5fa;
  font-size: 0.83rem;
}

.org {
  margin: 0.34rem 0;
  color: #64748b;
}

.timeline-item p:last-child {
  margin: 0;
  color: var(--muted);
}

.impact-grid,
.maker-grid {
  display: grid;
  gap: 1rem;
}

.impact-card,
.maker-card {
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.impact-card h3,
.maker-card h3 {
  margin-bottom: 0.3rem;
}

.impact-card .meta {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: #64748b;
}

.impact-card p,
.maker-card p {
  margin: 0;
  color: var(--muted);
}

.impact-card strong {
  font-weight: 700;
}

.impact-orange {
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(67, 20, 7, 0.12);
}

.impact-orange h3,
.impact-orange strong {
  color: #fdba74;
}

.impact-yellow {
  border-color: rgba(234, 179, 8, 0.34);
  background: rgba(66, 32, 6, 0.12);
}

.impact-yellow h3,
.impact-yellow strong {
  color: #fde047;
}

.impact-teal {
  border-color: rgba(20, 184, 166, 0.34);
  background: rgba(4, 47, 46, 0.12);
}

.impact-teal h3,
.impact-teal strong {
  color: #5eead4;
}

.impact-purple {
  border-color: rgba(168, 85, 247, 0.34);
  background: rgba(59, 7, 100, 0.12);
}

.impact-purple h3,
.impact-purple strong {
  color: #d8b4fe;
}

.maker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  text-align: center;
  color: #64748b;
  font-family: "Roboto Mono", monospace;
  font-size: 0.82rem;
  padding-bottom: 2.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.22rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .split,
  .maker-grid {
    grid-template-columns: 1fr;
  }

  .header-tools {
    gap: 0.55rem;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
