/* ==========================================================================
   Huihua Innovation — Unified Design System
   Single-source cohesive architecture: Deep Sapphire Stages + Porcelain Workspace
   ========================================================================== */

:root {
  /* Dark Stage Palette */
  --navy-950: #040d1a;
  --navy-900: #07172d;
  --navy-850: #0b213f;
  --navy-800: #102c52;

  /* Light Workspace Palette */
  --bg-page: #f5f8fc;
  --bg-surface: #ffffff;
  --bg-subtle: #edf3fa;
  --bg-stage: #e4eef9;

  /* Brand & Accent */
  --brand-700: #084da6;
  --brand-600: #0d63cc;
  --brand-500: #1b78e8;
  --brand-400: #60b2ff;
  --brand-soft: #e8f2ff;

  /* Typography Ink */
  --ink-900: #0d2138;
  --ink-700: #2b425b;
  --ink-500: #546c85;
  --ink-400: #7890a8;

  /* Hairlines & Elevation */
  --line: #dce6f1;
  --line-strong: #c5d6e8;
  --line-on-dark: rgba(164, 206, 248, 0.16);
  --shadow-sm: 0 2px 8px rgba(12, 34, 62, 0.04), 0 1px 2px rgba(12, 34, 62, 0.03);
  --shadow-md: 0 14px 36px rgba(12, 36, 66, 0.07), 0 2px 6px rgba(12, 36, 66, 0.04);
  --shadow-stage: 0 24px 60px rgba(4, 16, 34, 0.22);

  /* Unified Corner Radius Scale */
  --r-xl: 24px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-pill: 999px;

  /* Layout */
  --header-h: 76px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Inter, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.wrap {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  color: var(--brand-700);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================================
   Adaptive Glass Header (Seamless over dark Hero -> Crisp glass on scroll)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 16, 32, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(15, 42, 74, 0.08);
  color: var(--ink-900);
  box-shadow: 0 4px 20px rgba(10, 30, 58, 0.05);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(4, 18, 38, 0.14);
  border: 1px solid rgba(13, 99, 204, 0.1);
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.site-header.is-scrolled .brand-text strong {
  color: var(--ink-900);
}

.site-header.is-scrolled .brand-text small {
  color: var(--ink-500);
  opacity: 1;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 0.925rem;
  font-weight: 500;
}

.site-header nav > a:not(.nav-contact) {
  padding: 0.5rem 0;
  color: rgba(232, 242, 252, 0.86);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.site-header.is-scrolled nav > a:not(.nav-contact) {
  color: var(--ink-700);
}

.site-header nav > a:not(.nav-contact):hover {
  color: #ffffff;
}

.site-header.is-scrolled nav > a:not(.nav-contact):hover {
  color: var(--brand-600);
}

.site-header .nav-contact {
  padding: 0.56rem 1.05rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-header .nav-contact:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy-900);
}

.site-header.is-scrolled .nav-contact {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #ffffff;
}

.site-header.is-scrolled .nav-contact:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-header.is-scrolled .menu-toggle {
  border-color: var(--line-strong);
  background: var(--bg-surface);
}

.site-header.is-scrolled .menu-toggle span {
  background: var(--ink-900);
}

/* ==========================================================================
   Buttons & Shared Section Typography
   ========================================================================== */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.72rem 1.35rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.button-primary {
  background: var(--brand-500);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(27, 120, 232, 0.28);
}

.button-primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

.button-glass {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.button-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-light {
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(0, 10, 26, 0.2);
}

.button-light:hover {
  background: #eaf4ff;
  transform: translateY(-1px);
}

.play-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  padding-left: 2px;
}

.section {
  padding: 96px 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-600);
}

.section-eyebrow span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.24rem 0.56rem;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-700);
}

.eyebrow-on-dark {
  color: #bae0ff;
}

.eyebrow-on-dark span {
  background: rgba(96, 178, 255, 0.15);
  border: 1px solid rgba(140, 202, 255, 0.24);
  color: #93ccff;
}

.section h2,
.contact-section h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 750;
  color: var(--ink-900);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-sub {
  max-width: 400px;
  color: var(--ink-500);
  font-size: 0.975rem;
  line-height: 1.8;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--brand-600);
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 1.5px solid rgba(13, 99, 204, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease, gap 0.18s ease;
}

.inline-link:hover {
  color: var(--brand-700);
  border-color: var(--brand-700);
  gap: 12px;
}

/* ==========================================================================
   Hero Stage + Integrated 3-Pillar Dock
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-950);
  color: #ffffff;
  padding-top: calc(var(--header-h) + 44px);
  padding-bottom: 48px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.92;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #040d1a 0%, rgba(4, 14, 29, 0.92) 34%, rgba(5, 19, 38, 0.42) 68%, rgba(4, 14, 29, 0.58) 100%),
    linear-gradient(180deg, rgba(4, 13, 26, 0.45) 0%, transparent 28%, rgba(4, 13, 26, 0.88) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 205, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 205, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 72%);
}

.hero-shell {
  min-height: min(680px, calc(100svh - var(--header-h) - 48px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 4vw, 52px);
}

.hero-copy {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.38rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(20, 62, 114, 0.45);
  border: 1px solid rgba(125, 192, 255, 0.24);
  color: #c5e2ff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47b0ff;
  box-shadow: 0 0 0 4px rgba(71, 176, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.55rem, 4.6vw, 4.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, #ffffff 0%, #8fd0ff 55%, #4eb3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro {
  margin-top: 22px;
  max-width: 540px;
  color: rgba(219, 234, 248, 0.88);
  font-size: 1.0625rem;
  line-height: 1.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual-note {
  font-size: 0.75rem;
  color: rgba(186, 212, 238, 0.62);
  white-space: nowrap;
}

/* Integrated 3-Pillar Glass Dock */
.hero-dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dock-card {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: rgba(11, 31, 58, 0.62);
  border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dock-card:hover {
  background: rgba(18, 48, 88, 0.78);
  border-color: rgba(132, 197, 255, 0.42);
  transform: translateY(-2px);
}

.dock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dock-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #7cc4ff;
  letter-spacing: 0.08em;
}

.dock-arrow {
  font-size: 0.95rem;
  color: rgba(186, 220, 252, 0.7);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dock-card:hover .dock-arrow {
  transform: translate(2px, -2px);
  color: #ffffff;
}

.dock-card strong {
  display: block;
  font-size: 1.025rem;
  font-weight: 650;
  color: #ffffff;
}

.dock-card p {
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(202, 224, 245, 0.78);
}

/* ==========================================================================
   01 / About Us — Architectural Split + Focus Pillars
   ========================================================================== */

.about-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  margin-top: 22px;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink-900);
}

.about-desc {
  margin-top: 12px;
  color: var(--ink-500);
  line-height: 1.9;
}

.pillar-stack {
  display: grid;
  gap: 16px;
}

.pillar-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-page);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--brand-600);
  display: grid;
  place-items: center;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  font-size: 1.0625rem;
  font-weight: 680;
  color: var(--ink-900);
}

.pillar-card p {
  margin-top: 6px;
  font-size: 0.9125rem;
  line-height: 1.75;
  color: var(--ink-500);
}

/* ==========================================================================
   02 / Solutions — Cohesive Bento Grid & Framed Prototype Viewports
   ========================================================================== */

.solutions-section {
  background: var(--bg-page);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 650;
}

.tag-subtle {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.26rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  color: var(--ink-700);
  font-size: 0.8rem;
  font-weight: 550;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* Featured Teaching System Card */
.bento-feature {
  display: grid;
  grid-template-columns: 40% 60%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.bento-feature-copy {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.bento-feature-copy h3 {
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  line-height: 1.38;
  font-weight: 750;
}

.bento-feature-copy > div > p {
  margin-top: 14px;
  color: var(--ink-500);
  line-height: 1.85;
}

.capability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability-pills li {
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--bg-page);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.85rem;
  font-weight: 600;
}

.factual-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-400);
  line-height: 1.6;
}

.bento-feature-stage {
  position: relative;
  padding: 36px 36px 42px;
  background: linear-gradient(145deg, #e3effb 0%, #eff5fc 100%);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.browser-frame {
  border-radius: var(--r-md);
  background: #ffffff;
  border: 1px solid rgba(12, 42, 78, 0.12);
  box-shadow: 0 18px 42px rgba(14, 48, 86, 0.12);
  overflow: hidden;
}

.browser-bar {
  height: 32px;
  padding: 0 12px;
  background: #f5f9fd;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bfd2e5;
}

.browser-title {
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 500;
}

.browser-frame img {
  width: 100%;
  height: auto;
}

.bento-feature-stage figcaption {
  position: absolute;
  right: 36px;
  bottom: 14px;
  font-size: 0.75rem;
  color: var(--ink-500);
}

/* Hardware Prototype Cards — Unified Mat Frame + Smart Crop */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.hardware-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hardware-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.hardware-viewport {
  position: relative;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, #eaf2fa 0%, #ffffff 100%);
}

.viewport-frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(12, 42, 78, 0.1);
  background: #dce8f4;
}

.viewport-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.96);
  transition: transform 0.35s ease;
}

/* Focus directly on the apparatus & interface rather than ceiling/blank wall */
.crop-synthesis {
  object-position: center 82%;
}

.crop-titration {
  object-position: center 74%;
}

.hardware-card:hover .viewport-frame img {
  transform: scale(1.025);
}

.viewport-caption {
  position: absolute;
  right: 28px;
  bottom: 12px;
  padding: 0.24rem 0.62rem;
  border-radius: var(--r-sm);
  background: rgba(8, 24, 46, 0.72);
  backdrop-filter: blur(6px);
  color: rgba(235, 245, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 500;
}

.hardware-body {
  padding: 26px 30px 30px;
}

.hardware-body h3 {
  font-size: 1.25rem;
  font-weight: 720;
  line-height: 1.4;
}

.hardware-body p {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ==========================================================================
   03 / Virtual Lab — Contained Sapphire Portal Stage (No Zebra Whiplash!)
   ========================================================================== */

.lab-section {
  padding-top: 0;
  background: var(--bg-page);
}

.lab-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 82% 28%, rgba(25, 108, 198, 0.36) 0%, transparent 58%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-stage);
  border: 1px solid rgba(130, 190, 250, 0.18);
}

.lab-copy h2 {
  color: #ffffff;
}

.lab-desc {
  margin-top: 18px;
  color: rgba(214, 232, 248, 0.86);
  line-height: 1.88;
}

.lab-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.lab-highlights span {
  padding: 0.36rem 0.75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(164, 210, 255, 0.18);
  color: #d6ebff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lab-cta-row {
  margin-top: 28px;
}

.lab-boundary-note {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(182, 208, 234, 0.72);
}

/* Custom 3D HUD Preview Card */
.lab-hud-preview {
  display: block;
}

.hud-window {
  border-radius: var(--r-lg);
  background: rgba(9, 28, 54, 0.85);
  border: 1px solid rgba(148, 205, 255, 0.24);
  box-shadow: 0 18px 44px rgba(0, 8, 20, 0.38);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.lab-hud-preview:hover .hud-window {
  transform: translateY(-3px);
  border-color: rgba(148, 205, 255, 0.5);
}

.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(148, 205, 255, 0.14);
  font-size: 0.78rem;
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.52rem;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.hud-title {
  color: rgba(226, 240, 255, 0.9);
  font-weight: 600;
}

.hud-enter {
  color: #7dd3fc;
  font-weight: 600;
  white-space: nowrap;
}

.hud-canvas {
  background:
    radial-gradient(circle at 50% 55%, rgba(28, 100, 182, 0.24), transparent 68%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  padding: 12px 16px 4px;
}

.titration-svg {
  width: 100%;
  height: auto;
}

@keyframes dropletPulse {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  65% { transform: translateY(16px); opacity: 0.35; }
  66% { transform: translateY(-4px); opacity: 0; }
}

.edta-drop {
  animation: dropletPulse 2.8s ease-in-out infinite;
}

.hud-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(148, 205, 255, 0.14);
  background: rgba(4, 14, 28, 0.45);
}

.hud-metric {
  padding: 13px 14px;
}

.hud-metric + .hud-metric {
  border-left: 1px solid rgba(148, 205, 255, 0.12);
}

.hud-metric span {
  display: block;
  font-size: 0.7rem;
  color: rgba(176, 206, 236, 0.72);
}

.hud-metric strong {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #eef6ff;
}

/* ==========================================================================
   04 / Learning Journey — Connected 3-Stage Process Cards
   ========================================================================== */

.journey-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.journey-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--bg-page);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}

.step-phase {
  padding: 0.2rem 0.62rem;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-700);
}

.journey-card h3 {
  font-size: 1.2rem;
  font-weight: 720;
  color: var(--ink-900);
}

.journey-card p {
  margin-top: 10px;
  font-size: 0.925rem;
  line-height: 1.82;
  color: var(--ink-500);
}

/* ==========================================================================
   05 / Applications — Cohesive Editorial Split + Indexed Cards
   ========================================================================== */

.scenarios-section {
  background: var(--bg-page);
}

.scenarios-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.scenarios-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.scenarios-intro p:not(.section-eyebrow) {
  margin-top: 18px;
  color: var(--ink-500);
  line-height: 1.85;
  max-width: 400px;
}

.scenario-cards {
  display: grid;
  gap: 16px;
}

.scenario-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.scenario-card:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
}

.scenario-index {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.scenario-card h3 {
  font-size: 1.15rem;
  font-weight: 720;
  color: var(--ink-900);
}

.scenario-card p {
  margin-top: 8px;
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--ink-500);
}

/* ==========================================================================
   06 / Progress — Unified Framed Card + Milestones
   ========================================================================== */

.progress-section {
  padding-top: 0;
  background: var(--bg-page);
}

.progress-card {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.progress-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(12, 42, 78, 0.1);
  background: var(--bg-subtle);
}

.progress-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.progress-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 0.65rem 0.95rem;
  border-radius: var(--r-md);
  background: rgba(7, 23, 45, 0.78);
  backdrop-filter: blur(10px);
  color: #f0f7ff;
  font-size: 0.825rem;
  font-weight: 550;
}

.progress-content > p:not(.section-eyebrow) {
  margin-top: 16px;
  color: var(--ink-500);
  line-height: 1.85;
}

.progress-milestones {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.progress-milestones li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-page);
  border: 1px solid var(--line);
  font-size: 0.875rem;
}

.progress-milestones strong {
  color: var(--ink-900);
  font-weight: 650;
}

.progress-milestones span {
  color: var(--ink-500);
}

/* ==========================================================================
   07 / Contact + Footer — Unified Deep Sapphire Closing Stage
   ========================================================================== */

.closing-stage {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #ffffff;
}

.contact-section {
  padding: 88px 0 64px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-on-dark);
}

.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p:not(.section-eyebrow) {
  margin-top: 16px;
  max-width: 480px;
  color: rgba(206, 226, 245, 0.82);
  line-height: 1.85;
}

.contact-box {
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: rgba(4, 14, 28, 0.55);
  border: 1px solid rgba(148, 205, 255, 0.2);
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #8cc8ff;
}

.contact-address {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.contact-address:hover {
  color: #8cc8ff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.site-footer {
  padding-bottom: 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-on-dark .brand-text strong {
  color: #ffffff;
}

.brand-on-dark .brand-text small {
  color: rgba(186, 212, 238, 0.75);
}

.footer-slogan {
  color: rgba(196, 218, 240, 0.76);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.875rem;
  color: rgba(214, 232, 248, 0.84);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(168, 194, 220, 0.62);
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: #d5e8f8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .wrap {
    width: calc(100% - 56px);
  }

  .about-grid,
  .lab-stage,
  .scenarios-layout,
  .progress-card,
  .contact-card {
    gap: 36px;
  }

  .bento-feature {
    grid-template-columns: 44% 56%;
  }

  .bento-feature-copy {
    padding: 34px 30px;
  }

  .bento-feature-stage {
    padding: 28px 28px 38px;
  }

  .lab-stage {
    padding: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .wrap {
    width: calc(100% - 44px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    padding: 14px 18px 20px;
    border-radius: var(--r-lg);
    background: rgba(8, 23, 44, 0.96);
    border: 1px solid rgba(154, 204, 252, 0.2);
    box-shadow: 0 20px 44px rgba(0, 8, 22, 0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 0.975rem;
  }

  .site-header.is-scrolled nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--line);
    box-shadow: 0 20px 44px rgba(12, 34, 62, 0.14);
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav > a:not(.nav-contact) {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .site-header.is-scrolled nav > a:not(.nav-contact) {
    border-bottom-color: var(--line);
  }

  .site-header .nav-contact {
    margin-top: 10px;
    text-align: center;
    padding: 12px;
    border-radius: var(--r-md);
  }

  .hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-dock,
  .about-grid,
  .bento-feature,
  .hardware-grid,
  .lab-stage,
  .journey-grid,
  .scenarios-layout,
  .progress-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .bento-feature-stage {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .scenarios-intro {
    position: static;
  }

  .section {
    padding: 76px 0;
  }

  .lab-section,
  .progress-section {
    padding-top: 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 32px;
  }

  .progress-img-wrap img {
    height: 320px;
  }

  .footer-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .desktop-break {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 36px;
  }

  .hero-backdrop img {
    object-position: 62% center;
  }

  .hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(4, 13, 26, 0.72) 0%, rgba(4, 14, 29, 0.84) 55%, #040d1a 100%);
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 0.34rem 0.7rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.2vw, 2.85rem);
  }

  .hero-intro {
    font-size: 0.975rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .section {
    padding: 64px 0;
  }

  .lab-section,
  .progress-section {
    padding-top: 0;
  }

  .bento-feature-copy,
  .hardware-body,
  .lab-stage,
  .progress-card,
  .contact-card {
    padding: 26px 22px;
  }

  .bento-feature-stage {
    padding: 22px 18px 36px;
  }

  .bento-feature-stage figcaption {
    right: 18px;
    bottom: 10px;
  }

  .hud-bar .hud-title {
    display: none;
  }

  .hud-metrics {
    grid-template-columns: 1fr;
  }

  .hud-metric + .hud-metric {
    border-left: 0;
    border-top: 1px solid rgba(148, 205, 255, 0.12);
  }

  .pillar-card,
  .scenario-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .progress-img-wrap img {
    height: 250px;
  }

  .contact-box {
    padding: 22px 20px;
  }

  .footer-slogan {
    width: 100%;
    order: 3;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
