/* ============================================
   SAVEZRA — styles.css
   Mobile-first, clean, modern
   Color: Slate/Dark Blue + Green accents
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

code {
  background: rgba(0,0,0,0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* === CONTAINER === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  justify-content: center;
  font-family: inherit;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-primary {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
  background: #15803d;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #1e293b;
  border: 2px solid #cbd5e1;
}

.btn-outline:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.btn-white {
  background: #ffffff;
  color: #16a34a;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-cta {
  margin-left: 8px;
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 50%, #f0f9ff 100%);
  overflow: hidden;
}

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

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #ecfdf5;
  color: #166534;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #bbf7d0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

.hero-visual {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
}

.hero-img-fallback {
  display: none; /* Hidden when CSS mockup is shown; show this and hide .phone-mockup if using a real image */
}

/* Phone mockup */
.phone-mockup {
  perspective: 1000px;
}

.phone-frame {
  width: 300px;
  background: #0f172a;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 0;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.phone-screen {
  background: #e5ddd5;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
}

.chat-header-mock {
  background: #075e54;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.chat-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-body-mock {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 85%;
  word-wrap: break-word;
}

.user-bubble {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.bot-bubble {
  background: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
}

.section-light {
  background: #ffffff;
}

.section-dark {
  background: #0f172a;
}

.section-alt {
  background: #f8fafc;
}

.section-accent {
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #ecfdf5;
  color: #166534;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  border: 1px solid #bbf7d0;
}

.badge-dark {
  background: rgba(255,255,255,0.1);
  color: #86efac;
  border-color: rgba(255,255,255,0.15);
}

.badge-accent {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title.light {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle.light {
  color: #94a3b8;
}

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

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #bbf7d0;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.step-icon-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  object-fit: contain;
  /* Placeholder images — replace with actual illustrations */
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card ul {
  padding: 0;
}

.feature-card li {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}

.feature-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #22c55e;
}

/* === STORIES === */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
}

.story-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: #bbf7d0;
}

.story-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.story-meta {
  margin-bottom: 14px;
}

.story-meta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.story-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #ecfdf5;
  color: #166534;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.story-card p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

/* === DEMO / SCREENSHOTS === */
.video-container {
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  background: #0f172a;
}

.demo-video {
  width: 100%;
  display: block;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  padding: 10px 10px 14px;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: #f1f5f9;
}

.screenshot-caption {
  padding: 12px 14px 4px;
  font-size: 0.82rem;
  color: #475569;
  text-align: center;
  font-weight: 500;
}

/* === DEMO WHATSAPP-STYLE CHATS === */
.demo-chat {
  background: #e5ddd5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

.demo-chat-header {
  background: #075e54;
  color: #ffffff;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.78rem;
}

.demo-chat-body {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-bubble {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 8px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-line; /* allows \n in the text */
}

.demo-bubble.user {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-right-radius: 2px;
}

.demo-bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* === WHY WHATSAPP === */
.why-wa-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.why-wa-content {
  flex: 1;
}

.why-wa-content p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.why-wa-visual {
  flex: 0 0 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wa-stat-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}

.wa-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #16a34a;
  margin-bottom: 4px;
}

.wa-stat-label {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

/* === AI SECTION === */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
}

.ai-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.ai-card h3 {
  color: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ai-card p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* === SECURITY === */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid;
}

.security-safe {
  background: #fef2f2;
  border-color: #fecaca;
}

.security-use {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.security-disclaimer {
  background: #fefce8;
  border-color: #fde68a;
}

.security-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0f172a;
}

.security-card ul {
  padding: 0;
  margin-bottom: 12px;
}

.security-card li {
  font-size: 0.9rem;
  color: #475569;
  padding: 4px 0;
  line-height: 1.5;
}

.security-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* === FAQ === */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: #94a3b8;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* === CTA === */
.section-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.cta-inner em {
  font-style: normal;
  color: #4ade80;
}

.cta-inner p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* === FOOTER === */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.footer-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

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

.footer-col h4 {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #4ade80;
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  margin-top: 16px;
}

.footer-bottom p {
  color: #475569;
  font-size: 0.82rem;
  text-align: center;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

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

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

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

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

  .hero-visual {
    flex: 0 0 auto;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-wa-grid {
    flex-direction: column;
  }

  .why-wa-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }

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

  .ai-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

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

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 80px 0 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .phone-frame {
    width: 260px;
  }

  .phone-screen {
    min-height: 400px;
  }

  .chat-bubble {
    font-size: 0.78rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-inner h2 {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .phone-frame {
    width: 240px;
  }

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

  .wa-stat-number {
    font-size: 1.6rem;
  }
}