:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-deep: #02050d;
  --panel: rgba(9, 20, 38, 0.72);
  --panel-strong: rgba(13, 30, 58, 0.84);
  --ink: #f3fbff;
  --muted: #9fb3c8;
  --line: rgba(162, 210, 255, 0.16);
  --line-strong: rgba(96, 165, 250, 0.32);
  --cyan: #5eead4;
  --cyan-strong: #22d3ee;
  --electric-blue: #3b82f6;
  --blue-soft: #93c5fd;
  --warning: #f6d488;
  --danger: #fb8f8f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --glow: 0 0 48px rgba(34, 211, 238, 0.24);
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(180deg, #030712 0%, #07111f 48%, #02050d 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(84px);
}

body::before {
  top: -8rem;
  right: -6rem;
  width: 28rem;
  height: 28rem;
  background: rgba(34, 211, 238, 0.22);
}

body::after {
  bottom: -10rem;
  left: -7rem;
  width: 32rem;
  height: 32rem;
  background: rgba(59, 130, 246, 0.18);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 7, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 150px;
}

.brand-main {
  font-size: 1.08rem;
  font-weight: 900;
}

.brand-parent {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(147, 197, 253, 0.08);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-tight {
  padding-top: 16px;
  padding-bottom: 48px;
}

.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 44px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(14, 165, 233, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  max-width: 760px;
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.02;
}

.subpage-hero {
  padding-top: 46px;
  padding-bottom: 58px;
}

.subpage-title {
  max-width: 820px;
  font-size: clamp(2.125rem, 5vw, 4.25rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  margin-top: 20px;
}

.page-intro {
  max-width: 780px;
  margin-bottom: 30px;
}

.page-intro .lead {
  margin-top: 18px;
}

.content-stack {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -70%;
  width: 52%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: left 520ms ease;
}

.button.primary {
  color: #03111d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--electric-blue));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.24);
}

.button:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.button:hover::after {
  left: 120%;
}

.preview,
.card,
.panel,
.plan-card,
.metric {
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
}

.preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(14, 31, 56, 0.92), rgba(5, 12, 25, 0.94));
  overflow: hidden;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-body {
  padding: 22px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric {
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: #03111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue-soft));
  font-size: 0.82rem;
  font-weight: 900;
}

.badge.warning {
  background: var(--warning);
}

.badge.info {
  background: var(--blue-soft);
}

.check-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  padding-left: 26px;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.42);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card-grid + .split,
.card-grid + .panel {
  margin-top: 26px;
}

.card-grid + .note {
  margin-top: 20px;
}

.card,
.panel,
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.card,
.plan-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.card:hover,
.plan-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  background: rgba(11, 30, 56, 0.86);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(34, 211, 238, 0.12);
}

.card p,
.plan-card p {
  color: var(--muted);
  margin-top: 10px;
}

.card .check-list,
.plan-card .check-list,
.panel .check-list {
  flex: 1;
}

.panel {
  padding: 30px;
  margin-top: 30px;
}

.panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.content-stack > .panel,
.split > .panel {
  margin-top: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}

.plan-grid.local-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid .card {
  min-height: 170px;
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card.featured {
  border-color: rgba(94, 234, 212, 0.42);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.13), transparent 42%),
    var(--panel-strong);
}

.plan-card.local {
  border-style: dashed;
  background: rgba(7, 18, 35, 0.64);
  min-height: 220px;
}

.plan-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  min-height: 1.25rem;
}

.plan-limit {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1.05;
  font-weight: 950;
}

.plan-sub {
  display: block;
  color: var(--blue-soft);
  font-size: 0.96rem;
  font-weight: 800;
  margin-top: 4px;
}

.plan-sub + p {
  margin-top: 14px;
}

.note {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.split.even {
  grid-template-columns: 1fr 1fr;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 30px 0;
  background: rgba(2, 5, 13, 0.76);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.28);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .plan-grid,
  .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .subpage-hero {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .subpage-title {
    font-size: clamp(2.125rem, 9vw, 3rem);
  }
}

@media (min-width: 821px) and (max-height: 900px) {
  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .hero {
    min-height: 540px;
    gap: 38px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .hero-title {
    font-size: clamp(3rem, 6.2vw, 5.2rem);
  }

  .lead {
    margin-top: 16px;
    font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  }

  .actions {
    margin-top: 24px;
  }

  .preview-body {
    padding: 18px;
  }

  .check-list,
  .plain-list {
    gap: 10px;
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .score-row,
  .plan-grid,
  .plan-grid.local-grid,
  .four-grid {
    grid-template-columns: 1fr;
  }
}
