:root {
  --bg: #0e0f0d;
  --bg-raised: #171915;
  --line: #2a2d26;
  --fg: #ecebe4;
  --muted: #a3a397;
  --accent: #f5a524;
  --accent-ink: #1a1204;
  --mud: #6b5b3e;
  --radius: 14px;
  --max: 68rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* ---------- top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(14 15 13 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo svg { width: 1.75rem; height: 1.75rem; }
.bar nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(245 165 36 / 0.14), transparent 60%),
    url("/topo.svg") center / 900px repeat;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--mud);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 850;
}
.hero h1 em { display: block; font-style: normal; color: var(--accent); }
.hero .lead { max-width: 38rem; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1.1875rem; }

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }

/* equalizer */
.eq {
  position: absolute;
  right: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 9rem;
  opacity: 0.55;
}
.eq span {
  width: 10px;
  height: 30%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--mud), var(--accent));
  animation: eq 1.4s ease-in-out infinite alternate;
}
.eq span:nth-child(2) { animation-delay: -0.2s; animation-duration: 1.1s; }
.eq span:nth-child(3) { animation-delay: -0.5s; animation-duration: 1.7s; }
.eq span:nth-child(4) { animation-delay: -0.9s; animation-duration: 1.2s; }
.eq span:nth-child(5) { animation-delay: -0.3s; animation-duration: 1.5s; }
.eq span:nth-child(6) { animation-delay: -1.1s; animation-duration: 1.3s; }
.eq span:nth-child(7) { animation-delay: -0.7s; animation-duration: 1.9s; }
.eq span:nth-child(8) { animation-delay: -0.4s; animation-duration: 1.0s; }
@keyframes eq {
  0% { height: 15%; }
  50% { height: 85%; }
  100% { height: 40%; }
}

/* ---------- sections ---------- */
section { padding: 5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--mud); transform: translateY(-3px); }
.card svg { width: 2.75rem; height: 2.75rem; color: var(--accent); }
.card h3 { margin: 1rem 0 0.5rem; font-size: 1.3125rem; letter-spacing: -0.01em; }
.card > p { margin: 0 0 1rem; color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.card li { padding: 0.4rem 0; border-top: 1px dashed var(--line); }
.card li::before { content: "▸ "; color: var(--accent); }
.tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mud);
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { padding-top: 1rem; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* contact */
.contact {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgb(245 165 36 / 0.06));
  text-align: center;
}
.contact .section-head { margin: 0 auto 2rem; }

/* footer */
footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer p { margin: 0; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; background: url("/topo.svg") center / 900px repeat; }
.lost h1 { margin: 0; font-size: clamp(4rem, 15vw, 8rem); line-height: 1; color: var(--accent); letter-spacing: -0.05em; }
.lost p { color: var(--muted); }

@media (max-width: 40rem) {
  .bar nav a:not(.lang) { display: none; }
  .hero { padding: 4rem 0 7rem; }
  .eq { height: 5rem; left: 1rem; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq span { animation: none; }
  .btn, .card { transition: none; }
}
