/* =========================================================
   NALSSEN — Precision Industrial IoT Design System
   Shared Design Language with BLUESTORY (Sister Brand)
   ========================================================= */

:root {
  --bg-dark: #060d1f;
  --bg-dark-2: #0c1833;
  --bg-surface: #ffffff;
  --bg-muted: #f4f7fb;
  --bg-card-dark: rgba(15, 29, 58, 0.72);

  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-accent: #06b6d4;
  --brand-glow: rgba(37, 99, 235, 0.35);

  /* Hardware signature module colors */
  --mod-m0: #94a3b8;
  --mod-i4: #f97316;
  --mod-o4: #38bdf8;
  --led-on: #22c55e;
  --led-warn: #f59e0b;

  --text-main: #0f172a;
  --text-sub: #475569;
  --text-light: #e2e8f0;
  --text-light-muted: #94a3b8;

  --border-light: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 13, 31, 0.25);

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-surface);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 13, 31, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 13, 31, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 0 20px var(--brand-glow);
}

.brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brand-accent);
  line-height: 1;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.family-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7dd3fc;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
}

.family-pill:hover {
  background: rgba(6, 182, 212, 0.22);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 126px 0 84px;
  background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.24), transparent 46%),
              radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.18), transparent 45%),
              var(--bg-dark);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-on);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(95deg, #60a5fa, #22d3ee, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-light-muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), #0284c7);
  color: #fff;
  box-shadow: 0 10px 24px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.metric-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: #fff;
}

.metric-item span {
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

/* ---------- Interactive IOBlock Simulator Card ---------- */
.sim-card {
  background: var(--bg-card-dark);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.sim-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.sim-ip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.din-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.8), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 16px;
}

.din-rail::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 16px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(148,163,184,0.12) 0 18px, transparent 18px 26px);
  z-index: 0;
  pointer-events: none;
}

.hw-block {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hw-block:hover {
  transform: translateY(-3px);
}

.hw-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.hw-block.m0::before { background: var(--mod-m0); }
.hw-block.i4::before { background: var(--mod-i4); }
.hw-block.o4::before { background: var(--mod-o4); }

.hw-block-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hw-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.hw-tag {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.hw-ports {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}

.lan-port {
  flex: 1;
  height: 26px;
  border-radius: 5px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #94a3b8;
  position: relative;
}

.lan-port .blink {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  animation: blinkFast 1.2s infinite;
}

@keyframes blinkFast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.ch-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.ch-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.ch-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.ch-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.2s ease;
}

.ch-btn.on.input-ch {
  border-color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.16);
  color: #fed7aa;
}

.ch-btn.on.input-ch .ch-led {
  background: var(--mod-i4);
  box-shadow: 0 0 10px var(--mod-i4);
}

.ch-btn.on.output-ch {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
}

.ch-btn.on.output-ch .ch-led {
  background: var(--mod-o4);
  box-shadow: 0 0 10px var(--mod-o4);
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

.autosync-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 600;
}

.autosync-toggle.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.sim-console {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #93c5fd;
  height: 82px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}

.sim-console .log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-console .log-time {
  color: #64748b;
  margin-right: 6px;
}

/* ---------- Applications Ticker Strip ---------- */
.apps-strip {
  background: #0c1833;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 20px 0;
  overflow: hidden;
}

.apps-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.apps-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.app-chip span {
  color: var(--brand-accent);
}

/* ---------- Section Common ---------- */
.section {
  padding: 96px 0;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.section-dark .section-eyebrow {
  color: var(--brand-accent);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-sub);
  max-width: 580px;
  margin-top: 10px;
}

.section-dark .section-subtitle {
  color: var(--text-light-muted);
}

/* ---------- Products Showcase ---------- */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.tab-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.tab-btn.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
  box-shadow: 0 8px 20px rgba(6, 13, 31, 0.18);
}

.product-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.product-visual {
  background: linear-gradient(145deg, #0b162e, #172a4f);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.product-visual-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.product-svg-wrap {
  display: grid;
  place-items: center;
  margin: 14px 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  min-height: 240px;
}

.product-photo {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.product-photo:hover {
  transform: scale(1.03);
}

.photo-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.angle-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.angle-btn.active,
.angle-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.hero-mode-tabs {
  display: inline-flex;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.hero-mode-btn {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.hero-mode-btn.active {
  background: var(--brand-primary);
  color: #fff;
}

.hero-real-photo-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.hero-real-photo-box img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
}

.tech-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 6px;
}

.tech-thumb {
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  border: 2px solid transparent;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tech-thumb:hover {
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}

.tech-thumb img {
  height: 92px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.dl-checksum {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
  word-break: break-all;
}

/* ---------- Q&A / Notice Board ---------- */
.board-shell {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.board-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.board-tab {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.board-tab.active,
.board-tab:hover {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.board-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-list {
  display: grid;
  gap: 10px;
}

.post-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: #93c5fd;
}

.post-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  text-align: left;
  background: #fff;
}

.post-head:hover {
  background: #f8fbff;
}

.post-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.post-author-admin {
  color: var(--brand-primary);
  font-weight: 700;
}

.reply-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.post-body {
  display: none;
  padding: 18px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
}

.post-card.open .post-body {
  display: block;
}

.post-content {
  white-space: pre-wrap;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 14px;
}

.post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mini-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-main);
}

.mini-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.mini-btn.danger:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.reply-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-left: 16px;
  border-left: 3px solid #93c5fd;
}

.reply-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
}

.reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

/* ---------- Modal & Lightbox ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 540px;
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.modal-box h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .post-head {
    grid-template-columns: 1fr auto;
  }
  .post-meta.hide-mobile {
    display: none;
  }
}

.product-photo-note {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.product-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.product-role {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.product-summary {
  color: var(--text-sub);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.feature-list li::before {
  content: '✓';
  color: var(--brand-primary);
  font-weight: 800;
  flex-shrink: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.spec-cell {
  background: var(--bg-muted);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
}

.spec-cell span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-sub);
}

.spec-cell strong {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-main);
}

.doc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eff6ff;
  color: var(--brand-primary);
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.doc-pill:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* Spec Comparison Table */
.table-wrap {
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.88rem;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.spec-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

.spec-table tbody tr:hover {
  background: #f8fbff;
}

/* ---------- Technical Guides ---------- */
.tech-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
}

.tech-cat-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-accent);
  margin-bottom: 8px;
}

.tech-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #fff;
}

.tech-items {
  list-style: none;
  display: grid;
  gap: 10px;
}

.tech-item-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-light);
  font-size: 0.87rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.tech-item-btn:hover,
.tech-item-btn.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
  color: #fff;
}

.tech-detail-panel {
  margin-top: 28px;
  background: rgba(15, 29, 58, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.tech-detail-panel h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.tech-detail-panel p {
  color: var(--text-light-muted);
  font-size: 0.94rem;
}

.tech-code-box {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #7dd3fc;
  line-height: 1.7;
}

/* ---------- Downloads Center ---------- */
.dl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.search-input {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #fff;
  min-width: 240px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dl-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.dl-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.badge-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-zip { background: #eff6ff; color: #1d4ed8; }
.badge-pdf { background: #fef2f2; color: #b91c1c; }
.badge-dwg { background: #ecfeff; color: #0e7490; }

.dl-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
}

.dl-card h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.dl-card p {
  font-size: 0.83rem;
  color: var(--text-sub);
}

.dl-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--bg-muted);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.dl-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ---------- Support & Video ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.panel-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panel-card h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.notice-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.notice-item:hover {
  border-color: #bfdbfe;
}

.notice-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.notice-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  margin-right: 8px;
}

.video-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0b162e;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
}

.video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.support-note {
  padding: 16px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.88rem;
  color: #1e3a8a;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #040915;
  color: var(--text-light-muted);
  padding: 56px 0 36px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.https-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #0f172a;
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .product-stage,
  .tech-detail-panel,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .tech-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #060d1f;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-dark);
  }
  .main-nav.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .din-rail {
    grid-template-columns: 1fr;
  }
  .tech-layout {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
}
