@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0B0F1A;
  --surface: #131929;
  --surface2: #1a2236;
  --border: #1E2D45;
  --primary: #4F8EF7;
  --primary-dark: #3a7ae0;
  --accent: #00D4AA;
  --text: #E8EDF5;
  --muted: #8896AB;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #4F8EF7 0%, #00D4AA 100%);
  --font-h: 'Outfit', sans-serif;
  --font-b: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: var(--font-h); color: var(--white); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.25); border-radius: 999px; padding: .3rem 1rem; margin-bottom: 1rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.8rem; border-radius: 999px; font-family: var(--font-h); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: all .3s ease; }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,142,247,.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.9); transition: opacity .6s ease, transform .6s ease; }
.reveal-scale.visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.1s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.2s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.3s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.4s; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(11,15,26,.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-h); font-weight: 800; font-size: 1.3rem; color: var(--white); }
.logo-icon { width: 36px; height: 36px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--surface); border-top: 1px solid var(--border); }
.mobile-menu a { color: var(--text); font-weight: 500; padding: .6rem 0; border-bottom: 1px solid var(--border); }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(79,142,247,.15) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0,212,170,.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.3); border-radius: 999px; padding: .4rem 1rem; font-size: .82rem; color: var(--primary); margin-bottom: 1.5rem; }
.hero-badge span { background: var(--primary); border-radius: 999px; padding: .1rem .5rem; color: #fff; font-size: .75rem; }
.hero-text h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero-text h1 .gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text p { color: var(--muted); font-size: 1.1rem; max-width: 480px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.hero-stat { background: var(--surface2); border-radius: var(--radius); padding: 1.2rem; text-align: center; border: 1px solid var(--border); }
.hero-stat .num { font-family: var(--font-h); font-size: 1.8rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat p { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1.2rem;
  display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: float 3s ease-in-out infinite;
}
.float-badge.b1 { top: -20px; right: -20px; animation-delay: 0s; }
.float-badge.b2 { bottom: 30px; left: -30px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* FEATURES */
#features { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(79,142,247,.15); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.feature-card p { color: var(--muted); font-size: .92rem; }

/* SERVICES */
#services { padding: 6rem 0; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-content .tag { font-size: .78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.service-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }
.service-content p { color: var(--muted); margin-bottom: 1.5rem; }
.service-list { display: flex; flex-direction: column; gap: .6rem; }
.service-list li { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: .95rem; }
.service-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.service-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; min-height: 300px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.service-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(79,142,247,.08) 0%, transparent 70%); }

/* STATS */
#stats { padding: 5rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .num { font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item p { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

/* TESTIMONIALS */
#testimonials { padding: 6rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: transform .3s, box-shadow .3s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.stars { color: #FFB400; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial-card blockquote { color: var(--text); font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-h); color: #fff; flex-shrink: 0; }
.author-name { font-weight: 600; font-size: .95rem; }
.author-role { font-size: .82rem; color: var(--muted); }

/* PRICING */
#pricing { padding: 6rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; position: relative; transition: transform .3s; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 60px rgba(79,142,247,.2); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: .78rem; font-weight: 700; padding: .3rem 1.2rem; border-radius: 999px; white-space: nowrap; }
.price-tier { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.price { font-family: var(--font-h); font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: .3rem; }
.price span { font-size: 1rem; color: var(--muted); }
.price-desc { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.price-features { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.price-features li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.price-features li.no::before { content: '✕'; color: var(--border); }
.price-features li.no { color: var(--muted); }

/* BLOG */
#blog { padding: 6rem 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.blog-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.blog-body { padding: 1.5rem; }
.blog-tag { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.blog-body h3 { font-size: 1.05rem; margin-bottom: .6rem; line-height: 1.4; }
.blog-body p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 1rem; }

/* CTA BANNER */
#cta-banner { padding: 6rem 0; position: relative; overflow: hidden; }
#cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(79,142,247,.15) 0%, transparent 60%); }
.cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4rem; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.cta-box p { color: var(--muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2rem; }
.cta-form { display: flex; gap: 1rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.cta-form input { flex: 1; min-width: 200px; padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: .95rem; outline: none; transition: border-color .2s; }
.cta-form input:focus { border-color: var(--primary); }
.cta-form input::placeholder { color: var(--muted); }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: 1rem 0 1.5rem; max-width: 240px; }
.footer-social { display: flex; gap: .8rem; }
.social-link { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--muted); transition: all .2s; }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 { font-size: .9rem; font-weight: 600; margin-bottom: 1rem; color: var(--white); }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--muted); font-size: .85rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 2.5rem 1.5rem; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
