/* ============================================
   ShadowART - Landing Page Styles
   Dark mystic theme with Electric Indigo accent
   ============================================ */

:root {
  --sa-indigo: #8B5CF6;
  --sa-indigo-hover: #A78BFA;
  --sa-gold: #D4AF37;
  --sa-dark: #050508;
  --sa-dark-secondary: #0d0d14;
  --sa-dark-card: #111119;
  --sa-dark-border: #1f1f2e;
  --sa-glow: rgba(139, 92, 246, 0.15);
}

/* Override accent for ShadowART pages */
[data-theme="dark"] .sa-hero,
[data-theme="dark"] .sa-section,
[data-theme="dark"] .sa-cta,
[data-theme="dark"] .sa-disclaimer {
  --accent: var(--sa-indigo);
  --accent-hover: var(--sa-indigo-hover);
}

/* --- Hero --- */
.sa-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.sa-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    var(--sa-dark);
  z-index: 0;
}

[data-theme="light"] .sa-hero-bg {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    var(--bg);
}

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

.sa-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3), 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.sa-hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sa-glow);
  color: var(--sa-indigo);
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.sa-hero-title {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.sa-accent {
  background: linear-gradient(135deg, var(--sa-indigo), var(--sa-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sa-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.sa-hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.sa-hero-cta {
  animation: fadeUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.sa-hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
  animation: fadeUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

/* --- Buttons --- */
.sa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sa-btn-primary {
  background: var(--sa-indigo);
  color: #fff;
}

.sa-btn-primary:hover {
  background: var(--sa-indigo-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

/* --- Sections --- */
.sa-section {
  padding: 100px 0;
}

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

.sa-section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.sa-section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* --- Layers --- */
.sa-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.sa-layer {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.sa-layer:hover {
  border-color: var(--sa-indigo);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}

.sa-layer-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sa-layer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}

.sa-layer-free {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.sa-layer-pro {
  background: rgba(139, 92, 246, 0.15);
  color: var(--sa-indigo);
}

.sa-layer h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.sa-layer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Features Grid --- */
.sa-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.sa-feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.sa-feature:hover {
  border-color: var(--sa-indigo);
  transform: translateY(-2px);
}

.sa-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sa-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--sa-indigo);
}

.sa-feature h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* --- Privacy --- */
.sa-privacy-grid {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sa-privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.sa-privacy-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.sa-privacy-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.sa-privacy-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* --- Pricing --- */
.sa-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.sa-price-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.sa-price-card.sa-price-featured {
  border-color: var(--sa-indigo);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.sa-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sa-indigo);
  color: #fff;
  white-space: nowrap;
}

.sa-price-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sa-price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.sa-price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.sa-price-save {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #22c55e;
  margin-bottom: 20px;
}

.sa-price-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
}

.sa-price-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.sa-price-features li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: var(--sa-indigo);
  font-family: var(--font-mono);
}

.sa-price-trial {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- CTA --- */
.sa-cta {
  text-align: center;
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    var(--bg);
}

.sa-cta-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sa-cta-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* --- Disclaimer --- */
.sa-disclaimer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.sa-disclaimer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .sa-hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .sa-section {
    padding: 60px 0;
  }

  .sa-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

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

  .sa-layers {
    grid-template-columns: 1fr;
  }
}
