/* ========== Eltaman Landing — Dark marketing theme ==========
   Design principles borrowed from docs/ui/ (app design system):
   - 4px spacing scale (4, 8, 12, 16, 20, 24, 32, 48)
   - Radius tokens: md 6px (buttons), lg 8px (small cards),
     xl 12px (mid cards), 2xl 16px (feature cards), full 9999px
   - Typography scale only: 12, 14, 16, 18, 20, 24, 32, 40, 48+ (display)
   - 150ms transitions, 3px focus ring at 50%, active:scale(.98)
   - Landing keeps its own dark theme + blue brand (matches app primary).

   Color tokens:
   - bg:        #1f2023  (page)
   - sidebar:   #222C3C  (dark section bg)
   - surface:   #283345  (cards)
   - border:    #2b323e  (default)
   - border-h:  #3b4658  (hover)
   - primary:   #3b82f6  (blue-500, matches app)
   - primary-h: #2563eb  (blue-600)
   - primary-2: #60a5fa  (blue-400, accent text)
   - text:      #f3f4f6  (primary)
   - muted:     #9ca3af  (secondary)
   - subtle:    #6b7280  (tertiary)
*/

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: #1f2023;
  color: #f3f4f6;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
  border-radius: 6px;
}

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

/* ========== Nav ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(34, 44, 60, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #2b323e;
}
.nav-inner {
  width: 100%;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}
.logo-icon svg { display: block; }
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: #f3f4f6; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px;
  background: transparent; border: 1px solid #2b323e;
  color: #9ca3af; font-size: 12px; font-weight: 500;
  border-radius: 6px; cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
}
.lang-btn:hover { color: #f3f4f6; border-color: #3b4658; }
.lang-btn.active { background: #283345; color: #f3f4f6; border-color: #3b4658; }
.lang-btn:active { transform: scale(0.98); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 20px; border-radius: 6px;
  font-weight: 500; font-size: 14px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
              box-shadow 150ms ease, transform 150ms ease;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-family: inherit;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  white-space: nowrap;
}
.btn:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}
.btn:active { transform: scale(0.98); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 8px; }
.btn-full { width: 100%; }

.btn-ghost {
  background: transparent;
  border: 1px solid #2b323e;
  color: #f3f4f6;
  box-shadow: none;
}
.btn-ghost:hover {
  background: #283345;
  border-color: #3b4658;
  box-shadow: none;
}

.nav-link {
  color: #9ca3af; font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 8px 12px;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-link:hover { color: #f3f4f6; }

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

/* ========== Hero ========== */
.hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 500; color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 24px;
  background: rgba(59, 130, 246, 0.1);
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 40%, #9ca3af 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: #9ca3af; max-width: 560px;
  margin: 0 auto 40px; line-height: 1.6;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; margin-top: 64px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 700; color: #f3f4f6; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: #6b7280; }
.stat-divider { width: 1px; height: 40px; background: #2b323e; }

/* ========== Sections ========== */
.section { padding: 96px 0; }
.section-dark { background: #222C3C; }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: #3b82f6; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 48px; max-width: 640px;
  color: #f3f4f6;
}
.section-sub { font-size: 16px; color: #9ca3af; max-width: 480px; margin-bottom: 48px; line-height: 1.6; }

/* ========== Card base (shared across sections) ========== */
.problem-card, .step-card, .feature-card, .who-card {
  background: #283345;
  border: 1px solid #2b323e;
  border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

/* ========== Problem ========== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card { padding: 24px; }
.problem-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(220, 38, 38, 0.15); color: #f87171;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.problem-card p { color: #9ca3af; font-size: 14px; line-height: 1.6; }

/* ========== Steps (How It Works) ========== */
.steps-grid {
  display: flex; align-items: flex-start; gap: 16px;
}
.step-card { flex: 1; padding: 32px; }
.step-num {
  width: 40px; height: 40px; border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #f3f4f6; line-height: 1.3; }
.step-card p { color: #9ca3af; font-size: 14px; line-height: 1.6; }
.step-arrow {
  display: flex; align-items: center; padding-top: 48px; color: #6b7280;
}

@media (max-width: 768px) {
  .steps-grid { flex-direction: column; }
  .step-arrow { display: none; }
}

/* ========== Features ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card { padding: 24px; }
.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}
.feature-num {
  font-size: 12px; font-weight: 600; color: #3b82f6;
  letter-spacing: 0.05em;
  margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #f3f4f6; line-height: 1.3; }
.feature-card p { color: #9ca3af; font-size: 14px; line-height: 1.6; }

/* ========== Who ========== */
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.who-card {
  padding: 32px;
  text-align: center;
}
.who-icon { color: #3b82f6; margin-bottom: 16px; display: flex; justify-content: center; }
.who-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #f3f4f6; line-height: 1.3; }
.who-card p { color: #9ca3af; font-size: 14px; line-height: 1.6; }

/* ========== Numbers ========== */
.numbers-row {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  gap: 40px; text-align: center;
}
.number-big {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.number-label { font-size: 14px; color: #6b7280; margin-top: 4px; }

/* ========== CTA Section ========== */
.section-cta {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  padding: 120px 0;
}
.section-cta .section-title { margin-left: auto; margin-right: auto; }
.section-cta .section-sub { margin-left: auto; margin-right: auto; }

.cta-row {
  display: inline-flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
  justify-content: center;
}
.cta-trust {
  margin-top: 32px;
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  color: #6b7280; font-size: 12px;
}
.cta-trust span { display: inline-flex; align-items: center; gap: 8px; }
.cta-trust .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15); color: #3b82f6;
  font-size: 10px; font-weight: 700;
}

/* ========== Footer ========== */
.footer {
  padding: 32px 0;
  border-top: 1px solid #2b323e;
  background: #1a1c1f;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-left .logo-text { font-size: 16px; }
.footer-left p { color: #6b7280; font-size: 12px; margin-top: 4px; }
.footer-right a {
  color: #9ca3af; font-size: 14px;
  transition: color 150ms ease;
}
.footer-right a:hover { color: #f3f4f6; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero { padding: 128px 0 64px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .section { padding: 64px 0; }
  .features-grid, .problem-grid, .who-grid { grid-template-columns: 1fr; }
  .numbers-row { gap: 24px; }
  .number-item { flex: 0 0 45%; }
  .nav-right .nav-link { display: none; }
}

@media (max-width: 480px) {
  .section-title { font-size: 24px; }
  .nav-right .btn-sm { padding: 0 10px; font-size: 12px; }
}

/* ========== Animations ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge, .hero-title, .hero-sub, .hero .btn, .hero-ctas, .hero-stats {
  animation: fadeUp 500ms ease-out both;
}
.hero-title { animation-delay: 100ms; }
.hero-sub { animation-delay: 150ms; }
.hero-ctas { animation-delay: 200ms; }
.hero-stats { animation-delay: 250ms; }

/* Scroll reveal (unchanged motion pattern; duration aligned) */
.feature-card, .problem-card, .who-card, .number-item, .step-card {
  opacity: 0; transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.feature-card.visible, .problem-card.visible, .who-card.visible,
.number-item.visible, .step-card.visible {
  opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
