/* ==========================================================================
   LIGHT THEME — the live Metal Craft site's colours on the new 3D layout.
   Loaded after styles.css; only colours change, layout stays the same.
   ground #eef2fb · surface #fff · ink #0c1528 · brand #1246d6 · teal #00c8a0
   ========================================================================== */
:root {
  --bg-dark: #eef2fb;
  --bg-deep: #e4eaf7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);

  --neon-cyan: #00a585;            /* teal, a shade darker so text reads on white */
  --neon-cyan-glow: rgba(0, 200, 160, 0.25);
  --neon-blue: #1246d6;
  --neon-blue-glow: rgba(18, 70, 214, 0.22);

  --text-main: #0c1528;
  --text-dim: #354869;
  --text-muted: #7a93b8;
  --text-mono: #1246d6;

  --border-subtle: rgba(18, 70, 214, 0.11);
  --border-glow: rgba(18, 70, 214, 0.28);
  --border-cyan: rgba(0, 200, 160, 0.4);
}

html, body { background: var(--bg-dark); color: var(--text-main); }
body::before {
  background-image:
    linear-gradient(rgba(18, 70, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 70, 214, 0.05) 1px, transparent 1px);
}
body::after { background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(18, 70, 214, 0.06) 100%); }

/* every heading / value that was white on navy becomes ink */
.brand-title, .sec-title, .hero-h1, .stat-val, .card-metric-val, .sc-title, .m-title, .m-spec-v,
.suite-title, .modal-title-text, .rail-dot-btn:hover .rail-dot-label, .rail-dot-btn.active .rail-dot-label { color: var(--text-main); }
.sec-title em { background: linear-gradient(135deg, #1246d6 20%, #00c8a0 100%); -webkit-background-clip: text; background-clip: text; }
.hero-h1 span.gradient { background: linear-gradient(135deg, #1246d6 10%, #3b6ef5 55%, #00c8a0 100%); -webkit-background-clip: text; background-clip: text; }

/* nav */
.hud-nav { background: rgba(255, 255, 255, 0.88); box-shadow: 0 4px 24px rgba(12, 21, 40, 0.08), 0 0 0 1px rgba(18, 70, 214, 0.08); }
.hud-nav.scrolled { background: rgba(255, 255, 255, 0.96); }
.brand-official-logo { filter: none; }
.nav-brand:hover .brand-official-logo { filter: none; }
.nav-link:hover { color: var(--neon-blue); text-shadow: none; }
.nav-link span { color: var(--neon-blue); }

/* buttons */
.btn-cyber-primary { border-color: transparent; box-shadow: 0 6px 20px rgba(18, 70, 214, 0.32); }
.btn-cyber-primary:hover { background: #0a30a8; box-shadow: 0 10px 32px rgba(18, 70, 214, 0.45); }
.btn-cyber-ghost { background: #fff; color: var(--text-main); border: 1.5px solid rgba(18, 70, 214, 0.2); }
.btn-cyber-ghost:hover { background: #fff; color: var(--neon-blue); border-color: var(--neon-blue); }

/* badges and pills */
.hero-badge, .status-pill { background: rgba(0, 200, 160, 0.1); border-color: rgba(0, 200, 160, 0.35); color: #00866c; }
.status-pulse { background: #00c8a0; box-shadow: none; }

/* cards */
.interactive-pill-card, .machine-card-3d, .suite-card, .screen-narrative-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 32px rgba(12, 21, 40, 0.10);
}
.machine-card-3d:hover, .suite-card:hover { box-shadow: 0 24px 64px rgba(12, 21, 40, 0.14); }
.machine-card-3d::after { background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(18, 70, 214, 0.07) 0%, transparent 65%); }
.machine-state-switcher { background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 16px rgba(12, 21, 40, 0.08); }
.switcher-btn:hover:not(.active) { color: var(--neon-blue); background: rgba(18, 70, 214, 0.06); }
.switcher-btn.active { box-shadow: 0 4px 12px rgba(18, 70, 214, 0.35); }
.sc-chip, .suite-spec-tag { background: #f3f6fd; border-color: rgba(18, 70, 214, 0.1); color: var(--text-dim); }
.rail-dot-circle { background: rgba(18, 70, 214, 0.18); }
.rail-dot-btn.active .rail-dot-circle { background: var(--neon-blue); box-shadow: 0 0 0 4px rgba(18, 70, 214, 0.15); }

/* screen suite */
.suite-filter-btn { background: #fff; }
.suite-filter-btn:hover { color: var(--neon-blue); background: #fff; border-color: var(--neon-blue); }
.suite-filter-btn.active { color: #fff; background: var(--neon-blue); border-color: var(--neon-blue); box-shadow: 0 6px 18px rgba(18, 70, 214, 0.3); }
.suite-thumb-wrap { background: #e4eaf7; }
.suite-thumb-overlay { background: rgba(12, 21, 40, 0.35); }
.btn-inspect-4k { background: #fff; color: var(--neon-blue); border-color: var(--neon-blue); box-shadow: none; }
.suite-badge-tag { background: rgba(255, 255, 255, 0.94); }
.suite-inspect-link:hover { color: var(--neon-blue); text-shadow: none; }

/* Lumo AI console */
.ai-lab-container { background: linear-gradient(145deg, #ffffff, #f3f6fd); box-shadow: 0 24px 64px rgba(12, 21, 40, 0.12); }
.ai-console-window { background: #fff; border-color: rgba(18, 70, 214, 0.12); box-shadow: 0 12px 36px rgba(12, 21, 40, 0.10); }
.ai-console-header { background: #f6f8fd; }
.ai-bubble.bot { background: #f3f6fd; color: var(--text-main); }
.ai-chip-btn { background: #fff; color: var(--text-dim); }
.ai-chip-btn:hover { background: rgba(18, 70, 214, 0.06); border-color: var(--neon-blue); color: var(--neon-blue); }

/* pilot */
.pilot-terminal-card { background: linear-gradient(135deg, rgba(18, 70, 214, 0.07), rgba(0, 200, 160, 0.07)); }

/* screenshot viewer */
.modal-backdrop { background: rgba(12, 21, 40, 0.6); }
.modal-window { background: #fff; border-color: rgba(18, 70, 214, 0.25); box-shadow: 0 24px 64px rgba(12, 21, 40, 0.25); }
.modal-header, .modal-footer { background: #f6f8fd; }
.modal-body { background: #e4eaf7; }
.modal-close-btn { background: #fff; color: var(--text-main); }
.modal-img { box-shadow: 0 10px 30px rgba(12, 21, 40, 0.18); }

/* the old navy cursor is replaced by the live site's #cur / #cur-ring */
#cursor-dot, #cursor-ring, #cursor-crosshair { display: none; }
@media (max-width: 768px) { #cur, #cur-ring { display: none; } }

/* nav has 8 links + login now: keep each on one line */
.nav-links { gap: 18px; }
.nav-link { white-space: nowrap; }
@media (max-width: 1360px) { .nav-link span { display: none; } .nav-links { gap: 14px; } }
@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 768px) {
  .hud-nav .btn-cyber-ghost { display: none; }
  .hud-nav .btn-cyber-primary { padding: 9px 14px; white-space: nowrap; font-size: 0.78rem; }
}

/* Soft hand-over from the 3D track: the section rises on a fade instead of a hard white edge */
.screen-suite-sec {
  background: linear-gradient(to bottom, rgba(238, 242, 251, 0) 0, rgba(238, 242, 251, 0.85) 220px, var(--bg-dark) 420px);
  box-shadow: none;
  padding-top: 220px;
}
#webgl-canvas { will-change: filter, opacity; transition: none; }


/* ── Hero: a small factory floor in the right column, cards around it ── */
@media (min-width: 1025px) {
  .hero-right-overlay { position: relative; height: min(72vh, 640px); display: block; }
  .hero-right-overlay .interactive-pill-card { position: absolute; width: 230px; padding: 12px 16px; transform: none; }
  .hero-right-overlay .interactive-pill-card:nth-child(1) { left: -30px; top: 0; }
  .hero-right-overlay .interactive-pill-card:nth-child(2) { left: -50px; bottom: 70px; }
  .hero-right-overlay .interactive-pill-card:nth-child(3) { right: -40px; top: 28%; }
  .hero-right-overlay .interactive-pill-card:hover { transform: translateY(-4px); }
  .hero-right-overlay .card-metric-val { font-size: 1.05rem; }
  .floor-legend { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
}
.floor-legend {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border-subtle);
  border-radius: 999px; padding: 8px 16px; box-shadow: 0 4px 16px rgba(12, 21, 40, 0.08);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); white-space: nowrap;
}
.floor-legend span { display: inline-flex; align-items: center; gap: 6px; }
.floor-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.floor-legend i.blink { animation: legendBlink 1s steps(2, start) infinite; }
@keyframes legendBlink { to { opacity: 0.15; } }
@media (max-width: 1024px) { .floor-legend { margin-top: 12px; } }
@media (max-width: 768px) {
  /* text stays readable over the 3D floor on a phone */
  .hero-left { background: rgba(238, 242, 251, 0.78); border-radius: 18px; padding: 14px 12px; backdrop-filter: blur(3px); }
}
