/*
 * Hyper Parameter Oasis - Landing Page Styles
 * Public-facing landing page for unauthenticated visitors
 *
 * Note: Background images use CSS custom properties set in the template
 * via inline <style> block to support base_prefix for reverse proxy deployment.
 */

/* === Page Layout === */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #d0e8f0 0%, #e0d8c8 50%, #d4c4a8 100%);
}

[data-theme="light"] .landing-page {
  color: #1a1a1a;
}

[data-theme="light"] .landing-page .landing-title,
[data-theme="light"] .landing-page .landing-section-title,
[data-theme="light"] .landing-page .landing-feature-title {
  color: #0a0a0a;
}

[data-theme="light"] .landing-page .landing-tagline,
[data-theme="light"] .landing-page .landing-section-subtitle,
[data-theme="light"] .landing-page .landing-feature-description {
  color: #2a2a2a;
}

[data-theme="light"] .landing-page .landing-footer {
  color: #3a3a3a;
}

[data-theme="dark"] .landing-page {
  background: linear-gradient(180deg, var(--color-ocean-deep) 0%, var(--color-ocean-mid) 50%, var(--color-bg-page) 100%);
}

/* === Top Navigation === */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .landing-nav {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-border);
}

.landing-nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* === Hero Section === */
.landing-hero {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: var(--landing-hero-bg-dark);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

[data-theme="light"] .landing-hero {
  background-image: var(--landing-hero-bg-light);
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: 90%;
  height: 350px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  z-index: 0;
}

[data-theme="light"] .landing-hero::before {
  background: rgba(255, 255, 255, 0.5);
}

.landing-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm) 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .landing-title {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.landing-tagline {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-lg) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .landing-tagline {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* === Value Proposition Section === */
.landing-section {
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.landing-section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
  margin: 0 0 var(--space-lg) 0;
}

.landing-section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
}

/* === Feature Cards === */
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.landing-features--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.landing-feature-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.landing-feature-card:hover {
  border-color: var(--color-lagoon);
  box-shadow: var(--shadow-md);
}

.landing-feature-card--muted {
  background: var(--color-bg-hover);
  border-color: var(--color-border);
}

.landing-feature-card--muted:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .landing-feature-card--muted {
  background: rgba(255, 255, 255, 0.03);
}

.landing-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.1);
  border-radius: var(--radius-lg);
}

.landing-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-lagoon);
}

[data-theme="dark"] .landing-feature-icon {
  background: rgba(20, 184, 166, 0.15);
}

.landing-feature-icon--muted {
  background: rgba(148, 163, 184, 0.1);
}

.landing-feature-icon--muted svg {
  color: var(--color-text-muted);
}

[data-theme="dark"] .landing-feature-icon--muted {
  background: rgba(148, 163, 184, 0.08);
}

.landing-feature-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm) 0;
}

.landing-feature-title--muted {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.landing-feature-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* === Footer === */
.landing-footer {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.landing-footer a {
  color: var(--color-lagoon);
}

.landing-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.landing-section-subtitle--muted {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
