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

:root {
  --primary: #00b894;
  --primary-dark: #00a381;
  --primary-light: #55efc4;
  --accent: #0984e3;
  --accent-dark: #0767b3;
  --dark: #1a1a2e;
  --dark-light: #2d2d44;
  --gray-900: #2d3436;
  --gray-700: #636e72;
  --gray-500: #b2bec3;
  --gray-300: #dfe6e9;
  --gray-100: #f5f6fa;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #00b894 0%, #0984e3 100%);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f5f6fa 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 30px rgba(0, 184, 148, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  color: var(--dark);
}

.section-header p {
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 184, 148, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(0, 184, 148, 0.1);
  color: var(--primary-dark);
}

.badge-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,148,0.15) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9,132,227,0.1) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(5deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--white);
}

.hero-text h1 {
  margin-bottom: 24px;
}

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

.hero-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary-light);
}

.stat p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.hero-image {
  position: relative;
}

.hero-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card.top-left {
  top: -20px;
  left: -30px;
  animation-delay: -1s;
}

.hero-float-card.bottom-right {
  bottom: 40px;
  right: -30px;
  animation-delay: -2.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-card-icon.green {
  background: rgba(0,184,148,0.1);
}

.float-card-icon.blue {
  background: rgba(9,132,227,0.1);
}

.float-card-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
}

.float-card-text p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.float-card-text p.blue {
  color: var(--accent);
}

/* ===== FEATURES ===== */
.features {
  background: var(--gray-100);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,184,148,0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.feature-icon.green { background: rgba(0,184,148,0.1); }
.feature-icon.blue { background: rgba(9,132,227,0.1); }
.feature-icon.purple { background: rgba(108,92,231,0.1); }
.feature-icon.orange { background: rgba(253,121,168,0.1); }
.feature-icon.teal { background: rgba(0,206,209,0.1); }
.feature-icon.red { background: rgba(255,107,107,0.1); }

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.95rem;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.step-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--gradient-hero);
  color: var(--white);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: rgba(255,255,255,0.6);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #ffd32a;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,184,148,0.4);
}

.testimonial-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.testimonial-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== CTA ===== */
.cta {
  background: var(--gray-100);
}

.cta-box {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-box .btn {
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}

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

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

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

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

.footer-address {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-style: normal;
  margin-top: 16px;
  line-height: 1.6;
}

/* ===== LEGAL PAGES ===== */
.legal-hero {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
}

.legal-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.legal-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
}

.legal-content {
  padding: 80px 0;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-300);
}

.legal-body h3 {
  font-size: 1.15rem;
  color: var(--dark-light);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-body p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }

.legal-body li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.legal-body strong {
  color: var(--gray-900);
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-body a:hover {
  color: var(--accent-dark);
}

.legal-toc {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.legal-toc h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--dark);
  font-size: 1rem;
}

.legal-toc ol {
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 6px;
}

.legal-toc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-toc a:hover {
  text-decoration: underline;
}

/* ===== UNSUBSCRIBE PAGE ===== */
.unsub-section {
  padding: 80px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.unsub-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--gray-300);
}

.unsub-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,107,107,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.unsub-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.unsub-card > p {
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.unsub-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.unsub-form input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  outline: none;
}

.unsub-form input[type="email"]:focus {
  border-color: var(--primary);
}

.unsub-form button {
  width: 100%;
}

.unsub-success {
  display: none;
  padding: 20px;
  background: rgba(0,184,148,0.1);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-weight: 500;
}

.unsub-success.show {
  display: block;
}

.unsub-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .features-grid,
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

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

  .mobile-toggle {
    display: flex;
  }

  .features-grid,
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .cta-box {
    padding: 50px 30px;
  }

  .unsub-card {
    padding: 32px 24px;
  }

  .legal-hero {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
