/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #165cdc;
  --primary-hover: #1250c4;
  --primary-light: #e8f0ff;
  --primary-cyan: #00d2ff;
  --gradient: linear-gradient(135deg, #00d2ff 0%, #165cdc 100%);
  --gradient-reverse: linear-gradient(135deg, #165cdc 0%, #00d2ff 100%);
  --dark: #0f1729;
  --dark-secondary: #1a2744;
  --text: #0f1729;
  --text-secondary: #4a5568;
  --text-muted: #8896ab;
  --bg: #fff;
  --bg-alt: #f7f9fc;
  --bg-blue: #edf3ff;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 40px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-login {
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-login:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.nav-cta {
  background: var(--gradient);
  color: #fff;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity var(--transition);
}

.nav-cta:hover { opacity: 0.9; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Buttons === */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  border: none;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  padding: 14px 32px;
  font-size: 16px;
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: #ccc; }

.btn-outline {
  display: block;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
  padding: 12px 24px;
  font-size: 15px;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-filled {
  display: block;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
}

.btn-filled:hover { opacity: 0.9; }

.btn-lg { padding: 16px 40px; font-size: 17px; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 100px 24px 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-blue) 100%);
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d2ff 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation-duration: 18s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #165cdc 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #00d2ff 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.08); }
}

/* Floating icons around hero */
.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-float-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  color: var(--primary);
  animation: iconFloat 6s ease-in-out infinite;
}

.hero-float-icon:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.hero-float-icon:nth-child(2) { top: 25%; right: 10%; animation-delay: -2s; animation-duration: 7s; }
.hero-float-icon:nth-child(3) { bottom: 30%; left: 12%; animation-delay: -4s; animation-duration: 8s; }
.hero-float-icon:nth-child(4) { bottom: 20%; right: 8%; animation-delay: -1s; animation-duration: 5s; }
.hero-float-icon:nth-child(5) { top: 45%; left: 5%; animation-delay: -3s; animation-duration: 9s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Proof === */
.proof {
  text-align: center;
  padding: 0 24px 80px;
  background: var(--bg-blue);
}

.proof-frame {
  max-width: 940px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.proof-frame img:not(.proof-slide) {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.proof-frame .proof-slide {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.proof-placeholder {
  background: var(--bg-alt);
  border-radius: 8px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.proof-carousel { position: relative; }

.proof-slides { position: relative; }

.proof-slide {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: none;
}

.proof-slide.active { display: block; }

.proof-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.proof-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.proof-dot.active {
  background: var(--gradient);
  width: 28px;
  border-radius: 5px;
}

/* === How It Works === */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg);
}

.how-it-works h2,
.outcomes h2,
.pricing h2,
.faq h2 {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 56px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 16px;
  flex-shrink: 0;
}

/* === Outcomes === */
.outcomes {
  padding: 100px 24px;
  background: var(--bg-alt);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 48px auto 0;
}

.outcome-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.outcome-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.outcome-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.outcome-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.outcome-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* === Pricing === */
.pricing {
  padding: 100px 24px;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 48px auto 0;
}

.pricing-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: box-shadow var(--transition);
}

.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.popular {
  border: 2px solid var(--primary);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card ul li {
  padding: 7px 0;
  font-size: 14px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card ul li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23165cdc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* === FAQ === */
.faq {
  padding: 100px 24px;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary:hover { color: var(--primary); }

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* === Final CTA === */
.final-cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--dark) 0%, #0d3b8f 100%);
  text-align: center;
  color: #fff;
}

.final-cta h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -1px;
}

.final-cta p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* === Footer === */
.footer {
  padding: 48px 24px 32px;
  background: #0a0a1a;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #222;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-brand .nav-logo { color: #fff; }
.footer-brand .nav-logo span { color: var(--primary); }

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
}

.footer-donation {
  font-size: 12px;
  opacity: 0.6;
}

/* === Marquee Strip === */
.marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Section Cloud Dividers === */
.cloud-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
  margin-top: -1px;
}

.cloud-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cloud-divider-top {
  margin-bottom: -1px;
}

.cloud-divider-top svg {
  top: 0;
  bottom: auto;
}

/* === Glassmorphism Card Upgrade === */
.outcome-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
}

.outcome-card:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(22,92,220,0.2);
}

/* === Glow Effects === */
.proof-frame {
  position: relative;
}

.proof-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: 14px;
  opacity: 0.15;
  z-index: -1;
  filter: blur(8px);
}

/* Pricing card glow on popular */
.pricing-card.popular {
  position: relative;
}

.pricing-card.popular::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient);
  border-radius: 14px;
  opacity: 0.12;
  z-index: -1;
  filter: blur(12px);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active { display: flex; }

  .nav-links a { font-size: 16px; }

  .nav-cta, .nav-login {
    text-align: center;
    width: 100%;
    padding: 12px;
  }

  .hero { padding: 64px 20px 48px; }

  .hero-floaters { display: none; }
  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 250px; height: 250px; }
  .hero-orb-3 { display: none; }
  .cloud-divider { height: 60px; }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-sub { font-size: 16px; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }

  .proof { padding: 0 12px 48px; }
  .proof-frame { padding: 8px; border-radius: 8px; }
  .proof-placeholder { height: 200px; }

  .how-it-works,
  .outcomes,
  .pricing,
  .faq,
  .final-cta { padding: 64px 20px; }

  .how-it-works h2,
  .outcomes h2,
  .pricing h2,
  .faq h2,
  .final-cta h2 { font-size: 30px; }

  .section-sub { font-size: 16px; margin-bottom: 40px; }

  .steps { flex-direction: column; gap: 32px; }
  .step { padding: 0; }
  .step-connector {
    justify-content: center;
    transform: rotate(90deg);
  }

  .outcome-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
  .outcome-card,
  .pricing-card,
  .step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
  }

  .outcome-card.visible,
  .pricing-card.visible,
  .step.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .outcome-card,
  .pricing-card,
  .step {
    opacity: 1;
    transform: none;
  }
}
