/* ============================================================
   Bouigee — Apple-style landing page
   Scroll-driven animations, sticky reveals, glass effects
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050507;
  --bg2:       #0A0B0F;
  --surface:   #111318;
  --surface2:  #1A1C24;
  --border:    #ffffff0d;
  --teal:      #2DD4BF;
  --teal2:     #5EEAD4;
  --cyan:      #22D3EE;
  --purple:    #A78BFA;
  --pink:      #F472B6;
  --blue:      #60A5FA;
  --text:      #F4F4F5;
  --text2:     #A1A1AA;
  --text3:     #71717A;
  --text4:     #3F3F46;
  --font:      'DM Sans', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-warm {
  background: linear-gradient(135deg, var(--teal2) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(5,5,7,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700;
}
.nav-logo i { color: var(--teal); font-size: 22px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text3); font-size: 13px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .25s; border: none;
}
.btn-glow {
  background: var(--teal); color: #050507;
  box-shadow: 0 0 20px rgba(45,212,191,.3), 0 0 60px rgba(45,212,191,.1);
}
.btn-glow:hover {
  background: var(--teal2);
  box-shadow: 0 0 30px rgba(45,212,191,.5), 0 0 80px rgba(45,212,191,.15);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text2);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-outline:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn-large { padding: 14px 32px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 56px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(45,212,191,.12);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: rgba(167,139,250,.08);
  bottom: -150px; right: -100px;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(34,211,238,.06);
  top: 40%; right: 20%;
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 820px; padding: 0 32px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(45,212,191,.08);
  border: 1px solid rgba(45,212,191,.15);
  color: var(--teal); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge i { font-size: 14px; }
.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2.5px;
}
.hero p {
  margin: 24px auto 0; max-width: 520px;
  font-size: 18px; color: var(--text2); line-height: 1.7;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 40px;
}
.hero-phone {
  margin-top: 60px;
  perspective: 1200px;
}
.hero-phone .phone {
  width: 280px; margin: 0 auto;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow:
    0 60px 120px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 100px rgba(45,212,191,.08);
  transform: rotateX(8deg);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.hero-phone:hover .phone { transform: rotateX(0); }
.phone-placeholder {
  aspect-ratio: 9/19.5;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text4); font-size: 13px; text-align: center; line-height: 1.8;
}

/* ---------- Ticker / Stats ---------- */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--mono); font-size: 40px; font-weight: 700;
  letter-spacing: -1px;
}
.stat-label { font-size: 14px; color: var(--text3); margin-top: 4px; }

/* ---------- Sticky Feature Slides ---------- */
.slides {
  position: relative;
}
.slide {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.slide-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.slide:nth-child(even) .slide-inner { direction: rtl; }
.slide:nth-child(even) .slide-inner > * { direction: ltr; }
.slide-num {
  font-family: var(--mono);
  font-size: 13px; color: var(--teal); font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.slide h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -1px;
}
.slide p {
  margin-top: 20px; font-size: 17px; color: var(--text2); line-height: 1.8;
  max-width: 460px;
}
.slide-features {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px;
}
.slide-feat {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text2);
}
.slide-feat i { color: var(--teal); font-size: 20px; }
.slide-visual {
  display: flex; justify-content: center; align-items: center;
}
.slide-visual .phone {
  width: 280px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,.06);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
/* Colored accent orbs per slide */
.slide:nth-child(1) .slide-visual::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(45,212,191,.1); border-radius: 50%; filter: blur(80px); }
.slide:nth-child(2) .slide-visual::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(167,139,250,.1); border-radius: 50%; filter: blur(80px); }
.slide:nth-child(3) .slide-visual::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(34,211,238,.1); border-radius: 50%; filter: blur(80px); }
.slide:nth-child(4) .slide-visual::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(244,114,182,.08); border-radius: 50%; filter: blur(80px); }

/* ---------- Bento Grid ---------- */
.bento {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.bento h2 {
  text-align: center;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 12px;
}
.bento .subtitle { text-align: center; color: var(--text2); font-size: 17px; margin-bottom: 56px; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}
.bento-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(45,212,191,.3) 50%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.bento-card:hover { border-color: rgba(255,255,255,.08); transform: translateY(-2px); }
.bento-card:hover::before { opacity: 1; }
.bento-card i { font-size: 32px; margin-bottom: 20px; display: block; }
.bento-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.bento-card p { font-size: 14px; color: var(--text3); line-height: 1.7; }
.bento-card:nth-child(1) i { color: var(--teal); }
.bento-card:nth-child(2) i { color: var(--purple); }
.bento-card:nth-child(3) i { color: var(--cyan); }
.bento-card:nth-child(4) i { color: var(--pink); }
.bento-card:nth-child(5) i { color: var(--blue); }
.bento-card:nth-child(6) i { color: var(--teal2); }
.bento-card:nth-child(7) i { color: var(--purple); }
.bento-card:nth-child(8) i { color: var(--cyan); }
.bento-card:nth-child(9) i { color: var(--pink); }
/* Feature card — span 2 cols */
.bento-card.wide { grid-column: span 2; }

/* ---------- Pricing ---------- */
.pricing {
  padding: 120px 0;
}
.pricing h2 {
  text-align: center;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 12px;
}
.pricing .subtitle { text-align: center; color: var(--text2); font-size: 17px; margin-bottom: 48px; }
.price-toggle {
  display: flex; justify-content: center; gap: 12px; align-items: center;
  margin-bottom: 40px;
}
.price-toggle span { font-size: 14px; color: var(--text3); transition: color .2s; }
.price-toggle .active { color: var(--text); font-weight: 600; }
.toggle-pill {
  width: 52px; height: 28px;
  background: var(--surface2); border-radius: 14px;
  position: relative; cursor: pointer;
  border: 1px solid var(--border);
  transition: background .2s;
}
.toggle-pill.on { background: var(--teal); border-color: var(--teal); }
.toggle-pill::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: white; border-radius: 50%;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.toggle-pill.on::after { transform: translateX(24px); }
.save-tag {
  background: rgba(45,212,191,.1); color: var(--teal);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}
.pricing-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 840px; margin: 0 auto;
}
.price-card {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative; overflow: hidden;
}
.price-card.featured {
  border-color: rgba(45,212,191,.25);
  background: linear-gradient(180deg, rgba(45,212,191,.04) 0%, var(--surface) 60%);
}
.price-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--purple));
}
.price-badge {
  display: inline-block;
  background: var(--teal); color: #050507;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
}
.price-card h3 { font-size: 20px; font-weight: 700; }
.price-card .price-amount {
  font-family: var(--mono);
  font-size: 48px; font-weight: 700;
  margin: 16px 0 4px; letter-spacing: -2px;
}
.price-card .price-amount span { font-size: 16px; color: var(--text3); font-weight: 400; letter-spacing: 0; }
.price-card .price-period { font-size: 13px; color: var(--text3); margin-bottom: 28px; }
.price-card ul { list-style: none; margin-bottom: 32px; }
.price-card li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; font-size: 14px; color: var(--text2);
}
.price-card li i { color: var(--teal); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.price-card li strong { color: var(--text); }
.price-card .btn { width: 100%; justify-content: center; border-radius: 14px; padding: 14px; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 160px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(45,212,191,.1) 0%, rgba(167,139,250,.05) 50%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; letter-spacing: -1.5px;
  position: relative;
}
.final-cta p {
  margin: 20px auto 40px; max-width: 440px;
  font-size: 17px; color: var(--text2); position: relative;
}
.final-cta .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-left {
  font-size: 13px; color: var(--text4);
  display: flex; align-items: center; gap: 6px;
}
.footer-left i { color: var(--teal); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text4); transition: color .2s; }
.footer-links a:hover { color: var(--text2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero h1 { letter-spacing: -1.5px; }
  .slide-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .slide:nth-child(even) .slide-inner { direction: ltr; }
  .slide p { margin: 16px auto 0; }
  .slide-features { align-items: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .pricing-cards { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-phone .phone { width: 220px; }
  .nav-links a:not(.btn) { display: none; }
  .stats .container { grid-template-columns: 1fr 1fr; gap: 24px; }
}
