/* Dilla landing page — standalone static styles */

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #121c26;
  color: #e8edf2;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

/* ───── Buttons ───── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #e8b84b 0%, #d4a03a 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8em 2em;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(232, 184, 75, 0.2);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(232, 184, 75, 0.3);
}

.btn-primary:active {
  filter: brightness(0.95);
  box-shadow: 0 1px 4px rgba(232, 184, 75, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 28, 38, 0.85);
  color: #8fa3b8;
  border: 1px solid rgba(143, 163, 184, 0.12);
  padding: 0.8em 2em;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-secondary:hover {
  background: rgba(26, 42, 56, 0.90);
  border-color: rgba(143, 163, 184, 0.12);
  color: #f0f4f8;
}

/* ───── Landing container ───── */

.landing {
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #121c26;
}

/* ───── Hero ───── */

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(46, 139, 154, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(232, 184, 75, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(46, 139, 154, 0.06) 0%, transparent 60%);
  animation: landing-mesh-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes landing-mesh-drift {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 20% 40%, rgba(46, 139, 154, 0.15) 0%, transparent 70%),
      radial-gradient(ellipse 60% 80% at 80% 60%, rgba(232, 184, 75, 0.08) 0%, transparent 70%),
      radial-gradient(ellipse 50% 50% at 50% 0%, rgba(46, 139, 154, 0.06) 0%, transparent 60%);
  }
  50% {
    background:
      radial-gradient(ellipse 70% 70% at 30% 50%, rgba(46, 139, 154, 0.12) 0%, transparent 70%),
      radial-gradient(ellipse 80% 60% at 70% 30%, rgba(232, 184, 75, 0.10) 0%, transparent 70%),
      radial-gradient(ellipse 60% 40% at 60% 80%, rgba(46, 139, 154, 0.08) 0%, transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 60% 80% at 40% 30%, rgba(46, 139, 154, 0.14) 0%, transparent 70%),
      radial-gradient(ellipse 70% 50% at 60% 70%, rgba(232, 184, 75, 0.07) 0%, transparent 70%),
      radial-gradient(ellipse 50% 60% at 30% 60%, rgba(46, 139, 154, 0.10) 0%, transparent 60%);
  }
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.landing-hero-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(46, 139, 154, 0.3));
}

.landing-hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #f0f4f8;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.landing-hero-pronunciation {
  font-style: italic;
  color: #4d6478;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.landing-hero-explanation {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #8fa3b8;
  max-width: 580px;
  margin: 0 0 2.5rem;
}

.landing-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: landing-bounce 2s ease-in-out infinite;
  color: #4d6478;
  opacity: 0.5;
}

.landing-scroll-indicator svg {
  width: 24px;
  height: 24px;
}

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

/* ───── Problem/Solution Strip ───── */

.landing-problems {
  background: #0a0e14;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(143, 163, 184, 0.08);
  border-bottom: 1px solid rgba(143, 163, 184, 0.08);
}

.landing-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-problem-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.landing-problem-icon {
  width: 48px;
  height: 48px;
  color: #2e8b9a;
  flex-shrink: 0;
}

.landing-problem-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #f0f4f8;
  margin: 0;
}

.landing-problem-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #8fa3b8;
  margin: 0;
  max-width: 320px;
}

/* ───── Feature Showcase ───── */

.landing-features {
  padding: 6rem 2rem;
}

.landing-feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto 5rem;
}

.landing-feature-row:last-child {
  margin-bottom: 0;
}

.landing-feature-row.reverse {
  flex-direction: row-reverse;
}

.landing-feature-text {
  flex: 1;
  min-width: 0;
}

.landing-feature-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  color: #f0f4f8;
  margin: 0 0 0.75rem;
}

.landing-feature-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #8fa3b8;
  margin: 0;
}

.landing-feature-visual {
  flex: 1;
  min-width: 0;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c1218 0%, #0a0e14 100%);
  border: 1px solid rgba(143, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.landing-feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 139, 154, 0.05) 0%, rgba(232, 184, 75, 0.03) 100%);
  pointer-events: none;
}

.landing-feature-visual-icon {
  width: 48px;
  height: 48px;
  color: #4d6478;
  opacity: 0.4;
}

/* ───── Technical Highlights ───── */

.landing-tech {
  background: #121c26;
  padding: 6rem 2rem;
}

.landing-tech-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: #f0f4f8;
  text-align: center;
  margin: 0 0 3rem;
}

.landing-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-tech-card {
  background: rgba(18, 28, 38, 0.85);
  border: 1px solid rgba(143, 163, 184, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.landing-tech-card:hover {
  border-color: rgba(143, 163, 184, 0.06);
  transform: translateY(-2px);
}

.landing-tech-card-label {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #2e8b9a;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.landing-tech-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8fa3b8;
  margin: 0;
}

/* ───── Bottom CTA ───── */

.landing-cta {
  background: #0a0e14;
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(143, 163, 184, 0.08);
}

.landing-cta-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: #f0f4f8;
  margin: 0 0 0.75rem;
}

.landing-cta-subline {
  font-size: 1.1rem;
  color: #8fa3b8;
  margin: 0 0 2rem;
}

.landing-cta-code {
  background: #0a1016;
  border: 1px solid rgba(143, 163, 184, 0.08);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #e8edf2;
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: left;
  overflow-x: auto;
  user-select: all;
}

.landing-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ───── Footer ───── */

.landing-footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(143, 163, 184, 0.08);
  text-align: center;
}

.landing-footer-wordmark {
  height: 28px;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.landing-footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.landing-footer-links a {
  font-size: 0.9rem;
  color: #4d6478;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer-links a:hover {
  color: #f0f4f8;
}

.landing-footer-tagline {
  font-size: 0.85rem;
  color: #4d6478;
  margin: 0;
}

/* ───── Responsive ───── */

@media (max-width: 768px) {
  .landing-problems-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .landing-feature-row,
  .landing-feature-row.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .landing-feature-visual {
    width: 100%;
  }

  .landing-tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .landing-hero {
    padding: 3rem 1.5rem;
  }

  .landing-features {
    padding: 4rem 1.5rem;
  }

  .landing-tech {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .landing-hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .landing-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ───── Reduced motion ───── */

@media (prefers-reduced-motion: reduce) {
  .landing-hero::before {
    animation: none;
  }

  .landing-scroll-indicator {
    animation: none;
  }

  .landing-tech-card:hover {
    transform: none;
  }
}
