:root {
  --bg0: #0b1210;
  --bg1: #122019;
  --ink: #e7f2ea;
  --muted: #9fb5a8;
  --accent: #3ecf8e;
  --accent-dark: #2aa56e;
  --line: rgba(231, 242, 234, 0.12);
  --card: rgba(18, 32, 25, 0.72);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(62, 207, 142, 0.18), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(62, 140, 207, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7aefb6; text-decoration: underline; text-underline-offset: 0.18em; }

.gradient-line {
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #3e8ccf, #e2ad4d);
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.hero { padding: 86px 0 72px; animation: rise 0.7s ease both; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.hero h1 {
  max-width: 16ch;
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}
.hero p,
.lead {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.btn {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #062315;
  font-weight: 750;
  text-decoration: none;
  min-height: 2.6rem;
  line-height: 1.2;
}
.button:hover,
.btn:hover,
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #062315;
  text-decoration: none;
}
.button.secondary,
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.button.secondary:hover,
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #062315; }

.section { padding: 78px 0; animation: rise 0.8s ease 0.12s both; }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.section-lead {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.list a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.list a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink);
}
.list small { display: block; color: var(--muted); margin-top: 0.25rem; }

.article { max-width: 780px; }
.article h1 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}
.article h2 { margin-top: 40px; }
.article p,
.article li { color: var(--muted); }

.error-page {
  display: grid;
  min-height: 72vh;
  place-items: center;
  padding: 42px 0 80px;
}
.error-card {
  max-width: 720px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(88px, 18vw, 180px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.1em;
}
.error-card h1 {
  margin: 26px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.05em;
}
.error-card p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}
.error-card .actions,
.error-card .cta-row { justify-content: center; }

footer {
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: start;
}
.footer-grid p { max-width: 360px; margin: 8px 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero { padding: 56px 0 62px; }
  .section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .shell { width: min(100% - 28px, 1120px); }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
