* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a28;
  --border: #252535;
  --text: #e8e8ed;
  --muted: #8888a0;
  --accent: #5B9BD5;
  --accent-glow: rgba(91,155,213,0.15);
  --green: #2ecc71;
  --amber: #f0c040;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo {
  font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
  text-decoration: none; color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff; padding: 8px 18px;
  border-radius: 6px; font-weight: 600;
}
.nav-links .nav-cta:hover { background: #4a8bc4; color: #fff; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 6px 12px; border-radius: 6px;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.lang-switch-btn:hover { color: var(--text); border-color: var(--accent); }
.lang-switch-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; min-width: 140px; overflow: hidden; z-index: 200;
}
.lang-switch-menu.open { display: block; }
.lang-switch-menu a {
  display: block; padding: 8px 16px; font-size: 13px;
  color: var(--muted); text-decoration: none; transition: all 0.15s;
}
.lang-switch-menu a:hover { background: var(--surface2); color: var(--text); }
.lang-switch-menu a.active { color: var(--accent); font-weight: 600; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,15,0.5), rgba(10,10,15,0.7));
  z-index: 1;
}
.hero > *:not(video) { position: relative; z-index: 2; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; color: #fff; font-weight: 600;
  backdrop-filter: blur(8px);
}
.badge-blue { background: rgba(91,155,213,0.25); border: 1px solid rgba(91,155,213,0.4); }
.badge-green { background: rgba(46,204,113,0.2); border: 1px solid rgba(46,204,113,0.35); }
h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800; letter-spacing: -2px;
  line-height: 1.08; margin-bottom: 20px;
  max-width: 780px;
}
h1 .highlight { color: var(--accent); }
.subtitle {
  font-size: 18px; color: var(--muted);
  max-width: 520px; margin-bottom: 40px;
}
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a8bc4; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(255,255,255,0.12); }

/* Install tabs */
.install-section { margin-top: 56px; max-width: 640px; width: 100%; }
.install-tabs { display: flex; gap: 0; margin-bottom: -1px; position: relative; z-index: 1; }
.install-tab {
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  background: transparent; border: 1px solid transparent;
  border-bottom: none; border-radius: 8px 8px 0 0;
  color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.install-tab.active {
  background: var(--surface); border-color: var(--border);
  color: var(--accent);
}
.install-tab:not(.active):hover { color: var(--text); }
.install-panel {
  display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px; padding: 20px 24px;
  text-align: left; position: relative;
}
.install-panel.active { display: block; }
.install-panel code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px; color: var(--accent); white-space: pre-wrap; word-break: break-all;
}
.copy-btn {
  position: absolute; top: 14px; right: 14px;
  background: var(--border); border: none; color: var(--muted);
  padding: 6px 10px; border-radius: 4px; font-size: 12px; cursor: pointer;
  transition: color 0.2s;
}
.copy-btn:hover { color: var(--text); }

/* Section shared */
.section { padding: 100px 24px; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px;
}
.section-header p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto; }

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(91,155,213,0.3);
  box-shadow: 0 0 24px var(--accent-glow);
}
.feature-icon { margin-bottom: 14px; }
.feature-icon svg {
  width: 28px; height: 28px; stroke: var(--accent);
  stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.feature-card .tag {
  display: inline-block; margin-top: 12px;
  padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
}
.tag-new { background: rgba(46,204,113,0.15); color: var(--green); }

/* How it works */
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; counter-reset: step;
}
.how-step { text-align: center; }
.how-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-glow); border: 2px solid var(--accent);
  font-size: 20px; font-weight: 700; color: var(--accent);
  margin-bottom: 16px;
}
.how-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.how-step p { font-size: 14px; color: var(--muted); }

/* Languages */
.lang-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 600px; margin: 0 auto;
}
.lang-pill {
  padding: 8px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}

/* Compliance */
.compliance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 640px) { .compliance-grid { grid-template-columns: 1fr; } }
.compliance-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.compliance-card h3 {
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.compliance-card h3 .check { color: var(--green); font-size: 18px; }
.compliance-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.compliance-card code {
  font-size: 12px; color: var(--accent);
  background: rgba(91,155,213,0.1); padding: 1px 5px; border-radius: 3px;
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price-card:hover { box-shadow: 0 0 24px var(--accent-glow); }
.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
}
.price-card .popular-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: 1px; margin-bottom: 8px;
}
.price-card .plan-name { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.price-card .plan-price { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.price-card .plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-card .plan-features { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price-card .plan-features li {
  padding: 6px 0; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.price-card .plan-features li::before {
  content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0;
}
.price-card .plan-btn {
  display: block; text-align: center; padding: 12px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s;
}
.plan-btn.primary { background: var(--accent); color: #fff; }
.plan-btn.primary:hover { background: #4a8bc4; transform: translateY(-1px); }
.plan-btn.secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.plan-btn.secondary:hover { border-color: var(--accent); }

/* CTA banner */
.cta-banner {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--accent-glow));
}
.cta-banner h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; font-size: 16px; }

/* Footer */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .lang-switch-btn { display: none; }
  .hero { padding: 120px 16px 60px; }
  .install-panel { padding: 16px; }
  .install-panel code { font-size: 11px; }
  .how-grid { gap: 24px; }
}
