/* ═══════════════════════════════════════════
   Lecha — Landing Page
   Fonts: Space Grotesk + JetBrains Mono
   ═══════════════════════════════════════════ */

:root {
  --primary: #103A8C;
  --primary-deep: #0a2259;
  --accent: #18BFE3;
  --bg: #F4F8FC;
  --text: #0E1B3D;
  --text-muted: #6B7A99;
  --orange: #F97316;
  --orange-light: #FB923C;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --divider: #E2EAF2;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 56px;
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

.btn-cta {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(249,115,22,0.3);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249,115,22,0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: default;
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 50%, #1a4fa0 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-logo {
  margin-bottom: 24px;
}

.falcon-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(24,191,227,0.4));
  animation: float 6s ease-in-out infinite;
}

.footer-logo {
  width: 28px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

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

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
  margin: 12px 0 0;
  line-height: 1.4;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.6;
  margin: 16px auto 40px;
  max-width: 420px;
}

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

/* ═══════════════════════════════════════════
   STEPS
   ═══════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  border: 1px solid var(--divider);
  transition: all 0.3s ease;
}
.step-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(24,191,227,0.1);
  transform: translateY(-4px);
}

.step-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CALCULATOR + PRICING
   ═══════════════════════════════════════════ */
.calc-section {
  padding-top: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.calc-card, .pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--divider);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--text);
  text-align: left;
}

/* Calculator form */
.calc-form { display: flex; flex-direction: column; gap: 16px; }

.input-group { display: flex; flex-direction: column; gap: 4px; }

.input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.calc-form input[type="text"],
.calc-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: all 0.2s ease;
}
.calc-form input:focus, .calc-form select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(24,191,227,0.1);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Calculator result */
.calc-result-inner {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--divider);
}

.calc-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.calc-breakdown { max-width: 320px; margin: 0 auto; }

.bd-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.bd-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  color: var(--text);
}

#calc-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #FEF2F2;
  color: #991B1B;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid #FECACA;
}

/* Pricing */
.pricing-rows { display: flex; flex-direction: column; }

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.95rem;
}
.pricing-row:last-child { border-bottom: none; }

.price-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.price-val small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pricing-divider {
  height: 1px;
  background: var(--divider);
  margin: 8px 0;
}

.pricing-extra {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pricing-extra .price-val {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

/* ═══════════════════════════════════════════
   COURIER CTA
   ═══════════════════════════════════════════ */
.courier-section {
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 24px;
}

.courier-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.courier-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.courier-lead {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  margin: 0 0 28px;
}

.courier-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.courier-perks li {
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 400;
}
.courier-perks li::before {
  content: "\2192\0020\0020";
  color: var(--orange);
  font-weight: 700;
}

.courier-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.courier-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════
   SCREENSHOTS
   ═══════════════════════════════════════════ */
.screenshots-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

.screenshots-row img {
  height: 440px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.screenshots-row img:hover {
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--primary-deep);
  color: var(--white);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.35;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.step-card:nth-child(2) { transition-delay: 0.1s; }
.step-card:nth-child(3) { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 72px 20px 56px; }
  .hero h1 { font-size: 3rem; }
  .hero-tagline { font-size: 1.2rem; }
  .falcon-logo { width: 120px; }

  .section { padding: 56px 16px; }
  .section-title { font-size: 1.8rem; margin-bottom: 36px; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-card { padding: 28px 20px; }

  .calc-grid { grid-template-columns: 1fr; }
  .calc-card, .pricing-card { padding: 24px 20px; }
  .calc-row { grid-template-columns: 1fr; }
  .calc-price { font-size: 2.2rem; }

  .courier-inner { grid-template-columns: 1fr; text-align: center; }
  .courier-text h2 { font-size: 1.8rem; }
  .courier-perks { display: inline-block; text-align: left; }
  .courier-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .courier-stat { flex: 1; min-width: 100px; padding: 16px; }
  .stat-num { font-size: 1.5rem; }

  .screenshots-row { justify-content: flex-start; }
  .screenshots-row img { height: 320px; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
