:root {
  /* Dracula-inspired palette (IntelliJ-like background, indigo→purple brand) */
  --bg: #282A36;
  --surface: #343746;
  --surface2: #44475A;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --muted: #8892A4;
  --muted-soft: rgba(136,146,164,0.7);
  --white: #F8F8F2; /* Dracula foreground */
  --indigo: #6366F1;
  --purple: #8B5CF6;
  --pink: #EC4899;
  --indigo-soft: rgba(99,102,241,0.12);
  --indigo-border: rgba(99,102,241,0.3);
  --tier-s: #FF5252;
  --tier-a: #FF9800;
  --tier-b: #FFC107;
  --tier-c: #4CAF50;
  --tier-d: #2196F3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── Static landing container ──────────────────────────────────────────── */
#static-landing {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background: var(--bg);
  transition: opacity 350ms ease-out;
}
#static-landing.hidden { display: none; }

/* ── Background orbs ───────────────────────────────────────────────────── */
.orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.9; animation: orbDrift 14s ease-in-out infinite; }
.orb-1 {
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  top: -25%; left: 25%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 65%);
}
.orb-2 {
  width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  top: 40%; left: 60%;
  background: radial-gradient(circle, rgba(139,92,246,0.13) 0%, transparent 65%);
  animation-delay: -5s;
}
.orb-3 {
  width: 40vw; height: 40vw; max-width: 550px; max-height: 550px;
  top: 30%; left: -10%;
  background: radial-gradient(circle, rgba(33,150,243,0.10) 0%, transparent 65%);
  animation-delay: -9s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.content { position: relative; z-index: 1; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  height: 64px;
  padding: 0 48px;
  background: rgba(40,42,54,0.8); /* var(--bg) at 0.8 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-weight: 800; font-size: 17px;
  background: linear-gradient(90deg, var(--indigo), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 24px 48px 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-border);
  border-radius: 100px;
  color: #A5B4FC;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--indigo);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hero h1 {
  margin: 28px 0 0;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--indigo), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: block;
}
.hero-subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.hero-desc {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 36px;
}
.hero-social {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted-soft);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 150ms ease;
  user-select: none;
  white-space: nowrap;
}
.btn-gradient {
  padding: 10px 20px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: white;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.btn-gradient.large { padding: 16px 32px; font-size: 15.5px; }
.btn-gradient:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(99,102,241,0.5); }
.btn-text {
  padding: 10px 14px; background: transparent; color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500; border-radius: 8px;
}
.btn-text:hover { color: white; background: rgba(255,255,255,0.04); }
.btn-outline {
  padding: 16px 32px; border-radius: 100px;
  background: transparent; border: 1px solid rgba(255,255,255,0.16);
  color: white; font-size: 15.5px; font-weight: 600;
}
.btn-outline:hover { background: rgba(255,255,255,0.07); }
.btn-arrow { font-size: 1.1em; line-height: 1; }

/* Disabled (loading) state — buttons appear normal but indicate loading */
.btn[disabled] { cursor: wait; opacity: 0.78; }
.btn[disabled]:hover { transform: none; box-shadow: 0 0 20px rgba(99,102,241,0.3); }
.btn-gradient[disabled]::after,
.btn-outline[disabled]::after,
.btn-text[disabled]::after {
  content: ''; width: 12px; height: 12px; margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mockup ────────────────────────────────────────────────────────────── */
.mockup-wrap {
  padding: 56px 64px 0;
  max-width: 928px;
  margin: 0 auto;
  position: relative;
}
.mockup-glow {
  position: absolute; left: 104px; right: 104px; top: 80px; height: 60px;
  box-shadow: 0 0 80px 10px rgba(99,102,241,0.25);
  pointer-events: none;
}
.mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.mockup-chrome {
  background: var(--surface2);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.7; }
.chrome-dot.s { background: var(--tier-s); }
.chrome-dot.b { background: var(--tier-b); }
.chrome-dot.c { background: var(--tier-c); }
.chrome-title { margin-left: 6px; color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 600; }
.tier-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); }
.tier-row:last-child { border-bottom: 0; }
.tier-label {
  width: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  padding: 14px 0;
}
.tier-accent { width: 2px; }
.tier-items {
  flex: 1; padding: 10px 12px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tier-chip {
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  font-size: 13px; font-weight: 600;
}
.tier-row.s .tier-label { color: var(--tier-s); background: rgba(255,82,82,0.15); }
.tier-row.s .tier-accent { background: rgba(255,82,82,0.6); }
.tier-row.a .tier-label { color: var(--tier-a); background: rgba(255,152,0,0.15); }
.tier-row.a .tier-accent { background: rgba(255,152,0,0.6); }
.tier-row.b .tier-label { color: var(--tier-b); background: rgba(255,193,7,0.15); }
.tier-row.b .tier-accent { background: rgba(255,193,7,0.6); }
.tier-row.c .tier-label { color: var(--tier-c); background: rgba(76,175,80,0.15); }
.tier-row.c .tier-accent { background: rgba(76,175,80,0.6); }
.tier-row.d .tier-label { color: var(--tier-d); background: rgba(33,150,243,0.15); }
.tier-row.d .tier-accent { background: rgba(33,150,243,0.6); }

/* ── Explainer ─────────────────────────────────────────────────────────── */
.explainer {
  padding: 72px 24px 0;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.explainer-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--indigo), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 6px;
}
.explainer h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 10px 0 18px;
  line-height: 1.2;
}
.explainer p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.explainer p:last-child { margin-bottom: 0; }
.explainer strong { color: var(--white); font-weight: 600; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  padding: 72px 24px 0;
  max-width: 760px;
  margin: 0 auto;
}
.faq-eyebrow {
  display: block;
  text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--indigo), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.faq h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  margin: 10px 0 28px;
  line-height: 1.2;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color 200ms ease;
}
.faq details[open] { border-color: var(--indigo-border); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 28px;
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--indigo);
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.faq em { color: var(--white); font-style: normal; font-weight: 500; }

/* ── Features ──────────────────────────────────────────────────────────── */
.features { padding: 72px 48px 0; text-align: center; }
.features-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--indigo), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.features h2 {
  margin: 10px 0 28px;
  font-size: 28px; font-weight: 900; letter-spacing: -0.8px;
  line-height: 1.2;
}
.feature-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.feature-card {
  width: 200px; text-align: left;
  background: var(--surface);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-accent { height: 2px; opacity: 0.55; }
.feature-body { padding: 14px 14px 18px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feature-title { margin: 12px 0 5px; font-size: 13px; font-weight: 800; }
.feature-desc { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }

/* per-card colors */
.fc-1 { --fc: #6366F1; }
.fc-2 { --fc: #EC4899; }
.fc-3 { --fc: #EAB308; }
.fc-4 { --fc: #22C55E; }
.fc-5 { --fc: #3B82F6; }
.fc-6 { --fc: #A855F7; }
.feature-card { border-color: color-mix(in srgb, var(--fc) 12%, transparent); }
.feature-card:hover { background: color-mix(in srgb, var(--fc) 9%, var(--surface)); box-shadow: 0 6px 20px color-mix(in srgb, var(--fc) 15%, transparent); }
.feature-accent { background: var(--fc); }
.feature-icon { background: color-mix(in srgb, var(--fc) 18%, transparent); color: var(--fc); }
.feature-title { color: var(--fc); }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta-section { padding: 96px 48px 0; }
.cta {
  max-width: 680px; margin: 0 auto;
  padding: 56px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 28px;
  text-align: center;
}
.cta h2 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.8px; }
.cta p { margin: 12px 0 32px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  margin-top: 80px;
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-mark { width: 24px; height: 24px; font-size: 13px; border-radius: 6px; }
.footer-logo .logo-text { font-size: 14px; }
.footer-copy { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--text); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(52,55,70,0.95); /* var(--surface) at 0.95 */
  border: 1px solid var(--border-strong);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast .spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--indigo); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ── Language banner ───────────────────────────────────────────────────── */
#lang-banner {
  display: none;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#lang-banner button {
  background: white; color: var(--indigo);
  border: 0; padding: 6px 12px; border-radius: 6px;
  margin-left: 10px; cursor: pointer; font-weight: 700; font-size: 13px;
  font-family: inherit;
}
#lang-banner .close {
  background: transparent; color: white; padding: 4px 10px; font-size: 18px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .navbar { padding: 0 20px; }
  .navbar .btn-text { display: none; }
  .hero { padding: 24px 24px 0; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 16px; }
  .hero-desc { font-size: 15px; }
  .mockup-wrap { padding: 56px 20px 0; }
  .mockup-glow { left: 60px; right: 60px; }
  .features { padding: 72px 24px 0; }
  .features h2 { font-size: 22px; }
  .cta-section { padding: 96px 24px 0; }
  .cta { padding: 36px; }
  .cta h2 { font-size: 24px; }
  footer { padding: 28px 24px; flex-direction: column; }
}
