/* ═══════════════════════════════════════════════
   ARES — styles.css  (v2)
   ═══════════════════════════════════════════════ */

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

:root {
  --bg:        #06090d;
  --bg2:       #0b1018;
  --bg3:       #0f1720;
  --surface:   #111c28;
  --surface2:  #18273a;
  --accent:    #ff6b2b;
  --accent2:   #ff9a5c;
  --accent-dim:#ff6b2b28;
  --text:      #edf2f7;
  --text-dim:  #7a8fa6;
  --border:    #1a2d40;
  --green:     #22c55e;
  --red:       #ef4444;
  --yellow:    #eab308;
  --purple:    #818cf8;
  --radius:    14px;
  --ease:      cubic-bezier(.4,0,.2,1);
}

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

/* ── Background Video Layer ── */
#page-bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#bg-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: opacity 1.2s ease;
}
#bg-vid.fade-out { opacity: 0; }
#bg-vid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,9,13,0.55) 0%,
    rgba(6,9,13,0.35) 50%,
    rgba(6,9,13,0.65) 100%
  );
}
/* Ensure all page content sits above the bg layer */
#navbar,
section,
footer { position: relative; z-index: 1; }
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.9rem,4vw,3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
p  { color: var(--text-dim); }
strong { color: var(--text); font-weight: 700; }

.accent    { color: var(--accent); }
.green     { color: var(--green); }
.purple    { color: var(--purple); }
.center    { text-align: center; }

.section-label {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim); background: var(--accent-dim);
  padding: 4px 14px; border-radius: 99px; margin-bottom: 14px;
}
.body-text { font-size: 1rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 12px; }

.container   { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 100px 0; }
.dark-section{ background: var(--bg2); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
  padding: 13px 30px; border-radius: 99px; text-decoration: none;
  transition: .3s var(--ease); box-shadow: 0 0 28px var(--accent-dim);
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent2); box-shadow: 0 0 48px #ff6b2b55; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 600; font-size: .95rem;
  padding: 13px 28px; border-radius: 99px; text-decoration: none;
  border: 1.5px solid var(--border); background: transparent;
  transition: .3s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-primary.large, .btn-ghost.large { font-size: 1.05rem; padding: 16px 38px; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; background: transparent;
  transition: background .4s, box-shadow .4s;
}
#navbar.scrolled { background: rgba(6,9,13,.9); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text); letter-spacing: -.02em; flex-shrink: 0; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: .88rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 9px 20px; border-radius: 99px; transition: .3s var(--ease); flex-shrink: 0; }
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── Hero ── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 68px; }

.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
#hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay { position: absolute; inset: 0; background: rgba(6,9,13,.72); }
.hero-gradient-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #ff6b2b14, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0a1420 50%, var(--bg) 100%);
}

#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 880px; padding: 60px 24px; }

.hero-badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); border: 1px solid var(--accent-dim); background: var(--accent-dim); padding: 6px 18px; border-radius: 99px; margin-bottom: 28px; opacity: 0; animation: fadeUp .6s .2s forwards; }

.hero-headline { font-size: clamp(3.2rem,10vw,7rem); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-headline span { display: block; }
#line1 { color: var(--text); opacity: 0; animation: fadeUp .7s .4s forwards; }
#line2 { color: var(--text-dim); opacity: 0; animation: fadeUp .7s .6s forwards; }

.hero-sub { font-size: clamp(1rem,2vw,1.2rem); color: var(--text-dim); max-width: 560px; margin: 0 auto 40px; opacity: 0; animation: fadeUp .7s .8s forwards; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s 1s forwards; }

.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); opacity: 0; animation: fadeIn .8s 1.6s forwards; }
.scroll-line { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ── Reveal ── */
.reveal-up   { opacity: 0; transform: translateY(30px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--delay,0s); }
.reveal-right{ opacity: 0; transform: translateX(40px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal-up.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* ── Quick Reality Strip ── */
.reality-strip {
  padding: 36px 0;
  background: linear-gradient(90deg, var(--bg2), #0f1a26, var(--bg2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reality-line { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.1rem,2.5vw,1.6rem); font-weight: 700; color: var(--text-dim); text-align: center; line-height: 1.5; }
.reality-line .accent { color: var(--accent); }

/* ── Media Grid (See It) ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 52px;
}
.media-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: border-color .3s, transform .3s; transition-delay: var(--delay,0s); }
.media-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.media-card.big { grid-column: 1 / 3; grid-row: 1 / 3; }
.media-inner { width: 100%; height: 100%; min-height: 220px; }
.media-card.big .media-inner { min-height: 380px; }
.media-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; }
.video-placeholder { background: linear-gradient(135deg, #0d1f30, #0a1520); }
.img-placeholder   { background: linear-gradient(135deg, #0f1a28, #0b1620); }
.play-btn-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: .3s; box-shadow: 0 0 32px #ff6b2b55; }
.play-btn-circle.sm { width: 44px; height: 44px; }
.media-card:hover .play-btn-circle { transform: scale(1.1); box-shadow: 0 0 48px #ff6b2b77; }
.media-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--text-dim); text-transform: uppercase; }
.media-icon { font-size: 2.4rem; }
.media-note { font-size: .82rem; color: var(--text-dim); margin-top: 24px; text-align: center; border: 1px dashed var(--border); padding: 10px 20px; border-radius: 8px; display: inline-block; }
#see-it .container { display: flex; flex-direction: column; align-items: center; }

/* ── Platform Section ── */
.platform-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.platform-text h2 { margin-bottom: 16px; }
.platform-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.platform-list li { display: flex; align-items: flex-start; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .3s, transform .3s; transition-delay: var(--delay,0s); }
.platform-list li:hover { border-color: var(--accent); transform: translateX(4px); }
.pl-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.platform-list strong { display: block; color: var(--text); font-size: .95rem; margin-bottom: 3px; }
.platform-list p { font-size: .85rem; margin: 0; }

/* ── Mockup Window ── */
.mockup-window { background: #080d14; border: 1px solid #1e3a52; border-radius: 12px; overflow: hidden; box-shadow: 0 32px 80px #00000088, 0 0 0 1px #1e3a5255; }
.mockup-bar { background: #0f1c2a; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #1e3a52; }
.m-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.m-dot.red { background: var(--red); } .m-dot.yellow { background: var(--yellow); } .m-dot.green { background: var(--green); }
.m-url { font-size: .72rem; color: var(--text-dim); font-family: monospace; margin-left: 8px; }
.mockup-body { display: flex; }
.mock-sidebar { width: 140px; flex-shrink: 0; padding: 16px 8px; background: #060b12; border-right: 1px solid #1e3a52; display: flex; flex-direction: column; gap: 4px; }
.mock-nav-item { font-size: .72rem; color: var(--text-dim); padding: 8px 10px; border-radius: 6px; cursor: default; transition: .2s; white-space: nowrap; }
.mock-nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 700; }
.mock-nav-item:hover:not(.active) { background: var(--surface); color: var(--text); }
.mock-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.mock-header { display: flex; justify-content: space-between; align-items: center; }
.mock-title { font-size: .78rem; font-weight: 700; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.mock-badge { font-size: .65rem; font-weight: 700; color: var(--green); background: #22c55e1a; border: 1px solid #22c55e44; padding: 2px 8px; border-radius: 99px; animation: badgePulse 2s ease-in-out infinite; }
.mock-stats-row { display: flex; gap: 10px; }
.mock-stat { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.mock-stat-num { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800; }
.mock-stat-num.accent { color: var(--accent); } .mock-stat-num.green { color: var(--green); } .mock-stat-num.purple { color: var(--purple); }
.mock-stat-label { font-size: .62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.mock-progress-section { display: flex; flex-direction: column; gap: 6px; }
.mock-progress-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-dim); }
.mock-progress-label.mt { margin-top: 8px; }
.mock-bar-bg { height: 6px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.mock-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1.2s var(--ease); }
.mock-bar-fill.green { background: linear-gradient(90deg, var(--green), #86efac); }
.mock-code-block { background: #04090f; border: 1px solid #1e3a52; border-radius: 8px; padding: 12px; font-family: 'Courier New', monospace; font-size: .72rem; line-height: 1.7; color: #c9d1d9; overflow: hidden; }
.ck { color: #ff7b72; } .cf { color: #79c0ff; } .cn { color: #ffa657; } .cv { color: #a5d6ff; }

/* ── Steps ── */
#how .container { display: flex; flex-direction: column; align-items: center; }
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: center; margin-top: 60px; width: 100%; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: border-color .3s, transform .3s, box-shadow .3s; transition-delay: var(--delay,0s); }
.step-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 12px 40px #ff6b2b18; }
.step-num { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { color: var(--text); }
.step-card p  { font-size: .85rem; }
.step-connector { font-size: 1.4rem; color: var(--accent); text-align: center; padding: 0 8px; opacity: .6; }

/* ── Build Grid ── */
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.build-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s; transition-delay: var(--delay,0s); }
.build-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.build-img-wrap { height: 180px; background: linear-gradient(135deg, #0d1f32, #0a1622); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.build-img-placeholder { font-size: 4rem; filter: drop-shadow(0 0 20px var(--accent)); }
.build-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.build-info { padding: 20px; }
.build-info h3 { color: var(--text); margin-bottom: 6px; }
.build-info p  { font-size: .88rem; margin-bottom: 12px; }
.proj-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-dim); background: var(--accent-dim); padding: 3px 10px; border-radius: 99px; }

/* ── Schools ── */
.schools-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.schools-left h2 { margin-bottom: 12px; }
.schools-right { display: flex; flex-direction: column; gap: 16px; }
.school-reason { display: flex; align-items: flex-start; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .3s, transform .3s; transition-delay: var(--delay,0s); }
.school-reason:hover { border-color: var(--accent); transform: translateX(5px); }
.reason-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-dim); border: 1.5px solid var(--accent); color: var(--accent); font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.school-reason h4 { color: var(--text); }
.school-reason p  { font-size: .88rem; }

/* ── CTA Section ── */
.cta-section { position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 900px; height: 900px; background: radial-gradient(ellipse, #ff6b2b14, transparent 65%); pointer-events: none; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer { padding: 40px 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-tagline { font-size: .88rem; color: var(--text-dim); }
.footer-copy { font-size: .76rem; color: #3a4d60; }

/* ── Mobile Nav ── */
#mobile-nav { position: fixed; inset: 0; z-index: 999; background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-nav.open { opacity: 1; pointer-events: all; }
#mobile-nav a { font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; transition: color .2s; }
#mobile-nav a:hover { color: var(--accent); }
#mobile-nav .close-btn { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── Keyframes ── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(22px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes scrollPulse { 0%,100% { transform:scaleY(1);opacity:1 } 50% { transform:scaleY(.6);opacity:.4 } }
@keyframes badgePulse  { 0%,100% { box-shadow:0 0 0 0 #22c55e33 } 50% { box-shadow:0 0 0 4px #22c55e11 } }

/* ── Responsive ── */
@media (max-width: 960px) {
  .platform-grid, .schools-split { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-connector { display: none; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-card.big { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .media-card.big { grid-column: auto; }
  .schools-split { grid-template-columns: 1fr; gap: 40px; }
}
