/* === Design Tokens === */
:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #12141c;
  --bg-card: #171a24;
  --bg-card-hover: #1e2130;
  --bg-input: #12141c;
  --border: #252938;
  --border-hover: #3a3f52;
  --border-focus: #3b82f6;
  --text: #e4e7ef;
  --text-secondary: #8b92a8;
  --text-muted: #5a6178;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --orange: #f59e0b;
  --orange-bg: rgba(245, 158, 11, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --cyan: #06b6d4;
  --cyan-bg: rgba(6, 182, 212, 0.1);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.1);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: white; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* === Layout === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.navbar.scrolled { border-bottom-color: var(--border); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand:hover { text-decoration: none; }

.nav-logo {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

.nav-cta {
  margin-left: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}


/* === Hero === */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-lg { padding: 14px 32px; font-size: 15px; }

/* === Social proof strip === */
.proof-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.proof-value {
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
  font-size: 16px;
}

/* === Screenshot === */
.screenshot-section {
  padding: 40px 0 80px;
}

.screenshot-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px var(--accent-glow);
}

.screenshot-wrap img {
  width: 100%;
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  gap: 8px;
}

/* === Sections === */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* === Feature cards === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 20px var(--accent-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon.blue { background: var(--accent-glow); color: var(--accent); }
.feature-icon.green { background: var(--green-bg); color: var(--green); }
.feature-icon.orange { background: var(--orange-bg); color: var(--orange); }
.feature-icon.purple { background: var(--purple-bg); color: var(--purple); }
.feature-icon.cyan { background: var(--cyan-bg); color: var(--cyan); }
.feature-icon.red { background: var(--red-bg); color: var(--red); }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }

/* === Tech grid === */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: border-color 0.2s;
}

.tech-item:hover { border-color: var(--border-hover); }

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  margin-bottom: 12px;
}

.tech-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tech-item p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* === How it works === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  margin-bottom: 16px;
}

.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.step-code {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  overflow-x: auto;
  white-space: pre;
}

.step-code .cmd { color: var(--green); }

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card:hover { border-color: var(--border-hover); }

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 44px;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-updates {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 18px;
}

.pricing-devices {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 22px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li svg { flex-shrink: 0; color: var(--green); }

.pricing-btn {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: var(--font);
  text-align: center;
  text-decoration: none;
}

.pricing-btn:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
}

.pricing-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pricing-btn.primary:hover { background: var(--accent-hover); }

.pricing-notes {
  margin-top: 36px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.pricing-notes strong { color: var(--text); }

/* Currency toggle */
.currency-toggle {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 4px;
  display: inline-flex;
}
.section-header:has(.currency-toggle) { display: flex; flex-direction: column; align-items: center; }
.currency-btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.currency-btn:hover { color: var(--text); }
.currency-btn.active {
  background: var(--accent);
  color: white;
}

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.faq-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.faq-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text-secondary); }
footer .footer-links { margin-bottom: 10px; }
footer .footer-links a { margin: 0 12px; }

/* === Lead modal === */
.lead-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lead-overlay.active { display: flex; }

.lead-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.lead-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.lead-modal input[type="text"],
.lead-modal input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
  font-family: var(--font);
}

.lead-modal input:focus {
  border-color: var(--border-focus);
  outline: none;
}

/* === Mobile hamburger === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .faq-grid { grid-template-columns: 1fr; }
  .proof-strip { gap: 20px; }
  .section-header h2 { font-size: 26px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 8px;
  }

  .nav-links.open .nav-link,
  .nav-links.open .nav-cta {
    display: block;
    text-align: center;
  }

  .nav-links.open .nav-cta { margin-left: 0; margin-top: 4px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .proof-strip { flex-direction: column; align-items: center; gap: 14px; }
  .tech-grid { grid-template-columns: 1fr; }
}
