:root {
  --background: #ffffff;
  --surface: #030303;
  --surface-2: #f5f5f5;
  --text-primary: #121212;
  --text-muted: #6b6b6b;
  --accent: #8fce00;
  --accent-ink: #0e1400;
  --border: #5e5e5e;
  --border-soft: #e4e4e4;
  --card-border: #262626;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --success: #1f9d4d;
  --warning: #c07d00;
  --danger: #c23454;
  --radius: 18px;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #030303;
    --surface: #1a1a1a;
    --surface-2: #141414;
    --text-primary: #f5f5f5;
    --text-muted: #9a9a9a;
    --border: #393939;
    --border-soft: #262626;
    --card-border: #2e2e2e;
    --nav-bg: rgba(3, 3, 3, 0.86);
    --accent: #bcff2f;
    --accent-ink: #121212;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: #030303;
  --surface: #1a1a1a;
  --surface-2: #141414;
  --text-primary: #f5f5f5;
  --text-muted: #9a9a9a;
  --border: #393939;
  --border-soft: #262626;
  --card-border: #2e2e2e;
  --nav-bg: rgba(3, 3, 3, 0.86);
  --accent: #bcff2f;
  --accent-ink: #121212;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

h1, h2, h3 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.shell, .container {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Header / nav (shared across all public pages) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav-link:hover { color: var(--text-primary); background: var(--border-soft); }
.language-switch { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.language-switch button {
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms var(--ease), background 150ms var(--ease), border-color 150ms var(--ease);
}
.language-switch button:hover { color: var(--text-primary); }
.language-switch button.active { background: var(--surface); border-color: var(--surface); color: #fff; }
.theme-toggle {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
@media (max-width: 760px) {
  .nav-actions .nav-link { display: none; }
}

/* ---------- Buttons ---------- */
.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), background 150ms var(--ease), border-color 150ms var(--ease);
}
.btn:hover, .button:hover { background: var(--border-soft); transform: translateY(-1px); }
.btn:active, .button:active { transform: scale(0.98); }
.btn-primary, .button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover, .button.primary:hover { opacity: 0.9; background: var(--accent); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 720px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(143, 206, 0, 0.28), rgba(143, 206, 0, 0));
  z-index: -1;
}
:root[data-theme="dark"] .hero::before {
  background: radial-gradient(closest-side, rgba(188, 255, 47, 0.32), rgba(188, 255, 47, 0));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::before {
    background: radial-gradient(closest-side, rgba(188, 255, 47, 0.32), rgba(188, 255, 47, 0));
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-size: 38px; max-width: 760px; margin: 0 auto; }
.hero h1 .accent-text { color: var(--accent); }
@media (min-width: 768px) { .hero h1 { font-size: 58px; } }
.hero-copy, .hero-sub { max-width: 560px; margin: 18px auto 0; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { margin-top: 16px; color: var(--text-muted); font-size: 12px; }

/* ---------- Console mock ---------- */
.console { margin: 44px auto 0; max-width: 820px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3); text-align: left; }
.console-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.console-dot { width: 8px; height: 8px; border-radius: 999px; background: #5e5e5e; }
.console-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid #262626; color: #ebebeb; font-size: 13px; }
.console-row:first-of-type { border-top: none; }
.console-label { color: #929292; }
.console-value { color: #ffffff; font-weight: 500; }
.console-tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag-success { background: rgba(49,189,101,.16); color: #4ade80; }
.tag-warning { background: rgba(255,177,23,.16); color: #ffb117; }
.tag-accent { background: rgba(188,255,47,.16); color: var(--accent); }

/* ---------- Section shell ---------- */
section { padding: 56px 0; }
.section-head { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.section-eyebrow { display: inline-block; color: var(--accent); background: var(--surface); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.section-head h2 { font-size: 28px; }
@media (min-width: 768px) { .section-head h2 { font-size: 36px; } }
.section-head p { color: var(--text-muted); font-size: 16px; margin-top: 12px; line-height: 1.6; }

.logo-strip { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 20px 0 0; color: var(--text-muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(143,206,0,.14); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 18px; }
.card h3 { font-family: "Inter", sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { color: #a3a3a3; font-size: 14px; line-height: 1.6; }

.stats { background: var(--surface); border-radius: var(--radius); padding: 36px 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-family: "Sora", sans-serif; font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { color: #a3a3a3; font-size: 12px; margin-top: 6px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.step-num { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; font-family: "Inter", sans-serif; }
.step p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }

.quote { max-width: 700px; margin: 0 auto; text-align: center; padding: 44px 22px; background: var(--surface-2); border-radius: var(--radius); }
.quote p { font-family: "Sora", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.35; }
.quote-author { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--surface); }
.quote-name { font-weight: 600; font-size: 14px; }
.quote-role { color: var(--text-muted); font-size: 13px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; background: none; border: none; text-align: left; font-size: 15px; font-weight: 500; color: var(--text-primary); cursor: pointer; font-family: inherit; }
.faq-icon { width: 22px; height: 22px; flex: none; border-radius: 999px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: transform 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 300ms var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { min-height: 0; overflow: hidden; margin: 0; padding: 0 2px; color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 620px; }
.faq-item.open .faq-a p { padding: 0 2px 18px; }

.cta { background: var(--surface); border-radius: var(--radius); padding: 48px 22px; text-align: center; color: #ffffff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(143,206,0,.16), transparent 60%); }
.cta h2 { font-size: 28px; position: relative; }
@media (min-width: 768px) { .cta h2 { font-size: 36px; } }
.cta p { color: #a3a3a3; margin-top: 12px; position: relative; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { position: relative; margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost-dark { border-color: #5e5e5e; color: #fff; background: transparent; }

/* ---------- Footer (shared) ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 40px 0 22px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 12px; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-primary); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-inner, .footer-bottom { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 12px; }
.footer-inner { border-top: none; padding-top: 0; }
.legal-links { display: flex; gap: 16px; }
.legal-links a:hover { color: var(--accent); }
.contact-missing { color: var(--warning); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 56px 0 28px; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.legal-meta { color: var(--text-muted); margin-top: 10px; display: block; }
.legal-layout { display: grid; grid-template-columns: minmax(0,720px) 1fr; gap: 48px; padding: 12px 0 72px; }
.legal-copy { display: grid; gap: 4px; }
.legal-section { padding: 22px 0; border-top: 1px solid var(--border-soft); }
.legal-section:first-child { border-top: none; }
.legal-section h2 { font-size: 19px; margin-bottom: 10px; }
.legal-section p { color: var(--text-muted); line-height: 1.65; }
.legal-section p + p { margin-top: 10px; }
.legal-aside { align-self: start; position: sticky; top: 96px; padding: 22px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-2); }
.legal-aside strong { display: block; margin-bottom: 8px; }
.legal-aside p { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.lang-panel[hidden] { display: none; }

@media (max-width: 800px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-aside { position: static; }
}
