/* === Reset / Base === */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1020;
  color: #e7e8ee;
  line-height: 1.5;
}

/* === Background decoration === */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,1), rgba(0,0,0,0.1) 60%, transparent 70%);
}
.bg-glow {
  position: absolute; width: 60vmax; height: 60vmax; filter: blur(80px);
  opacity: 0.6; transform: translate(-20%, -20%);
}
.bg-glow-1 { background: radial-gradient(#8b5cf6, transparent 60%); top: -10vmax; left: -10vmax; }
.bg-glow-2 { background: radial-gradient(#06b6d4, transparent 60%); bottom: -20vmax; right: -10vmax; }

/* === Layout === */
.container { width: min(1200px, 92%); margin: 0 auto; }
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.125rem; letter-spacing: 0.2px; }
.brand img { filter: drop-shadow(0 0 8px rgba(139,92,246,0.6)); }

.hero {
  padding: 8vh 0 4vh;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 6px 28px rgba(139,92,246,0.45);
}
.subhead {
  color: #b8c0e0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 0 auto 24px;
  max-width: 820px;
}
.cta-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note { color: #a6afcc; font-size: 0.95rem; }

/* === Buttons === */
.btn {
  --bg: #8b5cf6;
  --bg-hover: #9569ff;
  --txt: #0b1020;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--bg);
  color: var(--txt);
  box-shadow: 0 8px 24px rgba(139,92,246,0.4);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--bg-hover); box-shadow: 0 10px 28px rgba(149,105,255,0.5); }
.btn-outline {
  color: #e7e8ee;
  border: 1px solid rgba(231,232,238,0.22);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: rgba(231,232,238,0.4); transform: translateY(-1px); }

/* === Benefits === */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 56px 0 24px;
}
.benefit-card {
  background: rgba(17, 25, 54, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.benefit-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.16); box-shadow: 0 16px 34px rgba(0,0,0,0.35); }
.benefit-card .icon { font-size: 28px; margin-bottom: 10px; }
.benefit-card h3 { margin: 0 0 6px; font-size: 1.125rem; }
.benefit-card p { margin: 0; color: #b8c0e0; }

/* === CTA Bar === */
.cta-bar { margin-top: 24px; padding: 40px 0 46px; background: linear-gradient(180deg, rgba(22,30,58,0.8), rgba(12,16,34,0.8)); border-top: 1px solid rgba(255,255,255,0.08); }
.cta-bar-inner { text-align: center; }
.cta-bar h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-bar .cta-note { color: #a6afcc; margin-top: 8px; }

/* === Footer === */
.footer { color: #9aa4c9; padding: 30px 0 60px; text-align: center; font-size: 0.95rem; }

/* === Responsiveness === */
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }

/* === Preview (screenshot) === */
.preview { padding: 10px 0 32px; }
.device-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.screenshot-wrap {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1020;
}
.screenshot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 720px) {
  .device-frame { border-radius: 16px; padding: 8px; }
  .screenshot-wrap { border-radius: 12px; }
}

/* === Phone / mobile accent === */
.phone-accent {
  position: absolute;
  right: max(2vw, calc((100vw - 1200px)/2));
  bottom: -10px;
  width: 180px;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transform: rotate(-4deg);
  opacity: 0.95;
  display: none;
}
@media (min-width: 980px) {
  .hero { position: relative; padding-bottom: 10vh; }
  .phone-accent { display: block; }
}

/* === Smaller preview === */
.preview { padding-top: 6px; }
.device-frame { max-width: 380px; }

/* === Preview (two-column screenshots) === */
.preview { padding: 8px 0 28px; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 520px));
  gap: 18px;
  justify-content: center;
}
.device-frame { max-width: 520px; } /* override earlier size */
@media (max-width: 980px) {
  .preview-grid { grid-template-columns: 1fr; }
}
