:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-elevated: #17171a;
  --primary: #ff453a;
  --primary-hover: #ff6b61;
  --text-main: #ffffff;
  --text-secondary: #9a9aa0;
  --divider: #232326;
  --success: #42d77d;
  --glow: rgba(255, 69, 58, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.18);
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
}

body {
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3,
.brand-text {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
}

p,
ul {
  margin: 0;
}

code,
.key-box {
  font-family: "JetBrains Mono", monospace;
}

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

.site-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 78%);
}

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

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 19, 0.92);
  box-shadow: var(--shadow-soft);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 69, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.08), rgba(255, 69, 58, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-logo {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-size: 15px;
  font-weight: 700;
}

.topnav,
.topbar-actions,
.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav {
  justify-content: center;
}

.topnav a {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.22s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: rgba(255, 69, 58, 0.8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.topnav a:hover {
  color: var(--text-main);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

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

.button-small {
  min-height: 42px;
  padding: 0 14px;
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.14), 0 12px 28px rgba(255, 69, 58, 0.18);
}

.button-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 0 1px rgba(255, 107, 97, 0.2), 0 14px 30px rgba(255, 107, 97, 0.22);
}

.button-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.01);
  border-color: var(--divider);
}

.button-secondary:hover {
  border-color: rgba(255, 69, 58, 0.22);
  box-shadow: 0 0 22px rgba(255, 69, 58, 0.08);
}

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

.eyebrow,
.mini-label,
.badge {
  color: #cfd0d7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-subtitle,
.panel-copy,
.muted,
.section-copy,
.stat-card p,
.history-row p,
.auth-shell p,
.feature-list li {
  color: var(--text-secondary);
  line-height: 1.72;
}

.hero,
.cabinet-hero,
.panel,
.stat-card,
.pricing-card,
.auth-shell,
.trust-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 17, 19, 0.98), rgba(15, 15, 17, 0.98));
  box-shadow: var(--shadow-card);
}

.hero,
.cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 30px;
  padding: 40px;
}

.hero-copy,
.cabinet-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero-subtitle {
  max-width: 600px;
  font-size: 18px;
}

.hero-actions {
  margin-top: 6px;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.trust-inline span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.02);
  color: #d7d8dd;
  font-size: 13px;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-visual-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--surface-elevated);
  overflow: hidden;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

.hero-visual-accent {
  position: absolute;
  inset: auto 18% 12% 18%;
  height: 30%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 69, 58, 0.22), transparent 70%);
  filter: blur(18px);
  animation: pulse 3.4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(190px, 54%);
  filter: drop-shadow(0 0 26px rgba(255, 69, 58, 0.16));
  animation: float 5.2s ease-in-out infinite;
}

.trust-section,
.section,
.auth-shell,
.panel,
.pricing-card,
.stat-card,
.trust-card {
  padding: 28px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-head-tight {
  margin-bottom: 16px;
}

.section-head-wide {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
}

.trust-grid,
.pricing-grid,
.stats-grid,
.auth-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.trust-card,
.pricing-card,
.stat-card,
.panel,
.history-row {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.trust-card:hover,
.pricing-card:hover,
.stat-card:hover,
.panel:hover,
.history-row:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 69, 58, 0.18);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.34), 0 0 22px rgba(255, 69, 58, 0.06);
}

.trust-card {
  display: grid;
  gap: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 69, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.08), rgba(255, 69, 58, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.trust-icon::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 15px auto 0;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(255, 69, 58, 0.48);
}

.pricing-card {
  display: grid;
  gap: 18px;
}

.pricing-card-head,
.referral-meta,
.history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pricing-card.is-popular {
  border-color: rgba(255, 69, 58, 0.26);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.36), 0 0 26px rgba(255, 69, 58, 0.1);
}

.badge {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 69, 58, 0.18);
  background: rgba(255, 69, 58, 0.1);
  color: #fff;
}

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

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.cabinet-hero {
  align-items: end;
}

.cabinet-hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.stat-card {
  display: grid;
  gap: 10px;
  min-height: 174px;
}

.stat-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card:first-child h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(66, 215, 125, 0.42);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
}

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

.panel {
  display: grid;
  gap: 10px;
}

.key-box {
  margin: 8px 0 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--divider);
  background: #0f0f11;
  color: var(--text-main);
  word-break: break-all;
  line-height: 1.82;
  font-size: 13px;
}

.key-box-compact {
  margin-bottom: 0;
}

.panel-actions .quick-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.referral-track {
  position: relative;
  width: 100%;
  height: 12px;
  margin: 18px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: #0d0d10;
  overflow: hidden;
}

.referral-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  box-shadow: 0 0 22px rgba(255, 69, 58, 0.24);
}

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

.history-row {
  padding: 16px 18px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.auth-panel {
  min-height: 290px;
}

.card-actions,
.quick-actions {
  flex-wrap: wrap;
}

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

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

.auth-form span {
  color: #d7d8de;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  background: #0f0f11;
  color: var(--text-main);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255, 69, 58, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.08);
}

.code-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hidden {
  display: none;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 69, 58, 0.14);
  background: rgba(17, 17, 19, 0.96);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32), 0 0 20px rgba(255, 69, 58, 0.1);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1024px) {
  .hero,
  .cabinet-hero,
  .dashboard-grid,
  .dashboard-grid-bottom,
  .trust-grid,
  .pricing-grid,
  .stats-grid,
  .auth-grid,
  .section-head-wide {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cabinet-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, var(--content-width));
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .hero,
  .cabinet-hero,
  .trust-section,
  .section,
  .auth-shell,
  .panel,
  .pricing-card,
  .stat-card,
  .trust-card {
    padding: 22px;
  }

  .topbar-actions,
  .hero-actions,
  .card-actions,
  .cabinet-hero-actions {
    width: 100%;
    display: grid;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .trust-inline {
    display: grid;
  }

  .toast-stack {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    width: 100%;
    max-width: none;
  }
}
