/* ═══════════════════════════════════════════════════════════
   DeepWoodz — Premium Landing Page
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #080808;
  --bg-surface: #111111;
  --bg-elevated: #1A1A1A;
  --bg-smoke: #0C0C0C;
  --text-primary: #F8F8F8;
  --text-muted: #A0A0A0;
  --text-dim: #6B6B6B;
  --accent: #C9972A;
  --accent-bright: #E8B84B;
  --accent-glow: rgba(201, 151, 42, 0.4);
  --gold: #C9972A;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.18);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --section-pad: clamp(80px, 12vw, 200px);
  --content-width: 1200px;
  --text-width: 680px;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

/* ── Accessibility ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Grain Overlay ────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s ease;
}

.nav.scrolled .nav-inner {
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo-img {
  height: 48px;
  width: auto;
  transition: height 0.4s ease;
}

.nav.scrolled .nav-logo-img {
  height: 38px;
}

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-link-social {
  display: flex;
  align-items: center;
  color: var(--text-dim);
}
.nav-link-social:hover { color: var(--accent); }
.nav-link-social::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 20px 0 40px;
  gap: 24px;
}

.nav-mobile.active { display: flex; }

.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s;
}

.nav-mobile-link:hover { color: var(--accent); }

.nav-mobile-socials {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.nav-mobile-socials a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-mobile-socials a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 80%, #141008 0%, var(--bg-deep) 70%);
}

.hero-smoke,
.hero-embers {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-badge-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-badge-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.hero-logo-wrap {
  margin-bottom: 32px;
}

.hero-logo {
  max-width: clamp(280px, 50vw, 550px);
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 0 40px rgba(201, 151, 42, 0.15));
}

.hero-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 32px;
}

.hero-tagline {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 48px;
  opacity: 0;
}

.hero-cta-group {
  opacity: 0;
}

.hero-coming-soon {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.hero-social-link:hover {
  color: var(--accent);
}

.hero-social-link svg {
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(201, 151, 42, 0.15);
}

.btn-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.btn-primary:hover .btn-glow { opacity: 0.3; }

/* ── Scroll Indicator ─────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: var(--text-dim);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ── Section Label ────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── Craft Section ────────────────────────────────────── */
.craft {
  padding: var(--section-pad) clamp(20px, 4vw, 60px);
  background: var(--bg-deep);
  position: relative;
}

.craft::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg-smoke), transparent);
  pointer-events: none;
}

.craft-inner {
  max-width: var(--text-width);
  margin: 0 auto;
}

.craft-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.craft-divider {
  width: 0;
  height: 2px;
  background: var(--accent);
  margin-bottom: 40px;
}

.craft-story {
  max-width: var(--text-width);
}

.craft-story p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.craft-story-lead {
  font-size: 16px !important;
  color: var(--text-muted) !important;
  font-weight: 400;
}

/* ── Builder Section ──────────────────────────────────── */
.builder-section {
  padding: 80px clamp(20px, 4vw, 60px);
  background: var(--bg-deep);
}

.builder-inner {
  max-width: var(--text-width);
  margin: 0 auto;
  text-align: center;
}

.builder-content {
  padding: 48px 0;
}

.builder-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.4;
}

.builder-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  margin: 28px 0 16px;
  line-height: 1.4;
}

.builder-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Stats Band ───────────────────────────────────────── */
.stats-band {
  padding: 60px clamp(20px, 4vw, 60px);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-pct {
  font-size: 0.6em;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Features ─────────────────────────────────────────── */
.features {
  padding: var(--section-pad) clamp(20px, 4vw, 60px);
  background: var(--bg-deep);
}

.features-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.features-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 64px;
  max-width: var(--text-width);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.5s ease, transform 0.4s ease, box-shadow 0.5s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(212, 98, 43, 0.08);
  color: var(--accent);
  margin-bottom: 24px;
  transition: background 0.4s;
}

.feature-card:hover .feature-icon {
  background: rgba(212, 98, 43, 0.15);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Marquee ──────────────────────────────────────────── */
.marquee-section {
  padding: 32px 0;
  overflow: hidden;
  background: var(--bg-smoke);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  padding-right: 24px;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.marquee-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Notify Section ───────────────────────────────────── */
.notify {
  padding: var(--section-pad) clamp(20px, 4vw, 60px);
  background: var(--bg-surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notify::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

.notify-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.notify-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.notify-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.notify-form {
  position: relative;
}

.notify-input-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.notify-input-wrap:focus-within {
  border-color: var(--accent);
}

.notify-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.notify-input::placeholder {
  color: var(--text-dim);
}

.notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.notify-btn:hover {
  background: var(--accent-bright);
}

.notify-success {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}

.notify-success.show {
  opacity: 1;
  transform: translateY(0);
}

.notify-error {
  margin-top: 16px;
  font-size: 14px;
  color: #e85454;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}

.notify-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: 80px clamp(20px, 4vw, 60px) 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  opacity: 0.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-veteran {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .craft-story-lead {
    font-size: 16px !important;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

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

  .stats-inner {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider { display: none; }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .notify-input-wrap {
    flex-direction: column;
  }

  .notify-btn {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-smoke,
  .hero-embers {
    display: none;
  }

  .marquee-content {
    animation: none;
  }

  .scroll-indicator-line {
    animation: none;
    opacity: 0.5;
    transform: scaleY(1);
  }
}
