/* ==========================================================================
   DELTA TANGO SHOWCASE LAYER (showcase.css)
   Shared by /ai, /ai/blueprint and /tech. Loaded after the page stylesheets.

   1. Theme tokens: dark (Night Ops, default) and light (Day Ops), resolved
      from the visitor's saved choice or their operating system setting.
   2. Elevated presentation: aurora backdrop, display typography, glass
      surfaces with pointer spotlight, pill controls, refined tables and forms.

   Copy is untouched; this file only changes presentation.
   Tokens only, no hardcoded utility colours. Zero emdashes. Australian English.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. THEME TOKENS
   Dark values match the original literals so Night Ops renders as before.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --fg-rgb: 255 255 255;
  --hi-rgb: 255 255 255;
  --ink-rgb: 23 24 32;
  --ink-2-rgb: 33 34 44;
  --deep-rgb: 13 17 23;
  --navy-rgb: 33 59 91;
  --shade-rgb: 0 0 0;
  --shade-k: 1;

  --gold-rgb: 233 178 109;
  --blue-rgb: 64 152 249;
  --green-rgb: 52 211 153;
  --green-2-rgb: 16 185 129;
  --amber-rgb: 251 191 36;
  --red-rgb: 248 113 113;
  --red-2-rgb: 239 68 68;
  --violet-rgb: 167 139 250;

  --gold-text: #e9b26d;
  --gold-light-text: #f8c483;
  --gold-pale-text: #f3cf9f;
  --blue-text: #4098f9;
  --blue-deep: #2581eb;
  --red-text: #f87171;
  --red-soft-text: #fca5a5;
  --violet-text: #c4b5fd;
  --on-accent: #171820;
  --on-blue: #ffffff;

  --aurora-gold: 0.16;
  --aurora-blue: 0.18;
  --grid-alpha: 0.04;
  --noise-alpha: 0.05;
  --surface-sheen: 0.04;
  --radius-tile: 18px;
  --radius-panel: 22px;
  --radius-control: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  --ink: #f4f3ef;
  --ink-2: #ffffff;
  --ink-3: #ebe9e3;
  --paper: #13141b;
  --paper-2: #2a2c35;
  --muted: #57535f;
  --muted-dark: #3d3a43;
  --line: #dedbd3;
  --line-light: #e9e6df;
  --gold: #d29445;
  --gold-light: #e2a85c;
  --blue: #1f6fd1;

  --fg-rgb: 19 20 27;
  --ink-rgb: 244 243 239;
  --ink-2-rgb: 255 255 255;
  --deep-rgb: 236 234 228;
  --navy-rgb: 214 226 242;
  --shade-rgb: 34 40 60;
  --shade-k: 0.3;

  --gold-rgb: 196 132 54;
  --blue-rgb: 31 111 209;
  --green-rgb: 4 150 105;
  --green-2-rgb: 4 120 87;
  --amber-rgb: 202 138 4;
  --red-rgb: 220 38 38;
  --red-2-rgb: 185 28 28;
  --violet-rgb: 124 58 237;

  --gold-text: #925818;
  --gold-light-text: #7a4710;
  --gold-pale-text: #7a4710;
  --blue-text: #1a5fb8;
  --blue-deep: #1858a8;
  --red-text: #b91c1c;
  --red-soft-text: #b91c1c;
  --violet-text: #6d28d9;

  --hud-green: #047857;
  --hud-green-glow: rgb(4 120 87 / 0.2);
  --hud-amber: #b45309;
  --hud-amber-glow: rgb(180 83 9 / 0.2);
  --hud-blue: #1f6fd1;
  --hud-blue-glow: rgb(31 111 209 / 0.2);
  --hud-border: rgb(19 20 27 / 0.1);
  --hud-border-hover: rgb(19 20 27 / 0.2);
  --hud-bg-translucent: rgb(255 255 255 / 0.78);

  --aurora-gold: 0.2;
  --aurora-blue: 0.14;
  --grid-alpha: 0.06;
  --noise-alpha: 0.035;
  --surface-sheen: 0;
}

/* No-script fallback: follow the operating system when no theme attribute is set */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --ink: #f4f3ef;
    --ink-2: #ffffff;
    --ink-3: #ebe9e3;
    --paper: #13141b;
    --muted: #57535f;
    --line: #dedbd3;
    --gold: #d29445;
    --gold-light: #e2a85c;
    --blue: #1f6fd1;
    --fg-rgb: 19 20 27;
    --ink-rgb: 244 243 239;
    --ink-2-rgb: 255 255 255;
    --deep-rgb: 236 234 228;
    --shade-rgb: 34 40 60;
    --shade-k: 0.3;
    --gold-rgb: 196 132 54;
    --blue-rgb: 31 111 209;
    --gold-text: #925818;
    --gold-light-text: #7a4710;
    --blue-text: #1a5fb8;
    --hud-green: #047857;
    --hud-amber: #b45309;
    --hud-border: rgb(19 20 27 / 0.1);
    --hud-border-hover: rgb(19 20 27 / 0.2);
  }
}

/* Smooth cross-fade while the visitor switches theme */
:root.dt-theme-switching *,
:root.dt-theme-switching *::before,
:root.dt-theme-switching *::after {
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    color 0.4s var(--ease), fill 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
}

/* --------------------------------------------------------------------------
   2. CANVAS: AURORA, GRID AND GRAIN
   -------------------------------------------------------------------------- */
body.ai-theme,
body.tech-theme {
  background-color: var(--ink);
  background-image: none;
  animation: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.ai-theme::before,
body.tech-theme::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -2;
  opacity: 1;
  pointer-events: none;
  background:
    radial-gradient(42vw 38vh at 14% 4%, rgb(var(--gold-rgb) / var(--aurora-gold)), transparent 70%),
    radial-gradient(46vw 44vh at 88% 10%, rgb(var(--blue-rgb) / var(--aurora-blue)), transparent 70%),
    radial-gradient(60vw 40vh at 50% 108%, rgb(var(--blue-rgb) / calc(var(--aurora-blue) * 0.55)), transparent 72%);
  -webkit-mask-image: none;
  mask-image: none;
  filter: blur(8px);
  animation: dtAurora 38s ease-in-out infinite alternate;
}

body.ai-theme::after,
body.tech-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29' opacity='0.2'/%3E%3C/svg%3E"),
    linear-gradient(rgb(var(--fg-rgb) / var(--grid-alpha)) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--fg-rgb) / var(--grid-alpha)) 1px, transparent 1px);
  background-size: 160px 160px, 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, rgb(0 0 0 / 0.35) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, rgb(0 0 0 / 0.35) 55%, transparent 100%);
  opacity: 1;
  mix-blend-mode: normal;
}

@keyframes dtAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2vw, 1.5vh, 0) scale(1.04); }
  100% { transform: translate3d(-2vw, -1vh, 0) scale(1.02); }
}

::selection {
  background: rgb(var(--gold-rgb) / 0.35);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   3. HEADER: GLASS BAR, SEGMENTED NAVIGATION, PILL CTA, THEME TOGGLE
   -------------------------------------------------------------------------- */
body .ai-header {
  background: rgb(var(--ink-rgb) / 0.5);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.06);
}

body .ai-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / 0.45) 30%, rgb(var(--blue-rgb) / 0.45) 70%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

body .ai-header.is-scrolled {
  background: rgb(var(--ink-rgb) / 0.78);
  border-bottom-color: rgb(var(--fg-rgb) / 0.08);
  box-shadow: 0 12px 40px -12px rgb(var(--shade-rgb) / calc(0.5 * var(--shade-k)));
}

body .ai-header.is-scrolled::after {
  opacity: 1;
}

:root[data-theme="light"] .ai-brand-logo path[fill="#F3F4F6" i] {
  fill: var(--paper);
}

:root[data-theme="light"] .ai-brand-divider {
  background: rgb(var(--fg-rgb) / 0.3);
}

body .ai-header-inner > .ai-nav-links {
  padding: 5px;
  gap: 2px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid rgb(var(--fg-rgb) / 0.08);
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / var(--surface-sheen));
}

body .ai-header .ai-nav-link {
  border-radius: 999px;
  padding: 9px 18px;
  transition: all 0.2s var(--ease);
}

body .ai-header .ai-nav-link.active,
body .ai-header .ai-nav-link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(180deg, rgb(var(--gold-rgb) / 0.2), rgb(var(--gold-rgb) / 0.08));
  border-color: rgb(var(--gold-rgb) / 0.4);
  box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / 0.08), 0 6px 18px -8px rgb(var(--gold-rgb) / 0.6);
}

body .ai-header-inner > .ai-nav-actions {
  gap: 10px;
}

/* Theme toggle */
.dt-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  color: var(--paper);
  background: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dt-theme-toggle:hover {
  color: var(--gold-text);
  border-color: rgb(var(--gold-rgb) / 0.5);
  background: rgb(var(--gold-rgb) / 0.08);
  transform: translateY(-1px);
}

.dt-theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.dt-theme-toggle svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

.dt-theme-toggle .dt-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

.dt-theme-toggle .dt-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

:root[data-theme="light"] .dt-theme-toggle .dt-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

:root[data-theme="light"] .dt-theme-toggle .dt-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

/* --------------------------------------------------------------------------
   4. SECTION RHYTHM AND DISPLAY TYPOGRAPHY
   -------------------------------------------------------------------------- */
body :is(.ai-section, .tech-section) {
  padding-top: clamp(88px, 9vw, 132px);
  padding-bottom: clamp(88px, 9vw, 132px);
  border-bottom: 0;
  background-image: linear-gradient(90deg, transparent 0%, rgb(var(--fg-rgb) / 0.09) 20%, rgb(var(--gold-rgb) / 0.22) 50%, rgb(var(--fg-rgb) / 0.09) 80%, transparent 100%);
  background-size: min(1200px, 90%) 1px;
  background-position: center bottom;
  background-repeat: no-repeat;
}

body :is(.ai-hero, .tech-hero) {
  padding-top: clamp(140px, 14vw, 184px);
}

body :is(.ai-container, .tech-container) {
  max-width: 1320px;
}

body :is(.ai-eyebrow, .tech-eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-text);
  font-size: 10px;
  letter-spacing: 1.8px;
}

body :is(.ai-eyebrow, .tech-eyebrow)::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--gold-rgb) / 0), var(--gold));
  flex-shrink: 0;
}

body :is(.ai-title-lg, .tech-title-lg) {
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.032em;
  text-wrap: balance;
  margin-bottom: 22px;
}

body :is(.ai-hero .ai-title-lg, .tech-hero .tech-title-lg) {
  font-size: clamp(38px, 3.9vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  padding-bottom: 0.06em;
  background: linear-gradient(176deg, var(--paper) 0%, var(--paper) 52%, rgb(var(--fg-rgb) / 0.72) 72%, var(--gold-text) 112%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body .tech-hero .tech-title-lg {
  font-size: clamp(36px, 3.4vw, 48px);
}

body .bp-hero .ai-title-lg {
  font-size: clamp(38px, 4vw, 58px);
}

body .tech-title-md {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}

body :is(.ai-lead, .tech-lead) {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}

body :is(.ai-section, .tech-section) :is(h3, h4) {
  letter-spacing: -0.012em;
}

/* --------------------------------------------------------------------------
   5. BUTTONS AND CONTROLS
   -------------------------------------------------------------------------- */
body :is(.ai-button-primary, .tech-button-primary, .ai-hud-cta, .tech-hud-cta, .ai-form-submit, .tech-form-submit) {
  border-radius: 999px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, color-mix(in oklab, var(--gold) 78%, var(--on-accent)) 100%);
  border: 1px solid rgb(var(--gold-rgb) / 0.65);
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / 0.45), 0 1px 2px rgb(var(--shade-rgb) / calc(0.3 * var(--shade-k))), 0 10px 28px -12px rgb(var(--gold-rgb) / 0.7);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body :is(.ai-button-primary, .tech-button-primary) {
  padding: 15px 28px;
}

body :is(.ai-button-primary, .tech-button-primary, .ai-hud-cta, .tech-hud-cta, .ai-form-submit, .tech-form-submit):hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-light) 40%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / 0.55), 0 2px 4px rgb(var(--shade-rgb) / calc(0.3 * var(--shade-k))), 0 18px 40px -14px rgb(var(--gold-rgb) / 0.85);
}

body :is(.ai-button-primary, .tech-button-primary) > span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

body :is(.ai-button-primary, .tech-button-primary):hover > span[aria-hidden="true"] {
  transform: translateX(4px);
}

body :is(.ai-button-secondary, .tech-button-secondary) {
  border-radius: 999px;
  padding: 15px 26px;
  color: var(--paper);
  background: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid rgb(var(--fg-rgb) / 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / var(--surface-sheen));
}

body :is(.ai-button-secondary, .tech-button-secondary):hover {
  background: rgb(var(--gold-rgb) / 0.08);
  border-color: rgb(var(--gold-rgb) / 0.45);
  color: var(--paper);
}

body :is(.ai-button-primary, .tech-button-primary, .ai-button-secondary, .tech-button-secondary, .ai-form-submit, .tech-form-submit, .launch-action-btn):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body .launch-action-btn {
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / 0.3), 0 12px 30px -14px rgb(var(--blue-rgb) / 0.8);
}

/* Tabs, segmented controls and chips */
body :is(.threat-btn, .model-tab-btn, .workload-tab-btn, .scenario-usage-btn, .scenario-team-btn, .stress-btn, .mx-seg, .mx-chip) {
  border-radius: var(--radius-control);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body :is(.threat-btn, .model-tab-btn, .workload-tab-btn, .scenario-usage-btn, .scenario-team-btn, .stress-btn, .mx-seg, .mx-chip):hover {
  transform: translateY(-1px);
}

body :is(.threat-btn, .model-tab-btn, .workload-tab-btn, .scenario-usage-btn, .scenario-team-btn, .stress-btn, .mx-seg, .mx-chip):is(.active, .is-active, [aria-pressed="true"], [aria-selected="true"]) {
  box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / 0.25), 0 10px 24px -14px rgb(var(--gold-rgb) / 0.8);
}

body .mx-chip {
  border-radius: 999px;
}

body :is(.mx-segmented, .model-nav-tabs, .comparison-workload-tabs) {
  border-radius: calc(var(--radius-control) + 4px);
}

/* Status pills and badges */
body .telemetry-pill {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgb(var(--fg-rgb) / 0.04);
  border-color: rgb(var(--fg-rgb) / 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body .telemetry-pill.live {
  background: rgb(var(--green-rgb) / 0.08);
  border-color: rgb(var(--green-rgb) / 0.32);
}

body :is(.model-status-chip, .track-status-pill, .framework-status-pill, .table-pill, .dilemma-badge, .bp-badge) {
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   6. SURFACES: TILES AND PANELS WITH POINTER SPOTLIGHT
   Base rules use body :is() so they beat single-class originals but leave
   variant rules (for example coloured top borders) intact.
   -------------------------------------------------------------------------- */
body :is(
  .metric-card, .dilemma-card, .model-dossier-card, .mesh-card, .uplift-track-card,
  .framework-card, .economics-result-card, .comp-model-card, .practice-card, .mx-scenario,
  .bp-card, .bp-result, .saas-critique-card, .theatre-card, .senior-cap-card, .dossier-card,
  .security-threat-panel, .cost-result-block,
  .ai-command-box, .tech-command-box, .threat-simulator-box, .workspace-architecture-flow,
  .framework-matrix-wrapper, .comparison-matrix-wrapper, .comparison-cta-box, .ai-telemetry-strip,
  .terminal-briefing-info, .terminal-form-card, .scenario-evaluator-card, .advisory-services-framework,
  .mx-builder, .bp-hero-panel, .bp-stack, .bp-table-wrap, .bp-sizer, .bp-token-demo,
  .bp-token-estimator, .bp-tco-wrap, .stress-test-container, .talent-pad-box
) {
  background-color: var(--ink-2);
  background-image:
    radial-gradient(560px circle at var(--mx, 50%) var(--my, -60%), rgb(var(--gold-rgb) / var(--spot-a, 0)), transparent 46%),
    linear-gradient(180deg, rgb(var(--fg-rgb) / var(--surface-sheen)), rgb(var(--fg-rgb) / 0) 42%);
  border-color: rgb(var(--fg-rgb) / 0.09);
  box-shadow:
    inset 0 1px 0 rgb(var(--hi-rgb) / var(--surface-sheen)),
    0 1px 2px rgb(var(--shade-rgb) / calc(0.25 * var(--shade-k))),
    0 28px 56px -32px rgb(var(--shade-rgb) / calc(0.75 * var(--shade-k)));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

/* Tiles: compact cards that lift on hover */
body :is(
  .metric-card, .dilemma-card, .model-dossier-card, .mesh-card, .uplift-track-card,
  .framework-card, .economics-result-card, .comp-model-card, .practice-card, .mx-scenario,
  .bp-card, .bp-result, .saas-critique-card, .theatre-card, .senior-cap-card, .dossier-card,
  .security-threat-panel, .cost-result-block
) {
  border-radius: var(--radius-tile);
}

body :is(
  .metric-card, .dilemma-card, .model-dossier-card, .mesh-card, .uplift-track-card,
  .framework-card, .comp-model-card, .practice-card, .bp-card, .saas-critique-card,
  .theatre-card, .senior-cap-card, .dossier-card
):hover {
  --spot-a: 0.12;
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgb(var(--hi-rgb) / var(--surface-sheen)),
    0 0 0 1px rgb(var(--gold-rgb) / 0.22),
    0 2px 4px rgb(var(--shade-rgb) / calc(0.25 * var(--shade-k))),
    0 36px 64px -30px rgb(var(--shade-rgb) / calc(0.9 * var(--shade-k))),
    0 24px 60px -36px rgb(var(--gold-rgb) / 0.35);
}

/* Panels: larger containers, no lift, gentle spotlight */
body :is(
  .ai-command-box, .tech-command-box, .threat-simulator-box, .workspace-architecture-flow,
  .framework-matrix-wrapper, .comparison-matrix-wrapper, .comparison-cta-box, .ai-telemetry-strip,
  .terminal-briefing-info, .terminal-form-card, .scenario-evaluator-card, .advisory-services-framework,
  .mx-builder, .bp-hero-panel, .bp-stack, .bp-table-wrap, .bp-sizer, .bp-token-demo,
  .bp-token-estimator, .bp-tco-wrap, .stress-test-container, .talent-pad-box
) {
  border-radius: var(--radius-panel);
}

body :is(
  .threat-simulator-box, .workspace-architecture-flow, .comparison-cta-box, .terminal-briefing-info,
  .terminal-form-card, .scenario-evaluator-card, .advisory-services-framework, .mx-builder,
  .bp-hero-panel, .bp-stack, .bp-sizer, .bp-token-demo, .bp-token-estimator, .stress-test-container,
  .talent-pad-box
):hover {
  --spot-a: 0.06;
}

/* Hero consoles: device-screen treatment with a slow gradient halo.
   They stay dark in the light theme, like a product render on a light page. */
body :is(.ai-command-box, .tech-command-box) {
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 0 0 1px rgb(255 255 255 / 0.04),
    0 50px 100px -40px rgb(var(--blue-rgb) / 0.45),
    0 30px 80px -50px rgb(var(--gold-rgb) / 0.5);
}

body :is(.ai-command-box, .tech-command-box) > :first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

body :is(.ai-command-box, .tech-command-box) > :last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

body :is(.ai-command-box, .tech-command-box)::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--dt-angle, 0deg), rgb(var(--gold-rgb) / 0.75), rgb(var(--blue-rgb) / 0.15) 25%, rgb(var(--blue-rgb) / 0.7) 50%, rgb(var(--gold-rgb) / 0.15) 75%, rgb(var(--gold-rgb) / 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: dtHalo 14s linear infinite;
  pointer-events: none;
}

@property --dt-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes dtHalo {
  to { --dt-angle: 360deg; }
}

:root[data-theme="light"] :is(.ai-command-box, .tech-command-box) {
  color-scheme: dark;
  --ink: #171820;
  --ink-2: #1c1d26;
  --ink-3: #2b2d35;
  --paper: #ffffff;
  --muted: #a39dab;
  --fg-rgb: 255 255 255;
  --ink-rgb: 23 24 32;
  --ink-2-rgb: 33 34 44;
  --shade-rgb: 0 0 0;
  --gold-rgb: 233 178 109;
  --blue-rgb: 64 152 249;
  --green-rgb: 52 211 153;
  --gold: #e9b26d;
  --blue: #4098f9;
  --gold-text: #e9b26d;
  --blue-text: #4098f9;
  --hud-green: #34d399;
  --hud-amber: #fbbf24;
  --hud-border: rgb(255 255 255 / 0.08);
  --surface-sheen: 0.04;
  background-color: var(--ink-2);
  color: var(--paper);
  box-shadow:
    0 0 0 1px rgb(19 20 27 / 0.06),
    0 50px 90px -40px rgb(31 111 209 / 0.45),
    0 30px 70px -45px rgb(196 132 54 / 0.55);
}

/* Inner panels in the light theme get a softer inset tint */
:root[data-theme="light"] :is(.threat-panel, .command-box-header) {
  background-color: rgb(var(--fg-rgb) / 0.03);
}

/* --------------------------------------------------------------------------
   7. TABLES
   -------------------------------------------------------------------------- */
body :is(.framework-table, .comparison-feature-table, .bp-table, .bp-tco-table) {
  border-collapse: separate;
  border-spacing: 0;
}

body :is(.framework-table, .comparison-feature-table, .bp-table) thead th,
body .framework-table th {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  background-color: rgb(var(--fg-rgb) / 0.035);
}

body :is(.framework-table, .comparison-feature-table, .bp-table, .bp-tco-table) tbody tr {
  transition: background-color 0.2s var(--ease);
}

body :is(.framework-table, .comparison-feature-table, .bp-table, .bp-tco-table) tbody tr:hover {
  background-color: rgb(var(--gold-rgb) / 0.05);
}

/* --------------------------------------------------------------------------
   8. FORMS
   -------------------------------------------------------------------------- */
body :is(.ai-form-input, .ai-form-select, .ai-form-textarea, .tech-form-input, .tech-form-select, .tech-form-textarea, .mx-select, .bp-select, .bp-estimator-input, .bp-textarea) {
  border-radius: var(--radius-control);
  background-color: rgb(var(--fg-rgb) / 0.04);
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  color: var(--paper);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body :is(.ai-form-input, .ai-form-select, .ai-form-textarea, .tech-form-input, .tech-form-select, .tech-form-textarea, .mx-select, .bp-select, .bp-estimator-input, .bp-textarea):hover {
  border-color: rgb(var(--fg-rgb) / 0.2);
}

body :is(.ai-form-input, .ai-form-select, .ai-form-textarea, .tech-form-input, .tech-form-select, .tech-form-textarea, .mx-select, .bp-select, .bp-estimator-input, .bp-textarea):focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgb(var(--gold-rgb) / 0.04);
  box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / 0.15);
}

body :is(.ai-form-input, .ai-form-textarea, .tech-form-input, .tech-form-textarea, .bp-estimator-input, .bp-textarea)::placeholder {
  color: rgb(var(--fg-rgb) / 0.38);
}

body :is(.ai-form-select, .tech-form-select, .mx-select, .bp-select) option {
  background-color: var(--ink-2);
  color: var(--paper);
}

body :is(.token-slider, .mx-range, .headcount-slider) {
  accent-color: var(--gold);
}

/* --------------------------------------------------------------------------
   9. SECTION RAIL AND AUDIO DOCK
   -------------------------------------------------------------------------- */
body .ai-rail-track {
  background: rgb(var(--ink-rgb) / 0.45);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-color: rgb(var(--fg-rgb) / 0.1);
  box-shadow: 0 16px 40px -20px rgb(var(--shade-rgb) / calc(0.7 * var(--shade-k)));
}

body .ai-rail-btn {
  background: rgb(var(--ink-rgb) / 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-color: rgb(var(--fg-rgb) / 0.1);
}

body .ai-rail-label {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgb(var(--ink-rgb) / 0.9);
  box-shadow: 0 10px 30px -14px rgb(var(--shade-rgb) / calc(0.7 * var(--shade-k)));
}

body .ai-rail-progress {
  width: 2px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgb(var(--gold-rgb) / 0.5);
}

body .ai-audio-dock :is(.ai-audio-toggle, .tech-audio-toggle) {
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Mobile drawer surfaces */
body .ai-nav-links.mobile-open {
  background: rgb(var(--ink-rgb) / 0.94);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  backdrop-filter: saturate(170%) blur(22px);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
}

/* --------------------------------------------------------------------------
   10. ENTRANCE MOTION
   -------------------------------------------------------------------------- */
body .entrance-animate {
  animation-name: dtRise;
  animation-duration: 0.9s;
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}

@keyframes dtRise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
body:is(.ai-theme, .tech-theme) .footer {
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0), rgb(var(--deep-rgb) / 0.6));
  border-top: 1px solid rgb(var(--fg-rgb) / 0.06);
}

body:is(.ai-theme, .tech-theme) .footer :is(h3, h4) {
  color: var(--paper);
  letter-spacing: -0.01em;
}

body:is(.ai-theme, .tech-theme) .footer a {
  transition: color 0.2s var(--ease);
}

body:is(.ai-theme, .tech-theme) .footer a:hover {
  color: var(--gold-text);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE AND ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --radius-tile: 16px;
    --radius-panel: 18px;
  }

  body :is(.ai-hero .ai-title-lg, .tech-hero .tech-title-lg) {
    font-size: clamp(34px, 9vw, 48px);
  }

  .dt-theme-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ai-theme::before,
  body.tech-theme::before,
  body :is(.ai-command-box, .tech-command-box)::after {
    animation: none;
  }

  body .entrance-animate {
    animation: none;
  }

  body :is(.metric-card, .dilemma-card, .model-dossier-card, .mesh-card, .uplift-track-card, .framework-card, .comp-model-card, .practice-card, .bp-card, .saas-critique-card, .theatre-card, .senior-cap-card, .dossier-card):hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  body.ai-theme::before,
  body.ai-theme::after,
  body.tech-theme::before,
  body.tech-theme::after {
    display: none;
  }

  body :is(.ai-hero .ai-title-lg, .tech-hero .tech-title-lg) {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

@media (max-width: 600px) {
  body :is(.ai-hero-actions, .tech-hero-actions) {
    flex-wrap: wrap;
  }
}


/* --------------------------------------------------------------------------
   13. SALES COMPONENTS: hero aside, enterprise builds, stages, CTA bands,
       briefing form layout. Shared by /ai, /ai/blueprint and /tech.
   -------------------------------------------------------------------------- */
.dt-hero-aside {
  margin: -28px 0 40px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.dt-hero-aside a,
.dt-inline-cta {
  color: var(--gold-text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--gold-rgb) / 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dt-hero-aside a:hover,
.dt-inline-cta:hover {
  border-bottom-color: var(--gold);
}

body .dt-lead-note {
  margin-top: -18px;
  font-size: 15px;
  padding-left: 16px;
  border-left: 2px solid rgb(var(--gold-rgb) / 0.5);
}

.dt-builder-links {
  display: grid;
  gap: 8px;
  justify-items: end;
}

/* Explorer hardware selector with four tiers */
body .mx-explorer .mx-controls-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
}

/* Enterprise builds */
.dt-ent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  margin-top: 8px;
}

.dt-ent-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dt-ent-stat {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 26px 24px;
  border-radius: var(--radius-tile);
  border: 1px solid rgb(var(--fg-rgb) / 0.09);
  background-color: var(--ink-2);
  background-image: radial-gradient(420px circle at 0% 0%, rgb(var(--gold-rgb) / 0.09), transparent 55%);
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / var(--surface-sheen)), 0 24px 48px -32px rgb(var(--shade-rgb) / calc(0.7 * var(--shade-k)));
}

.dt-ent-num {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  background: linear-gradient(120deg, var(--paper) 30%, var(--gold-text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dt-ent-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-text);
}

.dt-ent-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.dt-ent-scenario {
  padding: 30px 30px 26px;
  border-radius: var(--radius-panel);
  border: 1px solid rgb(var(--gold-rgb) / 0.3);
  background-color: var(--ink-2);
  background-image: linear-gradient(160deg, rgb(var(--gold-rgb) / 0.08), transparent 45%), linear-gradient(340deg, rgb(var(--blue-rgb) / 0.08), transparent 45%);
  box-shadow: 0 30px 60px -36px rgb(var(--shade-rgb) / calc(0.8 * var(--shade-k)));
}

.dt-ent-scenario h3 {
  margin: 6px 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.dt-ent-who {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.dt-ent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dt-ent-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.dt-ent-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgb(var(--gold-rgb) / 0.6);
}

.dt-ent-list strong {
  color: var(--gold-text);
  font-weight: 600;
}

.dt-ent-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.dt-ent-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.dt-ent-steps li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 24px;
  border-radius: var(--radius-tile);
  border: 1px solid rgb(var(--fg-rgb) / 0.09);
  background: rgb(var(--fg-rgb) / 0.025);
}

.dt-ent-steps strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}

.dt-ent-steps span:not(.dt-ent-step) {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.dt-ent-step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--gold-text);
}

/* Four-stage engagement grid */
body .services-framework-grid.dt-stages-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* CTA band */
.dt-cta-band {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-panel);
  border: 1px solid rgb(var(--gold-rgb) / 0.28);
  background-color: var(--ink-2);
  background-image: linear-gradient(100deg, rgb(var(--gold-rgb) / 0.1), transparent 55%), linear-gradient(280deg, rgb(var(--blue-rgb) / 0.08), transparent 50%);
  box-shadow: 0 24px 50px -34px rgb(var(--shade-rgb) / calc(0.8 * var(--shade-k)));
}

.dt-cta-band > div:first-child {
  display: grid;
  gap: 4px;
}

.dt-cta-band strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.dt-cta-band span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.dt-cta-band .dt-cta-actions span {
  color: inherit;
  font-size: inherit;
}

.dt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

body .dt-cta-actions :is(.ai-button-primary, .ai-button-secondary, .tech-button-primary, .tech-button-secondary) {
  padding: 13px 22px;
  white-space: nowrap;
}

/* Briefing form */
.dt-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Fields carry their own bottom margin, so only space the columns */
  gap: 0 16px;
}

.dt-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.dt-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.dt-consent a {
  color: var(--gold-text);
}

.dt-turnstile {
  min-height: 65px;
  margin-bottom: 16px;
}

.dt-form-status:empty {
  display: none !important;
}

.dt-form-status[data-status="success"],
.dt-form-status[data-status="error"],
.dt-form-status[data-status="info"] {
  display: block;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.55;
}

.dt-form-status[data-status="success"] {
  background: rgb(var(--green-rgb) / 0.1);
  border: 1px solid rgb(var(--green-rgb) / 0.3);
  color: var(--hud-green);
}

.dt-form-status[data-status="error"] {
  background: rgb(var(--red-rgb) / 0.1);
  border: 1px solid rgb(var(--red-rgb) / 0.3);
  color: var(--red-text);
}

.dt-form-status[data-status="info"] {
  background: rgb(var(--gold-rgb) / 0.08);
  border: 1px solid rgb(var(--gold-rgb) / 0.3);
  color: var(--gold-text);
}

@media (max-width: 1100px) {
  .dt-ent-grid {
    grid-template-columns: 1fr;
  }

  body .services-framework-grid.dt-stages-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dt-ent-stats,
  .dt-ent-steps,
  .dt-form-row,
  body .services-framework-grid.dt-stages-4 {
    grid-template-columns: 1fr;
  }

  .dt-cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .dt-builder-links {
    justify-items: start;
  }

  body .mx-explorer .mx-controls-row {
    grid-template-columns: 1fr;
  }

  .dt-hero-aside {
    margin-top: -16px;
  }
}

/* Blueprint enterprise additions */
body .dt-bp-enterprise {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-color: rgb(var(--gold-rgb) / 0.35);
  background-image:
    radial-gradient(560px circle at var(--mx, 0%) var(--my, 0%), rgb(var(--gold-rgb) / 0.1), transparent 50%),
    linear-gradient(120deg, rgb(var(--gold-rgb) / 0.06), transparent 55%);
}

body .dt-bp-enterprise h3 {
  margin-top: 10px;
}

body .dt-bp-enterprise .mx-inline-link {
  display: inline-block;
  margin-top: 6px;
}

body .bp-table tr.dt-row-enterprise th,
body .bp-table tr.dt-row-enterprise td {
  background-color: rgb(var(--gold-rgb) / 0.06);
}

body .bp-table tr.dt-row-enterprise th {
  color: var(--gold-text);
}

@media (max-width: 860px) {
  body .dt-bp-enterprise {
    grid-template-columns: 1fr;
  }
}

/* Tech Advisory engagement stages and calculator note */
.dt-stage-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dt-stage-list li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-tile);
  border: 1px solid rgb(var(--fg-rgb) / 0.09);
  background-color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgb(var(--hi-rgb) / var(--surface-sheen)), 0 24px 48px -32px rgb(var(--shade-rgb) / calc(0.7 * var(--shade-k)));
}

.dt-stage-list li.dt-stage-featured {
  border-color: rgb(var(--gold-rgb) / 0.4);
  background-image: linear-gradient(180deg, rgb(var(--gold-rgb) / 0.08), transparent 60%);
}

.dt-stage-list strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.dt-stage-list span:not(.dt-ent-step) {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.dt-calc-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--gold-text);
  background: rgb(var(--gold-rgb) / 0.07);
  border: 1px solid rgb(var(--gold-rgb) / 0.25);
  border-radius: var(--radius-control);
}

.dt-calc-note[hidden] {
  display: none;
}

.theatre-card .dt-inline-cta {
  font-size: 14px;
}

@media (max-width: 1100px) {
  .dt-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dt-stage-list {
    grid-template-columns: 1fr;
  }
}
