/* ── StealthMachines Site CSS ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
  --bg:       #070707;
  --surface:  #101010;
  --surface2: #161616;
  --border:   #1e1e1e;
  --border2:  #2a2a2a;
  --text:     #e8e8e8;
  --muted:    #5a5a5a;
  --muted2:   #888;
  --accent:   #00ff88;
  --accent-dk:#00b85f;
  --warn:     #ff4444;
  --mono:     'JetBrains Mono', 'Fira Mono', monospace;
  --sans:     'Inter', system-ui, sans-serif;
  --radius:   3px;
  --max-w:    1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: 56px;
  background: rgba(7,7,7,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 1.75rem;
  list-style: none;
  flex: 1;
}

.nav-links a {
  font-size: .82rem;
  color: var(--muted2);
  letter-spacing: .04em;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  transition: background .15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-dk); color: #000; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .logo {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}

.footer-brand p {
  font-size: .78rem;
  color: var(--muted2);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .75rem;
  font-family: var(--mono);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .8rem; color: var(--muted2); transition: color .15s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: var(--muted);
}

/* ── Shared utilities ─────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.5rem;
  border: none; border-radius: var(--radius);
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dk); color: #000; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .9rem 2rem; font-size: .95rem; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted2); }
.accent { color: var(--accent); }

@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; gap: 1rem; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  background: #050505;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
}
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: .4rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.topbar-phone a, .topbar-email a { color: var(--muted2); transition: color .15s; }
.topbar-phone a:hover, .topbar-email a:hover { color: var(--accent); }
.topbar-socials { margin-left: auto; display: flex; gap: 1rem; }
.topbar-socials a { color: var(--muted); transition: color .15s; }
.topbar-socials a:hover { color: var(--text); }

/* ── Mega-menu nav ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: 52px;
  background: rgba(7,7,7,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 0;
  max-width: 100%;
}

.nav-logo {
  font-family: var(--mono);
  font-size: .82rem; font-weight: 600;
  color: var(--accent); letter-spacing: .12em;
  text-transform: uppercase; flex-shrink: 0;
  margin-right: 1.5rem;
}

.nav-links {
  display: flex; gap: 0;
  list-style: none; flex: 1;
  height: 100%;
}

.nav-links > li {
  position: relative; height: 100%;
  display: flex; align-items: center;
}

.nav-links > li > a {
  padding: 0 .9rem;
  font-size: .79rem; color: var(--muted2);
  letter-spacing: .03em; height: 100%;
  display: flex; align-items: center;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--text); }
.nav-links > li.has-dropdown > a::after { content: ' ▾'; font-size: .6rem; margin-left: .2rem; }

/* Dropdowns */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #0e0e0e; border: 1px solid var(--border);
  border-top: 1px solid var(--accent);
  list-style: none; min-width: 180px;
  padding: .4rem 0; z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.dropdown-wide { min-width: 200px; columns: 2; column-gap: 0; }
.dropdown-wide li { break-inside: avoid; }
.dropdown li a {
  display: block; padding: .5rem 1.1rem;
  font-size: .78rem; color: var(--muted2);
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--surface2); color: var(--accent); }
.has-dropdown:hover .dropdown { display: block; }

.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--muted2); font-size: 1.2rem; cursor: pointer;
  padding: .4rem; margin-left: auto;
}

.nav-cta {
  margin-left: 1rem;
  background: var(--accent); color: #000;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: var(--radius);
  flex-shrink: 0; transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dk); color: #000; }

/* ── Footer socials ────────────────────────────────────────────────────────── */
.footer-socials { display: flex; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.footer-socials a { font-size: .75rem; color: var(--muted2); transition: color .15s; }
.footer-socials a:hover { color: var(--accent); }

/* ── Shared page hero ──────────────────────────────────────────────────────── */
.page-hero {
  padding: 5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(0,255,136,.025) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow {
  font-family: var(--mono); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--accent); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.page-hero .eyebrow::before {
  content: ''; display: inline-block; width: 18px; height: 1px;
  background: var(--accent); flex-shrink: 0;
}
.page-hero h1 {
  font-size: clamp(2rem,5vw,3.5rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: -.02em;
  line-height: 1.05; margin-bottom: .6rem;
}
.page-hero h1 strong { color: var(--accent); font-weight: 800; }
.page-hero .sub { color: var(--muted2); font-size: .95rem; max-width: 600px; line-height: 1.7; }

/* Photo background variant */
.page-hero--photo {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
}
.page-hero--photo::before {
  background: linear-gradient(108deg,
    rgba(7,7,7,.97) 0%, rgba(7,7,7,.88) 42%,
    rgba(7,7,7,.55) 72%, rgba(7,7,7,.38) 100%) !important;
}
.page-hero--photo .container { position: relative; z-index: 1; }

/* ── Shared prose body ─────────────────────────────────────────────────────── */
.prose-body { padding: 4rem 1.5rem; }
.prose-body .container { max-width: 780px; }
.prose h2 { font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: .95rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.prose p { font-size: .88rem; color: var(--muted2); line-height: 1.85; margin-bottom: .9rem; }
.prose ul { margin: .5rem 0 1rem 1.5rem; }
.prose li { font-size: .88rem; color: var(--muted2); line-height: 1.7; margin-bottom: .25rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Mobile nav ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .topbar-email { display: none; }
  .nav-links > li > a { padding: 0 .65rem; font-size: .75rem; }
}
@media (max-width: 720px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none; position: fixed;
    top: 52px; left: 0; right: 0; bottom: 0;
    background: #0a0a0a; border-top: 1px solid var(--border);
    flex-direction: column; height: auto;
    overflow-y: auto; padding: 1rem 0;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { height: auto; }
  .nav-links > li > a { padding: .65rem 1.25rem; height: auto; }
  .has-dropdown:hover .dropdown { display: none; }
  .dropdown { display: block !important; position: static;
    border: none; border-top: 1px solid var(--border);
    box-shadow: none; background: #0d0d0d;
    columns: 1; padding: .25rem 0; }
  .dropdown li a { padding: .45rem 2rem; }
  .nav-cta { display: none; }
  .topbar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Custom Plane Cursor ─────────────────────────────────────────────────── */
html {
  cursor: url('/images/arr_up_white.png') 42 0, default;
}
a, button, .btn, select, label[for],
.platform-card, .part-option, .nav-cta,
[role="button"], [onclick], .machine-card,
.ps-item, .review-card, .gallery-item {
  cursor: url('/images/arr_up_white.png') 42 0, pointer;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="search"], textarea {
  cursor: url('/images/arr_up_white.png') 42 0, text;
}

/* ── Scroll-to-top Plane Button ───────────────────────────────────────────── */
#scroll-top-btn {
  position: fixed;
  right: 0; bottom: 110px;
  z-index: 9999;
  width: 46px; height: 46px;
  background: rgba(7,7,7,.88);
  border: none;
  border-left: 2px solid var(--accent, #00ff88);
  border-top: 1px solid rgba(0,255,136,.25);
  border-bottom: 1px solid rgba(0,255,136,.25);
  border-radius: 6px 0 0 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  opacity: 0; pointer-events: none;
  transform: translateX(8px);
  transition: opacity .3s, transform .3s, background .15s, box-shadow .15s;
  backdrop-filter: blur(8px);
}

#scroll-top-btn.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(0);
}

#scroll-top-btn:hover {
  background: rgba(0,255,136,.1);
  box-shadow: -4px 0 20px rgba(0,255,136,.22);
}

#scroll-top-btn:hover .scroll-plane {
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 0 5px rgba(0,255,136,.8));
}

.scroll-plane {
  display: block;
  transition: transform .22s, filter .22s;
}

