/* ============================================================
   Steelline — engineering design language (override layer)
   Loaded AFTER style.css so these rules win. Converts the
   storefront from the generic "AI dashboard" look (glass, glow,
   gradients, candy radii, Sora/Inter) to the same infrastructure/
   HMI aesthetic as the app suite (AquaMind, RegionScope, assess):
   IBM Plex, flat hairline surfaces, squared corners, status-only
   color, a faint 30px engineering grid, civic-teal suite accent.
   style.css is left intact — remove this file to revert.
   ============================================================ */

:root {
  /* Typography — IBM Plex: an actual engineering typeface, instantly not-Inter */
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Color — brand gold stays (it's the logo); teal ties to the app suite.
     Vivid color is reserved for status/accent only; chrome stays monochrome. */
  --accent-2: #0b6e6e;          /* civic teal — shared with RegionScope + assess */
  --radius: 3px;                /* squared corners, not candy-rounded */
  --grid-dark: rgba(255,255,255,0.05);
  --grid-light: rgba(23,24,26,0.045);
}

html { scroll-behavior: smooth; }

/* Tighter, instrument-like body rhythm */
body { -webkit-font-smoothing: antialiased; }

h1, h2, h3 { letter-spacing: -0.015em; }

/* Faint engineering grid on every surface (30px) ------------------------- */
.section { background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-size: 30px 30px; }
.section-dark { background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 30px 30px; }

/* Header — flat, no glass blur ------------------------------------------- */
.site-header {
  background: var(--paper);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--paper-line);
  transition: border-color .18s ease;
}
.site-header.scrolled {
  background: var(--paper);
  box-shadow: none;
  border-bottom-color: #cfccc3;
}

/* Scroll progress — flat solid hairline, no gradient/glow */
.scroll-progress {
  height: 2px;
  background: var(--accent);
  box-shadow: none;
  transition: width .08s linear;
}

/* Hero — kill the aurora glow; keep only a crisp engineering grid -------- */
.hero { isolation: isolate; }
.hero::before { content: none; }           /* was: animated aurora blur */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 82%);
          mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 82%);
  pointer-events: none;
}
.hero .wrap, .hero-graphic { position: relative; z-index: 1; }

/* Hero content load-in — quick, no blur */
.hero .eyebrow-pill,
.hero h1,
.hero .hero-benefits,
.hero .lede,
.hero .hero-actions { animation: heroUp .5s cubic-bezier(.2,.7,.2,1) both; }
.hero h1             { animation-delay: .05s; }
.hero .hero-benefits { animation-delay: .10s; }
.hero .lede          { animation-delay: .16s; }
.hero .hero-actions  { animation-delay: .22s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Instrument gauge: keep the slow rotation, drop the glow pulse */
.pulse-shield { animation: none; }
.draw-check { animation: draw 1.1s .5s ease forwards; }

/* "Now booking" pill — flat HMI status tag with a steady live square ----- */
.eyebrow-pill {
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.eyebrow-pill::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 0;
  background: #39d98a;                      /* green = live, real alarm semantics */
  margin-right: 9px; vertical-align: middle;
  animation: statusBlink 2.4s step-end infinite;
  box-shadow: none;
}
@keyframes statusBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .45; } }

/* Buttons — flat, squared, no sheen/no glow ------------------------------ */
.btn { position: relative; overflow: hidden; }
.btn-pill { border-radius: var(--radius); }
.btn::before { content: none; }             /* was: diagonal sheen sweep */
.btn-primary:hover { background: var(--accent); transform: none; box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-ghost-accent {
  background: transparent; color: var(--accent);
  border: 1px solid rgba(255,182,72,.42); border-radius: var(--radius);
}
.btn-ghost-accent:hover { background: rgba(255,182,72,.10); border-color: var(--accent); transform: none; }
.nav-cta { border-radius: var(--radius) !important; }
.nav a.nav-cta:hover { transform: none; }

/* Cards — flat hairline panels; accent is a top rule on hover, not a glow - */
.service-grid, .stat-grid, .process-grid { perspective: none; }
.service-card, .process-card, .stat-card {
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
  will-change: auto;
}
.service-card:hover, .process-card:hover { transform: none; box-shadow: none; border-color: #cfccc3; }
.stat-card:hover { transform: none; background: rgba(255,255,255,0.05); }
/* repurpose the ::after border-glow into a flat accent top-rule */
.service-card::after, .process-card::after, .stat-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); padding: 0;
  -webkit-mask: none; mask: none;
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.service-card:hover::after, .process-card:hover::after, .stat-card:hover::after { opacity: 1; }

/* Stat cards on dark — flat, hairline, no glass */
.stat-card { background: transparent; border: 1px solid var(--line); }
.stat-card-accent { background: rgba(255,182,72,.08); border-color: rgba(255,182,72,.28); }

/* Service icons — monochrome squared chips (drop the 4-color candy chips) */
.service-icon {
  background: transparent !important;
  color: var(--accent);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  transition: border-color .18s ease, color .18s ease;
}
.service-card:hover .service-icon { transform: none; box-shadow: none; border-color: var(--accent); }
.process-card:hover .process-num { color: var(--accent); transition: color .18s ease; }

/* Marquee — edge fade kept (reads as motion, not a hard cut) */
.tech-strip { position: relative; }
.tech-strip::before, .tech-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.tech-strip::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.tech-strip::after  { right: 0; background: linear-gradient(270deg, var(--black), transparent); }
.marquee-track span { font-family: var(--mono); letter-spacing: 0.08em; }

/* Reveals — slide only, no blur-in; quicker easing */
.reveal {
  filter: none;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
}
.reveal-visible { filter: none; }
.reveal-item { transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); }

/* Engineering microcopy — technical labels in IBM Plex Mono (telemetry voice) */
.eyebrow, .eyebrow-light, .service-tag, .stat-desc, .process-num, .footer-heading, .about-facts dt {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.stat-num, .stat-count { font-variant-numeric: tabular-nums; }
.about-facts dd { font-family: var(--font-display); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow-pill, .hero h1, .hero .hero-benefits, .hero .lede, .hero .hero-actions { animation: none; }
  .eyebrow-pill::before { animation: none; }
  .scroll-progress { display: none; }
}
