/* =============================================================================
   ARES — The NFT Las Vegas AI Interface
   Stylesheet: dark theme · magenta/purple palette · glowing UI
   ============================================================================= */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  z-index: 300;
  box-shadow: 0 0 8px var(--magenta);
  pointer-events: none;
}

/* ===== CURSOR GLOW ===== */
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.055), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== DESIGN TOKENS ===== */
:root {
  --magenta:    #e040fb;
  --purple:     #7c4dff;
  --deep:       #4a0080;
  --bg:         #050510;    /* darkest background */
  --bg2:        #0a0a1e;    /* section alternate */
  --bg3:        #0f0f2a;    /* section alternate 2 */
  --surface:    #12122a;    /* card surfaces */
  --border:     rgba(224, 64, 251, 0.15);
  --text:       #e8e8f0;
  --muted:      #8888aa;
  --gradient:   linear-gradient(135deg, var(--magenta), var(--purple));
  --glow:       0 0 30px rgba(224, 64, 251, 0.25);
  --glow-strong:0 0 60px rgba(224, 64, 251, 0.4);
  --radius:     12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
/* Orbitron is used for all display / heading / UI text */
h1, h2, h3, .logo-text, nav a { font-family: 'Orbitron', sans-serif; }

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
p  { color: var(--muted); font-size: 0.95rem; }

/* Gradient text — magenta → purple clip */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT HELPERS ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 110px 0; }

/* Eyebrow label above section headings */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1rem;
}

/* Section description copy */
.section-sub {
  max-width: 560px;
  margin: 1rem 0 3rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-ghost, .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224, 64, 251, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(224, 64, 251, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }

.btn-nav {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 10px 20px;
}
.btn-nav:hover { background: var(--magenta); color: #fff; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

/* Scrolled state — frosted glass */
#navbar.scrolled {
  background: rgba(5, 5, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.2rem;
  color: var(--magenta);
  filter: drop-shadow(0 0 8px var(--magenta));
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.06em;
}
.logo-text .accent { color: var(--magenta); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 24px 90px;
  overflow: hidden;
}

/* Particle canvas — absolutely fills the hero */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Ambient radial glow blobs for atmospheric depth */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-glow.g1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--magenta), transparent 70%);
  top: -150px;
  left: -100px;
  animation: glowPulse 8s ease-in-out infinite;
}
.hero-glow.g2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  bottom: -100px;
  right: -50px;
  animation: glowPulse 10s ease-in-out infinite 2s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.1); }
}

/* Two-column inner grid — text left, orb right */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* ---- Hero content (left column) ---- */
.hero-content { position: relative; }

.hero-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--magenta);
  border: 1px solid var(--border);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  background: rgba(224, 64, 251, 0.06);
}

/* ARES display logotype — the centrepiece of the hero */
.ares-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.06em;
  /* layered text glow effect */
  filter: drop-shadow(0 0 40px rgba(224, 64, 251, 0.5))
          drop-shadow(0 0 80px rgba(124, 77, 255, 0.3));
  /* reveal animation fires on page load */
  animation: aresReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: 1.2rem;
}

/* ARES title powers up from blur on load */
@keyframes aresReveal {
  from {
    opacity: 0;
    filter: blur(20px) drop-shadow(0 0 0 rgba(224, 64, 251, 0));
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(224, 64, 251, 0.5))
            drop-shadow(0 0 80px rgba(124, 77, 255, 0.3));
    transform: translateY(0);
  }
}

/* Subtitle below the logotype */
.hero-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  animation: fadeSlideUp 1s ease 0.4s both;
}

.hero-sub {
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 1s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideUp 1s ease 0.8s both;
}

/* Capability chip rail at the bottom of the hero content */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeSlideUp 1s ease 1s both;
}
.hero-chips span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.hero-chips span:hover {
  color: var(--magenta);
  border-color: rgba(224, 64, 251, 0.5);
  background: rgba(224, 64, 251, 0.06);
}

/* Shared fade+slide keyframe for staggered hero elements */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero orb (right column) ---- */
.hero-orb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  animation: fadeSlideUp 1.2s ease 0.3s both;
}

/* Orb container — same pattern as the existing AI section orb */
.hero-orb {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating data-node labels around the hero orb */
.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-node {
  position: absolute;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--magenta);
  background: rgba(224, 64, 251, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  white-space: nowrap;
}
/* Position each node around the orb with floating animation */
.hn1 { top: 12%;  left:  0%;   animation: nodeFloat 4.2s ease-in-out infinite; }
.hn2 { top:  8%;  right: 5%;   animation: nodeFloat 5s   ease-in-out infinite 0.8s; }
.hn3 { bottom: 28%; left: -2%; animation: nodeFloat 4.6s ease-in-out infinite 0.4s; }
.hn4 { bottom: 18%; right: 2%; animation: nodeFloat 5.4s ease-in-out infinite 1.2s; }
.hn5 { top: 46%;  right: -2%;  animation: nodeFloat 4s   ease-in-out infinite 0.2s; }

/* Scroll cue dot */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--magenta);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
  margin: 0 auto;
  box-shadow: 0 0 10px var(--magenta);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: 1;   }
  50%       { transform: translateY(12px); opacity: 0.3; }
}

/* ===== SHARED ORB STYLES (hero + philosophy) ===== */

/* Three concentric spinning rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224, 64, 251, 0.25);
  animation: orbSpin linear infinite;
}
.r1 { width: 200px; height: 200px; animation-duration: 8s;  border-top-color:    var(--magenta); }
.r2 { width: 280px; height: 280px; animation-duration: 14s; animation-direction: reverse; border-right-color: var(--purple); }
.r3 { width: 360px; height: 360px; animation-duration: 20s; border-bottom-color: rgba(224, 64, 251, 0.45); }

@keyframes orbSpin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* Glowing orb core — contains the SVG glyph */
.orb-core {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.15), rgba(124, 77, 255, 0.08));
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow), inset 0 0 30px rgba(224, 64, 251, 0.1);
}
.orb-core svg { width: 65%; height: 65%; }

/* Floating node labels */
.ai-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ai-node {
  position: absolute;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--magenta);
  background: rgba(224, 64, 251, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
}
.n1 { top: 15%; left: -5%;  animation: nodeFloat 4s   ease-in-out infinite; }
.n2 { top: 10%; right: 0%;  animation: nodeFloat 5s   ease-in-out infinite 1s; }
.n3 { bottom: 20%; left: -5%; animation: nodeFloat 4.5s ease-in-out infinite 0.5s; }
.n4 { bottom: 15%; right: 0%; animation: nodeFloat 5.5s ease-in-out infinite 1.5s; }

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

/* ===== WHAT IS ARES ===== */
#what-is-ares { background: var(--bg2); }

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.what-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.what-card:hover {
  border-color: rgba(224, 64, 251, 0.4);
  transform: translateY(-4px);
}
.what-card h3 { color: var(--text); margin-bottom: 12px; }
.what-card p  { font-size: 0.92rem; line-height: 1.7; }

/* Icon area at the top of each what-card */
.what-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  background: rgba(224, 64, 251, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: background var(--transition), border-color var(--transition);
}
.what-card:hover .what-icon {
  background: rgba(224, 64, 251, 0.12);
  border-color: rgba(224, 64, 251, 0.4);
}
.what-icon svg { width: 100%; height: 100%; }

/* ===== CAPABILITIES ===== */
#capabilities { background: var(--bg3); }

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

/* Capability card — similar to existing service card but numbered */
.cap-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  /* Start hidden; JS observer adds .visible class */
  opacity: 0;
  transform: translateY(30px);
}
.cap-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition);
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 64, 251, 0.4);
}

/* Ambient hover glow in the top-right corner of the card */
.card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.cap-card:hover .card-glow { opacity: 1.4; }

/* Large gradient number label (01–06) */
.cap-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  opacity: 0.55;
  margin-bottom: 16px;
  line-height: 1;
}

/* Icon */
.cap-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}
.cap-icon svg { width: 100%; height: 100%; }

.cap-card h3 { color: var(--text); margin-bottom: 10px; }
.cap-card p  { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0; }

/* Feature list at the bottom of each capability card */
.cap-features {
  list-style: none;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.cap-features li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid rgba(224, 64, 251, 0.06);
}
.cap-features li::before { content: '→ '; color: var(--magenta); }

/* ===== PHILOSOPHY ===== */
#philosophy { background: var(--bg2); overflow: hidden; }

/* Two-column layout: orb left · content right */
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.ai-orb {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-content { }
.philosophy-points {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.phil-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Glowing bullet dot */
.feature-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--gradient);
  margin-top: 7px;
  box-shadow: 0 0 10px var(--magenta);
}

.phil-point h4 { color: var(--text); }
.phil-point p  { font-size: 0.88rem; line-height: 1.72; }

/* ===== ECOSYSTEM ===== */
#ecosystem { background: var(--bg3); }

/* 2×2 grid on desktop, responsive below */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 4rem;
}

.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.eco-card:hover {
  border-color: rgba(224, 64, 251, 0.4);
  transform: translateY(-4px);
}
.eco-card h3 { color: var(--text); margin-bottom: 10px; }
.eco-card p  { font-size: 0.9rem; line-height: 1.7; }

/* Icon badge for each ecosystem card */
.eco-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  background: rgba(224, 64, 251, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: background var(--transition), border-color var(--transition);
}
.eco-card:hover .eco-icon {
  background: rgba(224, 64, 251, 0.12);
  border-color: rgba(224, 64, 251, 0.4);
}
.eco-icon svg { width: 100%; height: 100%; }

/* Closing tagline block below the ecosystem cards */
.ecosystem-footer {
  text-align: center;
  padding: 3rem 0 0;
  border-top: 1px solid var(--border);
}
.eco-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.eco-sub {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ===== CALL TO ACTION / CONTACT ===== */
#contact { background: var(--bg); }

/* Centred card with ambient glow */
.cta-block {
  position: relative;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 80px 60px;
  overflow: hidden;
}

/* Large radial glow behind the CTA block */
.cta-glow {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(224, 64, 251, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.cta-block .section-label { justify-content: center; }
.cta-block h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.5rem; }

.cta-description {
  max-width: 560px;
  margin: 0 auto 2.8rem;
  font-size: 1rem;
  line-height: 1.78;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Horizontal contact-info row inside the CTA block */
.contact-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.info-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 64, 251, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--magenta);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.info-item h4 { font-size: 0.75rem; color: var(--text); margin-bottom: 3px; }
.info-item p  { font-size: 0.85rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

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

footer p { font-size: 0.78rem; color: #44445a; }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--magenta); }

/* ===== STATS SECTION ===== */
#stats {
  background: var(--bg);
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#stats .section-inner { padding: 0 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 56px 24px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(224, 64, 251, 0.03); }

.stat-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
}

.stat-suffix {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 2vw, 1.8rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== ARES TITLE GLITCH ===== */
.ares-title.glitching {
  animation: aresGlitch 0.5s steps(1) both !important;
}

@keyframes aresGlitch {
  0%   { filter: drop-shadow(0 0 40px rgba(224,64,251,0.5)) drop-shadow(0 0 80px rgba(124,77,255,0.3)); transform: translate(0,0); }
  15%  { filter: drop-shadow(-5px 0 #e040fb) drop-shadow(5px 0 #7c4dff) brightness(1.4); transform: translate(-4px, 1px) skewX(-4deg); }
  30%  { filter: drop-shadow(5px 0 #e040fb) drop-shadow(-5px 0 #7c4dff); transform: translate(4px, -2px) skewX(3deg); }
  45%  { filter: drop-shadow(0 0 40px rgba(224,64,251,0.5)) drop-shadow(0 0 80px rgba(124,77,255,0.3)); transform: translate(0,0); }
  60%  { filter: drop-shadow(-3px 0 #e040fb) drop-shadow(3px 0 #7c4dff) brightness(1.6); transform: translate(-2px, 2px); }
  75%  { filter: drop-shadow(3px 0 #7c4dff) drop-shadow(-3px 0 #e040fb); transform: translate(2px, -1px); }
  100% { filter: drop-shadow(0 0 40px rgba(224,64,251,0.5)) drop-shadow(0 0 80px rgba(124,77,255,0.3)); transform: translate(0,0); }
}

/* ===== SCROLL ANIMATIONS ===== */
/* Elements start hidden; JS IntersectionObserver adds .visible */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE — tablet (≤ 1024px) ===== */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
}

/* ===== RESPONSIVE — medium (≤ 900px) ===== */
@media (max-width: 900px) {
  /* Hero stacks: orb above content */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-orb-wrap { order: -1; min-height: 340px; }
  .hero-chips    { justify-content: center; }
  .hero-sub      { margin-left: auto; margin-right: auto; }

  /* Philosophy: stack orb above text */
  .philosophy-layout { grid-template-columns: 1fr; }
  .ai-visual { order: -1; min-height: 320px; }
}

/* ===== RESPONSIVE — mobile (≤ 640px) ===== */
@media (max-width: 640px) {
  section { padding: 70px 0; }

  /* Show hamburger, hide desktop nav */
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
    z-index: 99;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.85rem; }

  /* ARES title wraps tighter on mobile */
  .ares-title { letter-spacing: 0.04em; }

  .hero-cta { justify-content: center; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }

  /* Hide outer orb rings on small screens (performance) */
  .r2, .r3 { display: none; }
  .ai-nodes, .hero-nodes { display: none; }

  /* Capabilities: single column */
  .capabilities-grid { grid-template-columns: 1fr; }

  /* CTA block: tighter padding */
  .cta-block { padding: 50px 28px; }
  .contact-row { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }

  /* Hero glow blobs smaller on mobile */
  .hero-glow.g1 { width: 300px; height: 300px; }
  .hero-glow.g2 { width: 250px; height: 250px; }
}
