:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --card: rgba(15, 23, 42, 0.82);
  --card-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --accent: #f59e0b;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, #070b16 0%, var(--bg) 42%, #08111f 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.35);
  font-size: 22px;
}
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 22px; color: #cbd5e1; font-size: 15px; }
.nav a { transition: color .2s ease, transform .2s ease; }
.nav a:hover { color: white; transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: transparent; border: 0; color: #cbd5e1; font-size: 24px; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: white;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.24); }
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand), #8b5cf6 52%, var(--brand-2));
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.32);
}
.btn-primary:hover { box-shadow: 0 22px 46px rgba(34, 211, 238, 0.24); }
.btn-light { background: white; color: #0f172a; border-color: white; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto;
  height: 420px;
  background: radial-gradient(circle, rgba(99,102,241,0.22), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
  font-weight: 700;
  font-size: 13px;
}
.hero h1 { margin: 22px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: .96; letter-spacing: -0.06em; }
.hero h1 span { color: transparent; background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.lead { margin: 0; color: #cbd5e1; font-size: 18px; line-height: 1.75; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.68));
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hero-panel-head strong { font-size: 18px; }
.status { color: var(--success); font-weight: 800; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric {
  min-height: 118px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.34);
  padding: 18px;
}
.metric b { display: block; font-size: 28px; letter-spacing: -0.04em; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.section { padding: 72px 0; }
.section-tight { padding-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-kicker { color: #93c5fd; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.section h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.05em; line-height: 1.05; }
.section-sub { margin: 12px 0 0; color: var(--muted); max-width: 760px; line-height: 1.7; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15,23,42,.62);
  width: fit-content;
  max-width: 100%;
}
.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.filter-btn:hover { color: white; transform: translateY(-1px); }
.filter-btn.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,.18);
  background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(15,23,42,.76));
  box-shadow: 0 18px 50px rgba(2,6,23,.28);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.plan-card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,.42); box-shadow: 0 26px 70px rgba(2,6,23,.42); }
.plan-card.featured { border-color: rgba(245, 158, 11, .55); box-shadow: 0 24px 70px rgba(245, 158, 11, .12); }
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(245,158,11,.16);
  border: 1px solid rgba(245,158,11,.38);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.plan-top { padding: 24px 24px 18px; border-bottom: 1px solid rgba(148,163,184,.14); }
.plan-chip { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.24); color: #a5f3fc; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.plan-name { margin: 16px 0 6px; font-size: 24px; letter-spacing: -0.04em; }
.plan-desc { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; min-height: 44px; }
.plan-price { padding: 20px 24px 8px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 34px; font-weight: 900; letter-spacing: -0.05em; }
.price-suffix { color: var(--muted); font-weight: 700; }
.price-note { margin-top: 8px; color: #cbd5e1; font-size: 13px; line-height: 1.55; }
.price-note strong { color: #fde68a; }
.plan-features { list-style: none; padding: 12px 24px 24px; margin: 0; display: grid; gap: 12px; color: #dbeafe; font-size: 14px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 900; flex: none; }
.plan-actions { margin-top: auto; padding: 0 24px 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.plan-actions .btn { flex: 1 1 150px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  border: 1px solid var(--line);
  background: rgba(15,23,42,.68);
  border-radius: 24px;
  padding: 22px;
  min-height: 190px;
}
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.24); font-size: 22px; }
.feature-card h3 { margin: 18px 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.compare-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15,23,42,.72);
  box-shadow: var(--shadow);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid rgba(148,163,184,.12); text-align: left; vertical-align: top; }
.compare-table th { color: #bfdbfe; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; background: rgba(30,41,59,.52); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td { color: #dbeafe; font-size: 14px; line-height: 1.55; }
.compare-table .muted { color: var(--muted); }
.compare-table .price-cell { font-weight: 900; color: white; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step-card { position: relative; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(15,23,42,.68); overflow: hidden; }
.step-card::before { counter-increment: step; content: "0" counter(step); display: block; color: rgba(147,197,253,.28); font-size: 54px; font-weight: 900; letter-spacing: -0.08em; line-height: 1; margin-bottom: 20px; }
.step-card h3 { margin: 0 0 10px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 20px; background: rgba(15,23,42,.68); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: #93c5fd; font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.7; }

.cta-band {
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(99,102,241,.96), rgba(34,211,238,.86));
  box-shadow: 0 28px 80px rgba(34,211,238,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.05em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.84); line-height: 1.65; max-width: 680px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-grid p { margin: 8px 0 0; line-height: 1.6; max-width: 720px; font-size: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { padding-top: 58px; }
  .hero-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .steps { grid-template-columns: 1fr; }
  .nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7,11,22,.96);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { padding: 13px 14px; border-radius: 14px; }
  .nav a:hover, .nav .btn:hover { background: rgba(255,255,255,.05); transform: none; }
  .nav .btn { margin-left: 0; justify-content: flex-start; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding: 42px 0 44px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .metric-grid, .plan-grid, .feature-grid { grid-template-columns: 1fr; }
  .filter-bar { border-radius: 24px; width: 100%; }
  .filter-btn { flex: 1 1 calc(50% - 10px); }
  .cta-band { display: block; padding: 26px; }
  .cta-band .btn { width: 100%; margin-top: 20px; }
  .section { padding: 52px 0; }
}

.hidden { display: none !important; }

/* Language switcher (scanq.site style) */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.lang-btn:hover { border-color: rgba(99,102,241,0.5); background: rgba(15, 23, 42, 0.85); }
.lang-btn svg { margin-left: 2px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 170px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148,163,184,0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(2,6,23,0.5);
  overflow: hidden; z-index: 100;
}
.lang-menu.hidden { display: none; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 14px;
  background: transparent; border: 0; color: #e2e8f0;
  font-size: 14px; text-align: left; cursor: pointer;
  transition: background .15s ease;
}
.lang-opt:hover { background: rgba(99,102,241,0.18); }

/* Auth button in header */
.nav-auth {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e2e8f0; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.nav-auth:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.24); }
.nav-auth img { width: 22px; height: 22px; border-radius: 50%; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.95);
  backdrop-filter: blur(14px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: 12px;
  color: #cbd5e1; font-size: 16px; font-weight: 600;
  transition: background .15s ease;
}
.mobile-menu a:hover { background: rgba(99,102,241,0.12); color: white; }
.mobile-menu .btn { margin: 8px 0; text-align: center; }
.mobile-lang {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line);
}
.lang-opt-mobile {
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0; font-size: 18px; cursor: pointer;
  transition: background .15s ease;
}
.lang-opt-mobile:hover { background: rgba(99,102,241,0.18); }

@media (max-width: 900px) {
  .header-actions { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; }
}
