/* ==========================================================
   WavingTrade Pre-Launch — Maritime Horizon Design System
   No 1px borders. Boundaries via tonal shifts only.
   ========================================================== */

/* --- Ishar Group Credit Section (above footer) --- */
.credit-section {
  background: var(--on-surface);
  padding: var(--space-10) var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.credit-section__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 500;
}

.credit-section__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s;
}

.credit-section__brand:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.credit-section__brand svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.credit-section__url {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s;
}

.credit-section__url:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- WhatsApp Floating Bubble --- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab:active { transform: scale(0.96); }

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* RTL: flip WhatsApp bubble to the left side */
[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 28px;
}

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

:root {
  /* Maritime Horizon Palette */
  --bg: #fff9ee;
  --surface-low: #f9f3e9;
  --surface-white: #ffffff;
  --surface-high: #ede7dd;
  --primary: #0055ce;
  --primary-container: #2f6fed;
  --teal: #006964;
  --teal-container: #20837e;
  --on-surface: #1d1b16;
  --on-surface-muted: #424654;
  --outline: #737786;
  --outline-variant: #c2c6d7;
  --error: #ba1a1a;

  /* Typography */
  --font-display: 'Cairo', sans-serif;
  --font-ui: 'Manrope', sans-serif;
  --font-data: 'IBM Plex Sans', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii — Maritime Horizon uses Full roundness */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--on-surface);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* --- Glassmorphic Floating Nav --- */
.nav {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 249, 238, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  width: min(90%, 860px);
  transition: box-shadow 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 8px 32px rgba(29, 27, 22, 0.08);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__logo span { color: var(--teal); }

.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-muted);
}

.nav__links a:hover { color: var(--primary); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: transform 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 85, 206, 0.25);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

/* --- Hero --- */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-24) var(--space-16);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero__content { max-width: 560px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-low);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-6);
}

.hero__badge i { width: 16px; height: 16px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  margin-bottom: var(--space-4);
}

.hero__title .accent { color: var(--primary); }

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--on-surface-muted);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

/* Waitlist input group */
.waitlist-form {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.waitlist-form input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  background: var(--surface-high);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--on-surface);
  outline: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.waitlist-form input:focus {
  background: var(--surface-white);
  box-shadow: 0 0 0 2px rgba(0, 85, 206, 0.15);
}

.waitlist-form input::placeholder { color: var(--outline); }

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--outline);
}

.hero__proof-avatars {
  display: flex;
}

.hero__proof-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-left: -8px;
}

.hero__proof-avatars span:first-child { margin-left: 0; }

/* Hero right — dashboard mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__mockup {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(29, 27, 22, 0.08);
  overflow: hidden;
  background: var(--surface-white);
}

.hero__mockup img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Marquee --- */
.marquee-section {
  padding: var(--space-10) 0;
  background: var(--surface-low);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: var(--space-10);
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.6;
}

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

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

/* --- Section Common --- */
.section {
  padding: var(--space-20) var(--space-16);
  max-width: 1400px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin-bottom: var(--space-4);
}

.section__desc {
  font-size: 1.05rem;
  color: var(--on-surface-muted);
  max-width: 55ch;
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

/* --- Bento Feature Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--space-8);
}

.bento-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(29, 27, 22, 0.07);
}

/* Wide cards spanning 2 columns */
.bento-card--wide { grid-column: span 2; }

.bento-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-5);
}

.bento-card__icon--teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-container));
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.bento-card__desc {
  font-size: 0.9rem;
  color: var(--on-surface-muted);
  line-height: 1.6;
  max-width: 42ch;
}

.bento-card__mockup {
  margin-top: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-low);
  max-height: 200px;
}

.bento-card__mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* --- How It Works --- */
.steps-section { background: var(--surface-low); padding: var(--space-20) var(--space-16); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  max-width: 1400px;
  margin: 0 auto;
}

.step {
  text-align: left;
}

.step__number {
  font-family: var(--font-data);
  font-size: 4rem;
  font-weight: 700;
  color: var(--outline-variant);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: 0.9rem;
  color: var(--on-surface-muted);
  line-height: 1.6;
}

/* --- Stats --- */
.stats-section {
  padding: var(--space-16) var(--space-16);
  max-width: 1400px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat {
  text-align: center;
  padding: var(--space-8);
  background: var(--surface-white);
  border-radius: var(--radius-lg);
}

.stat__number {
  font-family: var(--font-data);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--on-surface-muted);
  font-weight: 500;
}

/* --- CTA / Waitlist --- */
.cta-section {
  padding: var(--space-24) var(--space-16);
  text-align: center;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  color: #fff;
}

.cta-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.cta-box__desc {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: var(--space-8);
  max-width: 45ch;
  margin-inline: auto;
}

.cta-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  outline: none;
}

.cta-form button {
  padding: var(--space-3) var(--space-6);
  background: var(--surface-white);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: transform 0.2s;
}

.cta-form button:hover { transform: translateY(-1px); }

/* --- Footer --- */
.footer {
  padding: var(--space-10) var(--space-16);
  background: var(--surface-low);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  font-size: 0.8rem;
  color: var(--outline);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.footer__links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.footer__links a:hover { color: var(--on-surface); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger.visible > *:nth-child(8) { transition-delay: 560ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Language Switcher --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--surface-low);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-muted);
  transition: color 0.2s;
}

.lang-switch:hover { color: var(--primary); }

.lang-switch__icon { width: 14px; height: 14px; opacity: 0.6; }

/* --- RTL Support --- */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .hero {
  direction: rtl;
}

[dir="rtl"] .hero__content {
  text-align: right;
}

[dir="rtl"] .hero__title,
[dir="rtl"] .section__title,
[dir="rtl"] .bento-card__title,
[dir="rtl"] .step__title,
[dir="rtl"] .cta-box__title {
  font-family: 'Cairo', sans-serif;
  line-height: 1.3;
}

[dir="rtl"] .hero__subtitle,
[dir="rtl"] .section__desc,
[dir="rtl"] .bento-card__desc,
[dir="rtl"] .step__desc,
[dir="rtl"] .cta-box__desc {
  font-family: 'Cairo', sans-serif;
  line-height: 1.8;
}

[dir="rtl"] .hero__proof {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .hero__proof-avatars {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero__proof-avatars span {
  margin-left: 0;
  margin-right: -8px;
}

[dir="rtl"] .hero__proof-avatars span:first-child { margin-right: 0; }

[dir="rtl"] .waitlist-form {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav {
  direction: rtl;
}

[dir="rtl"] .nav__links {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer {
  direction: rtl;
  flex-direction: row-reverse;
}

[dir="rtl"] .footer__links {
  flex-direction: row-reverse;
}

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

[dir="rtl"] .bento-card__desc,
[dir="rtl"] .step__desc {
  max-width: 100%;
}

[dir="rtl"] .section__label {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

[dir="rtl"] .stat__label {
  font-family: 'Cairo', sans-serif;
}

/* ===========================================================
   Feature Showcase Sections — Alternating text+mockup layouts
   Each section presents a core WavingTrade 1.5 screen with
   precise data and a Stitch design mockup.
   =========================================================== */

/* Light variant (default): sand background */
.feature-showcase {
  padding: var(--space-20) var(--space-8);
  background: var(--bg);
}

/* Dark variant: navy gradient for visual rhythm */
.feature-showcase--dark {
  background: linear-gradient(160deg, #0a1628 0%, #0d2847 50%, #0a2240 100%);
  color: #fff;
}

/* Container: side-by-side layout */
.feature-showcase__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Reversed layout for alternating sections */
.feature-showcase__container--reverse {
  direction: ltr; /* Force LTR grid ordering */
}

/* RTL handling: reverse the reverse back to normal for RTL pages */
[dir="rtl"] .feature-showcase__container--reverse {
  direction: rtl;
}

[dir="rtl"] .feature-showcase__container--reverse .feature-showcase__text {
  order: 1;
}

[dir="rtl"] .feature-showcase__container--reverse .feature-showcase__visual {
  order: -1;
}

/* LTR: standard reverse behavior */
html:not([dir="rtl"]) .feature-showcase__container--reverse .feature-showcase__visual {
  order: -1;
}

/* Section title styling */
.feature-showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  color: var(--on-surface);
}

.feature-showcase--dark .feature-showcase__title {
  color: #fff;
}

/* Section label override for dark sections */
.section__label--light {
  color: rgba(255, 255, 255, 0.5);
}

/* Description text */
.feature-showcase__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-10);
  max-width: 540px;
}

.feature-showcase--dark .feature-showcase__desc {
  color: rgba(255, 255, 255, 0.65);
}

/* Highlights list: key data points from Stitch screens */
.feature-showcase__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.feature-showcase__highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

/* Icon circle for each highlight */
.feature-showcase__highlights li > i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 85, 206, 0.08);
  border-radius: var(--radius-md);
  color: var(--primary);
  padding: 8px;
}

.feature-showcase--dark .feature-showcase__highlights li > i {
  background: rgba(255, 255, 255, 0.08);
  color: #7db4ff;
}

/* Highlight text */
.feature-showcase__highlights li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-showcase__highlights li strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--on-surface);
}

.feature-showcase--dark .feature-showcase__highlights li strong {
  color: #fff;
}

.feature-showcase__highlights li span {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--on-surface-muted);
}

.feature-showcase--dark .feature-showcase__highlights li span {
  color: rgba(255, 255, 255, 0.55);
}

/* Mockup visual: screenshot container with elevation */
.feature-showcase__mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.feature-showcase--dark .feature-showcase__mockup {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Gentle hover lift for mockup */
.feature-showcase__mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.16), 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-showcase--dark .feature-showcase__mockup:hover {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-showcase__mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive --- */

/* Tablet landscape & small desktop */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: var(--space-20) var(--space-8); min-height: auto; padding-top: 8rem; }
  .hero__content { max-width: 100%; }
  .hero__visual { order: -1; }
  .hero__mockup { max-width: 520px; margin: 0 auto; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section, .stats-section { padding: var(--space-12) var(--space-8); }
  .steps-section { padding: var(--space-12) var(--space-8); }
  .cta-section { padding: var(--space-16) var(--space-8); }
  /* Feature showcase: stack on tablet */
  .feature-showcase__container { grid-template-columns: 1fr; gap: var(--space-10); }
  .feature-showcase { padding: var(--space-16) var(--space-8); }
  .feature-showcase__mockup { max-width: 600px; margin: 0 auto; }
  /* Reset ordering for stacked layout */
  .feature-showcase__container--reverse .feature-showcase__visual,
  [dir="rtl"] .feature-showcase__container--reverse .feature-showcase__visual { order: 0; }
  .feature-showcase__container--reverse .feature-showcase__text,
  [dir="rtl"] .feature-showcase__container--reverse .feature-showcase__text { order: 0; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .nav { width: 94%; gap: var(--space-4); }
  .nav__links { gap: var(--space-4); font-size: 0.8rem; }
  .hero { padding-top: 7rem; gap: var(--space-8); }
  .hero__title { font-size: clamp(2rem, 6vw, 2.75rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .stat { padding: var(--space-6); }
  .stat__number { font-size: 2rem; }
  .credit-section { padding: var(--space-8) var(--space-8); }
  .feature-showcase { padding: var(--space-12) var(--space-6); }
  .feature-showcase__title { font-size: 1.6rem; }
  .feature-showcase__desc { font-size: 0.95rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .credit-section { padding: var(--space-6) var(--space-4); flex-direction: column; gap: var(--space-3); }
  .credit-section__text { font-size: 0.8rem; }
  .credit-section__brand { font-size: 0.85rem; }
  .nav { width: 95%; padding: var(--space-2) var(--space-4); gap: var(--space-3); }
  .nav__links { display: none; }
  .lang-switch { font-size: 0.75rem; padding: var(--space-1) var(--space-2); }
  .btn-primary { padding: var(--space-2) var(--space-4); font-size: 0.8rem; }
  .hero { padding: 6.5rem var(--space-4) var(--space-10); gap: var(--space-6); }
  .hero__title { font-size: 1.85rem; }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__badge { font-size: 0.72rem; }
  .waitlist-form { flex-direction: column !important; }
  .waitlist-form input { width: 100%; }
  .hero__proof { flex-wrap: wrap; justify-content: center; }
  .hero__mockup { border-radius: var(--radius-lg); }
  .bento-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .bento-card--wide { grid-column: span 1; }
  .bento-card { padding: var(--space-6); }
  .bento-card__title { font-size: 1.1rem; }
  .bento-card__desc { font-size: 0.85rem; }
  .section__title { font-size: 1.5rem; }
  .section__desc { font-size: 0.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .stat { padding: var(--space-4); border-radius: var(--radius-md); }
  .stat__number { font-size: 1.75rem; }
  .stat__label { font-size: 0.75rem; }
  .step__number { font-size: 2.5rem; }
  .step__title { font-size: 1.1rem; }
  .cta-form { flex-direction: column; }
  .cta-section { padding: var(--space-10) var(--space-4); }
  .cta-box { padding: var(--space-10) var(--space-6); border-radius: var(--radius-lg); }
  .cta-box__title { font-size: 1.35rem; }
  .footer { flex-direction: column; gap: var(--space-4); text-align: center; padding: var(--space-8) var(--space-4); }
  [dir="rtl"] .footer { flex-direction: column; }
  .whatsapp-fab { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  [dir="rtl"] .whatsapp-fab { left: 20px; right: auto; }
  .marquee-track span { font-size: 0.85rem; }
  /* Feature showcase mobile */
  .feature-showcase { padding: var(--space-10) var(--space-4); }
  .feature-showcase__container { gap: var(--space-8); }
  .feature-showcase__title { font-size: 1.4rem; }
  .feature-showcase__desc { font-size: 0.88rem; max-width: 100%; }
  .feature-showcase__highlights { gap: var(--space-4); }
  .feature-showcase__highlights li > i { width: 36px; height: 36px; padding: 6px; }
  .feature-showcase__highlights li strong { font-size: 0.88rem; }
  .feature-showcase__highlights li span { font-size: 0.8rem; }
}

/* Small mobile (iPhone SE, Galaxy Fold) */
@media (max-width: 380px) {
  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 0.88rem; }
  .hero { padding-left: var(--space-3); padding-right: var(--space-3); }
  .section, .stats-section { padding: var(--space-8) var(--space-3); }
  .steps-section { padding: var(--space-8) var(--space-3); }
  .bento-card { padding: var(--space-4); }
  .cta-box { padding: var(--space-8) var(--space-4); }
  .stat__number { font-size: 1.5rem; }
  .nav { width: 97%; }
  .feature-showcase { padding: var(--space-8) var(--space-3); }
  .feature-showcase__title { font-size: 1.25rem; }
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
  .footer { padding-bottom: max(var(--space-10), env(safe-area-inset-bottom)); }
  .whatsapp-fab { bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px)); }
}

