/* ARSOS IMMERSIVE BUILD 20260705a */
/* ============================================================
   Arsos Tech — Immersive layer (loads AFTER style.css)
   Dark, glassmorphic reskin + WebGL particle hero atmosphere.
   Reversible: remove this stylesheet + the two scripts to revert.
   ============================================================ */

:root {
  /* dark theme override of the base light palette */
  --bg: #050507;
  --bg-cream: #07070b;
  --bg-soft: #0b0b11;
  --ink: #f4f5f7;
  --ink-soft: #c2c4cc;
  --ink-mute: #8a8d99;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --navy-950: #050507;
  --navy-900: #0a0a10;
  --navy-800: #12121b;
  --navy-700: #1b1b27;

  /* brand red is the single bright accent */
  --imx-accent: #e63946;
  --imx-accent-soft: #ff5d68;
  --imx-glass: rgba(255, 255, 255, 0.035);
  --imx-glass-strong: rgba(255, 255, 255, 0.06);
  --imx-glow: rgba(230, 57, 70, 0.35);
}

html { background: var(--bg); }

body {
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(230, 57, 70, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 8%, rgba(120, 20, 30, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* generic text colors that the light theme set dark */
p, li, td, .hero-stat-label, .footer-tagline { color: var(--ink-soft); }
h1, h2, h3, h4, h5 { color: var(--ink); }
a { color: var(--ink); }

/* ---------- Header: translucent dark, blurred ---------- */
.site-header {
  background: rgba(6, 6, 11, 0.9) !important;
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-menu a, .nav-dropdown-toggle { color: #e8e9ee !important; }
.nav-menu a:hover, .nav-menu a.active, .nav-dropdown-toggle:hover { color: #ffffff !important; }
.nav-dropdown-menu {
  background: rgba(12, 12, 18, 0.96) !important;
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-cta {
  background: var(--imx-accent) !important;
  color: #fff !important;
  box-shadow: 0 6px 22px -8px var(--imx-glow);
}
.nav-cta:hover { background: var(--imx-accent-soft) !important; }

/* ---------- Brand logo (real wordmark image, white + red on dark) ---------- */
/* the image already contains "ARSOS TECH", so hide the typed text span */
.logo-text { display: none !important; }
.logo-mark { height: 32px !important; width: auto !important; }
@media (max-width: 480px) { .logo-mark { height: 26px !important; } }
/* footer logo is already white+red — remove the old whitening filter */
.footer-brand .logo img, .footer-brand img { filter: none !important; height: 56px; }
@media (max-width: 768px) { .footer-brand .logo img, .footer-brand img { height: 46px; } }

/* ---------- Hero atmosphere ---------- */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent !important;
}
/* canvas injected by immersive.js sits behind content */
.imx-hero-canvas {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
}
/* readability scrim so copy stays legible over the particles */
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(68% 78% at 50% 52%, rgba(5, 5, 7, 0.80), rgba(5, 5, 7, 0.30) 55%, transparent 75%),
    linear-gradient(180deg, rgba(5,5,7,0.45) 0%, transparent 30%, rgba(5, 5, 7, 0.60) 100%);
}
.hero > *:not(.imx-hero-canvas),
.page-hero > *:not(.imx-hero-canvas) { position: relative; z-index: 2; }

.hero-stat .num, .page-hero .num { color: var(--imx-accent); }

/* ---------- Glassmorphic cards (reskin existing classes) ---------- */
.service-card,
.module-tile,
.price-card,
.vertical-card,
.visual-card,
.contact-info-card,
.quick-link-card,
.hardware-tile,
.why-item {
  background: var(--imx-glass) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s var(--ease-out, ease),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.4s ease;
}
.why-item { padding: var(--space-6) !important; border-radius: 16px; }
.service-card:hover,
.module-tile:hover,
.price-card:hover,
.vertical-card:hover,
.visual-card:hover,
.contact-info-card:hover,
.quick-link-card:hover,
.hardware-tile:hover,
.why-item:hover {
  background: var(--imx-glass-strong) !important;
  border-color: rgba(230, 57, 70, 0.45) !important;
  transform: translateY(-4px);
  box-shadow: 0 26px 70px -30px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(230, 57, 70, 0.18),
              0 0 60px -22px var(--imx-glow);
}

/* glow that follows the cursor inside a card (driven by immersive.js) */
.service-card, .module-tile, .price-card, .vertical-card,
.visual-card, .contact-info-card, .quick-link-card, .hardware-tile, .why-item {
  position: relative;
}
.imx-glow-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(230, 57, 70, 0.18), transparent 60%);
}
.service-card:hover .imx-glow-layer,
.module-tile:hover .imx-glow-layer,
.price-card:hover .imx-glow-layer,
.vertical-card:hover .imx-glow-layer,
.visual-card:hover .imx-glow-layer,
.contact-info-card:hover .imx-glow-layer,
.quick-link-card:hover .imx-glow-layer,
.hardware-tile:hover .imx-glow-layer,
.why-item:hover .imx-glow-layer { opacity: 1; }

/* featured price card keeps its emphasis in the dark theme */
.price-card.featured, .price-card[class*="popular"] {
  border-color: rgba(230, 57, 70, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.35),
              0 26px 70px -28px var(--imx-glow) !important;
}

/* sections / alternating bands → keep dark, drop the cream fills */
section { background: transparent; }
.bg-cream, .bg-soft, [class*="band"], [class*="alt"] { background: transparent !important; }

/* guarantee card text is legible on the dark glass (any section variant) */
.module-tile h4, .section-dark .module-tile h4, .section:not(.section-dark) .module-tile h4,
.why-item h3, .section-dark .why-item h3, .section:not(.section-dark) .why-item h3,
.vertical-card h3, .vertical-card h4,
.hardware-tile h3, .hardware-tile h4 { color: #ffffff !important; }
.module-tile p, .section-dark .module-tile p, .section:not(.section-dark) .module-tile p,
.why-item p, .section-dark .why-item p, .section:not(.section-dark) .why-item p,
.vertical-card p, .vertical-card .vertical-lead, .vertical-features li,
.hardware-tile p, .hardware-tile li { color: #cdd0d8 !important; }
.module-tile .num, .module-num,
.why-item .why-num,
.vertical-features li::marker { color: var(--imx-accent) !important; }

/* price cards were reskinned to dark glass but never added to the legibility
   pass above — non-featured cards kept their old dark-on-white text colors,
   leaving the "Talk to Sales" amount and ghost buttons near-black on near-black. */
.price-card .price-name { color: #ffffff !important; }
.price-card .price-desc,
.price-card .price-period { color: #cdd0d8 !important; }
.price-card .price-features li { color: #cdd0d8 !important; }
.price-card:not(.featured) .price-amount,
.price-card:not(.featured) .price-amount.price-talk { color: #f4f5f7 !important; }
.price-card:not(.featured) .btn-ghost {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.price-card:not(.featured) .btn-ghost:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(230, 57, 70, 0.6) !important;
}

/* inputs on the contact / forms */
input, textarea, select {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:focus, textarea:focus, select:focus {
  border-color: var(--imx-accent) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15) !important;
  outline: none;
}

/* Contact form: lock to dark glass + legible. Some builds left this card white
   while the dark-theme variables were active, so labels/inputs (light on white)
   became invisible. Force the dark-glass treatment and readable text here. */
.contact-form-wrap {
  background: var(--imx-glass) !important;
  border: 1px solid var(--line) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.contact-form-wrap label,
.form-group label,
.form-title,
.contact-form-wrap h2 { color: #f4f5f7 !important; }
.contact-form-intro { color: #c2c4cc !important; }
.form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f4f5f7 !important;
}
.form-control::placeholder { color: #9a9db0 !important; }
.form-control:focus {
  border-color: var(--imx-accent) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #06060a !important;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Custom cursor ---------- */
.imx-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1.5px solid rgba(230, 57, 70, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  mix-blend-mode: screen;
}
.imx-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--imx-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
}
.imx-cursor.is-hover { width: 52px; height: 52px; background: rgba(230, 57, 70, 0.10); }

/* ---------- Scroll progress bar ---------- */
.imx-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--imx-accent), var(--imx-accent-soft));
  box-shadow: 0 0 12px var(--imx-glow);
  z-index: 99998;
}

/* ---------- Mobile nav menu: solid dark panel (was white from base) ---------- */
@media (max-width: 768px) {
  .nav-menu, .nav-menu.open {
    background: #0a0a12 !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-menu a, .nav-dropdown-toggle { color: #e8e9ee !important; }
  .nav-menu a.active { color: #ffffff !important; }
  .nav-dropdown-menu { background: #0d0d16 !important; border: 1px solid var(--line) !important; }
  .nav-dropdown-menu a { color: #c2c4cc !important; }
}

/* ---------- Accessibility / fallbacks ---------- */
@media (hover: none), (pointer: coarse) {
  .imx-cursor, .imx-cursor-dot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .imx-hero-canvas { display: none !important; }
  .service-card, .module-tile, .price-card, .vertical-card,
  .visual-card, .contact-info-card, .quick-link-card, .hardware-tile, .why-item {
    transition: none !important;
  }
}


/* ---------- Vision 2030 hero badge ---------- */
.vision-wrap { margin: 0 0 16px; }
.vision-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border: 1px solid rgba(230,57,70,0.55);
  border-radius: 999px; background: rgba(230,57,70,0.09);
  color: #ff7079; font-size: 0.8rem; font-weight: 700; letter-spacing: .03em;
}
.vision-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--imx-accent); box-shadow: 0 0 8px var(--imx-glow);
}
