/* ============================================================
   MWINDA DIGITAL — tech skin
   One layer over the existing stylesheets (styles.css, bi.css, os.html),
   loaded after them. It changes how the platform looks, never what it does:
   no markup the scripts depend on is touched, and deleting this file returns
   the platform to its previous look intact.

   The system, in one line each:
     · Gold is the brand — the logo, primary actions, emphasis.
     · Electric blue is the machine — labels, readouts, HUD lines, focus.
     · Orbitron for display, Exo 2 for reading, JetBrains Mono for data.
       Every glyph reads as tech; long French paragraphs stay readable,
       because the body face was designed for text, not for headlines.
     · Effects are static where they can be and transform-only where they
       move — a low-end Android should not pay for the look.
   ============================================================ */

/* ---------- tokens ---------- */
/* html:root outranks the :root blocks in bi.css and in os.html's inline
   <style>, which load in different orders — the override holds either way. */
html:root {
  --f-display: 'Orbitron', 'Exo 2', system-ui, sans-serif;
  --f-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* bi.css and os.html spell the same three roles differently. */
  --serif: var(--f-display);
  --sans: var(--f-body);
  --mono: var(--f-mono);

  --tech-1: #8fdcff;   /* readouts on black: ~12:1 */
  --tech-2: #3aa8ff;   /* lines, borders, focus: ~7:1 */
  --tech-3: #1466d6;   /* fills behind white text */
  --tech-glow: rgba(58, 168, 255, .35);
  --tech-line: rgba(90, 180, 255, .22);
  --cut: 12px;         /* chamfer on buttons and panels */
}

/* ---------- reading ---------- */
body {
  font-family: var(--f-body);
  font-feature-settings: "kern", "liga";
  letter-spacing: .005em;
}
::selection { background: var(--tech-2); color: #02060d; }

:focus-visible {
  outline: 2px solid var(--tech-2);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(58, 168, 255, .18);
}

/* ---------- the machine layer over the background video ----------
   Scanlines and a blueprint grid, drawn once and never animated: it costs
   nothing per frame. It sits above the video and its veil but inside the
   background layer, so it never covers a word of the page. */
.site-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .026) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(90, 180, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(90, 180, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

/* ---------- display type ----------
   Orbitron is wide and has no italic. Headlines get positive tracking (it
   crowds at negative), smaller sizes than the old face needed, and the
   "italic" words become colour rather than a slant the font cannot draw. */
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.06;
  font-size: clamp(34px, 5.6vw, 88px);
}
.hero-title .italic,
.section-title em { font-style: normal; }
.hero-title .italic { color: var(--gold-1); }

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.14;
  font-size: clamp(24px, 3.7vw, 48px);
}

/* .gold-text paints a gradient through background-clip:text with a
   transparent fill. A text-shadow on it shows THROUGH the glyphs — that is
   how "Light" once rendered black. Glow only ever via drop-shadow here. */
.gold-text { filter: drop-shadow(0 0 18px rgba(255, 215, 0, .28)); }

/* Reading text stays in the reading face. Orbitron is for a few words; a
   four-line lead set in it is a wall the eye slides off. */
.about-text .lead, .quote {
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}

h3, h4, h5, .div-card h3, .stat-num, .hero-meta strong {
  font-family: var(--f-display);
  letter-spacing: .03em;
}
.stat-num { font-weight: 700; }

/* ---------- labels read as system readouts ---------- */
.section-eyebrow, .hero-tag {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tech-1);
  border: 1px solid var(--tech-line);
  border-radius: 2px;
  background: rgba(8, 20, 36, .55);
}
.section-eyebrow::before { content: '// '; color: var(--tech-2); }
.hero-tag .dot { background: var(--tech-2); box-shadow: 0 0 10px var(--tech-glow); }

/* ---------- buttons: chamfered, like a control surface ---------- */
.btn, .nav-cta, .talk-cta {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
                     calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn-bi {
  border-color: var(--tech-2);
  color: #eaf7ff;
  background: linear-gradient(135deg, rgba(20, 102, 214, .55), rgba(8, 20, 36, .8));
}
.btn-bi:hover { background: linear-gradient(135deg, rgba(58, 168, 255, .7), rgba(20, 102, 214, .6)); }
.bi-pulse { background: var(--tech-1); box-shadow: 0 0 12px var(--tech-2); }

/* ---------- navigation ---------- */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img {
  display: block;
  height: 34px; width: auto;
  /* The wordmark is drawn on black. Screen blending drops the black and keeps
     the metal and the glow, over any dark surface. */
  mix-blend-mode: screen;
}
.nav {
  background: rgba(5, 8, 14, .72);
  border-color: rgba(212, 175, 55, .22);
  box-shadow: inset 0 -1px 0 rgba(58, 168, 255, .25);
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  /* Mono caps are wide: at .12em "AI BUSINESS INTELLIGENCE" broke onto two
     lines and pushed the bar out of shape. Tight tracking, never wrapping. */
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-cta { white-space: nowrap; letter-spacing: .06em; }
@media (max-width: 1280px) and (min-width: 1001px) {
  .nav-links a { font-size: 10.5px; letter-spacing: .02em; }
}

/* Floating shortcuts: the same control-surface language as the buttons. */
.os-fab {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.os-fab-secondary {
  background: rgba(5, 10, 18, .88);
  color: var(--tech-1);
  border: 1px solid var(--tech-2);
}
.os-fab-dot { background: #37e39a; box-shadow: 0 0 10px rgba(55, 227, 154, .9); }
.nav-links a:hover { color: var(--tech-1); text-shadow: 0 0 12px var(--tech-glow); }
.lang-switch button { font-family: var(--f-mono); }

/* ---------- loader ---------- */
.loader-logo img { display: block; width: min(360px, 72vw); height: auto; mix-blend-mode: screen; }
.loader-text {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--tech-1);
}
.loader-bar span { background: linear-gradient(90deg, var(--gold-2), var(--tech-2)); }

/* ---------- HUD frames ----------
   Corner brackets drawn as background layers rather than pseudo-elements, so
   they combine with cards that already use ::before for other effects. */
.div-card, .stat, .bi-card, .contact-form, .brand-visual {
  --hud-a: var(--gold-2);
  --hud-b: var(--tech-2);
  background-image:
    linear-gradient(var(--hud-a), var(--hud-a)), linear-gradient(var(--hud-a), var(--hud-a)),
    linear-gradient(var(--hud-b), var(--hud-b)), linear-gradient(var(--hud-b), var(--hud-b)),
    linear-gradient(135deg, rgba(212, 175, 55, .05), rgba(4, 10, 20, .55));
  background-size: 20px 2px, 2px 20px, 20px 2px, 2px 20px, 100% 100%;
  background-position: 0 0, 0 0, 100% 100%, 100% 100%, 0 0;
  background-repeat: no-repeat;
  border-radius: 2px;
}
.div-card:hover, .stat:hover { --hud-a: var(--tech-1); border-color: var(--tech-line); }

/* ---------- brand imagery ---------- */
.brand-visual {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, .22);
  overflow: hidden;
}
.brand-visual img {
  display: block;
  width: 100%; height: auto;
  filter: saturate(1.05) contrast(1.04);
}
/* A slow scan line crossing the image — transform-only, so the compositor
   does the work, and off entirely for anyone who asks for less motion. */
.brand-visual::after {
  content: '';
  position: absolute; left: 10px; right: 10px; top: 10px; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(143, 220, 255, .12), transparent);
  animation: hud-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes hud-scan { from { transform: translateY(-100%); } to { transform: translateY(560%); } }

.hud-tag {
  position: absolute; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--tech-1);
  background: rgba(3, 8, 16, .78);
  border: 1px solid var(--tech-line);
  backdrop-filter: blur(6px);
}
.hud-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #37e39a; box-shadow: 0 0 8px rgba(55, 227, 154, .8);
}

/* About: the reception replaces the old bulb orb, which was a fixed square. */
.about-visual.brand-visual {
  width: min(460px, 100%);
  height: auto;
  justify-self: center;
}

/* Impact: the vision beside the brand on every screen. */
.vision {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
.vision .quote { margin: 0; text-align: left; }
.vision .brand-visual { max-width: 460px; justify-self: end; }
@media (max-width: 900px) {
  .vision { grid-template-columns: 1fr; gap: 32px; }
  .vision .brand-visual { justify-self: center; }
}

/* AI Business Intelligence: the AI desk behind the step chips. */
.bi-card-visual { position: relative; overflow: hidden; min-height: 320px; border-radius: 2px; }
.bi-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}
.bi-card-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 16, .25), rgba(3, 8, 16, .82));
}
.bi-flow { position: relative; z-index: 1; }

/* Ecosystem: the data globe behind the diagram, the wordmark at its core. */
.eco-globe img {
  position: absolute; left: 50%; top: 50%;
  width: 62%; height: auto;
  transform: translate(-50%, -50%);
  opacity: .32;
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
          mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  pointer-events: none;
}
.eco-svg, .eco-center, .eco-node { z-index: 1; }
.eco-center {
  background: radial-gradient(circle, #0b1220 0%, #04070d 70%);
  border: 1px solid rgba(212, 175, 55, .55);
  box-shadow: 0 0 0 6px rgba(58, 168, 255, .08), 0 0 40px rgba(212, 175, 55, .25);
}
.eco-center-inner img { display: block; width: 82%; height: auto; margin: 0 auto; mix-blend-mode: screen; }
.eco-node {
  font-family: var(--f-mono);
  letter-spacing: .08em;
  border-color: var(--tech-line);
}

/* The old identity's bulb glow, centred behind every page. The brand is the
   wordmark now, and the loop's first frame already carries it. */
.site-bg-ignite { display: none; }

/* MVP step rail: the loop's logo sits right, under the later steps. The rail
   gets a near-solid plate so the dimmed (not yet reachable) steps stay legible
   over the brightest frame. */
body.has-video-bg .rail {
  background: linear-gradient(180deg, rgba(5, 6, 10, .9), rgba(5, 6, 10, .84));
  border: 1px solid var(--tech-line);
}

/* ---------- footer ---------- */
.footer .brand-logo img { height: 40px; }
.footer h5 { font-family: var(--f-mono); letter-spacing: .2em; color: var(--tech-1); }

/* ---------- forms ---------- */
input, textarea, select { font-family: var(--f-body); }
input:focus, textarea:focus, select:focus { border-color: var(--tech-2) !important; }

/* ---------- smaller screens ---------- */
@media (max-width: 640px) {
  .hero-title { font-size: clamp(28px, 8.6vw, 42px); letter-spacing: .01em; }
  .section-title { font-size: clamp(21px, 6.2vw, 30px); }
  .brand-logo img { height: 28px; }
  /* The shortcuts float over content; on a phone they must cover as little of
     it as possible. */
  .fab-stack { gap: 6px; }
  .fab-stack .os-fab { padding: 8px 12px; font-size: 10px; letter-spacing: .06em; gap: 7px; }
  .os-fab-secondary { padding: 6px 10px; font-size: 9.5px; }
  .site-bg::after {
    /* A finer grid reads as texture on a small screen, not as a tablecloth. */
    background:
      repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
      linear-gradient(rgba(90, 180, 255, .04) 1px, transparent 1px) 0 0 / 36px 36px,
      linear-gradient(90deg, rgba(90, 180, 255, .04) 1px, transparent 1px) 0 0 / 36px 36px,
      radial-gradient(ellipse 140% 90% at 50% 45%, transparent 50%, rgba(0, 0, 0, .6) 100%);
  }
}

/* ---------- less motion, when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  .brand-visual::after { animation: none; opacity: 0; }
}

/* ---------- print (the MVP dossier) ----------
   None of the skin belongs on paper. */
@media print {
  .site-bg::after, .brand-visual::after { display: none !important; }
}
