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

/* --- Hero Section --- */
.landing-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 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;
  grid-template-columns: repeat(auto-fit, minmax(300px, 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(220px, 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;
}

/* --- Landing Footer --- */
.landing-footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-default);
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.landing-footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.landing-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: var(--link);
}

/* --- Landing Nav (simplified) --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.landing-nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--nav-shadow-scrolled);
}

.landing-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
}

.landing-nav-logo img {
  width: 30px;
  height: 30px;
}

.landing-nav-logo .thin {
  font-weight: 300;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav-links a:hover {
  color: var(--nav-link-hover);
}

.landing-nav-links .nav-cta {
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
}

.landing-nav-links .nav-cta:hover {
  background: var(--brand-gradient-hover);
}

/* --- Hamburger Button --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 102;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: var(--bg-surface);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav Overlay --- */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .landing-nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-default);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    z-index: 101;
  }

  .landing-nav-links.open {
    display: flex;
  }

  .landing-nav-links a {
    padding: 14px 32px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-default);
  }

  .landing-nav-links a:last-child {
    border-bottom: none;
  }

  .landing-nav-links a:hover {
    background: var(--bg-surface);
  }

  .landing-nav-links .nav-cta {
    margin: 12px 24px;
    padding: 12px 20px;
    text-align: center;
    border-radius: 6px;
    border-bottom: none;
  }

  .landing-stats {
    gap: 24px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .landing-footer-inner {
    flex-direction: column;
  }
}
