/* Extrastrength Software — shared styles. The base look is "Arcade" (see home.css for the home page).
   Every page sets a theme through the custom properties below; product pages
   override them (see the [data-theme] blocks at the end) so each one takes on
   its product's own look. */

:root {
  --bg: #0a0220;
  --bg-2: #12062e;
  --panel: #150538;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f3eaff;
  --muted: #cbbfe6;
  --accent: #19f3ff;
  --accent-2: #ff2bd6;
  --on-accent: #0a0220;
  --glow: rgba(255, 43, 214, 0.35);
  --font-display: "Orbitron", "Arial Black", sans-serif;
  --font-body: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Orbitron", ui-monospace, Consolas, monospace;
  --radius: 22px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: 0.22;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
.orb { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.55; background: radial-gradient(circle, var(--glow), transparent 62%); animation: drift 22s ease-in-out infinite alternate; }
.orb.a { top: -28vmax; right: -18vmax; }
.orb.b { bottom: -34vmax; left: -22vmax; animation-duration: 30s; opacity: 0.35; }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 16px 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav-links { margin-left: auto; display: flex; gap: 4px; align-items: center; border: 1px solid var(--accent); border-radius: 999px; padding: 5px; }
.nav-links a { text-decoration: none; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--accent); color: var(--text); border-radius: 999px; padding: 9px 16px; font-family: var(--font-mono); font-size: 13px; cursor: pointer; }

/* ---------- buttons / labels ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -10px var(--glow); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 11vw, 150px) 0 clamp(50px, 7vw, 100px); position: relative; }
.hero h1 { font-size: clamp(44px, 10.4vw, 168px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.9; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero h1 .hot { color: var(--accent); }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: clamp(30px, 5vw, 64px); }
.hero-foot p { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 56ch; }
.hero-foot p strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 30px); font-weight: 700; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 0.8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(32px, 5.4vw, 76px); font-weight: 700; text-transform: uppercase; margin-top: 18px; }
.sec-head h2 em { font-style: normal; color: var(--accent); }
.sec-head p { color: var(--muted); max-width: 44ch; }

/* ---------- product showcase (home) ---------- */
.showcase { display: grid; gap: 26px; }
.product {
  --p-bg: var(--panel); --p-accent: var(--accent); --p-text: var(--text); --p-muted: var(--muted); --p-on: var(--on-accent);
  position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 460px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--p-bg); color: var(--p-text); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.product:hover { transform: translateY(-6px); border-color: var(--p-accent); box-shadow: 0 30px 80px -30px var(--p-accent); }
.product:nth-child(even) .product-art { order: -1; }
.product-body { padding: clamp(26px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.product-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--p-accent); }
.product h3 { font-size: clamp(30px, 4.2vw, 58px); font-weight: 800; text-transform: uppercase; }
.product p { color: var(--p-muted); max-width: 46ch; }
.product .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product .tag { border-color: color-mix(in srgb, var(--p-text) 22%, transparent); color: var(--p-muted); }
.product .go { margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--p-accent); }
.product .go .arrow { transition: transform .25s; }
.product:hover .go .arrow { transform: translateX(8px); }
.product-art { position: relative; overflow: hidden; min-height: 280px; display: grid; place-items: center; }
.product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.product:hover .product-art img { transform: scale(1.05); }

/* ---------- ventures ---------- */
.ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.venture {
  --v-bg: var(--panel); --v-accent: var(--accent); --v-text: #fff; --v-muted: rgba(255,255,255,.72);
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); min-height: 300px;
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; overflow: hidden;
  background: var(--v-bg); color: var(--v-text); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.venture:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 26px 70px -28px var(--v-accent); }
.venture .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v-accent); }
.venture h3 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; }
.venture p { color: var(--v-muted); max-width: 44ch; }
.venture .visit { margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--v-accent); }
.venture .visit .arrow { transition: transform .25s; }
.venture:hover .visit .arrow { transform: translate(4px, -4px); }

/* ---------- about / stats / services ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.lede { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.35; font-weight: 500; }
.lede em { font-style: normal; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 62px); color: var(--accent); line-height: 1; }
.stat span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); transition: padding-left .3s; }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services li:hover { padding-left: 14px; }
.services .n { font-family: var(--font-mono); color: var(--accent); font-size: 14px; padding-top: 6px; }
.services h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; margin-bottom: 8px; }
.services p { color: var(--muted); }

/* ---------- features (product pages) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s, border-color .3s; }
.feature:hover { transform: translateY(-5px); border-color: var(--accent); }
.feature .ico { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: 0.16em; }
.feature h3 { font-size: 21px; font-weight: 700; margin: 14px 0 10px; line-height: 1.15; }
.feature p { color: var(--muted); font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shots figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shots figure.wide { grid-column: 1 / -1; }
.shots img { width: 100%; height: auto; }
.shots figcaption { padding: 12px 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.p-hero { padding: clamp(50px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.p-hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.p-hero h1 { font-size: clamp(42px, 7.4vw, 112px); font-weight: 800; text-transform: uppercase; margin: 20px 0 24px; }
.p-hero h1 .hot { color: var(--accent); }
.p-hero p.sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; margin-bottom: 30px; }
.p-hero .art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px -40px var(--glow); }
.back { font-family: var(--font-mono); font-size: 13px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- contact / footer ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(38px, 8.4vw, 132px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; margin: 22px 0 34px; }
.contact h2 a { text-decoration: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .product, .split, .hero-foot, .p-hero .grid { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-art { order: 0; }
  .product-art { order: -1 !important; min-height: 220px; }
  .cta-row { justify-content: flex-start; }
  .features { grid-template-columns: 1fr 1fr; }
  .others { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; right: 20px; left: 20px; flex-direction: column; align-items: stretch; border-radius: 22px; background: var(--bg-2); padding: 10px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 13px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .ventures, .features, .shots, .others, .stats { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
