/* ===== CSS Variables ===== */
:root {
  --bg: #FDFBF7;
  --bg-card: #FFFFFF;
  --border: #E8E4DC;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #999999;
  --accent: #2D8C6F;
  --accent-light: #2D8C6F11;
  --accent-hover: #247A5F;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 56px 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== Section Label (Mono Eyebrow) ===== */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ===== Section Heading ===== */
.section-heading {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

/* ===== Navigation ===== */
.nav {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-bulb {
  color: var(--accent);
  flex-shrink: 0;
  animation: bulb-flicker 6s infinite;
}

.nav-logo-bulb .bulb-glow {
  filter: drop-shadow(0 0 3px rgba(45, 140, 111, 0.4));
}

@keyframes bulb-flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  49% { opacity: 0.4; }
  50% { opacity: 1; }
  51% { opacity: 0.5; }
  52% { opacity: 1; }
  78% { opacity: 1; }
  79% { opacity: 0.6; }
  80% { opacity: 1; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 2px;
  transition: color 0.2s, font-weight 0.2s;
}

.lang-toggle button.active {
  color: var(--text-primary);
  font-weight: 700;
}

.lang-toggle span {
  color: var(--text-muted);
  user-select: none;
}

.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Section Icons (Lucide) ===== */
.section-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  stroke-width: 1.5;
  margin-bottom: 14px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.problem-item:hover .section-icon,
.service-card:hover .section-icon,
.how-step:hover .section-icon {
  opacity: 1;
  transform: translateY(-2px);
}

.service-icon-wrap {
  margin-bottom: 4px;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Floating gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.hero-orb-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #2D8C6F22 0%, transparent 70%);
  top: -60px;
  right: 5%;
  animation: orb-drift-1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #2D8C6F18 0%, transparent 70%);
  bottom: -40px;
  left: 10%;
  animation: orb-drift-2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #E8E4DC40 0%, transparent 70%);
  top: 30%;
  right: 20%;
  animation: orb-drift-3 12s ease-in-out infinite;
}

.hero-orb-4 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #2D8C6F15 0%, transparent 70%);
  top: 15%;
  left: 30%;
  animation: orb-drift-4 16s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 20px) scale(1.05); }
  50% { transform: translate(-15px, 40px) scale(0.95); }
  75% { transform: translate(20px, 15px) scale(1.02); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -15px) scale(1.03); }
  50% { transform: translate(40px, -30px) scale(0.97); }
  75% { transform: translate(10px, -20px) scale(1.05); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33% { transform: translate(-20px, 25px) scale(1.08); opacity: 1; }
  66% { transform: translate(15px, -10px) scale(0.92); opacity: 0.6; }
}

@keyframes orb-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(20px, -20px) scale(1.1); opacity: 0.8; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-subheadline {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== Email CTA Component ===== */
.email-cta {
  max-width: 460px;
}

.email-cta-form {
  display: flex;
}

.email-cta-input {
  flex: 1;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s;
}

.email-cta-input::placeholder {
  color: #bbb;
}

.email-cta-input:focus {
  border-color: var(--accent);
}

.email-cta-input.error {
  border-color: #d44;
}

.email-cta-button {
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.email-cta-button:hover {
  background: var(--accent-hover);
}

.email-cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.email-cta-error {
  font-size: 0.8rem;
  color: #d44;
  margin-top: 8px;
  display: none;
}

.email-cta-error.visible {
  display: block;
}

.email-cta-success {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  padding: 16px 0;
  display: none;
}

.email-cta-success.visible {
  display: block;
}

.email-cta-form.hidden {
  display: none;
}

/* ===== Problem Section ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-item {
  padding-left: 20px;
  border-left: 2.5px solid var(--border);
  transition: border-color 0.3s;
}

.problem-item:hover {
  border-left-color: var(--accent);
}

.problem-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.problem-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px #2D8C6F0D;
}

.service-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.service-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== How It Works Section ===== */
.how-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.how-step {
  padding: 0 32px;
  border-right: 1px solid var(--border);
}

.how-step:first-child {
  padding-left: 0;
}

.how-step:last-child {
  border-right: none;
  padding-right: 0;
}

.how-step-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: #2D8C6F18;
  line-height: 1;
  margin-bottom: 16px;
}

.how-step-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.how-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Case Study Section ===== */
.case-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
}

.case-text {
  padding: 40px 36px;
}

.case-client-logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.case-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.case-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.case-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 40px 36px;
  align-content: center;
}

.case-metric {
  background: var(--bg);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.case-metric-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1.2;
}

.case-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-coming-soon {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ===== Final CTA Section ===== */
.final-cta {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta .section-heading {
  font-size: 2.2rem;
}

.final-cta-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.final-cta .email-cta {
  margin: 0 auto;
}

.final-cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.footer-logo-bulb {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-email a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.footer-email a:hover {
  color: var(--accent-hover);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1100px) {
  .hero-headline {
    font-size: 2.8rem;
  }

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

  .final-cta .section-heading {
    font-size: 1.9rem;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 40px 0;
  }

  /* Nav */
  .nav {
    padding: 16px 24px;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding: 48px 0 40px;
  }

  .hero-orb-1 { width: 200px; height: 200px; right: -20%; }
  .hero-orb-2 { width: 160px; height: 160px; }
  .hero-orb-3 { width: 120px; height: 120px; }
  .hero-orb-4 { width: 80px; height: 80px; }

  .hero-headline {
    font-size: 2.4rem;
  }

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

  /* Email CTA stacked */
  .email-cta-form {
    flex-direction: column;
  }

  .email-cta-input {
    border-right: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .email-cta-input:focus {
    border-color: var(--accent);
  }

  .email-cta-input.error {
    border-color: #d44;
  }

  .email-cta-button {
    border-radius: 8px;
    text-align: center;
  }

  /* Problem */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* How it works */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-step {
    border-right: none;
    padding: 0;
  }

  /* Case study */
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-text {
    padding: 28px 24px;
  }

  .case-metrics {
    padding: 0 24px 28px;
  }

  .case-title {
    font-size: 1.15rem;
  }

  /* Final CTA */
  .final-cta .section-heading {
    font-size: 1.6rem;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }
}
