:root {
  --bg: #070b14;
  --bg-elevated: #101624;
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --rec: #e53935;
  --rec-soft: rgba(229, 57, 53, 0.16);
  --focus: #8ab4ff;
  --radius: 20px;
  --max: 42rem;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(229, 57, 53, 0.18), transparent 55%),
    radial-gradient(700px 400px at 110% 8%, rgba(90, 120, 255, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
}

a {
  color: #d7e3ff;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--glass);
}

main {
  padding: 2.5rem 0 4rem;
}

.hero {
  padding: 1.25rem 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 5px var(--rec-soft);
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--rec);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  color: #fff;
  background: #ff4d49;
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.card h2,
article h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.card p,
article p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.card p:last-child,
article p:last-child {
  margin-bottom: 0;
}

article {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.6rem;
}

article h2 {
  margin-top: 1.4rem;
}

article h2:first-of-type {
  margin-top: 0.4rem;
}

.meta {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: #f3d2d1;
  background: var(--rec-soft);
  border-radius: 6px;
  padding: 0.08em 0.35em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
