:root {
  --bg: #080709;
  --bg-glow: #1a0a0e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-elevated: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #f11221;
  --accent-dark: #c20d1a;
  --text: #f5f7fa;
  --text-muted: #aeb7c2;
  --cyan: #3ccbff;
  --green: #40d98a;
  --max: 1120px;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 55% -15%, var(--bg-glow) 0%, var(--bg) 65%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.nav-links {
  display: none;
  gap: 28px;
  margin-left: auto;
  margin-right: 20px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 20px;
  font-size: 0.98rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #ff2a36, var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(241, 18, 33, 0.28);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding: 48px 0 24px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-top: 56px;
  }
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 18, 33, 0.35);
  background: rgba(241, 18, 33, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero .lead {
  margin: 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.hero-stats span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* Glass panels */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.glass-elevated {
  background: linear-gradient(145deg, var(--surface-elevated), rgba(241, 18, 33, 0.05));
  border-color: rgba(241, 18, 33, 0.22);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(60, 203, 255, 0.14);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
}

.preview h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.preview p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.preview hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0 14px;
}

.preview-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.88rem;
}

.preview-row .mark {
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 44px 0 12px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.section .sub {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.steps {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step-num {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.trust-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.trust-list {
  display: grid;
  gap: 10px;
}

.trust-list div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.cta-band {
  margin: 40px 0 24px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(135deg, #ff2a36, var(--accent-dark));
  box-shadow: 0 16px 40px rgba(241, 18, 33, 0.25);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 1.65rem);
}

.cta-band p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band .btn {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: none;
}

.footer {
  padding: 20px 0 36px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.footer small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Flutter app shell (hidden until opened) */
#flutter-shell {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
}

#flutter-shell.active { display: block; }

#flutter-loading {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 38%, var(--bg-glow) 0%, var(--bg) 70%);
  z-index: 10001;
}

#flutter-loading.active { display: flex; }

#flutter-loading img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(241, 18, 33, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Legal pages */
.legal-page main {
  padding: 28px 0 56px;
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-prose {
  max-width: 720px;
}

.legal-prose h2 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-prose ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.legal-prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.legal-prose a:hover {
  color: #fff;
}
