:root {
  --bg-0: #0b1119;
  --bg-1: #121b28;
  --bg-2: #162233;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --panel: rgba(240, 244, 249, 0.96);
  --panel-soft: rgba(228, 235, 243, 0.92);
  --text: #1f2733;
  --muted: #596576;
  --accent: #ff6b57;
  --accent-2: #4fd1ff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 209, 255, 0.1), transparent 36%),
    radial-gradient(circle at 82% 20%, rgba(255, 107, 87, 0.1), transparent 40%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 24px,
      rgba(0, 0, 0, 0.04) 24px,
      rgba(0, 0, 0, 0.04) 48px
    ),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 14px;
  z-index: 1000;
  background: #ffffff;
  color: #10263f;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 12px;
}

.skip-link:focus-visible { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 24, 34, 0.96), rgba(16, 22, 32, 0.9));
  backdrop-filter: blur(8px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  color: #f7fbff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  text-decoration: none;
  color: #cdd8e7;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.tab[aria-current="page"],
.tab:hover {
  color: #ffffff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 28px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.hero {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #d14f44;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.3px;
  color: #1e252f;
}

h2 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #1e252f;
}

p,
li,
small {
  color: var(--muted);
  line-height: 1.62;
}

.lead {
  font-size: 1.02rem;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  text-decoration: none;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  color: #2b3645;
  background: #f4f7fb;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button--primary {
  border-color: #e7624f;
  background: linear-gradient(135deg, var(--accent), #ff8d7c);
  color: #ffffff;
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel-soft);
}

.card__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #d14f44;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
}

.legal {
  max-width: 980px;
  padding: 24px;
}

.back-link {
  margin-top: 22px;
}

a {
  color: #2878b3;
}

a:focus-visible,
.tab:focus-visible,
.button:focus-visible,
.card:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header__inner,
  .page {
    width: min(1180px, calc(100% - 20px));
  }

  .site-header__inner {
    min-height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .legal {
    padding: 18px;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}
