:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(15, 23, 42, 0.7);
  --card: rgba(8, 15, 28, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #edf2ff;
  --muted: #9fb0d1;
  --primary: #7c9cff;
  --accent: #68f0d8;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  font-family: Inter, Segoe UI, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124,156,255,.22), transparent 28%),
    radial-gradient(circle at top right, rgba(104,240,216,.14), transparent 22%),
    linear-gradient(180deg, #08111e 0%, #091423 48%, #07101b 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.page-shell { max-width: 1200px; margin: 0 auto; padding: 24px; }
.topbar {
  position: sticky; top: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; margin-bottom: 24px; border: 1px solid var(--line);
  background: rgba(7,17,31,.72); backdrop-filter: blur(18px); border-radius: 24px;
  box-shadow: var(--shadow);
}
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; }
.nav { display: flex; gap: 18px; color: var(--muted); }
.topbar-actions { display: flex; gap: 12px; }
.hero {
  min-height: 70vh; display: grid; grid-template-columns: 1.3fr .8fr; gap: 28px; align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; margin: 12px 0 18px; max-width: 10ch; }
.lead { max-width: 62ch; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hero-actions, .topbar-actions, .auth-tabs { display: flex; flex-wrap: wrap; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .78rem; letter-spacing: .16em; }
.glass-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card { display: grid; gap: 16px; }
.metric span { display: block; font-size: 2rem; font-weight: 700; }
.metric small { color: var(--muted); }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 8px 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); }
.feature-grid, .pricing-grid, .account-grid { display: grid; gap: 20px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pricing-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.account-grid { grid-template-columns: .9fr 1.1fr; }
section { padding: 54px 0; }
.btn {
  border: 0; border-radius: 16px; padding: 12px 18px; font-weight: 600; cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #5b7cff); color: white; }
.btn-secondary { background: rgba(124,156,255,.12); color: white; border: 1px solid rgba(124,156,255,.24); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.note {
  margin-top: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(104,240,216,.2);
  background: rgba(104,240,216,.08); color: #d9fff8;
}
.plan-card { position: relative; overflow: hidden; }
.plan-card.recommended::after {
  content: "Рекомендуем"; position: absolute; top: 18px; right: -36px; transform: rotate(28deg);
  background: linear-gradient(135deg, #68f0d8, #7c9cff); color: #08111e; padding: 6px 44px; font-size: .8rem; font-weight: 700;
}
.plan-price { font-size: 2.4rem; font-weight: 700; margin: 16px 0 4px; }
.plan-price small { font-size: 1rem; color: var(--muted); }
.plan-meta { color: var(--muted); min-height: 70px; }
dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.muted { color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 40; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.7); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(520px, calc(100vw - 32px)); margin: 8vh auto 0; }
.modal-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.icon-btn { background: transparent; border: 0; color: white; font-size: 1.1rem; cursor: pointer; }
.tab { flex: 1; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 12px 14px; border-radius: 14px; cursor: pointer; }
.tab.is-active { color: white; background: rgba(124,156,255,.14); border-color: rgba(124,156,255,.32); }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label { display: grid; gap: 8px; }
.auth-form input {
  width: 100%; border: 1px solid var(--line); background: rgba(15,23,42,.72); color: white; border-radius: 16px; padding: 14px 16px;
}
@media (max-width: 900px) {
  .hero, .feature-grid, .pricing-grid, .account-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
}
