/* Hit The Brakes — site theme (dark, restrained neon; matches iOS app mood) */
:root {
  --bg0: #0a0c10;
  --bg1: #0f1218;
  --surface: rgba(255, 255, 255, 0.035);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.28);
  --accent: #00e8f5;
  --accent-dim: rgba(0, 232, 245, 0.14);
  --gold: #ffb800;
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 720px;
  --glow: 0 0 80px rgba(0, 232, 245, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg0);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(0, 232, 245, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 45%);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-dim), transparent);
  border: 1px solid rgba(0, 232, 245, 0.35);
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  font-weight: 600;
}

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

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, var(--accent) 45%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 32px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #00b8c4);
  color: #061014;
  box-shadow: var(--glow), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  color: #061014;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--stroke);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 232, 245, 0.35);
  color: var(--text);
}

/* Ring decoration */
.ring-stage {
  margin: 48px auto 0;
  max-width: 320px;
  aspect-ratio: 1;
  position: relative;
}

.ring-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 232, 245, 0.12));
}

/* Sections */
section {
  padding: 40px 0;
}

.section-title {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 20px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 32px 24px;
  border-top: 1px solid var(--stroke);
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

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

/* Legal / support prose */
.prose {
  color: var(--muted);
}

.prose h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.wrap-legal {
  max-width: 820px;
}

.legal-h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.prose-legal h2 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  color: var(--text);
}

.prose-legal h3 {
  font-size: 0.95rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.prose-legal strong {
  color: var(--text);
  font-weight: 600;
}

.hero-subcta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}

.hero-subcta a {
  color: var(--muted);
  text-decoration: none;
}

.hero-subcta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hosting-line {
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
}

.hosting-line a {
  color: var(--muted);
  text-decoration: none;
}

.hosting-line a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.code-inline {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text);
}

/* 404 */
.center {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
