/* =========================================================
   BLUESTORY — Unified Precision Industrial Design System
   Shared Design Language with NALSSEN (Sister Brand)
   Signature Accent: Bluestory Cyan (#00BBFF) + Gold (#F59E0B)
   ========================================================= */

:root {
  --bg-dark: #061124;
  --bg-dark-2: #0a1d3b;
  --bg-surface: #ffffff;
  --bg-muted: #f3f8fc;
  --bg-card-dark: rgba(10, 29, 59, 0.76);

  --brand-primary: #0284c7;
  --brand-primary-dark: #0369a1;
  --brand-accent: #00bbff;
  --brand-gold: #f59e0b;
  --brand-glow: rgba(0, 187, 255, 0.35);

  --led-on: #22c55e;
  --led-alert: #ef4444;

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

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

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(6, 17, 36, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 17, 36, 0.10);
  --shadow-lg: 0 24px 60px rgba(4, 11, 26, 0.30);

  --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, 17, 36, 0.8);
  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, 17, 36, 0.95);
  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.05em;
  font-size: 1.25rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  box-shadow: 0 0 22px 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-accent), var(--brand-gold));
}

.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: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.38);
  transition: all 0.2s ease;
}

.family-pill:hover {
  background: rgba(37, 99, 235, 0.28);
  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% 18%, rgba(0, 187, 255, 0.24), transparent 46%),
              radial-gradient(circle at 82% 72%, rgba(245, 158, 11, 0.12), transparent 42%),
              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(0, 187, 255, 0.16);
  border: 1px solid rgba(0, 187, 255, 0.4);
  color: #7dd3fc;
  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, #38bdf8, #00bbff, #fde68a);
  -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-accent), var(--brand-primary));
  color: #fff;
  box-shadow: 0 10px 24px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 187, 255, 0.45);
}

.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);
}

.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 xSync Perimeter Simulator ---------- */
.sim-card {
  background: var(--bg-card-dark);
  border: 1px solid rgba(0, 187, 255, 0.32);
  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: 16px;
  gap: 12px;
}

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

.sim-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 187, 255, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(0, 187, 255, 0.35);
}

.perimeter-map {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #040d1d, #0b1c36);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 16px;
  margin-bottom: 14px;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.zone-btn {
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e2e8f0;
  text-align: left;
  transition: all 0.25s ease;
}

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

.zone-btn .z-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.zone-btn .z-name {
  font-weight: 700;
  font-size: 0.86rem;
}

.zone-btn .z-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-on);
  box-shadow: 0 0 8px var(--led-on);
}

.zone-btn.alarm {
  border-color: rgba(239, 68, 68, 0.85);
  background: rgba(127, 29, 29, 0.45);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

.zone-btn.alarm .z-dot {
  background: var(--led-alert);
  box-shadow: 0 0 12px var(--led-alert);
  animation: blinkAlert 0.6s infinite;
}

@keyframes blinkAlert {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.bus-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
}

.bus-node {
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(0, 187, 255, 0.12);
  color: #bae6fd;
  border: 1px solid rgba(0, 187, 255, 0.28);
}

.bus-node.active-out {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.65);
}

.bus-arrow {
  color: var(--brand-accent);
  font-weight: 700;
}

.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: #7dd3fc;
  height: 82px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}

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

/* ---------- Trusted Clients Ticker ---------- */
.clients-strip {
  background: #0a1d3b;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 18px 0;
  overflow: hidden;
}

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

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

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

.client-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: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.client-chip span {
  color: var(--brand-gold);
}

/* ---------- Common Sections ---------- */
.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: 600px;
  margin-top: 10px;
}

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

/* ---------- Business Areas (Tri-Core) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}

.pillar-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.pillar-card.sw::before { background: linear-gradient(90deg, #00bbff, #0284c7); }
.pillar-card.hw::before { background: linear-gradient(90deg, #10b981, #059669); }
.pillar-card.fw::before { background: linear-gradient(90deg, #f59e0b, #ea580c); }

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.pillar-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.pillar-list li {
  font-size: 0.92rem;
  color: var(--text-sub);
  display: flex;
  gap: 8px;
}

.pillar-list li::before {
  content: '▸';
  color: var(--brand-primary);
  font-weight: 700;
}

/* ---------- Track Record (97+ Projects) ---------- */
.portfolio-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.dl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

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

.filter-pill {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg-muted);
  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(2, 132, 199, 0.14);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 6px;
}

.pf-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.pf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.pf-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.pf-cat {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

.pf-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.portfolio-summary {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 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-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--brand-accent);
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px var(--brand-glow);
}

.product-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.product-visual {
  background: linear-gradient(145deg, #040c1b, #0f2547);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 187, 255, 0.25);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  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(0, 187, 255, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(0, 187, 255, 0.35);
}

.product-svg-wrap {
  display: grid;
  place-items: center;
  margin: 14px 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  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: 12px;
  text-align: center;
  margin-bottom: 10px;
}

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

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

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

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

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

.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 187, 255, 0.14);
  color: #bae6fd;
  border: 1px solid rgba(0, 187, 255, 0.35);
  transition: all 0.2s ease;
}

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

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

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

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

.product-summary {
  color: var(--text-light-muted);
  margin-bottom: 18px;
}

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

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

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

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

.spec-cell {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 10px 14px;
}

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

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

.compat-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(0, 187, 255, 0.25);
}

.compat-box h4 {
  font-size: 0.85rem;
  color: #7dd3fc;
  margin-bottom: 10px;
}

.compat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compat-tag {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ---------- Downloads ---------- */
.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: #e0f2fe; color: #0369a1; }
.badge-pdf { background: #fef2f2; color: #b91c1c; }
.badge-dwg { background: #ecfeff; color: #0e7490; }

.dl-card h4 { font-size: 0.96rem; 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 ---------- */
.contact-banner {
  background: linear-gradient(135deg, #061124, #0c2b52);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 187, 255, 0.3);
}

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #7dd3fc;
  margin: 10px 0 6px;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: #040a17;
  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;
}

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

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

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #0f172a;
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 187, 255, 0.5);
  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,
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    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: #061124;
    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); }
  .zone-grid,
  .portfolio-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .bus-flow {
    grid-template-columns: 1fr;
  }
}
