:root {
  --bg: #070203;
  --panel: rgba(18, 8, 9, 0.88);
  --line: rgba(255, 110, 80, 0.18);
  --text: #fff7f4;
  --muted: #d6b0a6;
  --primary: #ff5228;
  --primary-2: #ff9b4b;
  --accent: #ff2a2a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 83, 40, 0.22), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(255, 24, 24, 0.14), transparent 24%),
    linear-gradient(180deg, #090202 0%, #130405 45%, #050102 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  overflow-x: hidden;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #ffd1b7;
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-left {
  top: 90px;
  left: -120px;
  background: rgba(255, 69, 33, 0.32);
}

.glow-right {
  top: 220px;
  right: -80px;
  background: rgba(255, 153, 59, 0.18);
}

.topbar,
.landing,
.cabinet-page {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 82, 40, 0.45));
}

.brand-text,
h1,
h2,
h3 {
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.02em;
}

.top-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #190403;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 82, 40, 0.28);
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.small {
  min-height: 40px;
}

.card {
  background:
    linear-gradient(180deg, rgba(33, 10, 10, 0.92), rgba(14, 5, 6, 0.96)),
    rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero,
.cabinet-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 36px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #ffae85;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 10vw, 92px);
  line-height: 0.94;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.hero-text,
.muted,
.info-card p,
.plan-card p,
.metric-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li::before {
  content: "•";
  color: var(--primary-2);
  margin-right: 10px;
}

.hero-badge {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.badge-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 166, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 92, 48, 0.32), rgba(66, 13, 12, 0.92));
  border: 1px solid rgba(255, 161, 126, 0.22);
  box-shadow: inset 0 0 80px rgba(255, 96, 32, 0.16);
  text-align: center;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(320px, 90%);
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255, 84, 44, 0.34));
}

.badge-core span {
  font-family: "Russo One", sans-serif;
  font-size: 30px;
  color: #ff8d63;
}

.badge-core strong {
  font-family: "Russo One", sans-serif;
  font-size: 64px;
}

.badge-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 110, 80, 0.18);
  border-radius: 999px;
  box-shadow: 0 0 100px rgba(255, 82, 40, 0.18);
}

.plans,
.info-grid,
.cabinet-grid {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 18px;
}

.plan-grid,
.info-grid,
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card,
.info-card,
.metric-card,
.auth-gate,
.key-card {
  padding: 24px;
}

.plan-label,
.metric-label {
  margin: 0 0 8px;
  color: #ffb19c;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
}

.cabinet-page {
  display: grid;
  gap: 24px;
}

.key-box {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  word-break: break-all;
  color: #ffdcca;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.auth-gate {
  padding: 34px;
}

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

.auth-block {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  color: #ffcfbf;
  font-size: 14px;
}

.auth-form input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(6, 2, 2, 0.7);
  color: var(--text);
  font: inherit;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .cabinet-hero,
  .plan-grid,
  .info-grid,
  .cabinet-grid,
  .auth-methods {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
}
