:root {
  --bg-0: #0a0b0e;
  --bg-1: #0e1013;
  --ink: #f2f4f7;
  --ink-dim: #9aa3b2;
  --accent: #ff5c33;         
  --accent-soft: rgba(255, 92, 51, 0.32);
  --accent-faint: rgba(255, 92, 51, 0.12);
  --card: rgba(14, 16, 20, 0.78);
  --card-line: rgba(255, 255, 255, 0.09);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background: var(--bg-0);
}

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #140602; }

.mono { font-family: var(--font-mono); }

#scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  background: var(--bg-0);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(5, 6, 9, 0.8) 100%);
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

.loader-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
}

.loader-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1.4rem;
  transition: opacity 0.2s ease;
}
.loader-logo.swap { opacity: 0; }
.loader-logo.slide-in {
  animation: logoSlideIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes logoSlideIn {
  from { opacity: 0; transform: translateX(52px); }
  to { opacity: 1; transform: none; }
}

.loader-bar {
  width: 220px;
  height: 2px;
  margin: 0 auto 1rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1.4s linear;
}

.loader-status { font-size: 0.78rem; color: var(--ink-dim); }

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(8, 9, 12, 0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-left { display: flex; align-items: center; gap: 1rem; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo-mark { display: block; width: 32px; height: 32px; }

.nav-links { display: flex; gap: clamp(0.9rem, 2.5vw, 2.2rem); align-items: center; }

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--ink) !important;
}
.nav-cta:hover { background: var(--accent-faint); border-color: var(--accent); }

#content { position: relative; z-index: 2; }

.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vh, 7rem) clamp(1.2rem, 5vw, 4rem);
}

.panel.spacer { min-height: 70vh; }

.panel.center { justify-content: center; }
.panel.side-left { justify-content: flex-start; }
.panel.side-right { justify-content: flex-end; }

.panel-card {
  max-width: 540px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.panel-card.wide { max-width: 860px; width: 100%; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.panel-card p { color: var(--ink-dim); font-size: 1.02rem; }
.panel-card p + p { margin-top: 0.9rem; }
.panel-card strong { color: var(--ink); font-weight: 600; }

.fine { font-size: 0.74rem; color: var(--ink-dim); opacity: 0.8; margin-top: 1.3rem; }

.hero { flex-direction: column; justify-content: center; text-align: center; }

.hero-inner { max-width: 880px; margin: 0 auto 14vh; }

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}
.hero-title span { display: block; }
.hero-title .accent {
  font-size: 0.78em;
  background: linear-gradient(100deg, var(--accent), #ffa07e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 1.9rem;
  color: #c9d1de;
  font-weight: 500;
  font-size: 1.12rem;
  text-shadow: 0 1px 14px rgba(5, 6, 9, 0.85), 0 0 30px rgba(5, 6, 9, 0.6);
}

.hero-badges { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 2.3rem; flex-wrap: wrap; }

.badge-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b6bfce;
}
.badge-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}
.badge-v {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #1a0a04;
}
.btn-primary:hover {
  background: #ff6f49;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  background: rgba(22, 26, 33, 0.85);
}
.btn-ghost:hover {
  background: rgba(34, 40, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-wide { width: 100%; margin-top: 0.6rem; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  transition: color 0.25s;
}
.scroll-hint:hover { color: var(--ink); }
.scroll-hint:hover .scroll-line { background: linear-gradient(var(--ink), transparent); }
.scroll-line {
  width: 1px;
  height: 44px;
  margin: 0.6rem auto 0;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.feature-list { list-style: none; margin: 1.2rem 0 1.1rem; }
.feature-list li {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}
.feature-list li:last-child { border-bottom: none; padding-bottom: 0.9rem; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.stat-row { display: flex; gap: 1.5rem; margin-top: 1.6rem; flex-wrap: wrap; }
.stat { flex: 1; min-width: 120px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}
.stat-label { font-size: 0.74rem; font-weight: 500; color: var(--ink-dim); margin-top: 0.25rem; }
.stat-word { font-size: 1.25rem; letter-spacing: 0.05em; }

@media (max-width: 640px) {
  .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .stat { text-align: center; min-width: 0; }
  .stat:first-child { grid-column: 1 / -1; }
}

.terminal {
  margin-top: 1.6rem;
  background: rgba(6, 7, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.terminal-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1e7a45;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.terminal-head .dot.on {
  background: #52e88a;
  box-shadow: 0 0 8px rgba(82, 232, 138, 0.75);
}
.terminal-title { margin-left: 0.6rem; font-size: 0.68rem; color: var(--ink-dim); }

.terminal-body {
  padding: 1rem 1.6rem 1rem 1.25rem;
  height: 260px;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.8;
}

.can-line {
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(90deg, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(90deg, black calc(100% - 16px), transparent);
  opacity: 0;
  animation: lineIn 0.25s forwards;
}
@keyframes lineIn { to { opacity: 1; } }
.can-id { color: #8fa7c9; }
.can-raw { color: #5d6673; }
.can-mod { color: var(--ink); font-weight: 700; }
.can-arrow { color: var(--accent); }
.can-tag { color: var(--accent); }

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (max-width: 760px) { .chart-grid { grid-template-columns: 1fr; } }

.chart-block {
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1rem;
}

.chart-title { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.chart-sub { font-size: 0.72rem; color: var(--ink-dim); margin-top: 0.1rem; }

.chart-wrap { position: relative; margin-top: 0.8rem; }
.chart-wrap svg { width: 100%; height: auto; display: block; }

.chart-legend {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-dim);
}
.lg { display: inline-flex; align-items: center; gap: 0.4rem; }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-jbx { background: #f4501f; }
.lg-stock { background: #6292dd; }

.chart-tip {
  position: absolute;
  pointer-events: none;
  background: #14181f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.chart-tip .tip-k { color: var(--ink-dim); }

.silicon { margin-top: 1.5rem; }
.silicon-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.silicon-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}
@media (max-width: 640px) {
  .silicon-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.si {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.85rem 0.6rem;
  text-align: center;
}
.si-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
}
.si-k { font-size: 0.68rem; color: var(--ink-dim); margin-top: 0.2rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.spec {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1.05rem 1.2rem;
}
.spec-k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.3rem;
}
.spec-v { font-size: 1rem; font-weight: 600; }
.soon {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin: 0.15rem 0 0;
  vertical-align: middle;
}

#inquiryForm { margin-top: 1.8rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  color-scheme: dark;
  cursor: pointer;
}
.field select option {
  background: #14181f;
  color: var(--ink);
}

.other-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding-left: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.other-wrap[hidden] { display: none !important; }
.other-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.other-prefix {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}
.field .other-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85rem 0.4rem;
}
.field .other-wrap input:focus {
  outline: none;
  border: none;
  background: transparent;
  box-shadow: none;
}
.other-clear {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.other-clear:hover { color: var(--ink); }

.qty-wrap {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.qty-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.field .qty-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.field .qty-wrap input:focus {
  outline: none;
  border: none;
  background: transparent;
  box-shadow: none;
}
.qty-wrap input::-webkit-inner-spin-button,
.qty-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-btns {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.qty-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 0.55rem;
  line-height: 1;
  padding: 0 0.9rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.qty-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.qty-btn:first-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.field textarea { resize: vertical; }

.label-hint { font-weight: 400; opacity: 0.75; text-transform: none; }

.photo-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.photo-add[hidden] { display: none !important; }
.photo-add:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.photo-add-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 600;
}

.photo-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}
.photo-chip[hidden] { display: none !important; }
.photo-chip img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.photo-chip img.broken { display: none; }
.photo-name {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-remove {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s;
}
.photo-remove:hover { color: var(--ink); }

.photo-err {
  font-size: 0.78rem;
  font-weight: 500;
  color: #ff7b6b;
  margin-top: 0.35rem;
  min-height: 0;
}

.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--ink-dim);
  margin-top: 0.3rem;
  opacity: 0.9;
  transition: color 0.2s;
}
.char-count.low { color: #ff7b6b; }
.char-count.ok { color: #6fd3a4; }

.form-status { margin-top: 0.9rem; font-size: 0.85rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #6fd3a4; }
.form-status.err { color: #ff7b6b; }

.contact-confirm { text-align: center; padding: 1.6rem 0 0.6rem; }
.contact-confirm[hidden] { display: none; }
.contact-confirm .confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(111, 211, 164, 0.12);
  border: 1.5px solid #6fd3a4;
  color: #6fd3a4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
}
#contact .contact-confirm p {
  color: #6fd3a4;
  font-weight: 600;
  font-size: 1.08rem;
}

footer {
  position: relative;
  padding: 3rem clamp(1.2rem, 5vw, 4rem) 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 9, 12, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.footer-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.footer-inner .fine { text-wrap: pretty; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--ink);
}
footer .fine { margin-top: 0.5rem; }
.footer-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.8; text-decoration: underline; }
.footer-tag {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1rem;
}

.reveal { opacity: 0; transform: translateY(36px); }

.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .panel.side-left, .panel.side-right { justify-content: center; }
  .panel-card { max-width: 640px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  footer {
    background: rgba(8, 9, 12, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .terminal-body {
    font-size: 0.6rem;
    height: 220px;
    padding: 0.9rem 1.5rem 0.9rem 1.2rem;
  }
}

@media (min-width: 1600px) {
  html { font-size: 18px; }
  .panel { padding-left: clamp(3rem, 7vw, 10rem); padding-right: clamp(3rem, 7vw, 10rem); }
  .panel-card { max-width: 620px; }
  .panel-card.wide { max-width: 1020px; }
  .hero-inner { max-width: 1000px; }
  #nav { padding-left: clamp(2rem, 5vw, 6rem); padding-right: clamp(2rem, 5vw, 6rem); }
}

@media (min-width: 2200px) {
  html { font-size: 20px; }
  .panel-card { max-width: 680px; }
  .panel-card.wide { max-width: 1180px; }
  .hero-inner { max-width: 1120px; }
}

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

/* ---- Catalog overlay ---- */

.catalog-page {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 92, 51, 0.07), transparent 70%),
    radial-gradient(ellipse at 50% 40%, #12141a 0%, var(--bg-0) 75%);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1), visibility 0s linear 0.6s;
}
.catalog-page.open {
  transform: none;
  visibility: visible;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}

html.catalog-lock,
html.catalog-lock body { overflow: hidden; }

.catalog-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(8, 9, 12, 0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.catalog-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.25s;
}
.catalog-back:hover { color: var(--ink); }

.catalog-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 5rem) clamp(1.2rem, 4vw, 3rem) 3rem;
}

.catalog-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
  max-width: 14em;
}

.catalog-intro p {
  color: var(--ink-dim);
  max-width: 34em;
  margin-top: 1.1rem;
}

.catalog-rule {
  width: 52px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 1.6rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: clamp(2.6rem, 6vh, 3.8rem);
}

.catalog-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.3rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.catalog-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.catalog-thumb img {
  width: 44px;
  height: 44px;
  opacity: 0.16;
  filter: grayscale(1);
}
.catalog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.05) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: catalogShimmer 2.8s ease-in-out infinite;
}
@keyframes catalogShimmer {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.catalog-card:nth-child(2) .catalog-thumb::after { animation-delay: 0.35s; }
.catalog-card:nth-child(3) .catalog-thumb::after { animation-delay: 0.7s; }
.catalog-card:nth-child(4) .catalog-thumb::after { animation-delay: 1.05s; }
.catalog-card:nth-child(5) .catalog-thumb::after { animation-delay: 1.4s; }
.catalog-card:nth-child(6) .catalog-thumb::after { animation-delay: 1.75s; }

.catalog-ph {
  height: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
}
.catalog-ph + .catalog-ph { margin-top: 0.55rem; background: rgba(255, 255, 255, 0.05); }
.catalog-ph.w60 { width: 62%; }
.catalog-ph.w40 { width: 38%; }

.catalog-tag {
  position: absolute;
  top: 1.7rem;
  right: 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(10, 11, 14, 0.82);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.catalog-notify {
  margin-top: clamp(2.8rem, 7vh, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}
.catalog-notify p { color: var(--ink-dim); font-size: 0.95rem; }
.catalog-notify a {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-faint);
  transition: background 0.25s, border-color 0.25s;
}
.catalog-notify a:hover { background: rgba(255, 92, 51, 0.22); border-color: var(--accent); }

.catalog-foot {
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-page, .catalog-page.open { transition: none; }
  .catalog-thumb::after { animation: none; }
  .catalog-card, .catalog-card:hover { transform: none; transition: none; }
}
