:root {
  color-scheme: dark;
  --bg: #070a0f;
  --surface: rgba(18, 23, 32, 0.78);
  --soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f7fb;
  --muted: #929cab;
  --accent: #35a7ff;
  --good: #55d69e;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(33, 102, 158, 0.24), transparent 44%),
    linear-gradient(145deg, #070a0f, #090d13 52%, #06080c);
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { border-radius: 12px; }

nav { display: flex; gap: 22px; }

nav a,
footer a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

nav a:hover,
footer a:hover { color: var(--text); }

main { padding: 72px 0 80px; }

.hero {
  max-width: 820px;
  margin-bottom: 48px;
}

.eyebrow,
.plan-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 20px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan,
.details {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.plan.featured {
  border-color: rgba(85, 214, 158, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 214, 158, 0.12), transparent 44%),
    var(--surface);
}

.plan h2 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.price {
  margin: 0;
  color: #c8e9ff;
  font-size: 42px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.device-limit {
  margin: -10px 0 0;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: #cbd2dc;
  line-height: 1.5;
}

.plan li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--good);
}

.button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  font-weight: 760;
  text-decoration: none;
}

.button:hover { background: rgba(255, 255, 255, 0.09); }

.button.primary {
  border: 0;
  color: #02111e;
  background: linear-gradient(110deg, #b9e5ff, #4cb2ff 58%, #2491ed);
}

.details {
  margin-top: 22px;
  padding: clamp(26px, 4vw, 40px);
}

.details h2 {
  margin: 8px 0 28px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

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

.detail-grid article {
  padding: 20px;
  border-radius: 16px;
  background: var(--soft);
}

.detail-grid h3 { margin: 0 0 10px; font-size: 16px; }
.detail-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.availability {
  min-height: 20px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #687281;
  font-size: 12px;
}

@media (max-width: 760px) {
  .plans,
  .detail-grid { grid-template-columns: 1fr; }
  main { padding-top: 52px; }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 76px; }
  .brand { font-size: 16px; }
  .brand img { width: 38px; height: 38px; }
  nav { gap: 12px; }
  nav a { font-size: 12px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  footer { min-height: 104px; flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
