:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-mid: #0b0f1a;
  --panel: #10141f;
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f4f0ea;
  --text-secondary: #b8b8c4;
  --muted: #8f95a6;
  --gold: #e6b24a;
  --gold-light: #ffd76a;
  --gold-dark: #c58a28;
  --focus: #ffd76a;
  --danger: #ff8a8a;
  --danger-bg: rgba(255, 122, 122, 0.12);
  --success: #7fd9a0;
  --success-bg: rgba(112, 214, 147, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-mid), var(--bg) 70%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--gold);
  color: #17130a;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.brand span {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
  color: var(--gold-light);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #e5b13c, #ffd95f, #c58a28);
  color: #1a1404;
  border: 1px solid var(--gold-light);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 72px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #04060c;
}

.hero-bg video,
.hero-bg .hero-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.5) saturate(1.15);
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 84% 58%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 33% 74%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 54% 42%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 92% 30%, rgba(255, 255, 255, 0.35), transparent);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(230, 178, 74, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.3) 0%, rgba(4, 6, 12, 0.62) 55%, var(--bg) 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow.glow-a {
  width: 440px;
  height: 440px;
  top: -140px;
  left: 6%;
  background: var(--gold);
  opacity: 0.22;
}

.hero-glow.glow-b {
  width: 320px;
  height: 320px;
  top: 45%;
  right: 4%;
  background: #6a7cff;
  opacity: 0.12;
}

@media (max-width: 720px) {
  .hero-bg video {
    display: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--text);
}

.hero h1 .accent {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: clamp(26px, 4.6vw, 46px);
  margin-top: 6px;
}

.hero p.lede {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 2.4vw, 19px);
}

.hero p.lede .highlight {
  color: var(--gold-light);
  font-weight: 700;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-note {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Sections */
section.block {
  padding: 40px 0;
  border-top: 1px solid var(--panel-border);
}

section.block h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
}

section.block > .wrap > p.section-lede {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-card,
.faq-item,
.trust-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.step-card .step-num {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 20px;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.trust-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.trust-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.site-footer .trust-line {
  margin-top: 14px;
  color: var(--text-secondary);
}

/* Auth pages */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
}

.auth-card .brand {
  justify-content: center;
  margin-bottom: 18px;
}

.auth-card h1 {
  text-align: center;
  font-size: clamp(28px, 5vw, 36px);
  margin: 0 0 22px;
  font-weight: 900;
}

form .field {
  margin-bottom: 16px;
}

form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

form .hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

form input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

.field-error:not(:empty) {
  display: block;
}

.form-status {
  display: none;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  font-size: 14px;
}

.form-status.error {
  display: block;
  border-color: rgba(255, 122, 122, 0.45);
  background: var(--danger-bg);
  color: var(--text);
}

.form-status.success {
  display: block;
  border-color: rgba(112, 214, 147, 0.45);
  background: var(--success-bg);
  color: var(--text);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 20px 0;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--panel-border);
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-buttons .btn img {
  width: 18px;
  height: 18px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.password-rules {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 16px;
  padding-left: 18px;
}

.consent-line {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 18px;
}

/* Legal / content pages */
.legal-shell {
  padding: 20px 0 60px;
}

.legal-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 5vw, 40px);
  max-width: 880px;
  margin: 0 auto;
}

.legal-panel h1 {
  font-size: clamp(32px, 6vw, 46px);
  margin: 0 0 8px;
}

.legal-panel .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-summary {
  background: rgba(230, 178, 74, 0.08);
  border: 1px solid rgba(230, 178, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 15px;
}

.legal-panel h2 {
  font-size: 19px;
  margin: 30px 0 10px;
}

.legal-panel p,
.legal-panel li {
  color: rgba(244, 240, 234, 0.86);
  font-size: 16px;
  line-height: 1.72;
}

.legal-panel ul {
  padding-left: 22px;
}

.contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.contact-option .title {
  font-weight: 800;
  font-size: 16px;
}

.contact-option .subtitle {
  color: var(--muted);
  font-size: 14px;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-header nav {
    gap: 6px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .brand span {
    letter-spacing: 0.1em;
    font-size: 13px;
  }
}
