/* ============================================
   Wolf Fortune — Promo Website Styles
   Dark wilderness theme with amber/gold accents
   ============================================ */

:root {
  /* Core palette — from app_theme.dart */
  --color-primary: #C68B28;
  --color-primary-light: #E8C872;
  --color-primary-dark: #9A6B1A;
  --color-dark-base: #0A0D12;
  --color-medium-base: #1C2833;
  --color-error: #FF4444;

  /* Extended palette */
  --color-surface: #141922;
  --color-surface-elevated: #1F2A38;
  --color-text-primary: #F0E6D3;
  --color-text-secondary: #B0B8C1;
  --color-text-muted: #6B7280;
  --color-amber-glow: rgba(198, 139, 40, 0.25);

  /* Gradients */
  --gradient-bg: linear-gradient(180deg, #1C2833 0%, #0A0D12 100%);
  --gradient-gold: linear-gradient(135deg, #C68B28 0%, #E8C872 50%, #C68B28 100%);
  --gradient-divider: linear-gradient(90deg, transparent 0%, #C68B28 50%, transparent 100%);
  --gradient-card: linear-gradient(180deg, #1F2A38 0%, #141922 100%);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(198, 139, 40, 0.2);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-dark-base);
  color: var(--color-text-primary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---- */
.font-heading {
  font-family: var(--font-heading);
}

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

.text-glow {
  text-shadow: 0 0 40px rgba(198, 139, 40, 0.4), 0 0 80px rgba(198, 139, 40, 0.15);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero_bg.webp') center/cover no-repeat, var(--gradient-bg);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,13,18,0.72) 0%, rgba(10,13,18,0.45) 50%, rgba(10,13,18,0.72) 100%);
  z-index: 1;
}

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

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.5s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* ---- Navigation ---- */
.nav-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-transparent.scrolled {
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Section dividers ---- */
.divider-gold {
  height: 1px;
  background: var(--gradient-divider);
  margin: 0 auto;
}

/* ---- Feature cards (staggered) ---- */
.feature-card {
  background: var(--gradient-card);
  border: 1px solid rgba(198, 139, 40, 0.12);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border-color: rgba(198, 139, 40, 0.3);
}

.feature-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ---- Screenshots section ---- */
.device-frame {
  position: relative;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(198, 139, 40, 0.2);
}

.device-frame img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

/* Swiper customization */
.swiper-pagination-bullet {
  background: var(--color-text-muted) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
  opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

/* ---- CTA section ---- */
.cta-section {
  position: relative;
  background: url('images/cta_bg.webp') center/cover no-repeat, var(--gradient-bg);
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,0.7) 0%, rgba(10,13,18,0.5) 50%, rgba(10,13,18,0.8) 100%);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  color: var(--color-dark-base);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 2.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(198, 139, 40, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(198, 139, 40, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary-light);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.875rem 2.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(198, 139, 40, 0.1);
  transform: translateY(-2px);
}

/* ---- Glow pulse animation ---- */
.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(198, 139, 40, 0.2); }
  50% { box-shadow: 0 0 40px rgba(198, 139, 40, 0.45); }
}

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

/* ---- Features background ---- */
.features-section {
  position: relative;
  background: url('images/features_bg.webp') center/cover no-repeat, var(--color-dark-base);
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.6);
}

/* ---- Legal / subpages ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--color-primary-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--color-text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: var(--color-primary);
}

/* ---- Contact form ---- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(198, 139, 40, 0.15);
  border-radius: 0.5rem;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(198, 139, 40, 0.15);
}

.form-group input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Privacy accept button (required by privacy plugin) ---- */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem 1.5rem;
  background: linear-gradient(to top, var(--color-dark-base) 60%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  color: var(--color-dark-base);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(198, 139, 40, 0.4);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 13, 18, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

/* ---- Footer ---- */
footer a {
  color: #C5CDD6;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--color-primary-light);
}

/* ---- Noise overlay ---- */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-heading {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.08em;
  }

  .device-frame {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .device-frame {
    max-width: 160px;
  }
}
