:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111;
  --panel-soft: #171717;
  --line: #2b2b2b;
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --quiet: #747474;
  --accent: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #0b0b0b 0%, var(--bg) 58%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

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

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

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

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
}

.brand-logo {
  width: 230px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-actions a {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-actions a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions .account-link {
  color: var(--text);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions .nav-logout {
  padding: 10px 14px;
  font-size: 14px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d8d8d8;
  background: var(--accent);
  color: #060606;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  background: #dcdcdc;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

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

.button[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.62;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 96px;
}

.eyebrow {
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  color: #d0d0d0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat,
.card,
.price-card,
.form-panel,
.profile-panel,
.table-wrap {
  background: rgba(17, 17, 17, 0.92);
}

.stat {
  padding: 26px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.stat span,
.muted,
.card p,
.price-card p,
.profile-panel p,
label {
  color: var(--muted);
}

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

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

.card,
.price-card,
.form-panel,
.profile-panel {
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card {
  min-height: 210px;
}

.card-index {
  color: var(--quiet);
  font-size: 13px;
  margin-bottom: 34px;
}

.price-card {
  display: grid;
  gap: 22px;
}

.price {
  display: flex;
  align-items: end;
  gap: 10px;
}

.price strong {
  font-size: clamp(54px, 8vw, 86px);
  line-height: 0.9;
}

.price span {
  color: var(--muted);
  padding-bottom: 8px;
}

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

.feature-list li {
  display: flex;
  gap: 10px;
  color: #d7d7d7;
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  flex: 0 0 auto;
  background: #f2f2f2;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #f5f5f5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

td {
  color: #c9c9c9;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: #ededed;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.auth-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
}

.form-panel {
  width: min(520px, 100%);
  margin: 0 auto;
}

.form-panel h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
}

.form-message.error {
  border-color: #777;
  background: rgba(255, 255, 255, 0.09);
}

.form-message.success {
  border-color: #d7d7d7;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #090909;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid #e8e8e8;
  border-color: #e8e8e8;
}

.text-link {
  color: var(--text);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
}

.detail-list {
  display: grid;
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
}

.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid #dcdcdc;
  color: #050505;
  background: #f4f4f4;
  font-weight: 900;
  font-size: 28px;
}

.download-box {
  padding: 24px;
  border: 1px dashed #555;
  background: rgba(255, 255, 255, 0.04);
}

.legal-doc {
  max-width: 920px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative;
  z-index: 1;
}

.legal-doc.fade-in {
  opacity: 1;
  transform: none;
}

.legal-doc pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.65;
  color: #d7d7d7;
  display: block;
  opacity: 1;
  visibility: visible;
}

.legal-doc pre::first-line {
  color: var(--text);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 760px;
  }

  .section {
    padding: 64px 0;
  }

  .stats,
  .grid,
  .grid.two,
  .split,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-actions {
    width: 100%;
  }

  .nav-actions a {
    flex: 1;
    justify-content: center;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  h1 {
    font-size: 46px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card,
  .price-card,
  .form-panel,
  .profile-panel {
    padding: 22px;
  }
}
