/* ============================================
   Landing Page — Spacious, Premium Layout
   ============================================ */

/* ============ BODY OVERRIDE ============ */
.landing-body {
  background: var(--bg-primary);
}

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.section-header .section-title {
  margin-bottom: 20px;
}

.section-header .section-subtitle {
  margin-bottom: 0;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 200px 0 120px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

.hero-badge svg {
  color: var(--accent-light);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 40px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-terminal {
  max-width: 680px;
  margin: 0 auto;
}

.hero-terminal .code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(12px);
}

.hero-terminal pre {
  padding: 20px 24px;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============ STATS BAR ============ */
.stats-bar {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ============ FEATURES ============ */
.features {
  padding: 140px 0;
}

.features .section-title {
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-light);
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ USE CASES ============ */
.use-cases {
  padding: 140px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* iOS-style segmented control */
.use-case-tabs {
  display: inline-flex;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.use-cases .container > .use-case-tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 64px;
}

.uc-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.uc-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 180px;
  padding: 12px 28px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.uc-tab:hover {
  color: var(--text-primary);
}

.uc-tab.active {
  color: white;
}

.uc-tab svg {
  flex-shrink: 0;
  min-width: 16px;
}

.uc-tab.active svg {
  color: white;
}

/* Panels */
.uc-panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.uc-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.uc-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.uc-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.uc-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.uc-text p strong {
  color: var(--text-primary);
}

.uc-highlights {
  list-style: none;
  margin-top: 32px;
}

.uc-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.uc-highlights li svg {
  color: var(--green);
  flex-shrink: 0;
}

.uc-code {
  position: sticky;
  top: 100px;
}

.uc-code .code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.uc-code pre {
  padding: 24px;
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ============ CODE EXAMPLES ============ */
.examples {
  padding: 140px 0;
  background: var(--bg-primary);
}

/* code-tabs and .tab styles in style.css */

.code-example {
  display: none;
  max-width: 780px;
  margin: 0 auto;
}

.code-example.active {
  display: block;
}

/* ============ PRICING ============ */
.pricing {
  padding: 140px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(30, 30, 53, 1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.12);
}

.price-card.featured:hover {
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.12), 0 16px 48px rgba(0, 0, 0, 0.3);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-tier {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-amount {
  margin-bottom: 12px;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
}

.price-number {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.price-features li {
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(42, 42, 69, 0.5);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features .included {
  color: var(--text-primary);
}

.price-features .excluded {
  color: var(--text-muted);
}

/* ============ CTA ============ */
.cta {
  padding: 140px 0;
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .uc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .uc-code {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .features,
  .use-cases,
  .examples,
  .pricing,
  .cta {
    padding: 100px 0;
  }

  .section-header {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 40px;
  }

  .hero-badge {
    margin-bottom: 36px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .use-cases .container > .use-case-tabs {
    width: auto;
    max-width: 100%;
  }

  .uc-tab {
    padding: 10px 18px;
    font-size: 0.82rem;
    min-width: auto;
  }

  .uc-tab svg {
    display: none;
  }

  .uc-text h3 {
    font-size: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features,
  .use-cases,
  .examples,
  .pricing,
  .cta {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-terminal {
    margin: 0 -8px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .price-card {
    padding: 36px 28px;
  }

  .cta h2 {
    font-size: 1.75rem;
  }
}
