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

:root {
  --wa-green: #25D366;
  --wa-dark-green: #128C7E;
  --wa-teal: #075E54;
  --wa-light-green: #DCF8C6;
  --wa-bg: #f0f2f5;
  --wa-white: #ffffff;
  --wa-black: #111b21;
  --wa-gray: #667781;
  --wa-light-gray: #e9edef;
  --wa-hero-bg: #eae6df;
  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

body {
  font-family: var(--font-primary);
  color: var(--wa-black);
  background: #fcf5eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

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

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: var(--wa-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header.header-solid {
  background: #fcf5eb;
}

/* Transparent header for homepage - white text over hero image */
.header-transparent .logo span,
.header-transparent .nav-main a,
.header-transparent .nav-dropdown-trigger {
  color: #fff;
}

.header-transparent .logo svg path {
  fill: #fff;
}

.header-transparent .nav-main a:hover,
.header-transparent .nav-dropdown-trigger:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.header-transparent .nav-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}

.header-transparent .nav-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}

.header-transparent .nav-actions .btn-primary {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

/* When scrolled, revert to dark text */
.header-transparent.scrolled .logo span,
.header-transparent.scrolled .nav-main a,
.header-transparent.scrolled .nav-dropdown-trigger {
  color: var(--wa-black);
}

.header-transparent.scrolled .logo svg path {
  fill: #25D366;
}

.header-transparent.scrolled .nav-main a:hover,
.header-transparent.scrolled .nav-dropdown-trigger:hover {
  background: var(--wa-bg);
  color: var(--wa-teal);
}

.header-transparent.scrolled .nav-actions .btn-outline {
  color: var(--wa-black);
  border-color: var(--wa-light-gray);
  background: transparent;
}

.header-transparent.scrolled .nav-actions .btn-outline:hover {
  background: var(--wa-bg);
  border-color: var(--wa-black);
}

.header-transparent.scrolled .nav-actions .btn-primary {
  background: #25D366;
  color: #fff;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #25d366;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.logo img {
  width: 140px;
  height: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-main a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--wa-black);
  border-radius: 24px;
  transition: background 0.2s, color 0.2s;
  font-weight: 400;
}

.nav-main a:hover {
  background: var(--wa-bg);
  color: var(--wa-teal);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  border-radius: 24px;
  transition: background 0.2s;
  border: none;
  background: none;
  font-family: inherit;
  color: var(--wa-black);
}

.nav-dropdown-trigger:hover {
  background: var(--wa-bg);
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--wa-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 12px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--wa-bg);
}

.nav-dropdown-menu a strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wa-black);
}

.nav-dropdown-menu a span {
  font-size: 0.8125rem;
  color: var(--wa-gray);
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-outline {
  background: #fff;
  border: 1.5px solid var(--wa-black);
  color: var(--wa-black);
}

.btn-outline:hover {
  border-color: var(--wa-black);
  background: #f5f5f5;
}

.btn-primary {
  background: #25d366;
  color: var(--wa-white);
  border: 1.5px solid var(--wa-black);
}

.btn-primary:hover {
  background: #1ebe5d;
  border-color: var(--wa-black);
}

.btn-primary-dark {
  background: var(--wa-teal);
  color: var(--wa-white);
}

.btn-primary-dark:hover {
  background: #064d45;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile menu - hidden by default on desktop */
.mobile-menu {
  display: none;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wa-black);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

/* Background image layer - with rounded corners and side margins */
.hero-bg {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 32px;
  right: 32px;
  bottom: 0;
  z-index: 0;
  border-radius: 20px;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Main hero content wrapper */
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-inner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Left text content */
.hero-content {
  flex: 0 0 auto;
  max-width: 420px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 360px;
}

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

.hero-buttons .btn-primary {
  background: #25d366;
  color: #fff;
  border: 1.5px solid var(--wa-black);
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: 24px;
}

.hero-buttons .btn-outline {
  background: #fff;
  color: var(--wa-black);
  border: 1.5px solid var(--wa-black);
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: 24px;
}

.hero-buttons .btn-outline:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.3);
}

/* Right side - floating chat elements */
.hero-visual {
  flex: 1;
  position: relative;
  min-height: 500px;
  max-width: 480px;
  z-index: 1;
}

.hero-visual-bg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
}

.hero-float-img {
  position: absolute;
  height: auto;
  z-index: 3;
  animation: heroFloat 3.5s ease-in-out infinite;
}

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

/* Disclaimer */
.hero-disclaimer {
  position: relative;
  z-index: 2;
  text-align: right;
  font-size: 0.75rem;
  color: #5E5E5E;
  padding: 12px 32px;
}

/* ===== Hello Bubbles Section ===== */
.hello-section {
  background: #fcf5eb;
  padding: 0;
  overflow: hidden;
}

.hello-bubbles {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hello-bubbles img {
  width: 100%;
  height: auto;
  display: block;
}

.hello-quote {
  background: #fcf5eb;
  padding: 60px 0;
  text-align: center;
}

.hello-quote h2 {
  font-size: 35px;
  font-weight: 400;
  line-height: 1.35;
  color: #1C1E21;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Official Feature Sections ===== */
.wa-feature {
  background: #fcf5eb;
  padding: 80px 0;
}

.wa-feature-dark {
  background: #111B21;
}

.wa-feature-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.wa-feature-reverse {
  flex-direction: row-reverse;
}

.wa-feature-text {
  flex: 1;
  min-width: 0;
}

.wa-feature-text h2 {
  font-size: 61px;
  font-weight: 400;
  line-height: 1.2;
  color: #1C1E21;
  margin-bottom: 16px;
}

.wa-feature-dark .wa-feature-text h2 {
  color: #fff;
}

.wa-feature-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #1C1E21;
  margin-bottom: 24px;
}

.wa-feature-dark .wa-feature-text p {
  color: #fff;
}

.wa-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 400;
  color: #1C1E21;
  text-decoration: none;
  transition: opacity 0.2s;
}

.wa-feature-dark .wa-feature-link {
  color: #fff;
}

.wa-feature-link:hover {
  opacity: 0.7;
}

.wa-feature-link svg {
  width: 10px;
  height: 15px;
}

.wa-feature-img {
  flex: 0 0 auto;
}

.wa-feature-img img {
  width: 332px;
  height: 654px;
  object-fit: contain;
  display: block;
}

.wa-feature-dark .wa-feature-img img {
  width: 528px;
  height: 650px;
}

@media (max-width: 768px) {
  .wa-feature-inner,
  .wa-feature-inner.wa-feature-reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .wa-feature-text h2 {
    font-size: 36px;
  }
}

/* ===== Feature Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--wa-bg);
}

.section-green {
  background: var(--wa-teal);
  color: var(--wa-white);
}

.section-green .section-text p {
  color: rgba(255,255,255,0.8);
}

.section-green .btn-primary {
  background: var(--wa-white);
  color: var(--wa-teal);
  border-color: var(--wa-white);
}

.section-green .btn-primary:hover {
  background: var(--wa-light-gray);
}

.section-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.section-inner.reverse {
  flex-direction: row-reverse;
}

.section-text {
  flex: 1;
}

.section-text h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-text p {
  font-size: 1.0625rem;
  color: var(--wa-gray);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.section-text .btn {
  margin-top: 8px;
}

.section-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-visual .feature-illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-illustration-calling {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.feature-illustration-privacy {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.feature-illustration-groups {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.feature-illustration-messaging {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.feature-illustration-business {
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}

.feature-icon-large {
  font-size: 6rem;
  opacity: 0.9;
}

.feature-phone-mockup {
  width: 240px;
  height: 480px;
  background: var(--wa-white);
  border-radius: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  border: 3px solid #333;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: var(--wa-teal);
  color: white;
  padding: 32px 16px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.phone-body {
  flex: 1;
  background: #ece5dd;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.phone-msg-in {
  background: var(--wa-white);
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.phone-msg-out {
  background: var(--wa-light-green);
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.phone-msg-time {
  font-size: 0.625rem;
  color: var(--wa-gray);
  text-align: right;
  margin-top: 4px;
}

/* ===== Download CTA Section ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: #fcf5eb;
}

.cta-section h2 {
  font-size: 61px;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.0625rem;
  color: var(--wa-gray);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--wa-black);
  color: var(--wa-white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--wa-green);
}

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

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

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

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

.footer-bottom-links a:hover {
  color: var(--wa-green);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner .container {
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .section-inner {
    gap: 48px;
  }
  .section-text h2 {
    font-size: 2.25rem;
  }
}

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

  /* Mobile menu */
  .mobile-menu {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--wa-white);
    z-index: 999;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--wa-light-gray);
  }

  .mobile-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  .hero-inner .container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-inner,
  .section-inner.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .section-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .section-text h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .section-text h2 {
    font-size: 1.75rem;
  }
  .cta-section h2 {
    font-size: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
