/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0b1120;
  color: #f8fafc;
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Brand tokens ─── */
:root {
  --bg: #0b1120;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --ice: #f8fafc;
  --slate: #94a3b8;
  --border: #1a1a2a;
  --gradient: linear-gradient(to right, #06b6d4, #8b5cf6);
}

/* ─── Gradient text utility ─── */
.grad {
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid transparent;
  background-image: linear-gradient(#0b1120, #0b1120), linear-gradient(to right, #06b6d4, #8b5cf6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-outline:hover { opacity: 0.8; }

/* ─── Nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: rgba(11,17,32,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
.lang-toggle a { color: #94a3b8; text-decoration: none; }
.lang-toggle a.active { color: #f8fafc; }
.lang-toggle span { color: #1a1a2a; }

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 80px;
}
.hero-glow-cyan {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 65%);
  pointer-events: none;
}
.hero-glow-violet {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #06b6d4;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 18px;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto;
}
/* Button placed after hero-phone */
.hero-phone + a.btn-primary {
  display: block;
  margin: 32px auto 0;
  width: fit-content;
}
.hero-phone {
  position: relative;
  display: inline-block;
  margin-top: 48px;
}
.hero-phone::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-phone img {
  width: min(280px, 65vw);
  border-radius: 36px;
  box-shadow: 0 0 0 8px #1a1a2a, 0 40px 80px rgba(0,0,0,0.5), 0 0 80px rgba(6,182,212,0.12);
  display: block;
  position: relative;
}

/* ─── Features ─── */
.features {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}
.features h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: #94a3b8; line-height: 1.5; }

/* ─── Screenshots ─── */
.screenshots { padding: 60px 0; }
.screenshots h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 36px;
  padding: 0 24px;
}
.screenshot-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshot-scroll::-webkit-scrollbar { display: none; }
.screenshot-scroll img {
  height: 420px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 4px #1a1a2a, 0 20px 40px rgba(0,0,0,0.4);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ─── CTA banner ─── */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.08), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.cta-banner p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 16px;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.footer-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
}
.footer-links a:hover { color: #f8fafc; }
.footer-copy { font-size: 13px; color: #94a3b8; }

/* ─── Screenshot lightbox ─── */
.screenshot-scroll img { cursor: zoom-in; }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#lightbox.active { display: flex; }
#lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 0 0 6px #1a1a2a, 0 40px 80px rgba(0,0,0,0.6);
  display: block;
}
#lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a2a;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#lightbox-close:hover { background: #2a2a3a; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .nav-right .btn-outline { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshot-scroll img { height: 320px; }
}
