:root {
  color-scheme: dark;
  --bg: #0b111a;
  --bg-soft: #101926;
  --bg-muted: #141f31;
  --surface: rgba(18, 28, 44, 0.82);
  --surface-strong: rgba(21, 34, 53, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #f7fbff;
  --text-soft: rgba(247, 251, 255, 0.78);
  --text-muted: rgba(247, 251, 255, 0.56);
  --line: rgba(145, 187, 238, 0.14);
  --line-strong: rgba(145, 187, 238, 0.28);
  --brand: #3488ff;
  --brand-strong: #1462ff;
  --brand-soft: #43d4ff;
  --gold: #d1b278;
  --success: #46dba4;
  --error: #f57d7d;
  --warning: #f6bf58;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.18);
  --hero-gradient:
    radial-gradient(circle at 16% 18%, rgba(67, 212, 255, 0.14), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(209, 178, 120, 0.08), transparent 18%),
    radial-gradient(circle at 70% 68%, rgba(20, 98, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a1018 0%, #0b1420 46%, #0d1927 100%);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4fa;
  --bg-soft: #f7fafc;
  --bg-muted: #e7eef7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --surface-soft: rgba(15, 23, 42, 0.03);
  --text: #142235;
  --text-soft: rgba(20, 34, 53, 0.78);
  --text-muted: rgba(20, 34, 53, 0.56);
  --line: rgba(37, 60, 96, 0.1);
  --line-strong: rgba(37, 60, 96, 0.18);
  --brand: #2563eb;
  --brand-strong: #0a57f5;
  --brand-soft: #00aaff;
  --gold: #9f7b3d;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 24px 56px rgba(23, 38, 65, 0.1);
  --shadow-soft: 0 12px 30px rgba(23, 38, 65, 0.08);
  --hero-gradient:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.08), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(159, 123, 61, 0.06), transparent 18%),
    radial-gradient(circle at 70% 68%, rgba(0, 170, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #eef4fa 0%, #f7fafc 48%, #e4edf7 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--hero-gradient);
  color: var(--text);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.ambient,
.grid-plane {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: -3;
  filter: blur(40px);
}

.ambient-a {
  background: radial-gradient(circle at 16% 18%, rgba(67, 212, 255, 0.16), transparent 22%);
}

.ambient-b {
  background: radial-gradient(circle at 78% 14%, rgba(209, 178, 120, 0.12), transparent 16%);
}

.grid-plane {
  z-index: -2;
  background-image:
    linear-gradient(rgba(145, 187, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 187, 238, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85) 16%);
  transform: perspective(1200px) rotateX(78deg) translateY(-14%);
  transform-origin: center top;
}

.container {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: rgba(7, 11, 18, 0.48);
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.74);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, var(--brand-soft), var(--brand-strong));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(20, 98, 255, 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.14em;
}

.brand-copy span {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav a,
.theme-toggle,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav a,
.theme-toggle,
.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.button-primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, var(--brand-strong), var(--brand-soft));
  color: #fff;
  box-shadow: 0 16px 30px rgba(10, 87, 245, 0.22);
}

.nav a:hover,
.theme-toggle:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  padding-top: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold), var(--brand-soft));
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  margin-top: 20px;
  max-width: 12ch;
  font-size: clamp(40px, 6vw, 66px);
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 23px;
  letter-spacing: -0.03em;
}

.hero-text,
.section-head p,
.feature-card p,
.timeline-card p,
.about-panel p,
.register-intro p,
.form-status,
.field small,
.metric-card p,
.trust-card span {
  color: var(--text-soft);
  line-height: 1.76;
}

.hero-text {
  margin-top: 18px;
  max-width: 42rem;
  font-size: 17px;
}

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

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

.highlight-card,
.trust-card,
.feature-card,
.timeline-card,
.about-panel,
.process-card,
.form-card,
.metric-card,
.hero-dashboard {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.highlight-card,
.trust-card,
.feature-card,
.timeline-card,
.about-panel,
.process-card,
.metric-card {
  border-radius: 24px;
  padding: 22px;
}

.highlight-card strong,
.about-item strong,
.trust-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.hero-stage {
  position: relative;
  min-height: 640px;
}

.hero-orb {
  position: absolute;
  inset: 10% 10% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(67, 212, 255, 0.18), rgba(67, 212, 255, 0) 68%);
  filter: blur(12px);
}

.hero-dashboard {
  position: relative;
  z-index: 1;
  min-height: 100%;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    var(--surface-strong);
  padding: 28px;
  overflow: hidden;
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(67, 212, 255, 0.18), transparent 70%);
}

.dashboard-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.dashboard-pill {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-pill-live {
  color: var(--success);
  background: rgba(70, 219, 164, 0.12);
  border: 1px solid rgba(70, 219, 164, 0.24);
}

.dashboard-label {
  color: var(--text-soft);
  font-size: 14px;
}

.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: start;
}

.dashboard-core {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(145, 187, 238, 0.18);
}

.core-ring-a {
  width: 340px;
  height: 340px;
}

.core-ring-b {
  width: 250px;
  height: 250px;
}

.core-panel {
  position: relative;
  z-index: 1;
  width: min(86%, 290px);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(12, 24, 39, 0.92);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .core-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(244, 248, 252, 0.96);
}

.core-header {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.core-header span,
.core-footer,
.metric-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-stack {
  display: grid;
  gap: 10px;
}

.server-stack-bar {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(145, 187, 238, 0.14);
  background:
    linear-gradient(90deg, rgba(67, 212, 255, 0.12), rgba(20, 98, 255, 0.22)),
    rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.server-stack-bar::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67, 212, 255, 0.16), rgba(67, 212, 255, 0.72));
}

.core-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-side {
  display: grid;
  gap: 14px;
}

.metric-card {
  position: relative;
  min-height: 124px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.floating-summary {
  position: absolute;
  z-index: 2;
  width: 180px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(16, 27, 44, 0.88);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .floating-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.94);
}

.floating-summary-a {
  left: -22px;
  bottom: 110px;
}

.floating-summary-b {
  right: -8px;
  bottom: 26px;
}

.floating-summary strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.summary-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.summary-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--brand-soft));
}

.floating-summary small {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
}

.trust-strip {
  padding: 0 0 24px;
}

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

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.section-head h2 {
  max-width: 14ch;
}

.section-head p {
  max-width: 48rem;
}

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

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
}

.feature-card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(67, 212, 255, 0.12), transparent 68%);
}

.feature-card-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, rgba(20, 98, 255, 0.18), rgba(67, 212, 255, 0.08)),
    var(--surface);
}

.feature-topline {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
  max-width: 13ch;
}

.feature-card ul,
.process-card ol {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.72;
}

.architecture-grid {
  display: grid;
  gap: 0;
}

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

.timeline-card {
  position: relative;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(209, 178, 120, 0.24);
  background: rgba(209, 178, 120, 0.08);
}

.timeline-card h3 {
  margin-bottom: 10px;
}

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

.about-grid-rich {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

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

.about-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.register-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: start;
}

.register-intro {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 108px;
}

.process-card strong,
.form-card-head strong {
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
}

.form-card {
  border-radius: 30px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--surface-strong);
}

.form-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-card-head span {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field select {
  background: rgba(15, 23, 42, 0.03);
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 98, 255, 0.12);
}

.field small {
  min-height: 18px;
  font-size: 12px;
}

.field small.has-error {
  color: var(--error);
}

.button-block {
  width: 100%;
}

.form-actions-stacked {
  flex-direction: column;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.verification-step {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.verification-step.is-hidden {
  display: none;
}

.verification-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.verification-head p {
  margin: 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .hero-grid,
  .register-shell,
  .about-grid-rich,
  .dashboard-main,
  .feature-grid-rich,
  .timeline-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .register-shell,
  .about-grid-rich {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
  }

  .register-intro {
    position: static;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100vw - 24px, 1240px);
  }

  .section {
    padding: 72px 0;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .nav a,
  .theme-toggle {
    padding-inline: 14px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .hero-highlights,
  .trust-grid,
  .feature-grid-rich,
  .timeline-grid,
  .about-grid-rich,
  .form-grid,
  .verification-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: clamp(34px, 10vw, 46px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-dashboard {
    padding: 18px;
    border-radius: 24px;
  }

  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-core {
    min-height: 320px;
  }

  .core-ring-a {
    width: 240px;
    height: 240px;
  }

  .core-ring-b {
    width: 180px;
    height: 180px;
  }

  .core-panel {
    width: min(92%, 250px);
    padding: 18px;
  }

  .floating-summary {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .highlight-card,
  .trust-card,
  .feature-card,
  .timeline-card,
  .about-panel,
  .process-card,
  .metric-card,
  .form-card {
    border-radius: 22px;
  }

  .feature-card,
  .timeline-card,
  .about-panel,
  .process-card,
  .form-card {
    padding: 20px;
  }

  .feature-card {
    min-height: auto;
  }

  .field-wide {
    grid-column: auto;
  }

  .button,
  .theme-toggle,
  .nav a {
    min-height: 48px;
  }
}
