/* ========================================================================
   DNSai Landing Page Styles
   Uses CSS custom properties from theme.css — no palette import needed.
   ======================================================================== */

/* --- Hero Section --- */
.landing-hero {
  position: relative;
  min-height: 88vh; /* fallback for browsers without dvh */
  min-height: 88dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 80px;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(38, 196, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(0, 84, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  background: var(--bg-surface);
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.hero-title .text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- CTA Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand-gradient);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 84, 255, 0.4);
  background: var(--brand-gradient-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--btn-outline-text, var(--brand-cyan));
  background: transparent;
  border: 2px solid var(--btn-outline-border, var(--brand-cyan));
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--btn-outline-hover-bg, rgba(38, 196, 255, 0.1));
}

/* --- Stats Row --- */
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 48px 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Feature Grid --- */
.landing-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  /* min() keeps the track from forcing a 300px column wider than the
     available space — at 320px the bare minmax(300px,1fr) overflowed. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-glow, 0 8px 24px rgba(0, 0, 0, 0.5));
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: rgba(38, 196, 255, 0.1);
  color: var(--brand-cyan);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --- How It Works --- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-gradient);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

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

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(0, 84, 255, 0.08) 0%, rgba(38, 196, 255, 0.08) 100%);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
}


/* --- Nav + Footer ---------------------------------------------------------
   Moved to public_nav.css so the auth pages can load the shared chrome
   without pulling in the hero / stats / feature-grid rules above.
   landing.html must load public_nav.css before this file. */

/* --- Responsive --- */
@media (max-width: 900px) {
  .landing-stats {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
