:root {
  --bg: #08090c;
  --bg-elevated: #0f1116;
  --bg-card: #14161d;
  --border: #23262f;
  --text-primary: #f4f5f7;
  --text-secondary: #a7abb8;
  --text-tertiary: #6b6f7d;
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.12);
  --accent-gradient: linear-gradient(135deg, #7c6cff 0%, #4d8dff 100%);
  --success: #34d399;
  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.nav-links a {
  display: inline-block;
  white-space: nowrap;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.92; }
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

/* --- Hero --- */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 19px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 {
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-logo { font-size: 15px; }
  .nav .btn-primary, .nav .btn-secondary { padding: 9px 14px; font-size: 13px; }
  .nav-actions { gap: 6px; }
}
@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 18px;
}
.card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* --- Flow --- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-width: 140px;
}
.flow-arrow {
  color: var(--text-tertiary);
  font-size: 18px;
}
@media (max-width: 720px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

/* --- Trust badges --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  margin-top: 8px;
  flex-shrink: 0;
}
.trust-item h4 { margin: 0 0 6px; font-size: 15.5px; }
.trust-item p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* --- CTA band --- */
.cta-band {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: 30px; margin: 0 0 14px; }
.cta-band p { color: var(--text-secondary); margin: 0 0 32px; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-note {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 24px;
}

/* --- Legal pages --- */
.legal {
  padding: 70px 0 100px;
  max-width: 780px;
  margin: 0 auto;
}
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { color: var(--text-tertiary); font-size: 13.5px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; margin-top: 44px; margin-bottom: 12px; }
.legal h3 { font-size: 16.5px; margin-top: 26px; margin-bottom: 8px; color: var(--text-primary); }
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; }
.legal ul { padding-inline-start: 20px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

/* --- Contact --- */
.contact-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0 100px;
}
.contact-card .card { text-align: start; margin-top: 32px; }
.contact-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.contact-row:last-child { border-bottom: none; }
.contact-row span:first-child { color: var(--text-tertiary); }

/* --- Auth (Login) --- */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 70px 0 110px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.auth-card h1 { font-size: 26px; margin: 0 0 8px; text-align: center; }
.auth-sub { color: var(--text-secondary); font-size: 14.5px; text-align: center; margin: 0 0 32px; }
.auth-form { display: flex; flex-direction: column; }
.field-label { font-size: 13px; color: var(--text-secondary); margin: 14px 0 6px; }
.field-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}
.field-input:focus { border-color: var(--accent); }
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 16px 0 22px;
}
.checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-link { color: var(--accent); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-submit { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15px; }
.auth-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}
.auth-footer { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 26px; }
.auth-footer a { color: var(--accent); text-decoration: underline; }
@media (max-width: 480px) {
  .auth-card { padding: 32px 22px; }
}
