/* ==========================================================================
   toolbox chromos — drama layer
   Loaded AFTER site.css. Adds the high-contrast, emissive, angular treatment
   and the rendered "product shots". Nothing here removes content — it adds
   weight, depth, and light.
   ========================================================================== */

:root {
  --void:      #06060a;   /* deeper than --bg, for full-bleed drama */
  --panel:     #0d0e13;
  --panel-2:   #12141b;
  --edge:      rgba(231, 255, 110, 0.22);
  --hot:       #E7FF6E;
  --hot-dim:   #a3e635;
  --cool:      #5eead4;   /* secondary data hue — screens only, never chrome */
  --cool-2:    #38bdf8;
  --chamfer:   16px;
}

body { background: var(--void); }

/* Keyboard focus — visible everywhere, on-brand */
:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Pills join the angular language (overrides the legacy 999px radius) */
.pill {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

/* Chamfered corners — the ROG silhouette. Applied via clip-path so borders
   stay crisp at any size. */
.chamfer {
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}
.chamfer-sm { --chamfer: 10px; }

/* Scanline texture — very low opacity, adds "screen" feel without noise */
.scanlines::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 3;
}

/* ==========================================================================
   HERO — full-bleed, dramatic, product-led
   ========================================================================== */
.hero-x {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 72% 28%, rgba(231,255,110,0.10), transparent 68%),
    radial-gradient(700px 600px at 8% 78%, rgba(163,230,53,0.07), transparent 70%),
    var(--void);
}
/* Angular light shaft raking across the hero */
.hero-x::before {
  content: '';
  position: absolute; top: -30%; left: 52%;
  width: 62%; height: 170%;
  background: linear-gradient(104deg, transparent 42%, rgba(231,255,110,0.055) 50%, transparent 58%);
  transform: rotate(8deg);
  pointer-events: none;
}
/* Technical grid, masked so it fades out */
.hero-x::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(231,255,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,255,110,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-x .wrap { position: relative; z-index: 4; }
.hero-x-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 56px;
  align-items: center;
}

/* HUD-style label */
.hud {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--hot);
  padding: 8px 15px 8px 13px;
  border: 1px solid var(--edge);
  background: rgba(231,255,110,0.05);
  --chamfer: 8px;
}
.hud .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 10px 2px rgba(231,255,110,0.85);
  animation: hudPulse 2.2s ease-in-out infinite;
}
@keyframes hudPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.28; } }

.hero-x h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 26px 0 22px;
  text-wrap: balance;
}
.hero-x h1 .lit {
  color: var(--hot);
  text-shadow: 0 0 42px rgba(231,255,110,0.45);
}
.hero-x-sub {
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 34px;
}

/* Emissive primary button */
.btn-hot {
  background: linear-gradient(135deg, #f2ff9c 0%, #E7FF6E 45%, #a3e635 100%);
  color: #07070a;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 0 1px rgba(231,255,110,0.6), 0 10px 40px -8px rgba(231,255,110,0.55);
  --chamfer: 9px;
}
.btn-hot:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(231,255,110,0.9), 0 16px 54px -8px rgba(231,255,110,0.7);
}
.btn-wire {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-2);
  color: var(--text);
  --chamfer: 9px;
}
.btn-wire:hover { border-color: var(--edge); color: var(--hot); transform: translateY(-2px); }

/* ==========================================================================
   THE PRODUCT SHOT — the report, rendered like hardware
   ========================================================================== */
.rig {
  position: relative;
  perspective: 2000px;
  padding: 20px 0;
}
/* Underglow pooling beneath the device */
.rig::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -6%;
  width: 84%; height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(231,255,110,0.30), transparent 68%);
  filter: blur(46px);
  pointer-events: none;
}

.device {
  position: relative;
  transform: rotateY(-15deg) rotateX(5deg) rotate(-1deg);
  transform-style: preserve-3d;
  background: linear-gradient(168deg, var(--panel-2) 0%, var(--panel) 60%, #090a0e 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 50px 100px -30px rgba(0,0,0,0.95),
    0 0 90px -20px rgba(231,255,110,0.22);
  --chamfer: 20px;
  transition: transform 0.7s var(--ease);
}
.rig:hover .device { transform: rotateY(-11deg) rotateX(3deg) rotate(-0.5deg); }

/* Rim light along the top-left edge */
.device::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(231,255,110,0.16), transparent 34%);
  pointer-events: none; z-index: 2;
}

.device-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.35);
  position: relative; z-index: 4;
}
.device-id {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.device-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: -0.015em; color: var(--text);
  margin-top: 3px;
}
.device-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--hot);
  border: 1px solid var(--edge); padding: 5px 10px;
}
.device-live i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 8px 2px rgba(231,255,110,0.8);
  animation: hudPulse 2.2s ease-in-out infinite;
}
.device-screen { padding: 20px; position: relative; z-index: 4; }

/* Severity meters — real data viz, the "screen content" */
.meters { display: grid; gap: 11px; margin-bottom: 20px; }
.meter-row { display: grid; grid-template-columns: 68px 1fr 30px; gap: 12px; align-items: center; }
.meter-k {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.meter-track {
  height: 7px; background: rgba(255,255,255,0.055);
  overflow: hidden; position: relative;
}
.meter-fill {
  height: 100%; width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.meter-fill::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 14px;
  background: rgba(255,255,255,0.5); filter: blur(6px);
}
.meter-v {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text); text-align: right;
}
.m-crit .meter-fill { background: linear-gradient(90deg, #7f1d2e, var(--danger)); box-shadow: 0 0 16px -2px var(--danger); }
.m-high .meter-fill { background: linear-gradient(90deg, #7c3a10, var(--high)); box-shadow: 0 0 16px -2px var(--high); }
.m-med  .meter-fill { background: linear-gradient(90deg, #6b5410, var(--med));  box-shadow: 0 0 16px -2px var(--med); }
.m-low  .meter-fill { background: linear-gradient(90deg, #0f5941, var(--green)); box-shadow: 0 0 16px -2px var(--green); }

.screen-label {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
  padding-bottom: 9px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between;
}

/* Terminal-style host feed */
.feed { font-family: var(--font-mono); font-size: 11.5px; }
.feed-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
}
.feed-row:last-child { border-bottom: none; }
.feed-host { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-host b { color: var(--text); font-weight: 500; }
.feed-tag { font-size: 9.5px; letter-spacing: 0.12em; padding: 3px 8px; white-space: nowrap; }
.tag-bad  { color: var(--danger); border: 1px solid rgba(251,113,133,0.4); background: rgba(251,113,133,0.08); }
.tag-warn { color: var(--high);   border: 1px solid rgba(251,146,60,0.4);  background: rgba(251,146,60,0.08); }
.tag-ok   { color: var(--green);  border: 1px solid rgba(52,211,153,0.35); background: rgba(52,211,153,0.07); }

/* Floating stat chip that breaks the device plane — depth cue */
.chip {
  position: absolute;
  right: -26px; bottom: 46px;
  background: linear-gradient(160deg, var(--panel-2), #08090d);
  border: 1px solid var(--edge);
  padding: 15px 19px;
  box-shadow: 0 26px 60px -18px rgba(0,0,0,0.95), 0 0 40px -12px rgba(231,255,110,0.35);
  transform: translateZ(70px) rotateY(-15deg);
  --chamfer: 11px;
  z-index: 6;
}
.chip-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 30px; line-height: 1; letter-spacing: -0.035em;
  color: var(--hot); text-shadow: 0 0 26px rgba(231,255,110,0.55);
}
.chip-l {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--dim); margin-top: 6px;
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.strip {
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(231,255,110,0.035), transparent);
  position: relative;
}
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-cell { padding: 34px 26px; position: relative; }
.strip-cell + .strip-cell { border-left: 1px solid rgba(255,255,255,0.07); }
.strip-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 3.7vw, 46px); line-height: 1;
  letter-spacing: -0.04em; color: var(--text);
}
.strip-n .u { color: var(--hot); text-shadow: 0 0 30px rgba(231,255,110,0.5); }
.strip-l {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--dim); margin-top: 11px;
}

/* ==========================================================================
   ANGULAR SERVICE CARDS
   ========================================================================== */
.grid-x { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card-x {
  position: relative;
  background: linear-gradient(165deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 26px 26px;
  text-decoration: none;
  display: flex; flex-direction: column;
  overflow: hidden;
  --chamfer: 15px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* Accent bleed from the top-left corner on hover */
.card-x::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 130px; height: 130px;
  background: radial-gradient(circle at 0 0, rgba(231,255,110,0.20), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card-x:hover {
  border-color: var(--edge);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9), 0 0 44px -18px rgba(231,255,110,0.35);
}
.card-x:hover::before { opacity: 1; }

.card-x-n {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--dim); margin-bottom: 18px;
  position: relative; z-index: 2;
}
.card-x-ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--edge);
  background: rgba(231,255,110,0.06);
  margin-bottom: 17px;
  position: relative; z-index: 2;
  --chamfer: 9px;
}
.card-x-ic svg { width: 20px; height: 20px; stroke: var(--hot); fill: none; stroke-width: 1.7; }
.card-x h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.018em; line-height: 1.25;
  margin-bottom: 10px; color: var(--text);
  position: relative; z-index: 2;
}
.card-x p {
  color: var(--muted); font-size: 14.5px; line-height: 1.62;
  flex: 1; margin-bottom: 18px;
  position: relative; z-index: 2;
}
.card-x-go {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--hot);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; z-index: 2;
}
.card-x-go .arrow { transition: transform 0.3s var(--ease); }
.card-x:hover .card-x-go .arrow { transform: translateX(4px); }

/* ==========================================================================
   SECTION HEADINGS — bigger, with a HUD kicker
   ========================================================================== */
.head-x { max-width: 720px; margin-bottom: 46px; }
.head-x h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 20px 0 16px; text-wrap: balance;
}
.head-x p { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* Angular divider between bands */
.slash {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge) 22%, var(--edge) 78%, transparent);
  position: relative;
}
.slash::after {
  content: '';
  position: absolute; left: 50%; top: -3px;
  width: 7px; height: 7px;
  background: var(--hot);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 16px 3px rgba(231,255,110,0.6);
}

.band-x { padding: 104px 0; position: relative; }
.band-void { background: var(--void); }
.band-lift {
  background:
    radial-gradient(760px 420px at 84% 14%, rgba(231,255,110,0.06), transparent 66%),
    linear-gradient(180deg, #08090d, var(--void));
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step {
  position: relative;
  padding: 26px 22px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--edge);
  --chamfer: 13px;
}
.flow-n {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--hot); margin-bottom: 15px;
}
.flow-step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; letter-spacing: -0.015em; margin-bottom: 9px; color: var(--text);
}
.flow-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   CLOSER
   ========================================================================== */
.closer-x {
  position: relative; overflow: hidden;
  padding: 116px 0;
  text-align: center;
  background:
    radial-gradient(760px 420px at 50% 100%, rgba(231,255,110,0.14), transparent 68%),
    var(--void);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.closer-x h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02;
  letter-spacing: -0.038em; margin-bottom: 20px; text-wrap: balance;
}
.closer-x p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 34px; line-height: 1.6; }
.closer-x .hero-actions { justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-x-grid { grid-template-columns: 1fr; gap: 62px; }
  .device { transform: rotateY(-8deg) rotateX(3deg); }
  .grid-x { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero-x { padding: 116px 0 66px; }
  .band-x { padding: 72px 0; }
  .closer-x { padding: 80px 0; }
  .grid-x { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(3) { border-left: none; }
  .strip-cell:nth-child(3), .strip-cell:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }
  .strip-cell { padding: 26px 18px; }
  /* Flatten the 3D on phones — perspective transforms cost more than they add */
  .device { transform: none; }
  .rig { perspective: none; padding: 0; }
  .chip { position: static; transform: none; margin-top: 16px; display: inline-block; }
  .hero-x .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   PAGE HERO — inner pages
   ========================================================================== */
.hero-page {
  position: relative;
  padding: 138px 0 62px;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 78% 10%, rgba(231,255,110,0.09), transparent 66%),
    var(--void);
}
.hero-page::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(231,255,110,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,255,110,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 80% at 70% 20%, #000 8%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 70% 20%, #000 8%, transparent 70%);
  pointer-events: none;
}
.hero-page .wrap { position: relative; z-index: 2; }
.hero-page h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02; letter-spacing: -0.036em;
  margin: 22px 0 18px; text-wrap: balance;
}
.hero-page .lede {
  color: var(--muted); font-size: 18px;
  line-height: 1.62; max-width: 620px;
}

.crumbs {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--dim); margin-bottom: 20px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--hot); }
.crumbs .sep { margin: 0 8px; opacity: 0.5; }

.meta-x {
  display: flex; gap: 22px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================================================
   TIERS (Recon packages)
   ========================================================================== */
.tiers-x { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier-x {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 30px 28px;
  --chamfer: 15px;
}
.tier-x.featured {
  border-color: var(--edge);
  background: linear-gradient(170deg, #141720, var(--panel));
  box-shadow: 0 0 64px -26px rgba(231,255,110,0.4);
}
.tier-x-name {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--hot);
}
.tier-x-price {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 3vw, 44px); letter-spacing: -0.04em;
  line-height: 1; margin: 15px 0 5px; color: var(--text);
}
.tier-x-price .per { font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.tier-x-desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 8px 0 20px; }
.tier-x ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0 0 26px; padding: 0; flex: 1; }
.tier-x li {
  display: grid; grid-template-columns: 16px 1fr; gap: 11px;
  font-size: 14.5px; color: var(--muted); line-height: 1.55;
}
.tier-x li svg { width: 14px; height: 14px; stroke: var(--hot); fill: none; stroke-width: 2.2; margin-top: 4px; }
.tier-x .btn { justify-content: center; }

/* ==========================================================================
   FORMS (contact)
   ========================================================================== */
.form-x .f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-x label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.form-x input, .form-x select, .form-x textarea {
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS auto-zoom */
  color: var(--text);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 4px;
  padding: 12px 14px; min-height: 46px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-x textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-x input:focus, .form-x select:focus, .form-x textarea:focus {
  border-color: var(--edge);
  box-shadow: 0 0 0 3px rgba(231,255,110,0.10);
  outline: none;
}
.form-x ::placeholder { color: var(--dim); }
.form-note { font-size: 13px; color: var(--dim); margin-top: 14px; }
#form-status { font-size: 14px; margin-top: 14px; }
#form-status.ok { color: var(--green); }
#form-status.err { color: var(--danger); }

.contact-grid-x { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.contact-panel {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px;
  --chamfer: 15px;
}
.c-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.c-row:last-child { border-bottom: none; }
.c-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 6px;
}
.c-row a { color: var(--text); text-decoration: none; font-weight: 600; }
.c-row a:hover { color: var(--hot); }
.c-row p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Two-column card grid (about values) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* Two-column editorial rows — the quiet counterpart to the card grid.
   Used where content is a list to read, not a set of destinations. */
.rows-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.faq-row { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-row .n {
  display: block;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; color: var(--hot); margin-bottom: 7px;
}
.faq-row h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16.5px; letter-spacing: -0.015em;
  margin-bottom: 8px; color: var(--text);
}
.faq-row p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* Article prose sits on a subtle panel edge for focus */
.prose-x { max-width: 720px; }
.prose-x .prose h2 { font-weight: 800; letter-spacing: -0.03em; }
.prose-x .prose h2::before {
  content: '/ ';
  color: var(--hot);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: 0;
  vertical-align: 2px;
}

/* ==========================================================================
   THE DEMO — a scripted Recon run on a fictional domain.
   Terminal narrates on the left; the surface map materializes on the right.
   All hidden-states are scoped under .armed (added by JS), so without JS
   the section renders complete and static.
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The hidden attribute must always win — .btn's display would otherwise
   override the UA's [hidden] rule and leave a dead button visible. */
[hidden] { display: none !important; }

.demo-console {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  background: linear-gradient(168deg, var(--panel-2) 0%, var(--panel) 60%, #090a0e 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 80px -30px rgba(231,255,110,0.18);
  --chamfer: 18px;
  position: relative;
  overflow: hidden;
}
.demo-console::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(231,255,110,0.10), transparent 30%);
  pointer-events: none; z-index: 2;
}
.demo-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.35);
  position: relative; z-index: 3;
}

.term {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 2.0;
  background: rgba(0,0,0,0.42);
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 3;
}
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
[data-demo].armed .term-line {
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
[data-demo].armed .term-line.shown { opacity: 1; transform: none; }
.t-cmd  { color: var(--hot); }
.t-dim  { color: var(--dim); }
.t-ok   { color: var(--green); }
.t-warn { color: var(--high); }
.t-bad  { color: var(--danger); }

.dmap { position: relative; padding: 14px; z-index: 3; }
.dmap svg { width: 100%; height: 100%; display: block; }

.dnode circle {
  fill: #1d202a; stroke: rgba(255,255,255,0.28); stroke-width: 1.25;
  transition: fill 0.4s var(--ease), stroke 0.4s var(--ease), filter 0.4s var(--ease);
}
.dnode text {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  fill: var(--dim); transition: fill 0.4s var(--ease);
}
[data-demo].armed .dnode {
  opacity: 0; transform: scale(0.6);
  transform-box: fill-box; transform-origin: center;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
[data-demo].armed .dnode.on { opacity: 1; transform: none; }

.dedge { stroke: rgba(255,255,255,0.13); stroke-width: 1; }
[data-demo].armed .dedge {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s var(--ease) 0.05s;
}
[data-demo].armed .dedge.on { stroke-dashoffset: 0; }

/* Findings re-rank: discovery first, severity second */
.dnode.f-warn circle { fill: var(--high); stroke: var(--high); filter: drop-shadow(0 0 6px rgba(251,146,60,0.7)); }
.dnode.f-bad  circle { fill: var(--danger); stroke: var(--danger); filter: drop-shadow(0 0 7px rgba(251,113,133,0.75)); }
.dnode.f-warn text, .dnode.f-bad text { fill: var(--text); }

.dcore-dot  { fill: var(--hot); }
.dcore-halo { fill: none; stroke: var(--hot); stroke-width: 1; opacity: 0.3; }
.dcore-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; fill: #07070a; font-weight: 600; }

.dmap-verdict {
  position: absolute; right: 16px; bottom: 14px;
  background: linear-gradient(160deg, var(--panel-2), #08090d);
  border: 1px solid var(--edge);
  padding: 10px 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; color: var(--text);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,0.9), 0 0 34px -12px rgba(231,255,110,0.4);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.dmap-verdict b { color: var(--danger); font-weight: 600; }
/* Hidden state only when JS has armed the demo — no-JS gets the static chip */
[data-demo].armed .dmap-verdict { opacity: 0; transform: translateY(8px); }
[data-demo].armed .dmap-verdict.on { opacity: 1; transform: none; }

.demo-actions { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.demo-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim); }

@media (max-width: 900px) {
  .demo-console { grid-template-columns: 1fr; }
  .term { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 11px; padding: 16px 18px; }
  .dmap { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-demo].armed .term-line,
  [data-demo].armed .dnode,
  [data-demo].armed .dedge,
  .dmap-verdict { transition: none; }
}

/* ==========================================================================
   PAGE-LOAD SEQUENCING — hero staggers in once, restrained
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-x .hud, .hero-x h1, .hero-x-sub, .hero-x .hero-actions, .hero-x .pills, .hero-x .rig,
  .hero-page .hud, .hero-page h1, .hero-page .lede, .hero-page .hero-actions, .hero-page .crumbs {
    animation: riseIn 0.65s var(--ease) both;
  }
  .hero-x h1, .hero-page h1 { animation-delay: 0.07s; }
  .hero-x-sub, .hero-page .lede { animation-delay: 0.14s; }
  .hero-x .hero-actions, .hero-page .hero-actions { animation-delay: 0.21s; }
  .hero-x .pills { animation-delay: 0.28s; }
  .hero-x .rig { animation-delay: 0.18s; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive — new components
   ========================================================================== */
@media (max-width: 1040px) {
  .tiers-x { grid-template-columns: 1fr; max-width: 560px; }
  .contact-grid-x { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-page { padding: 108px 0 48px; }
  .grid-2, .rows-2 { grid-template-columns: 1fr; }
  .tier-x { padding: 26px 22px; }
}

@media (max-width: 430px) {
  /* keep the terminal's punchlines readable instead of ellipsizing them */
  .term { font-size: 10px; line-height: 1.95; padding: 14px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hud .pulse, .device-live i { animation: none; }
  .device, .rig:hover .device { transform: none; }
  .meter-fill { transition: none; }
}
