:root {
  --bg: #050607;
  --panel: rgba(20, 21, 23, .76);
  --panel-strong: rgba(31, 32, 35, .9);
  --stroke: rgba(255, 255, 255, .12);
  --stroke-strong: rgba(255, 255, 255, .28);
  --text: #f5f5f6;
  --muted: #a5a7ad;
  --soft: #74777f;
  --ok: #8df5bd;
  --danger: #ff7575;
  --shadow: 0 28px 90px rgba(0, 0, 0, .54);
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background: #050607;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(11, 12, 14, .78);
  backdrop-filter: blur(26px) saturate(130%);
  box-shadow: var(--shadow);
  transition: opacity .28s ease, transform .28s ease, background .28s ease;
}

body.is-scrolled .topbar {
  opacity: 0;
  transform: translateY(-120%) scale(.985);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 14px 34px rgba(0,0,0,.45);
}

.brand strong { display: block; font-size: 20px; line-height: 1; }
.brand span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: var(--stroke);
  background: rgba(255,255,255,.06);
}

.nav .primary {
  color: #070809;
  border-color: rgba(255,255,255,.8);
  background: linear-gradient(180deg, #fff, #d8dbe0);
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
  padding: 42px 0 22px;
}

.hero-wide {
  min-height: 380px;
  grid-template-columns: 1fr;
  align-items: end;
}

.hero-copy,
.glass-card,
.panel {
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22,23,25,.82), rgba(8,9,10,.68));
  backdrop-filter: blur(30px) saturate(135%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-copy { padding: 38px; }

.hero-line {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: end;
}

.hero-side {
  display: grid;
  align-content: end;
  justify-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  font-size: 13px;
  font-weight: 750;
}

h1, h2, h3, p { margin: 0; }

h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-wide h1 {
  max-width: 720px;
  font-size: clamp(44px, 6vw, 76px);
}

.lead {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.download-action {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.download-action .button {
  width: min(100%, 332px);
}

.button,
button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  padding: 0 17px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
  background: rgba(255,255,255,.11);
}

.button.primary,
button.primary {
  color: #070809;
  border-color: rgba(255,255,255,.82);
  background: linear-gradient(180deg, #fff, #d8dbe0);
}

.button.ghost,
button.ghost { color: var(--muted); background: transparent; }

.compact-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.compact-head p { max-width: 460px; }

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

.shot-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)), rgba(12,13,15,.78);
}

.shot-card img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-card.has-image img { display: block; }

.shot-card span {
  position: relative;
  z-index: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(20px);
}

.image-modal[hidden] { display: none; }

.image-modal img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border: 1px solid var(--stroke-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.image-modal button {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.section { padding: 28px 0; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.section-head p { max-width: 720px; margin-top: 12px; color: var(--muted); line-height: 1.55; }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel { padding: 24px; }
.panel h3 { font-size: 22px; margin-bottom: 10px; }
.panel p, .panel li { color: var(--muted); line-height: 1.55; }
.panel ul { margin: 14px 0 0; padding-left: 20px; }

.tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tariff-card {
  position: relative;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)), rgba(13,14,16,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.tariff-card.featured {
  border-color: rgba(255,255,255,.36);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(20,21,23,.84);
}

.badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #070809;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.tariff-main { display: grid; gap: 14px; }
.tariff-head {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tariff-head strong {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.tariff-card h3 { margin: 0; font-size: 24px; }
.price-row {
  display: grid;
  gap: 5px;
}
.price { font-size: 34px; font-weight: 900; line-height: 1; }
.day-price { color: var(--muted); font-size: 14px; font-weight: 750; }
.tariff-card ul {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.tariff-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.38;
}
.tariff-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
}
.tariff-card .button {
  width: 100%;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  padding: 30px 0;
}

.form-card { padding: 28px; }
.form-card h1 { font-size: clamp(34px, 5vw, 56px); }
.form-card .lead {
  max-width: 720px;
  margin-top: 14px;
  font-size: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.field { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.field.full { grid-column: 1 / -1; }
.field button {
  width: auto;
  min-width: 220px;
  justify-self: start;
  align-self: end;
  padding: 0 22px;
}

input, select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0,0,0,.28);
  outline: none;
  font: inherit;
}

.tariff-picker {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.tariff-option {
  width: 100%;
  min-height: 74px;
  justify-content: space-between;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.tariff-option.active {
  border-color: rgba(255,255,255,.46);
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.22);
}

.tariff-option span {
  display: grid;
  gap: 5px;
}

.tariff-option strong { font-size: 16px; }
.tariff-option small { color: var(--muted); font-weight: 700; }
.tariff-option b { font-size: 20px; }

.compact-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

input:focus, select:focus {
  border-color: rgba(255,255,255,.46);
  box-shadow: 0 0 0 4px rgba(255,255,255,.07);
}

.message { min-height: 22px; color: var(--muted); line-height: 1.45; }
.message.ok { color: var(--ok); }
.message.error { color: var(--danger); }

.dashboard-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  padding: 30px 0;
}

.profile-card { padding: 22px; }
.profile-row { display: flex; align-items: center; gap: 14px; }
.profile-row img { width: 58px; height: 58px; border-radius: 18px; }
.profile-row strong { display: block; font-size: 20px; }
.profile-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.stat-list { display: grid; gap: 10px; margin-top: 18px; }
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.045); color: var(--muted); }
.stat strong { color: var(--text); }

.key-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(0,0,0,.24);
}

.key-card code {
  display: block;
  max-height: 86px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  word-break: break-all;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.footer {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
}

.legal-footer {
  display: grid;
  gap: 12px;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.28);
  text-underline-offset: 4px;
}

.legal-footer small { color: var(--soft); }

@media (max-width: 1080px) {
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .form-shell, .dashboard-layout { grid-template-columns: 1fr; }
  .hero-line, .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page { width: min(100vw - 22px, 1180px); padding-top: 12px; }
  .topbar { position: static; align-items: flex-start; flex-direction: column; border-radius: 20px; }
  .nav { flex-wrap: wrap; }
  .hero-copy, .panel, .form-card { padding: 20px; border-radius: 22px; }
  .tariffs, .form-grid, .hero-line, .screenshot-grid, .compact-form { grid-template-columns: 1fr; }
  .hero-wide h1 { font-size: 40px; }
  .compact-head { display: block; }
}
