/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090b;
  --bg-offset: #111116;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #22c55e; /* Primary brand green */
  --accent-secondary: #3b82f6; /* Secondary blue for split buttons */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body, html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 800;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: visible;
}

/* Section Overlap Effect */
section + section {
  margin-top: -60px;
  z-index: 2;
  box-shadow: 0 -30px 60px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  section + section { margin-top: -40px; }
}

/* === BACKGROUND TEXTURE (Glassmorphism Blobs) === */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  filter: blur(100px);
  border-radius: 50%;
  animation: moveBlob 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%); }
.blob-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%); animation-delay: -5s; }

@keyframes moveBlob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(10%, 10%) scale(1.1); }
}

/* === NAVIGATION === */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav-wrapper.scrolled {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-cta { display: none; }
}

/* === BUTTONS (Split-Color & Glowing) === */
.btn-split {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 20px rgba(34, 197, 94, 0.2);
  cursor: pointer;
  border: none;
}

.btn-split .part-1 {
  background: var(--accent);
  padding: 18px 25px;
  color: #fff;
}

.btn-split .part-2 {
  background: var(--accent-secondary);
  padding: 18px 25px;
  color: #fff;
}

.btn-split:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 30px rgba(34, 197, 94, 0.4);
}

/* === HERO SECTION (Asymmetric) === */
.hero-showcase {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 40% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.store-btn {
  background: #000;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.store-btn:hover {
  background: #111;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.store-btn i { font-size: 1.8rem; color: #fff; }
.store-text { text-align: left; }
.store-text span { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.store-text strong { display: block; font-size: 1rem; color: #fff; }

.hero-visual {
  position: relative;
}

.hero-frame {
  background: linear-gradient(135deg, var(--glass-border), transparent);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transform: rotate(2deg) translateY(20px);
}

.hero-frame img {
  max-width: 340px;
  border-radius: 40px;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7);
  border: 4px solid #1a1a1a;
  transform: rotate(-2deg);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 80px; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-frame img { max-width: 280px; }
}

/* === REVIEWS SECTION === */
.reviews-section {
  background: var(--bg-offset);
}

.rating-header {
  text-align: center;
  margin-bottom: 60px;
}

.rating-massive {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 15px 0;
  color: #fbbf24;
  font-size: 1.5rem;
}

.rating-distribution {
  max-width: 400px;
  margin: 0 auto;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.rating-label { font-size: 0.9rem; width: 20px; color: var(--text-muted); }
.rating-bar-bg { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--accent); border-radius: 10px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-10px);
  border-color: rgba(34, 197, 94, 0.3);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.user-info h4 { font-size: 1rem; margin: 0; }
.user-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.review-stars { color: #fbbf24; font-size: 0.9rem; }
.review-text { font-style: italic; color: var(--text-muted); }

/* === SCREENSHOT GALLERY === */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  border: 8px solid #1a1a1a;
  border-radius: 40px;
  padding: 8px;
  background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1a1a1a;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.phone-mockup:nth-child(odd) { transform: rotate(-3deg); }
.phone-mockup:nth-child(even) { transform: rotate(3deg); }

.phone-mockup:hover {
  transform: rotate(0) scale(1.05);
  z-index: 20;
}

/* === FEATURES (Horizontal Scroll) === */
.features-section {
  background: var(--bg-offset);
  overflow: hidden;
}

.features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.features-scroll-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 5% 40px;
  margin: 0 -5%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.features-scroll-wrapper::-webkit-scrollbar { display: none; }

.feature-card {
  min-width: 350px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 48px;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  transition: var(--transition);
}

.feature-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 30px;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .feature-card { min-width: 280px; padding: 32px; }
}

/* === STATS TICKER === */
.stats-ticker {
  background: #000;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.ticker-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.stat-pill i { font-size: 1.5rem; color: var(--accent); }
.stat-pill strong { font-family: var(--font-heading); font-size: 1.5rem; }
.stat-pill span { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }

/* === DOWNLOAD CTA === */
.cta-section {
  padding: 120px 0;
}

.cta-glass {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
  backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glass::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
}

.cta-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-glass h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

.cta-glass p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* === FOOTER === */
footer {
  background: #050507;
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
  margin-top: 20px;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-col h4 {
  margin-bottom: 25px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* === UTILS & ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.text-accent { color: var(--accent); }
