/* ===== VastPulse Landing — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --bg-deep:    #050a15;
  --bg:         #0b1220;
  --bg-panel:   #0f172a;
  --bg-card:    #131d31;
  --border:     #1e293b;
  --border-glow:#10b98133;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --accent:     #10b981;
  --accent-bright:#34d399;
  --accent-glow:#10b98140;
  --accent2:    #06b6d4;
  --warn:       #f59e0b;
  --ok:         #22c55e;
  --err:        #ef4444;
  --purple:     #8b5cf6;
  /* Spacing */
  --section-py: 100px;
  --container:  1200px;
  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Reusable --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow card */
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.glow-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 20px 40px #00000060;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: #0b1220e6;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: var(--bg-panel);
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -10px 0 40px #00000080;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 18px; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: .4;
}
.hero .container {
  display: grid;
  grid-template-columns: 3fr 5fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b98115;
  border: 1px solid #10b98140;
  color: var(--accent-bright);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Screenshot */
.hero-visual {
  position: relative;
}
.hero-screenshot {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
}
.hero-screenshot img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px #00000080, 0 0 60px var(--accent-glow);
  display: block;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
}

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-item p {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ===== FEATURES ===== */
.features {
  padding: var(--section-py) 0;
}
.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.features-header .section-sub { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-icon.green { background: #10b98120; color: var(--accent-bright); }
.feature-icon.teal { background: #06b6d420; color: var(--accent2); }
.feature-icon.orange { background: #f59e0b20; color: var(--warn); }
.feature-icon.purple { background: #8b5cf620; color: var(--purple); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.feature-list {
  list-style: none;
  margin-top: 16px;
}
.feature-list li {
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-list li::before {
  content: '✓';
  color: var(--accent-bright);
  font-weight: 700;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== PREVIEW ===== */
.preview {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.preview::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, #06b6d420 0%, transparent 70%);
  pointer-events: none;
}
.preview-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.preview-header .section-sub { margin: 0 auto; }

/* Screenshot thumbnail grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.thumb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.thumb-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px #00000070, 0 0 24px var(--accent-glow);
}
.thumb-wrap {
  width: 100%;
  height: 148px;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: filter .3s ease;
}
.thumb-card:hover .thumb-wrap img {
  filter: brightness(1.08);
}
.thumb-label {
  display: block;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .02em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px #000000c0;
  animation: lb-in .25s ease;
}
@keyframes lb-in {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lightbox-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .02em;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-glow);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  z-index: 10;
}
.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-glow);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 1100px) {
  .screenshot-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .screenshot-grid { grid-template-columns: repeat(3, 1fr); }
  .thumb-wrap { height: 120px; }
}
@media (max-width: 520px) {
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .thumb-wrap { height: 110px; }
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}
.pricing-header .section-sub { margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: .05em;
}
.pricing-tier {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e293b40;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--accent-bright); font-weight: 700; }
.pricing-features .x { color: var(--text-dim); }
.pricing-card .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ===== FAQ ===== */
.faq {
  padding: var(--section-py) 0;
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-header .section-sub { margin: 0 auto; }
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: none;
  color: var(--text);
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-question:hover { color: var(--accent-bright); }
.faq-chevron {
  font-size: 18px;
  transition: transform .3s;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent-bright); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  max-width: 780px;
  margin: 0 auto;
}
.cta-box h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.stagger.visible > *  { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1)  { transition-delay: .04s; }
.stagger.visible > *:nth-child(2)  { transition-delay: .10s; }
.stagger.visible > *:nth-child(3)  { transition-delay: .16s; }
.stagger.visible > *:nth-child(4)  { transition-delay: .22s; }
.stagger.visible > *:nth-child(5)  { transition-delay: .28s; }
.stagger.visible > *:nth-child(6)  { transition-delay: .34s; }
.stagger.visible > *:nth-child(7)  { transition-delay: .40s; }
.stagger.visible > *:nth-child(8)  { transition-delay: .46s; }
.stagger.visible > *:nth-child(9)  { transition-delay: .52s; }
.stagger.visible > *:nth-child(10) { transition-delay: .58s; }

/* Counter animation */
.counter { display: inline-block; }
