:root {
  --ink: #07080a;
  --panel: #141416;
  --raised: #1c1c1f;
  --paper: #f5f5f5;
  --muted: #a1a1a1;
  --line: rgba(255, 255, 255, 0.09);
  --red: #ff6363;
  --blue: #4b74ff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(255, 99, 99, 0.18), transparent 72%),
    radial-gradient(42% 28% at 82% 18%, rgba(75, 116, 255, 0.10), transparent 66%),
    linear-gradient(180deg, #0d0d0e 0%, #07080a 58%, #050506 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

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

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  pointer-events: none;
}

nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(20, 20, 20, 0.62);
  padding: 0 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.links a {
  text-decoration: none;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 128px 0 76px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin: 14px 0 0;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.86;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 820px;
  margin: 28px 0 0;
  color: #fff;
  font-size: clamp(25px, 3.6vw, 44px);
  line-height: 1.06;
  font-weight: 820;
}

.body {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--paper);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 860;
  box-shadow: 0 0 55px rgba(255, 99, 99, 0.18);
}

.btn.secondary {
  background: transparent;
  color: var(--paper);
  box-shadow: none;
}

.section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
  margin-bottom: 38px;
}

.section-head > * { min-width: 0; }

h2 {
  margin: 10px 0 0;
  max-width: 100%;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.big {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(25px, 3.1vw, 40px);
  line-height: 1.07;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--line);
}

.card {
  min-height: 220px;
  min-width: 0;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
}

.card small {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.article {
  max-width: 880px;
  padding: 58px 0 96px;
}

.article p {
  color: rgba(245, 245, 245, 0.82);
  font-size: 20px;
  margin: 0 0 24px;
}

.article h2 {
  margin: 58px 0 20px;
}

.note {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 780;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

@media (max-width: 820px) {
  nav,
  .section-head,
  .grid {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 12px;
    padding: 16px;
  }

  .links {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .topbar {
    top: 10px;
  }

  .hero {
    min-height: auto;
    padding: 74px 0 58px;
  }

  h1 {
    max-width: 340px;
    font-size: 58px;
    line-height: 0.9;
  }

  h2 {
    max-width: 340px;
    font-size: 38px;
    line-height: 0.96;
  }

  .lede,
  .body,
  .big,
  .card p,
  .article p {
    max-width: 340px;
  }

  .card {
    padding: 24px;
  }

  .lede,
  .big {
    font-size: 25px;
  }

  .actions .btn {
    width: 100%;
  }

  .section {
    padding: 66px 0;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  h1 {
    max-width: 100%;
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .lede,
  .big {
    font-size: 22px;
  }

  .body,
  .card p,
  .article p {
    font-size: 16px;
  }

  .card {
    padding: 22px;
  }
}
