/* ==========================================================================
   V-QUANT INVESTMENT PARTNERS INC. — Production Design System (v2.2)
   Multi-Page Dark High-Tech Finance Theme (epic AI + SPEAKUP LAB + vquant.io)
   ========================================================================== */

:root {
  /* 4.1 Color Palette (Dark High-Tech Finance) */
  --bg-main: #080D1A;
  --bg-secondary: #0B1224;
  --bg-darker: #050912;
  --surface-card: #0F172A;
  --surface-card-alpha: rgba(15, 23, 42, 0.9);
  --surface-elevated: #1E293B;
  --surface-elevated-alpha: rgba(30, 41, 59, 0.85);
  --border-subtle: #334155;
  --border-faint: rgba(51, 65, 85, 0.55);
  --brand-accent: #38BDF8;
  --brand-accent-glow: rgba(56, 189, 248, 0.22);
  --brand-gold: #F59E0B;
  --brand-gold-glow: rgba(245, 158, 11, 0.2);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --metric-pos: #10B981;
  --metric-neg: #EF4444;

  /* 4.2 Typography */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Spacing */
  --container-max: 1280px;
  --header-height: 74px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(51, 65, 85, 0.45);
  --shadow-elevated: 0 24px 56px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.14);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Ambient High-Tech Grid & Glow Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(56, 189, 248, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 85% 22%, rgba(245, 158, 11, 0.06) 0%, transparent 38%),
    radial-gradient(circle at 50% 75%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    linear-gradient(to right, rgba(51, 65, 85, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.11) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on, "zero" on;
}

/* Container & Section Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 104px 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.section-alt {
  background: rgba(11, 18, 36, 0.75);
}

.section-header {
  max-width: 820px;
  margin-bottom: 56px;
}

/* SPEAKUP LAB Style Section Divider Rule */
.section-rule-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  max-width: 100%;
}

.section-rule-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-accent);
  white-space: nowrap;
}

.section-rule-line {
  flex: 1;
  height: 1px;
  background: rgba(51, 65, 85, 0.65);
}

.section-rule-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Micro Labels */
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  white-space: nowrap;
}

.micro-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-gold);
  box-shadow: 0 0 8px var(--brand-gold);
  flex-shrink: 0;
}

.micro-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  white-space: nowrap;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
  word-break: keep-all;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.72;
  word-break: keep-all;
}

/* ==========================================================================
   3.1 GNB (Global Navigation Bar) — Strict Single-Line No-Wrap Layout
   ========================================================================== */
.gnb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  z-index: 100;
  transition: var(--transition-smooth);
}

.gnb-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(245, 158, 11, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.brand-logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #080D1A;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.gnb-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.gnb-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.gnb-link:hover,
.gnb-link.active {
  color: var(--text-primary);
}

.gnb-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-accent);
  transition: width 0.25s ease;
}

.gnb-link:hover::after,
.gnb-link.active::after {
  width: 100%;
}

.gnb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-lg {
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
}

.btn-pill {
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #040914;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.45);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.78);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
}

.btn-portal {
  background: rgba(245, 158, 11, 0.1);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.42);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
}

.btn-portal:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--brand-gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   3.2 Hero Section — Cleanly Separated 3-Card Right Visual + Watermark
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 64px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* SPEAKUP Style Giant Background Watermark */
.watermark-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}

.watermark-text {
  font-size: clamp(9rem, 22vw, 22rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.022);
  white-space: nowrap;
  line-height: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  margin-bottom: 24px;
  word-break: keep-all;
}

.hero-title .accent-gradient {
  background: linear-gradient(90deg, #38BDF8 0%, #7DD3FC 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17.5px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 24px;
  word-break: keep-all;
  padding-left: 16px;
  border-left: 3px solid var(--brand-accent);
}

.hero-subtitle-refined {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  word-break: keep-all;
  font-weight: 400;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #FDE68A;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  word-break: keep-all;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-gold);
  box-shadow: 0 0 8px var(--brand-gold);
  flex-shrink: 0;
  animation: pulseAmber 2s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px var(--brand-gold);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
    box-shadow: 0 0 14px var(--brand-gold);
  }
}

.hero-slogan-box {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.hero-slogan-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 4px;
}

.hero-slogan-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

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

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

.keyword-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Right Visual: 3 Distinct, Well-Separated Cards (NO Overlap!) */
.hero-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.mockup-card {
  background: var(--surface-card-alpha);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  margin: 0;
  overflow: hidden;
}

.mockup-card:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.mockup-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  background: rgba(8, 13, 26, 0.72);
}

.window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #EF4444; }
.window-dots span:nth-child(2) { background: #F59E0B; }
.window-dots span:nth-child(3) { background: #10B981; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--metric-pos);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--metric-pos);
  animation: pulseDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Card 1: Python Quant Trading Console */
.mockup-layer-1 {
  border-color: rgba(56, 189, 248, 0.42);
}

.console-body {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: #E2E8F0;
  background: rgba(5, 9, 18, 0.9);
}

.console-line {
  display: grid;
  grid-template-columns: 68px 86px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-line:last-child {
  margin-bottom: 0;
}

.console-time { color: var(--text-muted); }
.console-tag-exec { color: var(--brand-accent); font-weight: 600; }
.console-tag-alpha { color: var(--brand-gold); font-weight: 600; }
.console-tag-risk { color: var(--metric-pos); font-weight: 600; }

/* Card 2: Portfolio Cumulative Return Curve */
.mini-chart-body {
  padding: 14px 16px;
}

.mini-chart-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

/* Card 3: MDD Risk Control Heatmap & Asset Allocation */
.heatmap-body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: center;
}

.heatmap-cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.heatmap-cell {
  height: 24px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8FAFC;
}

.alloc-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}

.alloc-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 3px;
}

.alloc-bar-fill {
  height: 100%;
  border-radius: 99px;
}

/* Live Metrics Bar (Bottom of Hero) */
.live-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.metric-item {
  padding: 24px 28px;
  border-right: 1px solid rgba(51, 65, 85, 0.5);
}

.metric-item:last-child {
  border-right: none;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-value.pos { color: var(--metric-pos); }
.metric-value.gold { color: var(--brand-gold); }
.metric-value.accent { color: var(--brand-accent); }

.metric-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   3.3 Infinite Ticker Bar (Marquee)
   ========================================================================== */
.marquee-bar {
  background: #050913;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

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

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item .sep {
  color: var(--brand-gold);
  font-size: 14px;
}

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

/* ==========================================================================
   SPEAKUP Style 2-Column Split Layouts (Philosophy, Firm Sheet, Class/CTA)
   ========================================================================== */
.split-12 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}

.rule-list {
  border-top: 1px solid rgba(51, 65, 85, 0.65);
}

.rule-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  transition: var(--transition-smooth);
}

.rule-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.rule-row:hover .rule-icon-box {
  border-color: var(--brand-accent);
  background: rgba(56, 189, 248, 0.12);
}

.rule-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rule-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-gold);
}

.rule-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
}

.rule-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.72;
  word-break: keep-all;
}

/* Data Definition Sheet (SPEAKUP Lab Sheet Style) */
.data-sheet {
  border-top: 1px solid rgba(51, 65, 85, 0.65);
}

.data-sheet-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  align-items: baseline;
}

.data-sheet-dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.data-sheet-dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   3.4 & 3.5 Cards: Principles (3-col) & Core Algorithm Tracks (SPEAKUP Bento)
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principle-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-gold));
  opacity: 0.75;
}

.principle-card:hover {
  background: var(--surface-elevated);
  border-color: var(--brand-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.principle-top {
  margin-bottom: 24px;
}

.principle-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.principle-code span.sub {
  color: var(--text-muted);
  font-size: 11px;
}

.principle-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
  word-break: keep-all;
}

.principle-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}

.principle-widget {
  background: rgba(8, 13, 26, 0.78);
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.principle-widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.principle-widget-row:last-child {
  margin-bottom: 0;
}

/* Tracks Grid */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.track-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.track-card.featured-span-2 {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(56, 189, 248, 0.45);
}

.track-card:hover {
  background: var(--surface-elevated);
  border-color: var(--brand-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

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

.track-id {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
}

.track-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.track-title {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.track-kor-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--brand-accent);
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.track-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 20px;
  word-break: keep-all;
}

.track-question-box {
  background: rgba(8, 13, 26, 0.85);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.track-question-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.track-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: keep-all;
}

.track-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.track-spec-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(8, 13, 26, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.65);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Section Bottom Link Bar (SPEAKUP Style) */
.section-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.section-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-accent);
}

.section-bottom-link:hover {
  color: var(--brand-gold);
  transform: translateX(4px);
}

/* ==========================================================================
   3.6 Analytics & Performance Dashboard
   ========================================================================== */
.analytics-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.spec-card,
.table-card,
.chart-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.card-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  word-break: keep-all;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spec-item-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 4px;
  word-break: keep-all;
  white-space: normal;
}

.spec-item-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: keep-all;
  white-space: normal;
}

.spec-item-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  word-break: keep-all;
  white-space: normal;
}

.perf-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.perf-table-wrapper::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.perf-table th,
.perf-table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  white-space: nowrap;
}

.perf-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(8, 13, 26, 0.6);
  white-space: nowrap;
}

.perf-table th:first-child,
.perf-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.perf-table th.highlight-col,
.perf-table td.highlight-col {
  background: rgba(56, 189, 248, 0.08);
  border-left: 1px solid rgba(56, 189, 248, 0.3);
  border-right: 1px solid rgba(56, 189, 248, 0.3);
}

.perf-table th.highlight-col {
  color: var(--brand-accent);
  border-top: 2px solid var(--brand-accent);
}

.perf-table td {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.perf-table td.highlight-col {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.perf-table td.highlight-col.pos {
  color: var(--metric-pos);
}

.perf-table td.highlight-col.gold {
  color: var(--brand-gold);
}

.chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.legend-swatch {
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

.period-tabs {
  display: inline-flex;
  background: rgba(8, 13, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.period-tab {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.period-tab:hover {
  color: var(--text-primary);
}

.period-tab.active {
  background: var(--brand-accent);
  color: #050914;
  font-weight: 700;
}

.interactive-chart-stage {
  position: relative;
  width: 100%;
  height: 360px;
  background: rgba(8, 13, 26, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-md);
  padding: 20px;
}

.chart-tooltip {
  position: absolute;
  top: 20px;
  left: 28px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  z-index: 5;
}

/* ==========================================================================
   System Infrastructure Pipeline & Research Cards
   ========================================================================== */
.infra-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.infra-node {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: var(--transition-smooth);
}

.infra-node:hover {
  border-color: var(--brand-accent);
  background: var(--surface-elevated);
}

.infra-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.infra-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.infra-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.infra-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-accent);
  padding-top: 10px;
  border-top: 1px dashed rgba(51, 65, 85, 0.6);
}

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

.report-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.report-card:hover {
  background: var(--surface-elevated);
  border-color: var(--brand-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.report-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.report-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.42;
  margin-bottom: 14px;
  word-break: keep-all;
}

.report-summary {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 24px;
  word-break: keep-all;
}

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  gap: 10px;
}

.report-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.report-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   3.8 Institutional Client Inquiry & Callout Card
   ========================================================================== */
.callout-card-dark {
  background: linear-gradient(145deg, #0F172A 0%, #091022 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.callout-big-num {
  font-family: var(--font-mono);
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 900;
  color: var(--brand-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.inquiry-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.65));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 52px;
  box-shadow: var(--shadow-card);
}

.inquiry-info-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inquiry-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.inquiry-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label .req {
  color: var(--brand-gold);
}

.form-control {
  background: rgba(8, 13, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea.form-control {
  min-height: 116px;
  resize: vertical;
}

.security-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Subpage Hero (SPEAKUP Multi-Page Header Style with Watermark)
   ========================================================================== */
.subpage-hero {
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 68px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.1), transparent 55%);
  position: relative;
  overflow: hidden;
}

.subpage-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(248, 250, 252, 0.025);
  white-space: nowrap;
  z-index: 0;
}

/* ==========================================================================
   3.9 Footer (공식 기업 정보 및 법적 면책)
   ========================================================================== */
.footer {
  background: #040710;
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 48px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.footer-corp-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 14px 0 12px;
}

.footer-info-lines {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.footer-info-lines strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-nav-list a:hover {
  color: var(--brand-accent);
}

.footer-disclaimer {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.45);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals (Investor Portal 2FA Modal & Report Preview Modal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(56, 189, 248, 0.25);
  padding: 36px;
  transform: translateY(16px);
  transition: transform 0.28s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-Dialog-wide {
  max-width: 760px;
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--brand-accent);
}

.portal-alert {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: #FDE68A;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Scroll Fade-Up Animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js-anim .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1120px) {
  .hero-grid,
  .split-12 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .principles-grid,
  .reports-grid,
  .tracks-grid,
  .analytics-layout,
  .inquiry-wrapper,
  .infra-pipeline,
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Mobile Header & Layout (< 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .gnb {
    height: 64px;
  }
  .gnb-inner {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
    max-width: 100%;
  }
  /* Desktop nav hidden on mobile */
  .gnb-nav {
    display: none !important;
  }
  /* Only Left Logo and Right Investor Portal button exposed */
  .mobile-menu-btn {
    display: none !important;
  }
  .gnb-actions .btn-secondary {
    display: none !important;
  }
  .brand-logo {
    gap: 6px;
  }
  .brand-logo-mark {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }
  .brand-logo-text {
    font-size: 15.5px;
  }
  .brand-logo-chip {
    font-size: 8.5px;
    padding: 2px 6px;
    letter-spacing: 0.08em;
  }
  #gnbPortalBtn {
    padding: 6px 11px;
    font-size: 11.5px;
    letter-spacing: -0.01em;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .container {
    padding: 0 16px !important;
  }
  .section {
    padding: 56px 0;
  }

  /* Live Metrics Bar: 2 Columns on Mobile */
  .live-metrics-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100%;
    border-radius: 12px;
    box-sizing: border-box;
  }
  .metric-item {
    padding: 16px 14px !important;
  }
  .metric-item:nth-child(1),
  .metric-item:nth-child(2) {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
  }
  .metric-item:nth-child(odd) {
    border-right: 1px solid rgba(51, 65, 85, 0.5) !important;
  }
  .metric-item:nth-child(even) {
    border-right: none !important;
  }
  .metric-value {
    font-size: 21px !important;
  }
  .metric-label {
    font-size: 10.5px !important;
    margin-bottom: 4px !important;
  }
  .metric-sub {
    font-size: 11px !important;
    margin-top: 3px !important;
    line-height: 1.4;
  }

  /* Hero Section */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
  .hero-title {
    font-size: clamp(26px, 7vw, 42px);
    line-height: 1.25;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hero-subtitle {
    font-size: clamp(13px, 3.5vw, 15.5px);
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding-left: 12px;
  }
  .hero-slogan-box {
    padding: 14px 16px;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-cta-group .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    word-break: keep-all;
    padding: 13px 18px;
    font-size: 14px;
  }
  .hero-visual-stack {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .mockup-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .console-body {
    padding: 10px 12px;
  }
  .console-line {
    grid-template-columns: 54px 72px minmax(0, 1fr);
    font-size: 10.5px;
    gap: 6px;
  }
  .heatmap-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px 14px;
  }
  .inquiry-wrapper {
    padding: 24px 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .inquiry-wrapper .section-title {
    font-size: clamp(20px, 5.5vw, 28px) !important;
    line-height: 1.35 !important;
    word-break: keep-all;
  }
  .section-rule-bar {
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .section-rule-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    white-space: normal;
    word-break: break-word;
  }
  .section-rule-meta,
  .section-rule-line {
    display: none;
  }
  .micro-label {
    white-space: normal;
    word-break: break-word;
    letter-spacing: 0.08em;
    font-size: 10.5px;
  }
  .inquiry-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Small Smartphone Screen (< 420px: iPhone SE, 375px~390px) */
@media (max-width: 420px) {
  .brand-logo-chip {
    display: none;
  }
  .brand-logo-text {
    font-size: 16.5px;
  }
  .brand-logo-mark {
    width: 30px;
    height: 30px;
    font-size: 13.5px;
  }
  #gnbPortalBtn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .hero-title {
    font-size: 24px;
  }
  .metric-value {
    font-size: 18.5px !important;
  }
  .metric-item {
    padding: 14px 10px !important;
  }
}

/* ==========================================================================
   4. Investor Portal & Admin Console System
   ========================================================================== */
.portal-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(8, 13, 26, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.portal-mode-tab {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.portal-mode-tab:hover {
  color: var(--text-primary);
}

.portal-mode-tab.active-investor {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--brand-accent);
}

.portal-mode-tab.active-admin {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--brand-gold);
}

.portal-quick-fill {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(51, 65, 85, 0.6);
}

.portal-quick-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  background: rgba(8, 13, 26, 0.75);
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition-smooth);
}

.portal-quick-btn:hover {
  border-color: var(--brand-accent);
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
}

.portal-quick-btn.admin-btn:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.12);
}

/* Full Console Overlay Modal */
.modal-dialog-console {
  max-width: 1180px;
  width: 96vw;
  height: 92vh;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #080E1E;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-sizing: border-box;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.console-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(8, 13, 26, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  min-height: 60px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.console-nav-tabs::-webkit-scrollbar {
  height: 5px;
}

.console-nav-tabs::-webkit-scrollbar-track {
  background: rgba(8, 13, 26, 0.4);
}

.console-nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.6);
  border-radius: 4px;
}

.console-nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  height: 38px;
  line-height: 1;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.console-nav-tab:hover {
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.6);
}

.console-nav-tab.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--brand-gold);
}

.console-content-area {
  padding: 28px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

.console-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.console-kpi-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
}

.console-kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.console-kpi-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  background: rgba(8, 13, 26, 0.7);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.status-badge.new {
  background: rgba(8, 47, 73, 0.6);
  color: #38BDF8;
  border: 1px solid rgba(7, 89, 133, 0.6);
}

.status-badge.review {
  background: rgba(69, 26, 3, 0.6);
  color: #FBBF24;
  border: 1px solid rgba(146, 64, 14, 0.6);
}

.status-badge.done {
  background: rgba(6, 78, 59, 0.6);
  color: #34D399;
  border: 1px solid rgba(6, 95, 70, 0.6);
}

.status-badge.contract {
  background: rgba(59, 7, 100, 0.6);
  color: #D8B4FE;
  border: 1px solid rgba(107, 33, 168, 0.6);
  font-weight: 700;
}

/* Utility classes */
#consoleSwitchViewBtn {
  display: none !important;
}

.break-keep {
  word-break: keep-all !important;
}

.leading-snug {
  line-height: 1.375 !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}
@media (min-width: 640px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-engine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}
@media (min-width: 768px) {
  .admin-engine-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .console-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .modal-dialog-console {
    width: 96vw;
    height: 90vh;
    max-height: 90vh;
    border-radius: 16px;
  }
  .console-topbar {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .console-nav-tabs {
    padding: 8px 12px !important;
    min-height: 48px !important;
  }
  .console-content-area {
    padding: 14px 12px !important;
  }
  .console-kpi-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
  }
  .console-kpi-box {
    padding: 10px 12px !important;
    min-height: 84px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .console-kpi-label {
    font-size: 10.5px !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 4px !important;
    word-break: keep-all !important;
    line-height: 1.25 !important;
  }
  .console-kpi-val {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
    white-space: normal !important;
    font-weight: 700 !important;
  }
  #consoleSwitchViewBtn {
    display: none !important;
  }
  .admin-table {
    min-width: 760px;
  }
  #newAccountForm {
    grid-template-columns: 1fr !important;
  }
  .spec-card,
  .table-card,
  .chart-card {
    padding: 16px !important;
  }
  .card-panel-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
  }
}

/* ==========================================================================
   5. V-Market Pulse — Real-Time Market Terminal Section
   ========================================================================== */
.v-market-pulse-section {
  background: #080D1A;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
  overflow: hidden;
}

.v-market-pulse-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.05), transparent 45%);
  pointer-events: none;
}

/* Top Infinite Real-Time Ticker Tape (TradingView Dark Transparent Style) */
.v-pulse-ticker-shell {
  background: #080D1A;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  height: 46px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.v-pulse-ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 18px;
  background: #0F172A;
  border-right: 1px solid #334155;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #38BDF8;
  white-space: nowrap;
  z-index: 3;
  flex-shrink: 0;
}

.v-pulse-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: vPulseBlink 1.6s infinite ease-in-out;
}

.v-pulse-live-dot.blue {
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
}

.v-pulse-live-dot.gold {
  background: #F59E0B;
  box-shadow: 0 0 10px #F59E0B;
}

@keyframes vPulseBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.v-pulse-ticker-viewport {
  flex: 1 1 0%;
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
}

.v-pulse-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: vPulseTickerScroll 38s linear infinite;
}

.v-pulse-ticker-viewport:hover .v-pulse-ticker-track {
  animation-play-state: paused;
}

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

.v-pulse-ticker-group {
  display: flex;
  align-items: center;
}

.v-pulse-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-right: 1px solid rgba(51, 65, 85, 0.55);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
  transition: background-color 0.35s ease;
  height: 46px;
}

.v-pulse-ticker-symbol {
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}

.v-pulse-ticker-price {
  color: #CBD5E1;
  font-weight: 600;
}

.v-pulse-ticker-chg {
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

.v-pulse-ticker-chg.up {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
}

.v-pulse-ticker-chg.down {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Terminal Header inside Container */
.v-pulse-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 44px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.v-pulse-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-pulse-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #38BDF8;
  text-transform: uppercase;
}

.v-pulse-main-title {
  font-size: 28px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.v-pulse-sub-desc {
  font-size: 14.5px;
  color: #94A3B8;
  line-height: 1.6;
}

.v-pulse-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94A3B8;
}

/* 2-Column Main Terminal Grid (Desktop 1:1, Mobile 1-col) */
.v-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.v-pulse-module {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.v-pulse-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38BDF8, #10B981, #F59E0B);
  opacity: 0.85;
}

.v-pulse-module-head {
  padding: 20px 24px 16px;
  background: rgba(30, 41, 59, 0.45);
  border-bottom: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-pulse-module-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.v-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38BDF8;
}

.v-pulse-badge.gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.38);
  color: #F59E0B;
}

.v-pulse-module-title {
  font-size: 17px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

/* Left Module: TradingView Mini Chart Widgets (KOSPI & S&P 500) */
.v-pulse-charts-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.v-tv-mini-card {
  background: #080D1A;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease;
  position: relative;
}

.v-tv-mini-card:hover {
  border-color: #38BDF8;
}

.v-tv-mini-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v-tv-symbol-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v-tv-symbol-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v-tv-symbol-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}

.v-tv-exchange-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #1E293B;
  border: 1px solid #334155;
  color: #38BDF8;
}

.v-tv-symbol-desc {
  font-size: 12px;
  color: #94A3B8;
}

.v-tv-price-group {
  text-align: right;
  font-family: var(--font-mono);
}

.v-tv-price-val {
  font-size: 20px;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.15;
  transition: color 0.25s ease;
}

.v-tv-price-chg {
  font-size: 12px;
  font-weight: 700;
  color: #10B981;
  margin-top: 2px;
}

.v-tv-price-chg.down {
  color: #EF4444;
}

.v-tv-chart-stage {
  height: 108px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(8, 13, 26, 0.9) 100%);
  cursor: crosshair;
  user-select: none;
  touch-action: pan-y;
}

.v-tv-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.v-tv-chart-tooltip {
  position: absolute;
  top: 6px;
  left: 6px;
  pointer-events: none;
  z-index: 10;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  color: #F8FAFC;
  white-space: nowrap;
  transition: opacity 0.12s ease;
  display: none;
  align-items: center;
  gap: 6px;
}

.v-tv-chart-tooltip .tip-date {
  color: #94A3B8;
  font-size: 10.5px;
}

.v-tv-chart-tooltip .tip-val {
  font-weight: 700;
  color: #FFFFFF;
}

.v-tv-chart-tooltip .tip-chg.up {
  color: #10B981;
}

.v-tv-chart-tooltip .tip-chg.down {
  color: #EF4444;
}

.v-tv-mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748B;
}

.v-tv-range-pills {
  display: inline-flex;
  gap: 4px;
}

.v-tv-range-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  color: #94A3B8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v-tv-range-btn:hover,
.v-tv-range-btn.active {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Right Module: KRX Real-Time Liquidity Quant Scanner Table */
.v-scanner-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  background: #080D1A;
  box-sizing: border-box;
}

.v-scanner-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 13px;
}

.v-scanner-table thead th {
  background: #0F172A;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 12px;
  border-bottom: 1px solid #334155;
  white-space: nowrap;
  text-align: right;
}

.v-scanner-table thead th:nth-child(1),
.v-scanner-table thead th:nth-child(2) {
  text-align: left;
}

.v-scanner-table thead th:nth-child(6) {
  text-align: center;
}

.v-scanner-table tbody tr {
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  transition: background-color 0.35s ease;
}

.v-scanner-table tbody tr:last-child {
  border-bottom: none;
}

.v-scanner-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.65);
}

.v-scanner-table tbody td {
  padding: 12.5px 12px;
  white-space: nowrap;
  text-align: right;
  font-family: var(--font-mono);
  color: #E2E8F0;
  vertical-align: middle;
}

.v-scanner-table tbody td:nth-child(1) {
  text-align: left;
  width: 42px;
}

.v-scanner-table tbody td:nth-child(2) {
  text-align: left;
  font-family: var(--font-sans);
}

.v-scanner-table tbody td:nth-child(6) {
  text-align: center;
}

.v-rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1E293B;
  border: 1px solid #334155;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
}

.v-rank-chip.top3 {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #F59E0B;
}

.v-stock-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.v-stock-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #F8FAFC;
}

.v-stock-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748B;
}

.v-price-cell {
  font-weight: 700;
  color: #F8FAFC;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.v-chg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
}

.v-chg-pill.up {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
}

.v-chg-pill.down {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.v-turnover-cell {
  color: #CBD5E1;
  font-size: 12.5px;
}

/* Quant Status Badges in Scanner */
.v-quant-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.v-quant-state-badge.active {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #10B981;
}

.v-quant-state-badge.tracking {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #38BDF8;
}

.v-quant-state-badge.hedging {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #F59E0B;
}

/* Real-Time Quote Pulse Animation (Green / Red Flash every 1~2s) */
@keyframes vRowFlashUp {
  0% { background-color: rgba(16, 185, 129, 0.24); }
  100% { background-color: transparent; }
}

@keyframes vRowFlashDown {
  0% { background-color: rgba(239, 68, 68, 0.24); }
  100% { background-color: transparent; }
}

.v-scanner-row.pulse-up {
  animation: vRowFlashUp 0.85s ease-out;
}

.v-scanner-row.pulse-down {
  animation: vRowFlashDown 0.85s ease-out;
}

.v-price-cell.pulse-up {
  color: #10B981 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

.v-price-cell.pulse-down {
  color: #EF4444 !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

/* Module Footer Status Strip */
.v-pulse-module-foot {
  padding: 12px 20px;
  background: #0F172A;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
}

@media (max-width: 1120px) {
  .v-pulse-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .v-pulse-ticker-tag span.label-text {
    display: none;
  }
  .v-pulse-ticker-tag {
    padding: 0 12px;
  }
  .v-pulse-header-bar {
    padding-top: 32px;
    margin-bottom: 20px;
  }
  .v-pulse-main-title {
    font-size: 22px;
  }
  .v-pulse-module-head {
    padding: 16px 16px 14px;
  }
  .v-pulse-charts-body {
    padding: 14px;
  }
  .v-scanner-table thead th,
  .v-scanner-table tbody td {
    padding: 10px 8px;
    font-size: 11.5px;
  }
  .v-stock-name {
    font-size: 12.5px;
  }
  .v-quant-state-badge {
    font-size: 10.5px;
    padding: 3px 7px;
  }
}

/* ==========================================================================
   6. Legal Document Pages (/terms, /privacy — Epic AI Style Dark Layout)
   ========================================================================== */
.footer-legal-link {
  color: var(--text-secondary);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-underline-offset: 4px;
}

.footer-legal-link:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

.legal-page-section {
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 96px;
  background: #080D1A;
  min-height: 82vh;
}

.legal-doc-container {
  max-width: 896px; /* max-w-4xl */
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header-box {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.legal-breadcrumb a {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
  color: #38BDF8;
}

.legal-breadcrumb .current {
  color: #38BDF8;
  font-weight: 700;
}

.legal-main-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 18px;
  word-break: keep-all;
}

.legal-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

.legal-badge.gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.38);
  color: #F59E0B;
}

.legal-doc-body {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-lead-box {
  background: rgba(30, 41, 59, 0.65);
  border-left: 3px solid #38BDF8;
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 15px;
  color: #E2E8F0;
  line-height: 1.75;
  word-break: keep-all;
}

.legal-article {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.legal-article:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-article-title {
  font-size: 18px;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

.legal-article p,
.legal-article li {
  font-size: 15px;
  color: #CBD5E1;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.legal-article ul,
.legal-article ol {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}

.legal-corp-box {
  background: #1E293B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 8px;
}

.legal-corp-box-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #F59E0B;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.legal-corp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #E2E8F0;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   7. Dynamic Field Notes (30-Pool Weekly Rotation Cards on insights.html)
   ========================================================================== */
.field-notes-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-note-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 26, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.field-note-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 2px !important;
}

.field-note-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.field-note-wbox {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #38BDF8;
  flex-shrink: 0;
}

.field-note-card.active-week .field-note-wbox {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10B981;
}

.field-note-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.field-note-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.04em;
}

.field-note-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #10B981;
}

.field-note-title {
  font-size: 18px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.42;
  margin-bottom: 8px;
  word-break: keep-all;
}

.field-note-desc {
  font-size: 14.5px;
  color: #94A3B8;
  line-height: 1.72;
  word-break: keep-all;
}

@media (max-width: 640px) {
  .legal-doc-container {
    padding: 0 16px;
  }
  .legal-header-box {
    padding: 24px 20px;
  }
  .legal-doc-body {
    padding: 26px 20px;
  }
  .legal-corp-box {
    padding: 18px 16px;
  }
  .field-note-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 18px 16px !important;
  }
  .field-note-wbox {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }
  .field-note-title {
    font-size: 16px;
  }
  .field-note-desc {
    font-size: 13.5px;
  }
}



