:root {
  color-scheme: dark;
  --ink: #eff6ff;
  --muted: #b3c5d9;
  --mint: #67d5ff;
  --forest: #14263c;
  --line: #2f445c;
  --paper: #101d2e;
}
body, .store-hero, .brands { background: #0b1424; color: var(--ink); }
.top, header, .planning, .buying-guide, .help, .learn, footer {
  background: #101d2e;
  color: var(--ink);
}
header { border-bottom: 1px solid var(--line); }
.stage { background: #0c1d32; }
.stage::before {
  background-image: linear-gradient(90deg, #0c1d32, #0c1d3260 70%), url('/assets/hero.png');
  filter: hue-rotate(38deg) saturate(.75);
}
.stage h1 span:not(.headline-base) { color: var(--mint); }
.card, .panel, .comparison, .planner, .store-tools input, .store-tools select, input, textarea, select {
  background: #15253a;
  color: var(--ink);
  border-color: var(--line);
}
.store-hero { border-color: var(--line); }
.brand, .navbar a, .brands a, .panel a, .comparison th[scope="row"] a, footer a, .mark {
  color: var(--ink);
}
.mark, .comparison thead { background: #1d3653; }
.btn.primary, .btn.solid, .filters button[aria-pressed="true"] {
  background: #67d5ff;
  border-color: #67d5ff;
  color: #071728;
}
.outline, .btn.outline, .btn.ghost, .filters button, .comparison a { color: var(--ink); border-color: #59718b; }
.example-cases .panel { border-top-color: #67d5ff; }
.card-body .meta, .guide-steps li::marker, .store .price { color: #7cdbff; }
.tech-topology { margin: 0 0 20px; padding: 20px 24px; background: #14263c; border: 1px solid var(--line); border-radius: 12px; }
.tech-topology figcaption { font-weight: 700; margin-bottom: 12px; }
.tech-topology ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tech-topology li { display: flex; align-items: center; gap: 8px; color: #8cdfff; }
.tech-topology li + li::before { content: '→'; color: var(--muted); }
:focus-visible { outline-color: #67d5ff; }
.tech-topology li > span { color: var(--muted); }
.tech-topology a, .scenario-equipment a { color: #8cdfff; text-underline-offset: .2em; }
.scenario-equipment { border-top: 1px solid var(--line); padding-top: 12px; }
.scenario-equipment ul { padding-inline-start: 20px; }
.scenario-equipment li + li { margin-top: 5px; }

.hero { padding: 32px 0 22px; }
.hero .stage {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 82px);
  padding: clamp(28px, 5vw, 72px);
  align-items: center;
  border: 1px solid #29415c;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 88% 48%, #183858, transparent 67%),
    linear-gradient(135deg, #101e32, #0b1424);
}
.hero .stage::before { display: none; }
.hero .hero-copy { padding: 0; width: auto; }
.hero h1 { font-size: clamp(2rem, 3.9vw, 4rem); line-height: 1.2; overflow-wrap: break-word; }
.hero .hero-copy > p { max-width: 39ch; }
.hardware-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hardware-tile {
  position: relative; display: grid; gap: 5px; padding: 15px;
  min-width: 0; border: 1px solid #405971; border-radius: 14px;
  background: #14273c; color: var(--ink); text-decoration: none;
}
.hardware-tile:first-child { grid-column: 1 / -1; }
.hardware-tile:hover { border-color: #67d5ff; color: var(--ink); }
.hardware-tile img { width: 100%; height: 76px; object-fit: contain; display: block; }
.hardware-tile:first-child img { height: 112px; }
.hardware-role { color: #b3c5d9; font-size: .78rem; }
.hardware-name { font-size: clamp(.8rem, 1.5vw, 1.18rem); font-weight: 750; overflow-wrap: anywhere; }
.hardware-spec { font-size: .76rem; color: #8cdfff; overflow-wrap: anywhere; }
.hardware-arrow { position: absolute; top: 12px; right: 14px; color: #8cdfff; }
@media (max-width: 760px) {
  .hero .stage { grid-template-columns: 1fr; padding: 20px; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 3rem); }
}

.hero .stage { background: radial-gradient(ellipse at 82% 45%, #fff 2%, #e0eaf4 85%); color: #101d2e; border-color: #cbd9e8; }
.hero .hero-copy > p { color: #3b5169; }
.hero h1 .headline-base { color: #131e2d; }
.hero .stage h1 span:not(.headline-base) { color: #125072; }
.hero .btn.ghost { color: #125072; border-color: #125072; }
.hardware-tile { background: #172d46; color: #fff; }
#model-compare { margin-top: 20px; padding: clamp(12px, 4vw, 40px); border-radius: 24px; background: #edf3f9; color: #102035; color-scheme: light; }
.compare-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 25px; }
.compare-controls label { display: grid; gap: 6px; color: #314b64; }
.compare-controls select { width: 100%; padding: 8px; background: white; color: #102035; border: 1px solid #92acc4; border-radius: 8px; min-height: 44px; }
.model-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(8px, 2vw, 24px); }
.compare-model { min-width: 0; padding: clamp(9px, 2.5vw, 24px); border-radius: 15px; background: white; }
.compare-model img { width: 100%; height: clamp(85px,18vw,190px); object-fit: contain; }
.compare-model h3 { overflow-wrap: anywhere; }
.compare-model dl > div { border-top: 1px solid #d2dfeb; padding: .55rem 0; }
.compare-model dt { color: #415b71; font-size: .85rem; }
.compare-model dd { margin: .2rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
@media(max-width: 600px) {
  .compare-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compare-controls label:first-child { grid-column: 1/-1; }
}

:root { color-scheme: light; --ink: #172330; --muted: #415466; --paper: #f3f6f7; --line: #d7e0e5; --mint: #17666a; }
body, header, .store-hero, .brands { background: #fff; color: var(--ink); }
.top, .planning, .buying-guide, .help, .learn, footer { background: #f3f6f7; color: var(--ink); }
.top a, .navbar a, .brand, .brands a, .panel a, .comparison th[scope="row"] a, footer a { color: var(--ink); }
.mark { background: #17666a; color: white; }
.hero .stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: radial-gradient(ellipse at 80% 35%, #fff, #e7edef 88%); border-color: #e0e7e9; }
.hero .stage h1 span:not(.headline-base), .hero .btn.ghost { color: #17666a; }
.hero .btn.ghost { border-color: #17666a; }
.spotlight { margin: 0; min-width: 0; align-self: center; }
.spotlight img { display: block; width: 100%; height: auto; max-height: 270px; object-fit: contain; mix-blend-mode: multiply; }
.spotlight figcaption { display: grid; gap: 3px; border-left: 3px solid #17666a; padding-left: 14px; }
.spotlight figcaption span { color: var(--muted); }
.spotlight a, .tech-topology a, .scenario-equipment a { color: #0f5c60; text-underline-offset: .22em; }
.card, .panel, .comparison, .planner, .store-tools input, .store-tools select, input, textarea, select, .tech-topology { background: #fff; color: var(--ink); border-color: var(--line); }
.comparison thead { background: #eaf1f2; }
.btn.primary, .btn.solid, .filters button[aria-pressed="true"] { background: #17666a; border-color: #17666a; color: #fff; }
.outline, .btn.outline, .btn.ghost, .filters button, .comparison a { color: var(--ink); border-color: #607a89; }
.card-body .meta, .guide-steps li::marker, .store .price, .tech-topology li { color: #125a60; }
.example-cases .panel { border-top-color: #478584; }
#model-compare { background: #f0f4f4; }
:focus-visible { outline-color: #17666a; }
@media (max-width: 760px) {
  .hero .stage { grid-template-columns: 1fr; }
  .spotlight img { max-height: 175px; }
}

.spotlight img { height: clamp(145px, 23vw, 270px); }
.spotlight-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.spotlight-controls button {
  min-height: 40px; min-width: 40px; padding-inline: 9px;
  border: 1px solid #a9bec3; border-radius: 8px;
  background: #fff; color: #125a60; cursor: pointer;
}
.spotlight-controls button[aria-pressed="true"] { background: #17666a; border-color: #17666a; color: #fff; }
.spotlight figcaption { min-height: 5em; }
@media (max-width: 760px) { .spotlight img { height: 160px; } }

.spotlight-dialog {
  width: min(760px, calc(100vw - 24px)); max-height: 90vh;
  border: 1px solid #bbcbd1; border-radius: 16px; background: #fff; color: #172330;
  padding: clamp(12px, 3vw, 24px);
}
.spotlight-dialog::backdrop { background: #0a1928aa; }
.zoom-heading, .zoom-level { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.zoom-heading { justify-content: space-between; }
.zoom-heading h2 { margin: 0; font-size: 1.15rem; }
.zoom-heading button { min-height: 40px; padding: 0 12px; border: 1px solid #607a89; border-radius: 8px; background: #fff; color: #125a60; cursor: pointer; }
.zoom-viewport { max-height: 60vh; overflow: auto; border-radius: 8px; background: #f0f4f4; }
.zoom-viewport img { display: block; max-width: none; width: 100%; height: auto; mix-blend-mode: multiply; }
.zoom-level input { width: min(45vw, 250px); accent-color: #17666a; }
.angle-hint { margin: 8px 0; font-size: .875rem; color: #415466; }
.angle-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.angle-controls button { min-height: 40px; padding: 0 10px; border: 1px solid #607a89; border-radius: 8px; background: #fff; color: #125a60; cursor: pointer; }
.zoom-viewport:not(.zoomed) { cursor: grab; touch-action: pan-y; }
.zoom-viewport:not(.zoomed):active { cursor: grabbing; }
.zoom-viewport img { user-select: none; }

.orbit-stage {
  position: relative; height: clamp(220px, 43vh, 370px); perspective: 850px;
  overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse, #fff, #e0eaee);
  touch-action: none; cursor: grab; user-select: none;
}
.orbit-stage:active { cursor: grabbing; }
.orbit-object { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d; width: 0; height: 0; }
.orbit-face { position: absolute; backface-visibility: hidden; box-sizing: border-box; border: 1px solid #67747e; background: #2d343c; }
.orbit-object.silver .orbit-face { background: #969fa5; }
.orbit-object.white .orbit-face { background: #eef1f3; border-color: #bbc5cb; }
.orbit-object .front { display: grid; grid-template-columns: repeat(var(--port-columns),1fr); align-items: center; gap: 2px; padding: 3px 5%; }
.orbit-object .front i { background: #111820; border: 1px solid #75828a; min-height: 3px; height: 75%; }
.orbit-object .front i.ethernet { background: linear-gradient(180deg, #191f24 62%, #344149 63%); }
.orbit-object .front i.fiber { border-color: #aeb9bc; }
.orbit-object .top { background: #38434c; }
.orbit-object .bottom { filter: brightness(.75); }
.orbit-object .side, .orbit-object .back { filter: brightness(.85); }
.orbit-object.finned .top { background: repeating-linear-gradient(90deg,#202930 0 3px,#4b5962 3px 5px); }
.orbit-object .cap, .orbit-object .base { border-radius: 50%; }
.orbit-object.white .cap { background: radial-gradient(circle, #f5f8f9 0 10%, #78c2e1 11% 12%, #f8fbfc 13% 100%); }
.orbit-object.white .base { background: radial-gradient(circle, #aeb9c0 0 29%, #dfe7eb 30% 100%); }
.orbit-object.white .rim { border: 0; }
.orbit-controls { display: flex; gap: 10px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.orbit-controls label { display: flex; gap: 8px; align-items: center; }
.orbit-controls input { width: min(35vw, 250px); accent-color: #17666a; }
.orbit-controls button { min-height: 40px; padding: 0 10px; border: 1px solid #607a89; border-radius: 8px; background: #fff; color: #125a60; cursor: pointer; }
