:root {
  --bg: #0B1120;
  --surface: #131B2E;
  --surface-2: #1B2540;
  --border: #24304D;
  --text: #EDEFF4;
  --text-muted: #8891A6;
  --gold: #E8A33D;
  --up: #3FB68B;
  --down: #E15554;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Ticker (signature element) ---------- */
.ticker-wrap {
  background: #05070D;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}

.ticker {
  display: inline-flex;
  gap: 40px;
  animation: scroll-ticker 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.tk { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.tk b { font-style: normal; }
.tk.up b { color: var(--up); }
.tk.down b { color: var(--down); }

@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
}

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand.small { font-size: 15px; }

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(45deg);
}

.brand-thin { font-weight: 400; color: var(--text-muted); margin-left: 2px; }

.beta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-tutorial-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-tutorial-link:hover { color: var(--text); }

.nav-dashboard-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--bg);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.nav-dashboard-btn:hover { background: #f0ad4c; }

.lang-switcher { position: relative; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--gold); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
  z-index: 20;
}
.lang-menu.open { display: block; }

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13.5px;
  padding: 10px 14px;
  cursor: pointer;
}
.lang-menu button:hover { background: rgba(232, 163, 61, 0.1); color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 24px 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, rgba(232, 163, 61, 0.10), transparent),
    radial-gradient(ellipse 700px 500px at 5% 20%, rgba(63, 182, 139, 0.07), transparent);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1A1204;
}
.btn-primary:hover { transform: translateY(-1px); background: #f0ad4c; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--gold);
}

.stat-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 140px;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 84px 24px;
}

.section.alt {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}

.section-lead {
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* Steps (real sequence -> numbered) */
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.steps li {
  border-top: 2px solid var(--border);
  padding-top: 18px;
}

.step-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 13px;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 10px 0 8px;
}

.steps p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* Platforms */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.platform-icon { font-size: 30px; margin-bottom: 12px; }

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 8px;
}

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

/* Security grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.security-item {
  background: var(--bg);
  padding: 28px;
}

.security-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--up);
}

.security-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* Beta */
.beta-section { text-align: center; }
.beta-section .section-lead { margin-bottom: 32px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 30px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }

.disclaimer {
  max-width: 1080px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 56px; }
}
