/* ================================================
   SmartSpend Landing Page - style.css
   ================================================ */

:root {
  --primary: #6366F1;
  --primary2: #8B5CF6;
  --accent: #10B981;
  --warning: #F59E0B;
  --bg: #0A0A0F;
  --surface: #12121A;
  --surface2: #1A1A26;
  --surface3: #22223A;
  --text: #F8F8FF;
  --text-muted: #8B8BA8;
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ===== UTILS ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: 8px; margin-bottom: 48px; }
section h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
section { padding: 96px 0; }

/* ===== FEATURES ===== */
.features { background: var(--surface); }
.features h2, .features .section-sub { text-align: center; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.7; }

/* ===== SCREENSHOTS ===== */
.screenshots { background: var(--bg); }
.screenshots h2, .screenshots .section-sub { text-align: center; }

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 10px; }

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
}
.screenshot-item.visible { opacity: 1; transform: translateY(0); }
.screenshot-item p {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.phone-mockup {
  width: 200px;
  aspect-ratio: 9/19;
  background: var(--surface3);
  border-radius: 32px;
  padding: 6px;
  border: 1.5px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.phone-mockup:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 24px 60px rgba(99,102,241,0.15);
}
.phone-mockup.small { width: 260px; }
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }

/* ===== VIDEO ===== */
.video-section { background: var(--surface); }
.video-section h2, .video-section .section-sub { text-align: center; }

.video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(99,102,241,0.25);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 60px rgba(99,102,241,0.1);
  background: #000;
  aspect-ratio: 16/9;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout {
  display: flex;
  align-items: center;
  gap: 64px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s, transform .4s;
}
.split-layout.visible { opacity: 1; transform: translateY(0); }
.split-layout.reverse { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-visual { flex: 1; display: flex; justify-content: center; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 24px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.6;
}
.check-list li::first-letter { color: var(--primary); }

/* ===== ARIA SECTION ===== */
.aria-section { background: var(--bg); }

/* ===== SCAN SECTION ===== */
.scan-section {
  background: var(--surface);
}

/* ===== CTA SECTION ===== */
.cta-section { background: var(--bg); padding: 80px 0; }

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary.large { font-size: 1.1rem; padding: 16px 40px; }

.play-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.cta-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .82rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 12px;
  max-width: 240px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo span { font-size: 1.2rem; font-weight: 800; color: var(--text); }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { color: var(--text); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-bottom a { color: var(--primary); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split-layout, .split-layout.reverse { flex-direction: column; gap: 40px; text-align: center; }
  .split-visual { order: -1; }
  .check-list { align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-links { align-items: center; }
  .cta-card { padding: 48px 24px; }
  .video-wrapper { max-width: 100%; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-card h2 { font-size: 1.6rem; }
  .nav-inner { padding: 0 16px; }
  .screenshots-track img { height: 260px; }
  .btn-primary { padding: 14px 24px; font-size: 0.95rem; }
  .btn-primary.large { font-size: 1rem; padding: 14px 28px; }
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .video-wrapper { border-radius: 12px; }
  .cta-card { padding: 36px 16px; border-radius: 16px; }
  .phone-mockup { width: 140px; }
  .feature-card { padding: 24px 16px; }
}

@media (max-width: 400px) {
  .phone-mockup { width: 110px; }
}

