:root {
  --bg: #060816;
  --bg-soft: #0e1428;
  --surface: rgba(10, 16, 34, 0.82);
  --surface-strong: rgba(12, 20, 42, 0.94);
  --surface-alt: rgba(18, 27, 53, 0.78);
  --border: rgba(127, 150, 201, 0.18);
  --border-strong: rgba(221, 181, 121, 0.34);
  --text: #f3f5fb;
  --muted: #bac6df;
  --muted-soft: #8d9abb;
  --accent: #ddb579;
  --accent-strong: #f2c88d;
  --success: #79d5a1;
  --danger: #ff8f8f;
  --warning: #ffd28d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(221, 181, 121, 0.16), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(91, 112, 170, 0.24), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(42, 61, 108, 0.24), transparent 30%),
    linear-gradient(180deg, #050813 0%, #060918 44%, #040611 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid rgba(221, 181, 121, 0.9);
  outline-offset: 3px;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.42;
}

.site-shell::before {
  top: 110px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(221, 181, 121, 0.2);
}

.site-shell::after {
  right: -120px;
  top: 420px;
  width: 320px;
  height: 320px;
  background: rgba(82, 110, 176, 0.22);
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 18, 0.82);
  border-bottom: 1px solid rgba(127, 150, 201, 0.1);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f0d2a0 0%, #c69255 100%);
  box-shadow: 0 0 28px rgba(221, 181, 121, 0.42);
}

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

.link-chip,
.button,
.route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.link-chip,
.route-link {
  color: var(--muted);
  background: rgba(12, 18, 37, 0.56);
  border-color: rgba(127, 150, 201, 0.14);
  font-size: 14px;
  font-weight: 600;
}

.button {
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.button--primary {
  color: #09101f;
  background: linear-gradient(180deg, var(--accent) 0%, #cca36e 100%);
  box-shadow: 0 14px 36px rgba(221, 181, 121, 0.22);
}

.button--secondary {
  color: var(--text);
  background: rgba(16, 23, 47, 0.92);
  border-color: rgba(127, 150, 201, 0.18);
}

.button--danger {
  color: #fff1f1;
  background: rgba(111, 30, 38, 0.65);
  border-color: rgba(255, 143, 143, 0.24);
}

.button--ghost {
  color: var(--accent);
  background: rgba(221, 181, 121, 0.08);
  border-color: rgba(221, 181, 121, 0.18);
}

.link-chip:hover,
.button:hover,
.route-link:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 76px 0 34px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(221, 181, 121, 0.2);
  background: rgba(16, 23, 47, 0.76);
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(221, 181, 121, 0.45);
}

.hero__copy h1,
.section-header h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.hero__copy h1 {
  margin-top: 20px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.94;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
  color: var(--muted-soft);
  font-size: 14px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(221, 181, 121, 0.82);
}

.panel,
.hero-panel,
.card,
.feature-card,
.plan-card,
.auth-card,
.account-card,
.cta-band {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-panel {
  position: relative;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(19, 28, 56, 0.95) 0%, rgba(8, 12, 28, 0.95) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.26;
  pointer-events: none;
}

.hero-panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hero-panel__title {
  font-size: 15px;
  font-weight: 800;
}

.hero-panel__sub {
  margin-top: 6px;
  color: var(--muted-soft);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(221, 181, 121, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  border-radius: 18px;
  border: 1px solid rgba(127, 150, 201, 0.18);
  background: rgba(6, 10, 22, 0.88);
  padding: 16px;
}

.mini-card__label {
  color: var(--muted-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-card__value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(14, 20, 42, 0.88);
  border: 1px solid rgba(127, 150, 201, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.mini-list__row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 52px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 0.98;
}

.section-header p,
.card p,
.feature-card p,
.plan-card p,
.auth-card p,
.account-card p,
.cta-band p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.features-grid,
.plans-grid,
.account-grid,
.account-actions,
.auth-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.plan-card,
.auth-card,
.account-card {
  padding: 22px;
}

.feature-card__index {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(221, 181, 121, 0.12);
  border: 1px solid rgba(221, 181, 121, 0.18);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.feature-card h3,
.plan-card h3,
.auth-card h3,
.account-card h3 {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.plans-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  align-items: start;
}

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card--pro {
  background:
    linear-gradient(180deg, rgba(21, 31, 59, 0.97) 0%, rgba(9, 14, 30, 0.95) 100%);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.plan-card--pro::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(221, 181, 121, 0.28), rgba(221, 181, 121, 0));
  pointer-events: none;
}

.plan-card__price {
  margin-top: 16px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.plan-card__price small {
  font-size: 17px;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(221, 181, 121, 0.9);
}

.auth-card {
  background: rgba(10, 15, 31, 0.94);
}

.auth-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(20, 29, 57, 0.6);
  border: 1px solid rgba(127, 150, 201, 0.14);
}

.auth-switcher button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted-soft);
  font-size: 14px;
  font-weight: 700;
}

.auth-switcher button.is-active {
  background: rgba(221, 181, 121, 0.12);
  color: var(--text);
}

.auth-panels {
  margin-top: 18px;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.is-active {
  display: grid;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(127, 150, 201, 0.18);
  border-radius: 16px;
  background: rgba(7, 10, 22, 0.92);
  color: var(--text);
  padding: 0 16px;
}

.field input::placeholder {
  color: #6f7d9e;
}

.field-note {
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.6;
}

.checkbox-row {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.checkbox-row label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.checkbox-row input {
  margin-top: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form-response,
.global-banner {
  display: none;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(127, 150, 201, 0.16);
  background: rgba(13, 20, 40, 0.88);
  font-size: 14px;
  line-height: 1.6;
}

.form-response.is-visible,
.global-banner.is-visible {
  display: block;
}

.response--success {
  border-color: rgba(121, 213, 161, 0.3);
  color: #d8f5e2;
  background: rgba(24, 59, 41, 0.42);
}

.response--error {
  border-color: rgba(255, 143, 143, 0.3);
  color: #ffe0e0;
  background: rgba(75, 27, 34, 0.42);
}

.response--info {
  border-color: rgba(221, 181, 121, 0.24);
  color: #f7e6cb;
  background: rgba(78, 53, 24, 0.28);
}

.account-shell {
  display: grid;
  gap: 18px;
}

.global-banner {
  position: sticky;
  top: 92px;
  z-index: 12;
}

.account-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(221, 181, 121, 0.18);
  background:
    linear-gradient(135deg, rgba(22, 31, 56, 0.9) 0%, rgba(10, 14, 30, 0.94) 100%);
  box-shadow: var(--shadow);
}

.account-banner__title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.account-banner__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.account-card__label {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-card__value {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.account-card__sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.account-actions .button {
  width: 100%;
}

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

.key-value {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.key-value__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(127, 150, 201, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.key-value__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.key-value__row strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.inline-row .button {
  min-width: 0;
}

.account-empty {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(127, 150, 201, 0.24);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

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

.download-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.download-card--highlight {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(22, 31, 60, 0.96) 0%, rgba(8, 12, 28, 0.96) 100%);
}

.download-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.download-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.download-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 150, 201, 0.12);
}

.download-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.download-meta strong {
  color: var(--text);
  text-align: right;
}

.download-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  margin-top: 24px;
  background:
    linear-gradient(180deg, rgba(22, 31, 58, 0.94) 0%, rgba(10, 15, 32, 0.96) 100%);
  border-color: rgba(221, 181, 121, 0.18);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted-soft);
  font-size: 13px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(127, 150, 201, 0.1);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero__grid,
  .plans-grid,
  .auth-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-grid,
  .account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header__row,
  .hero__actions,
  .account-banner,
  .footer__row {
    align-items: stretch;
  }

  .header-nav {
    width: 100%;
    justify-content: stretch;
  }

  .header-nav > * {
    flex: 1 1 calc(50% - 10px);
  }

  .hero {
    padding-top: 56px;
  }

  .features-grid,
  .download-grid,
  .account-grid,
  .account-actions,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-switcher {
    grid-template-columns: 1fr;
  }

  .account-banner__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
