/* ============================================
   RESET & ROOT
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #F3EDE5;
  --bg-2:       #EDE7DF;
  --bg-3:       #E8E0D6;
  --border:     #D9CFC3;
  --border-2:   #C9BFB3;

  --white:      #1A1612;
  --text:       #6B5E52;
  --text-dim:   #9C8E80;
  --text-bright:#2D2823;

  --accent:     #D97757;
  --accent-dim: #C4684A;
  --accent-bg:  rgba(217, 119, 87, 0.08);

  --wa-green:   #25D366;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --container: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: var(--mono);
}

/* ============================================
   LAYOUT & TYPOGRAPHY
   ============================================ */

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

h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--white);
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 119, 87, 0.2);
  border-radius: 4px;
  background: var(--accent-bg);
}

/* ============================================
   NAV
   ============================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 237, 229, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
}

.logo-dot {
  color: var(--accent);
}

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

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

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   WHATSAPP CTA
   ============================================ */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: -0.02em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
}

.btn-wa .wa-icon {
  flex-shrink: 0;
}

.btn-wa-nav {
  display: inline-flex;
  align-items: center;
  background: var(--wa-green);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.btn-wa-nav:hover {
  background: #20bd5a;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 119, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 119, 87, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-sub {
  font-size: 17px;
  color: var(--text);
  max-width: 580px;
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sandbox-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--accent-bg);
  border: 1px solid rgba(217, 119, 87, 0.15);
  border-radius: 8px;
  max-width: 480px;
}

.sandbox-note p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.sandbox-note strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.step-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.step-num {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   VISION
   ============================================ */

.vision-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-sub {
  font-size: 17px;
  color: var(--text);
  max-width: 680px;
  margin-top: 14px;
  line-height: 1.6;
}

/* ============================================
   FOUNDER
   ============================================ */

.founder-section {
  padding: 80px 0;
}

.founder-layout {
  margin-top: 40px;
}

.founder-quote {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 32px;
}

.founder-details h3 {
  margin-bottom: 4px;
}

.founder-details p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.footer-right {
  text-align: right;
}

.footer-note {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   RTL SUPPORT
   ============================================ */

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .steps-grid {
  direction: rtl;
}

html[dir="rtl"] .step-card,
html[dir="rtl"] .hero,
html[dir="rtl"] .founder-section,
html[dir="rtl"] .how-it-works {
  text-align: right;
}

html[dir="rtl"] .footer-right {
  text-align: left;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero {
    padding: 60px 0 56px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  html[dir="rtl"] .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-link {
    display: none;
  }

  h1 {
    font-size: 32px;
  }

  .btn-wa {
    padding: 14px 24px;
    font-size: 15px;
  }
}
