/* ============================================================================
   Anubis Squad — Egyptian Tactical PvP
   Marketing site styles
   ============================================================================ */

:root {
  /* Backgrounds — dark sand / charred basalt */
  --bg-deep:    #0a0805;
  --bg:         #0d0a07;
  --bg-alt:     #120e09;
  --bg-card:    #1a140e;
  --bg-card-hi: #221a12;

  /* Accents */
  --gold:       #d4af37;
  --gold-hi:    #f0c956;
  --gold-low:   #8a6f1c;
  --blood:      #a23030;
  --teal:       #4ec9a9; /* status indicator */

  /* Text — papyrus / sand */
  --text:       #f5ecd9;
  --text-dim:   #c9b990;
  --text-faded: #8a7f64;
  --text-mute:  #5d5340;

  /* Borders */
  --border:       rgba(212, 175, 55, 0.16);
  --border-hi:    rgba(212, 175, 55, 0.4);
  --border-soft:  rgba(245, 236, 217, 0.08);

  /* Spacing rhythm */
  --container: 1180px;
  --radius:    10px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-hi); }

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.muted { color: var(--text-faded); font-weight: 500; }
.title-accent { color: var(--gold); }
.accent { color: var(--gold); }

.section-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead, .lede {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 24px;
}

.lead { font-size: 1.15rem; }

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
  color: #0d0a07;
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffe089 0%, var(--gold-hi) 100%);
  color: #0d0a07;
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ============================================================================
   Nav
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.brand:hover { color: var(--gold-hi); }
.brand-icon { width: 36px; height: 36px; }
.brand-text { white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  color: var(--gold) !important;
}
.nav-cta:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(162, 48, 48, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0805 0%, #120e09 100%);
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.10) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
}

/* Subtle hieroglyph-style pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(212, 175, 55, 0.03) 79px, rgba(212, 175, 55, 0.03) 80px);
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  text-align: left;
}

.hero-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 28px;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.05);
}

.hero-title {
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.9;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-faded);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
}
.hero-meta .dot { color: var(--gold-low); }

.hero-scrollhint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faded);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================================
   Sections (general)
   ============================================================================ */

.section {
  padding: 90px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

/* ============================================================================
   Features
   ============================================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hi);
  background: var(--bg-card-hi);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-hi);
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }

/* ============================================================================
   Trailer / Video
   ============================================================================ */

.video-frame {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-faded);
  background:
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    var(--bg-card);
}
.video-placeholder svg { color: var(--gold-low); opacity: 0.5; }
.video-placeholder-text {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================================================
   Screenshots
   ============================================================================ */

.screenshot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
  margin-top: 40px;
}

.shot {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hi));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.shot:hover {
  border-color: var(--border-hi);
  color: var(--text-faded);
}
.shot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 20px, rgba(212, 175, 55, 0.025) 20px, rgba(212, 175, 55, 0.025) 21px);
}
.shot-wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================================
   Roadmap
   ============================================================================ */

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  position: relative;
}

.roadmap-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-low) 30%, var(--border) 100%);
}

.roadmap-item {
  display: flex;
  gap: 24px;
  padding: 16px 0 32px;
  position: relative;
}

.roadmap-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold-low);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.roadmap-current .roadmap-marker {
  background: var(--gold);
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.1); }
}

.roadmap-content { flex: 1; }
.roadmap-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}
.roadmap-current .roadmap-phase { color: var(--gold-hi); }
.roadmap-content h3 { margin-bottom: 6px; }
.roadmap-content p { color: var(--text-dim); margin: 0; }

/* ============================================================================
   Systems (Coming Soon grid)
   ============================================================================ */

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all 0.18s;
}
.system-card:hover {
  border-color: var(--border-hi);
  background: var(--bg-card-hi);
}

.system-status {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.status-soon {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-hi);
}
.status-active {
  color: var(--teal);
  background: rgba(78, 201, 169, 0.1);
  border: 1px solid rgba(78, 201, 169, 0.3);
}

.system-card h3 { margin-bottom: 8px; }
.system-card p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }

/* ============================================================================
   CTA Band (Discord)
   ============================================================================ */

.cta-band {
  padding: 80px 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ============================================================================
   Newsletter
   ============================================================================ */

.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.newsletter-form input::placeholder { color: var(--text-mute); }

/* ============================================================================
   Socials
   ============================================================================ */

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.18s;
}
.social-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hi);
  color: var(--gold-hi);
  transform: translateY(-1px);
}

.social-card svg {
  flex-shrink: 0;
  color: var(--gold);
  transition: color 0.18s;
}
.social-card:hover svg { color: var(--gold-hi); }

.social-name {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.social-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-faded);
}
.social-card:hover .social-handle { color: var(--text-dim); }

/* ============================================================================
   Studio band
   ============================================================================ */

.studio-band {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.studio-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.studio-mark svg { width: 84px; height: 84px; }

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand strong {
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faded);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold); }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 10, 7, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: inline-flex; }

  .about-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .studio-band { grid-template-columns: 1fr; padding: 32px; }
  .studio-mark { flex-direction: row; justify-content: center; }
  .studio-mark svg { width: 56px; height: 56px; }

  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .shot-wide { grid-column: span 2; }

  .section { padding: 60px 0; }
  .hero { min-height: 70vh; padding: 60px 0 80px; }
  .hero-scrollhint { display: none; }
}

@media (max-width: 520px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .shot-wide { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================================
   Reveal-on-scroll
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Reduce 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;
  }
  .reveal { opacity: 1; transform: none; }
}