:root{--bg:#07101f;--card:#0f1a2d;--text:#edf5ff;--muted:#9aabc3;--accent:#00d4ff;--line:rgba(255,255,255,.08);--max:1100px;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#041027,#081025);color:var(--text);line-height:1.7}a{color:#72e9ff;text-decoration:none}a:hover{text-decoration:underline}.container{width:min(var(--max),calc(100% - 32px));margin:auto}.narrow{max-width:820px}.site-header{position:sticky;top:0;z-index:20;background:rgba(4,16,39,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.nav{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px}.nav nav{display:flex;gap:20px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--text);font-size:18px}.logo{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#7af0ff);color:#022;font-weight:900}.hero,.page-hero{padding:90px 0 70px;background:radial-gradient(circle at 80% 20%,rgba(0,212,255,.12),transparent 40%)}.hero-grid{display:grid;grid-template-columns:1.5fr .7fr;gap:40px;align-items:center}h1{font-size:clamp(38px,6vw,66px);line-height:1.08;margin:8px 0 22px}h2{font-size:clamp(28px,4vw,40px);line-height:1.2;margin:0 0 18px}h3{font-size:21px;margin:0 0 8px}.lead{font-size:20px;color:#c8d5e8;max-width:760px}.eyebrow{color:var(--accent);font-weight:800;letter-spacing:.12em;font-size:12px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.button{display:inline-block;border:0;border-radius:10px;padding:12px 18px;background:linear-gradient(90deg,var(--accent),#7af0ff);color:#022;font-weight:800;cursor:pointer}.button.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}.feature-list{display:flex;gap:9px;flex-wrap:wrap}.feature-list span{background:rgba(255,255,255,.05);border:1px solid var(--line);padding:7px 10px;border-radius:999px;color:var(--muted);font-size:13px}.card{background:linear-gradient(180deg,var(--card),rgba(10,18,32,.75));border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 12px 35px rgba(0,0,0,.18)}.beta-card{padding:28px}.big-number{font-size:48px;font-weight:900}.muted{color:var(--muted)}.small{font-size:13px}.progress{height:8px;background:rgba(255,255,255,.06);border-radius:10px;overflow:hidden;margin:16px 0}.progress span{display:block;width:52%;height:100%;background:linear-gradient(90deg,var(--accent),#7af0ff)}.section{padding:75px 0}.alt{background:rgba(255,255,255,.025)}.section-heading{max-width:760px;margin-bottom:30px}.cards{display:grid;gap:18px}.cards.three{grid-template-columns:repeat(3,1fr)}.cards.two{grid-template-columns:repeat(2,1fr)}.content{max-width:820px}.content h2{margin-top:42px}.content h2:first-child{margin-top:0}.content li{margin:8px 0}.signup-card{text-align:center}.signup-card form{display:flex;gap:10px;margin:22px 0}.signup-card input{flex:1;min-width:0;padding:14px;border-radius:10px;border:1px solid var(--line);background:#091426;color:var(--text);font:inherit}.message{min-height:24px}.disclaimer{padding-top:35px}.site-footer{border-top:1px solid var(--line);padding:35px 0;background:#050d19}.footer-grid{display:flex;justify-content:space-between;gap:25px}.footer-grid>div:last-child{display:flex;gap:18px;flex-wrap:wrap}.copyright{margin-top:25px;color:var(--muted);font-size:13px}.content details{border-bottom:1px solid var(--line);padding:16px 0}.content summary{cursor:pointer;font-weight:700}@media(max-width:850px){.hero-grid,.cards.three,.cards.two{grid-template-columns:1fr}.nav{align-items:flex-start;padding:12px 0;flex-direction:column}.nav nav{gap:12px}.hero,.page-hero{padding:65px 0 45px}.section{padding:55px 0}}@media(max-width:560px){.container{width:min(var(--max),calc(100% - 22px))}.signup-card form{flex-direction:column}.button{width:100%;text-align:center}.footer-grid{flex-direction:column}}


/* =========================================================
   VillageTrader Theme System
   - Dark mode: default
   - Light mode: html[data-theme="light"]
   ========================================================= */
:root {
  color-scheme: dark;
  --vt-bg: #07111f;
  --vt-bg-soft: #0d1a2b;
  --vt-surface: #101f33;
  --vt-surface-2: #14263d;
  --vt-border: rgba(148, 163, 184, 0.18);
  --vt-text: #f4f7fb;
  --vt-text-muted: #aab7c8;
  --vt-accent: #38bdf8;
  --vt-accent-2: #22c55e;
  --vt-header-bg: rgba(7, 17, 31, 0.88);
  --vt-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  color-scheme: light;
  --vt-bg: #f7f9fc;
  --vt-bg-soft: #eef3f8;
  --vt-surface: #ffffff;
  --vt-surface-2: #f4f7fb;
  --vt-border: rgba(15, 23, 42, 0.12);
  --vt-text: #142033;
  --vt-text-muted: #536174;
  --vt-accent: #0284c7;
  --vt-accent-2: #16a34a;
  --vt-header-bg: rgba(255, 255, 255, 0.90);
  --vt-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

/* Apply variables to common existing components. */
html, body {
  background: var(--vt-bg);
  color: var(--vt-text);
}

body {
  transition: background-color .25s ease, color .25s ease;
}

.site-header,
header {
  background: var(--vt-header-bg);
  border-color: var(--vt-border);
}

.card,
.feature-card,
.faq-item,
.form-card,
.panel,
.stat-card,
section[class*="card"] {
  background: var(--vt-surface);
  border-color: var(--vt-border);
  box-shadow: var(--vt-shadow);
}

p,
.muted,
.text-muted,
.subtitle,
.description {
  color: var(--vt-text-muted);
}

a {
  color: var(--vt-accent);
}

input,
textarea,
select {
  background: var(--vt-surface);
  color: var(--vt-text);
  border-color: var(--vt-border);
}

input::placeholder,
textarea::placeholder {
  color: var(--vt-text-muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 44px;
  height: 42px;
  padding: 0 .8rem;
  border: 1px solid var(--vt-border);
  border-radius: 999px;
  background: var(--vt-surface);
  color: var(--vt-text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--vt-accent);
}

.theme-toggle .theme-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.theme-toggle .theme-label {
  font-size: .85rem;
}

.mobile-menu-button {
  display: none;
}

/* Accessible focus states */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vt-accent) 55%, transparent);
  outline-offset: 3px;
}

/* Responsive navigation */
@media (max-width: 820px) {
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--vt-border);
    border-radius: 10px;
    background: var(--vt-surface);
    color: var(--vt-text);
    font-size: 1.25rem;
    cursor: pointer;
  }

  .theme-toggle .theme-label {
    display: none;
  }

  nav[data-mobile-nav] {
    display: none;
    width: 100%;
  }

  nav[data-mobile-nav].is-open {
    display: block;
  }

  nav[data-mobile-nav] ul {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem 0 0;
  }

  nav[data-mobile-nav] a {
    display: block;
    padding: .75rem .5rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .site-header .container,
  header .container {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  .hero,
  section {
    padding-left: 0;
    padding-right: 0;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
