/* ==========================================================================
   HALOS — 2026 renewal
   Light, quiet product theme · Pretendard + JetBrains Mono
   ========================================================================== */

@import url('../fonts/fonts.css');

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --tile: #f4f4f5;
  --line: #ececee;
  --line-2: #dedee2;

  --text: #0c0c0d;
  --text-2: #56575e;
  --text-3: #9b9ca3;
  --ink: #111113;

  --accent: #ff6a13;
  --accent-ink: #d4500a;
  --accent-soft: rgba(255, 106, 19, 0.07);
  --accent-line: rgba(255, 106, 19, 0.26);

  --ok: #16a34a;
  --danger: #dc2626;

  --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.05);
  --shadow: 0 1px 2px rgba(16, 16, 20, 0.04), 0 8px 24px -6px rgba(16, 16, 20, 0.08);
  --shadow-lg: 0 2px 4px rgba(16, 16, 20, 0.03), 0 30px 70px -20px rgba(16, 16, 20, 0.18);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --container: 1160px;
  --header-h: 68px;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', 'Pretendard Variable', Pretendard, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0;
  color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.h-display { font-size: clamp(34px, 5.6vw, 66px); font-weight: 600; line-height: 1.16; letter-spacing: -0.045em; }
.h-1 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; line-height: 1.22; letter-spacing: -0.035em; }
.h-2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; }
.h-3 { font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--text-2); line-height: 1.75; }
.muted { color: var(--text-3); }
.accent { color: var(--accent-ink); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: #2b2b30; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); border-color: #c9c9cf; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 96px; height: auto; }

.gnb > ul { display: flex; align-items: center; gap: 2px; }
.gnb-item { position: relative; }
.gnb-link {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.gnb-link svg { width: 11px; height: 11px; opacity: 0.6; transition: transform 0.2s; }
.gnb-item:hover > .gnb-link,
.gnb-item:focus-within > .gnb-link,
.gnb-item.is-active > .gnb-link { color: var(--text); }
.gnb-item.is-active > .gnb-link { background: var(--tile); }
.gnb-item:hover > .gnb-link svg,
.gnb-item:focus-within > .gnb-link svg { transform: rotate(180deg); }

.gnb-dropdown {
  position: absolute; top: 100%; left: 50%;
  padding-top: 10px; min-width: 260px;
  transform: translate(-50%, -6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.gnb-item:hover .gnb-dropdown,
.gnb-item:focus-within .gnb-dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.gnb-dropdown ul {
  padding: 6px; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.gnb-dropdown a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.gnb-dropdown a:hover, .gnb-dropdown a:focus-visible { background: var(--surface-2); }
.gnb-dropdown a.is-current { background: var(--tile); }
.gnb-dropdown strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.gnb-dropdown span { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.5; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 999;
  padding: 16px 24px 40px; overflow-y: auto;
  background: var(--bg);
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mobile-nav-group p {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-3); margin-bottom: 6px;
}
.mobile-nav-group a { display: block; padding: 9px 0; font-size: 17px; font-weight: 500; color: var(--text-2); }
.mobile-nav-group a.is-current { color: var(--text); font-weight: 600; }
.mobile-nav .btn { width: 100%; margin-top: 24px; }

/* ==========================================================================
   Backgrounds
   ========================================================================== */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  opacity: 0.7;
}
.bg-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(100px); opacity: 0.2;
}

/* ==========================================================================
   Home — Hero (centered, product window below)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 112px;
}
.hero .bg-glow.g1 { width: 520px; height: 360px; top: 80px; left: 50%; margin-left: -60px; background: var(--accent); opacity: 0.12; }
.hero .bg-glow.g2 { width: 460px; height: 360px; top: 160px; left: 50%; margin-left: -420px; background: #6b8cff; opacity: 0.10; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 72px; text-align: center;
}
.hero-copy { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy .h-display { margin-bottom: 24px; }
.hero-copy .h-display em { font-style: normal; color: var(--accent); }
.hero-copy .lead { max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-copy .hero-actions { justify-content: center; }

.eyebrow-link { transition: border-color 0.2s, box-shadow 0.2s; }
.eyebrow-link svg { width: 12px; height: 12px; color: var(--text-3); margin-left: -2px; }
.eyebrow-link:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--text); }

/* floating fragments around the headline */
.frag-layer { position: absolute; inset: 0; max-width: 1400px; margin: 0 auto; pointer-events: none; }
.frag {
  position: absolute; display: grid; gap: 4px; width: 230px; padding: 14px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line);
  box-shadow: var(--shadow); text-align: left;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: floaty 7s ease-in-out infinite;
}
.frag b { font-size: 13.5px; font-weight: 600; font-family: var(--mono); letter-spacing: -0.01em; }
.frag small { font-size: 12px; color: var(--text-3); }
.frag .tag { justify-self: start; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 5px; background: var(--tile); color: var(--text-2); }
.frag .t-red { background: #fef2f2; color: var(--danger); }
.frag .t-ok { background: #f0fdf4; color: var(--ok); }
.frag .chain { display: flex; gap: 4px; margin: 4px 0 2px; }
.frag .chain i { flex: 1; height: 6px; border-radius: 3px; background: var(--tile); }
.frag .chain i.on { background: var(--accent); }
.frag.f1 { top: 150px; left: 3%; transform: rotate(-4deg); }
.frag.f2 { top: 130px; right: 3%; transform: rotate(3deg); animation-delay: -2s; }
.frag.f3 { top: 400px; left: 6%; transform: rotate(2deg); animation-delay: -4s; }
.frag.f4 { top: 420px; right: 5%; transform: rotate(-3deg); animation-delay: -1s; }
@keyframes floaty { 50% { translate: 0 -8px; } }

/* product window — NextSG live console (dark, mirrors the real product UI) */
.console {
  --c-bg: #0a0e17; --c-panel: #111725; --c-panel-2: #151c2c; --c-line: rgba(255, 255, 255, 0.08);
  --c-text: #e8ecf4; --c-text-2: #9aa4b6; --c-text-3: #5f6a7e;
  --c-cyan: #22d3ee; --c-pink: #fb4f7a; --c-green: #2fd88f; --c-amber: #f6b73c; --c-blue: #5b9bff; --c-violet: #a78bfa;
  width: 100%; max-width: 1120px; text-align: left;
  border-radius: 16px; overflow: hidden;
  background: var(--c-bg); color: var(--c-text);
  border: 1px solid #1d2433;
  box-shadow: 0 2px 4px rgba(16, 16, 20, 0.06), 0 40px 90px -24px rgba(16, 20, 40, 0.45);
  font-size: 12px; line-height: 1.5;
}
.cs-nav { display: flex; align-items: center; gap: 22px; padding: 10px 18px; border-bottom: 1px solid var(--c-line); background: #0c111b; }
.cs-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.cs-logo svg { width: 16px; height: 16px; color: var(--c-blue); }
.cs-nav ul { display: flex; gap: 18px; color: var(--c-text-2); font-size: 12.5px; }
.cs-nav ul li:first-child { color: var(--c-text); }
.cs-user { margin-left: auto; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--c-line); color: var(--c-text-2); }

.cs-page { padding: 18px 22px 22px; background: radial-gradient(80% 60% at 50% 30%, rgba(34, 211, 238, 0.05), transparent 70%); }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.cs-head strong { font-size: 18px; font-weight: 700; margin-right: 12px; }
.cs-head span { color: var(--c-text-2); font-size: 12px; }
.cs-right { display: flex; align-items: center; gap: 14px; }
.cs-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(251, 79, 122, 0.45); color: var(--c-pink) !important; font-weight: 700; letter-spacing: 0.06em; }
.cs-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-pink); animation: blink 1.4s infinite; }
.cs-clock { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.cs-sub { margin: 14px 0 14px; color: var(--c-text-2); }
.cs-sub b { color: var(--c-text); font-size: 13.5px; margin-right: 10px; }

.cs-flow { position: relative; display: grid; grid-template-columns: 1fr 28px 1.15fr 28px 1fr; align-items: stretch; }
.cs-box { padding: 14px; border-radius: 12px; background: var(--c-panel); border: 1px solid var(--c-line); }
.cs-box.is-on { border-color: rgba(34, 211, 238, 0.7); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 0 28px rgba(34, 211, 238, 0.22); }
.cs-box header { display: flex; justify-content: space-between; align-items: center; }
.cs-box header em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--c-cyan); }
.cs-state { font-size: 10px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-text-3); }
.cs-state.on { border-color: rgba(34, 211, 238, 0.5); color: var(--c-cyan); }
.cs-box h4 { display: flex; align-items: center; gap: 7px; margin: 6px 0 10px; font-size: 15px; font-weight: 700; }
.cs-box h4 i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-text-3); }
.cs-box.is-on h4 i { background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); }

.cs-sig { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 12px; border-radius: 9px; background: var(--c-panel-2); border: 1px solid var(--c-line); border-left: 3px solid; }
.cs-sig b { display: block; font-size: 13px; }
.cs-sig small { color: var(--c-text-2); font-size: 10.5px; }
.cs-sig strong { font-family: var(--mono); font-size: 20px; font-weight: 700; white-space: nowrap; }
.cs-sig strong span { font-size: 12px; color: var(--c-text); }
.cs-new { position: absolute; top: -8px; right: 8px; padding: 0 7px; border-radius: 4px; font-size: 9.5px; font-weight: 700; color: #0a0e17; }
.cs-sig.pink { border-left-color: var(--c-pink); box-shadow: inset 0 0 0 1px rgba(251, 79, 122, 0.25); }
.cs-sig.pink strong { color: var(--c-pink); } .cs-sig.pink .cs-new { background: var(--c-pink); color: #fff; }
.cs-sig.cyan { border-left-color: var(--c-cyan); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25); }
.cs-sig.cyan strong { color: var(--c-cyan); } .cs-sig.cyan .cs-new { background: var(--c-cyan); }
.cs-sig.green { border-left-color: var(--c-green); box-shadow: inset 0 0 0 1px rgba(47, 216, 143, 0.25); }
.cs-sig.green strong { color: var(--c-green); } .cs-sig.green .cs-new { background: var(--c-green); }

.cs-link { align-self: center; height: 3px; box-shadow: 0 0 10px rgba(167, 139, 250, 0.7), 0 0 22px rgba(34, 211, 238, 0.35); position: relative; overflow: hidden; border-radius: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.8), rgba(34, 211, 238, 0.2)); }
.cs-link.l2 { background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), rgba(246, 183, 60, 0.85), rgba(167, 139, 250, 0.2)); }
.cs-link::after { content: ''; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: pulse 2.2s linear infinite; }
@keyframes pulse { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.cs-chain { width: 100%; height: auto; margin: 2px 0 8px; }
.cs-chain .n circle { fill: #111725; stroke: #6b7489; stroke-width: 1.5; }
.cs-chain .n.g circle { stroke: var(--c-green); filter: drop-shadow(0 0 4px rgba(47, 216, 143, 0.6)); }
.cs-chain .n.r circle { stroke: var(--c-pink); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(251, 79, 122, 0.7)); }
.cs-chain text { font-size: 9.5px; fill: var(--c-text-2); text-anchor: middle; font-family: var(--font); }
.cs-chain text.tr { fill: var(--c-pink); font-weight: 700; }
.cs-chain text.tg { fill: var(--c-green); font-weight: 700; }
.cs-stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
.cs-stats div { padding: 8px 10px; border-radius: 8px; background: var(--c-panel-2); border: 1px solid var(--c-line); }
.cs-stats b { display: block; font-family: var(--mono); font-size: 16px; }
.cs-stats small { color: var(--c-text-3); font-size: 10px; }
.cs-stats .done { text-align: center; border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.1); }
.cs-stats .done b { font-family: var(--font); font-size: 13px; }

.cs-ai { display: flex; align-items: center; gap: 14px; }
.cs-gauge { position: relative; width: 78px; height: 78px; flex-shrink: 0; display: grid; place-content: center; text-align: center; }
.cs-gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cs-gauge circle { fill: none; stroke: #232b3b; stroke-width: 6; }
.cs-gauge circle.v { stroke: var(--c-amber); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 40; filter: drop-shadow(0 0 4px rgba(246, 183, 60, 0.5)); }
.cs-gauge b { font-size: 16px; line-height: 1.1; }
.cs-gauge small { font-size: 9.5px; color: var(--c-text-3); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cs-tags span { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(246, 183, 60, 0.45); color: var(--c-amber); font-size: 10.5px; }
.cs-verdict { margin-top: 12px; padding: 14px; border-radius: 10px; text-align: center; border: 1px solid rgba(251, 79, 122, 0.45); background: radial-gradient(100% 120% at 50% 0%, rgba(251, 79, 122, 0.16), rgba(251, 79, 122, 0.04)); }
.cs-verdict strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.2; color: #ff8aa6; letter-spacing: 0.04em; }
.cs-verdict small { color: #f2a0b4; font-size: 10.5px; }

.cs-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 14px; }
.cs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-kpis .k { position: relative; padding: 10px 12px 14px; border-radius: 10px; background: var(--c-panel); border: 1px solid var(--c-line); overflow: hidden; }
.cs-kpis .k::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.cs-kpis small { display: flex; align-items: center; gap: 6px; color: var(--c-text-2); font-size: 10.5px; }
.cs-kpis small::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.cs-kpis b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 22px; color: var(--c-text); }
.cs-kpis b span { font-family: var(--font); font-size: 11px; color: var(--c-text-2); font-weight: 400; }
.cs-kpis .blue { color: var(--c-blue); } .cs-kpis .red { color: var(--c-pink); } .cs-kpis .pink { color: #f472b6; } .cs-kpis .amber { color: var(--c-amber); }
.cs-kpis .red b { color: var(--c-pink); }
.cs-table { padding: 10px 12px; border-radius: 10px; background: var(--c-panel); border: 1px solid var(--c-line); }
.cs-table p { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cs-table p b { font-size: 13px; }
.cs-table p small { color: var(--c-text-3); font-size: 10.5px; }
.cs-table li { display: grid; grid-template-columns: 58px 1fr 54px 34px 54px; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--c-line); font-size: 11px; }
.cs-table time { font-family: var(--mono); color: var(--c-text-3); font-size: 10.5px; }
.cs-table .ax { display: flex; gap: 3px; }
.cs-table .ax u { width: 7px; height: 7px; border-radius: 50%; background: #2a3243; }
.cs-table .ax u.p { background: var(--c-pink); } .cs-table .ax u.c { background: var(--c-cyan); } .cs-table .ax u.g { background: var(--c-green); }
.cs-table em { justify-self: end; font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.cs-table em.t { color: #ff8aa6; background: rgba(251, 79, 122, 0.14); border: 1px solid rgba(251, 79, 122, 0.4); }
.cs-table em.c { color: var(--c-amber); background: rgba(246, 183, 60, 0.12); border: 1px solid rgba(246, 183, 60, 0.4); }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--tile); color: var(--text-2); }
.pill-ok { background: #f0fdf4; color: var(--ok); }
.pill-red { background: #fef2f2; color: var(--danger); }
.pill-dark { background: var(--ink); color: #fff; }

.mock-note { margin-top: -52px; font-size: 12px; color: var(--text-3); }
.hero + .section { padding-top: 32px; }

/* tabs — underline tabs + gray panel */
.tabs { max-width: 1080px; margin: 0 auto; }
.tab-list { display: flex; justify-content: center; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.tab-list [role="tab"] { position: relative; padding: 12px 18px; font-size: 15px; font-weight: 500; color: var(--text-3); transition: color 0.2s; }
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--text); font-weight: 600; }
.tab-list [role="tab"][aria-selected="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 8px; border-radius: 22px; background: var(--tile); }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tp-copy { padding: 40px 0 40px 40px; }
.tp-q { font-size: 15px; color: var(--accent-ink); font-weight: 500; margin-bottom: 12px; }
.tp-copy .h-2 { margin-bottom: 14px; }
.tp-copy > p:not(.tp-q) { color: var(--text-2); }
.tp-copy .chip { background: var(--surface); border-color: var(--line); }
.tp-copy, .tp-visual { min-width: 0; }
.tp-visual { padding: 32px 32px 32px 0; }

.ui-card { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.ui-live { font-size: 10.5px; font-weight: 600; color: var(--ok); }
.ui-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--ok); vertical-align: 1px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.ui-code { margin: 0; padding: 14px 0; font-size: 12.5px; line-height: 1.9; color: var(--text-2); white-space: pre; overflow-x: auto; }
.ui-code .ln { display: inline-block; width: 40px; padding-right: 12px; text-align: right; color: #c4c5cb; }
.ui-code mark { background: #fef2f2; color: var(--danger); border-radius: 3px; padding: 1px 3px; box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18); }
.ui-finding { display: grid; gap: 2px; margin: 0 12px 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.ui-finding b { font-size: 13px; font-weight: 600; }
.ui-finding span { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.ui-log { padding: 8px; }
.ui-log li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.ui-log li em { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.ui-log li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-log li.blocked { background: #fef2f2; color: var(--text); }
.s-ok { color: var(--ok); font-weight: 600; font-size: 11.5px; }
.s-red { color: var(--danger); font-weight: 700; font-size: 11.5px; }
.s-gray { color: var(--text-3); font-weight: 600; font-size: 11.5px; }
.ui-tree { padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; }
.ui-tree li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--text-2); }
.ui-tree li.in { padding-left: 30px; }
.ui-tree li.bad { background: #fef2f2; color: var(--text); }
.ui-tree li .pill { margin-left: auto; }
.ui-tree i { width: 12px; height: 10px; border-radius: 2px; background: #d9dade; }
.ui-tree i.fl { width: 10px; height: 12px; background: #e7e7ea; }
.ui-proc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 12px 14px; padding: 12px; border-radius: 10px; background: var(--bg-2); font-family: var(--mono); font-size: 11.5px; }
.ui-proc span { padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.ui-proc span.r { border-color: rgba(220, 38, 38, 0.25); color: var(--danger); }
.ui-score { padding: 8px; }
.ui-score li { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px dashed var(--line); }
.ui-score li:last-child { border-bottom: 0; }
.ui-meter { height: 8px; margin: 6px 16px 8px; border-radius: 4px; background: var(--tile); overflow: hidden; }
.ui-meter span { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.ui-meta { display: block; padding: 0 16px 16px; font-size: 12px; color: var(--text-3); }

/* bento tiles */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; padding: 12px 12px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tile.t-wide { grid-column: span 2; }
.tile .h-3 { padding: 0 16px; margin-top: 22px; margin-bottom: 6px; }
.tile p { padding: 0 16px; font-size: 14.5px; color: var(--text-2); }
.tile-visual { height: 180px; border-radius: 14px; background: var(--tile); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 20px; overflow: hidden; }
.v-collapse { flex-wrap: nowrap; }
.v-collapse span { width: 46px; height: 58px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-left: -22px; }
.v-collapse span:first-child { margin-left: 0; }
.v-collapse span:nth-child(odd) { transform: rotate(-6deg); }
.v-collapse span:nth-child(even) { transform: rotate(5deg); }
.v-collapse svg { width: 22px; height: 22px; color: var(--text-3); margin: 0 10px; }
.v-collapse b { padding: 16px 22px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); }
.v-lock { flex-direction: column; }
.v-lock svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); }
.v-lock span { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.06em; }
.v-engines span, .v-chips span { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm); }
.v-engines span.o { background: var(--accent); border-color: var(--accent); color: #fff; }
.v-chips { align-content: center; }
.v-chips span { font-family: var(--mono); font-size: 12px; }
.v-number { flex-direction: column; gap: 0; }
.v-number b { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.v-number span { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.v-sectors { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-content: center; gap: 8px; }
.v-sectors span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 500; }
.v-sectors span::before { content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* products */
.products { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.prod { display: flex; flex-direction: column; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.prod:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-main { background: var(--bg-2); }
.products.four { grid-template-columns: 1fr 1fr; }
.products.four .prod-main .stack-diagram { margin-top: auto; margin-bottom: auto; padding: 8px 0; }
.products.four .prod-main .link-arrow { margin-top: 0; }
@media (max-width: 1080px) { .products.four .prod-main { grid-column: auto; } }
@media (max-width: 860px) { .products.four { grid-template-columns: 1fr; } }
.text-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }
a.sdlc-bar { transition: background 0.2s; }
a.sdlc-bar:hover { background: #2b2b30; }
.prod-top { display: flex; align-items: center; gap: 10px; }
.prod-name { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.prod-desc { margin: 8px 0 24px; font-size: 15px; color: var(--text-2); }
.prod .stack-diagram { max-width: none; margin-bottom: 8px; }
.prod-points li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.prod .link-arrow { margin-top: auto; padding-top: 24px; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; padding: 24px 28px; border-radius: 22px; border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s; }
.service-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.service-row .card-tag { margin-bottom: 4px; }
.service-row strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.service-row span { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.service-row > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-3); transition: transform 0.2s var(--ease), color 0.2s; }
.service-row:hover > svg { transform: translateX(4px); color: var(--text); }

/* centered CTA */
.cta-center { overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta-center .bg-grid { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 10%, transparent 100%); mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 10%, transparent 100%); }
.cta-center .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-center .h-1 { margin-bottom: 16px; }
.cta-center .lead { margin-bottom: 32px; }
.cta-center .hero-actions { justify-content: center; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: 120px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .h-1, .section-head .h-2 { margin-bottom: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 36px 28px 32px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.stat strong small { font-size: 0.5em; font-weight: 500; color: var(--accent); margin-left: 3px; letter-spacing: 0; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* logo marquee — mono logos are white on alpha; brightness(0) turns them ink */
.marquee { position: relative; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img, .logo-tile img {
  height: 36px; width: auto;
  filter: brightness(0);
  opacity: 0.42;
  transition: opacity 0.2s;
}
.marquee img:hover { opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-size: 14px; color: var(--text-3); margin-bottom: 32px; }

/* cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
a.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--tile); border: 1px solid var(--line);
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card .h-3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.card .link-arrow { margin-top: auto; padding-top: 24px; }
.card-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

/* product feature cards (large) — gray media tile, white body */
.product-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.product-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .pc-media {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--tile);
  border-bottom: 1px solid var(--line);
}
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.03); }
.product-card .pc-body { display: flex; flex-direction: column; padding: 30px; }
.product-card .pc-body p { color: var(--text-2); font-size: 15px; margin-top: 10px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  background: var(--tile); border: 1px solid transparent;
}
.chip.accent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.product-card .link-arrow { margin-top: auto; padding-top: 28px; }
.badge-flag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #fff;
}

.product-card.wide { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; grid-template-rows: none; }
.product-card.wide .pc-media { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); display: grid; place-items: center; padding: 56px 32px 40px; }
.product-card.wide .pc-body { padding: 44px 40px; justify-content: center; }
.stack-diagram { display: grid; gap: 10px; width: 100%; max-width: 460px; }
.stack-diagram .row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.stack-diagram .lbl { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
.stack-diagram .cells { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-diagram .cell { padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stack-diagram .row.right .cell { border-color: var(--accent-line); color: var(--accent-ink); }
.stack-diagram .row.verify .cell { width: 100%; text-align: center; background: var(--ink); border-color: var(--ink); color: #fff; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* figure — illustrations on a gray tile */
.figure {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--tile); border: 1px solid var(--line);
  padding: 12px;
}
.figure img { width: 100%; border-radius: 10px; mix-blend-mode: multiply; }
.figure-cap { margin-top: 14px; font-size: 13px; color: var(--text-3); text-align: center; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.step-no { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.step ol { display: grid; gap: 6px; counter-reset: sub; }
.step ol li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-2); counter-increment: sub; }
.step ol li::before { content: counter(sub, decimal-leading-zero); position: absolute; left: 0; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); top: 3px; }
.step.highlight { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.step.highlight .step-no { color: var(--accent-ink); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  padding: 64px 56px; border-radius: 24px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 106, 19, 0.10), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(107, 140, 255, 0.08), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band .h-2 { margin-bottom: 8px; }
.cta-band .muted { color: var(--text-2); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* ==========================================================================
   Sub pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-hero .bg-glow { width: 520px; height: 340px; top: -120px; right: 4%; background: var(--accent); opacity: 0.10; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--text-2); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .h-1 { margin-bottom: 18px; max-width: 820px; }
.page-hero .lead { max-width: 700px; }

.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative; display: block; padding: 16px 14px; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--text-3);
  transition: color 0.2s;
}
.subnav a:hover { color: var(--text); }
.subnav a.is-current { color: var(--text); }
.subnav a.is-current::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }

.block + .block { margin-top: 96px; }
.block-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.block-title .num { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }

.prose p { color: var(--text-2); font-size: 17px; line-height: 1.85; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--text); font-weight: 600; }

.callout {
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text);
}
.callout p { color: var(--text-2); margin-top: 6px; font-size: 15px; }

/* feature list blocks (detail) */
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-group { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.feature-group h3 .idx { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.feature-group ul { display: grid; gap: 8px; }
.feature-group li { position: relative; padding-left: 16px; font-size: 15px; color: var(--text-2); line-height: 1.6; }
.feature-group li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }

/* layer stack (consulting) */
.layer-stack { display: grid; gap: 8px; }
.layer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; color: var(--text-2);
}
.layer.is-hit {
  color: var(--text); font-weight: 600; border-color: var(--accent-line);
  background: linear-gradient(90deg, rgba(255, 106, 19, 0.10), rgba(255, 106, 19, 0.02));
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.layer.is-hit .mono { font-size: 12.5px; font-weight: 500; color: var(--accent-ink); }

.card .check-list li { font-size: 15px; }
[id] { scroll-margin-top: calc(var(--header-h) + 72px); }

/* ---------- NextSG ---------- */

.flow { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.flow-row { display: grid; grid-template-columns: 56px 150px 1fr 150px; gap: 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.flow-row:last-child { border-bottom: 0; }
.flow-row .no { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.flow-row .when { font-size: 14px; color: var(--text-2); }
.flow-row .what { font-size: 15px; color: var(--text); }
.flow-row .what code { font-family: var(--mono); font-size: 12.5px; padding: 2px 6px; border-radius: 5px; background: var(--tile); color: var(--accent-ink); }
.flow-row .who { justify-self: end; }
.flow-row.is-final { background: linear-gradient(90deg, rgba(255, 106, 19, 0.08), transparent 70%); }

.sdlc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sdlc-side { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.sdlc-side header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sdlc-side header strong { font-size: 18px; font-weight: 600; }
.sdlc-side header span { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.08em; }
.sdlc-list { display: grid; gap: 6px; }
.sdlc-list li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); }
.sdlc-list b { font-weight: 600; }
.sdlc-list span { color: var(--text-2); font-size: 14.5px; }
.sdlc-bar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 28px; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
}
.sdlc-bar strong { font-size: 18px; font-weight: 600; }
.sdlc-bar span { color: rgba(255, 255, 255, 0.66); }

.q { margin: 4px 0 14px; font-size: 15px; color: var(--accent-ink); font-weight: 500; }
.comp-list { display: grid; gap: 6px; margin-top: 4px; }
.comp-list li { position: relative; padding-left: 14px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.comp-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.principle .n { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.principle h3 { font-size: 17px; font-weight: 600; margin: 10px 0; }
.principle p { font-size: 14.5px; color: var(--text-2); }

.story { display: grid; gap: 0; }
.story li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.story li:first-child { border-top: 1px solid var(--line); }
.story .stage { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); letter-spacing: 0.06em; }
.story p { font-size: clamp(17px, 2vw, 22px); font-weight: 550; letter-spacing: -0.02em; }

.notice-link {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2);
}
.notice-link strong { display: block; font-size: 16px; font-weight: 600; }
.notice-link span { color: var(--text-2); font-size: 14.5px; }

/* ---------- NextSG page (메인과 같은 목업·탭·타일 방식) ---------- */
/* hero console — 사건 상세 화면 */
.cs-nav ul.on-3 li:first-child { color: var(--c-text-2); }
.cs-nav ul.on-3 li:nth-child(3) { color: var(--c-text); }
.console { --ax-web: var(--c-blue); --ax-ws: var(--c-pink); --ax-edr: var(--c-cyan); --ax-rasp: var(--c-green); }
.ic-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 14px; }
.ic-timeline, .ic-panel { padding: 14px; border-radius: 12px; background: var(--c-panel); border: 1px solid var(--c-line); }
.ic-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ic-title b { font-size: 13.5px; }
.ic-title small { color: var(--c-text-3); font-size: 10.5px; font-family: var(--mono); }
.ic-timeline ol { position: relative; display: grid; gap: 6px; }
.ic-timeline ol::before { content: ''; position: absolute; left: 78px; top: 10px; bottom: 10px; width: 1px; background: var(--c-line); }
.ic-timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: center; padding: 9px 12px 9px 0; border-radius: 9px; }
.ic-timeline li::before { content: ''; position: absolute; left: 73.5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ax); box-shadow: 0 0 8px var(--ax); }
.ic-timeline li:hover { background: var(--c-panel-2); }
.ic-timeline time { font-family: var(--mono); font-size: 10.5px; color: var(--c-text-3); padding-left: 4px; }
.ic-timeline li div { min-width: 0; }
.ic-timeline li b { display: block; font-size: 12.5px; color: var(--ax); }
.ic-timeline li span { display: block; font-family: var(--mono); font-size: 11px; color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-timeline em { font-style: normal; font-size: 10px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(246, 183, 60, 0.45); color: var(--c-amber); white-space: nowrap; }
.ic-timeline em.ok { border-color: rgba(47, 216, 143, 0.5); color: var(--c-green); }
.ax-web { --ax: var(--ax-web); } .ax-ws { --ax: var(--ax-ws); } .ax-edr { --ax: var(--ax-edr); } .ax-rasp { --ax: var(--ax-rasp); }
.ic-side { display: grid; gap: 12px; align-content: start; }
.ic-axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ic-axes span { padding: 6px 4px; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 600; color: var(--ax); background: var(--c-panel-2); border: 1px solid var(--c-line); border-top: 2px solid var(--ax); }
.ic-stages { display: flex; gap: 4px; margin: 14px 0 6px; }
.ic-stages i { flex: 1; height: 6px; border-radius: 3px; background: #232b3b; }
.ic-stages i.on { background: var(--c-violet); box-shadow: 0 0 8px rgba(167, 139, 250, 0.5); }
.ic-meta { display: block; color: var(--c-text-3); font-size: 10.5px; }
.ic-ai { border-color: rgba(251, 79, 122, 0.35); background: radial-gradient(100% 100% at 50% 0%, rgba(251, 79, 122, 0.10), transparent 70%), var(--c-panel); }
.ic-ai > p:not(.ic-title) { font-size: 12px; line-height: 1.7; color: var(--c-text); margin-bottom: 10px; }
.ic-verdict { font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 4px; color: #ff8aa6; background: rgba(251, 79, 122, 0.14); border: 1px solid rgba(251, 79, 122, 0.4); }

/* evolve */
.hero.nx-hero { padding-bottom: 64px; }
.nx-evolve { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nx-evolve .nx-tag { padding: 0 16px; margin: 22px 0 2px; }
.nx-evolve .tile .h-3 { margin-top: 0; font-size: 22px; letter-spacing: -0.03em; }
.v-life { flex-wrap: nowrap; gap: 0; }
.v-life span { position: relative; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-3); background: var(--surface); border: 1px dashed var(--line-2); white-space: nowrap; }
.v-life span + span { margin-left: 14px; }
.v-life span + span::before { content: ''; position: absolute; right: 100%; top: 50%; width: 14px; height: 1px; background: var(--line-2); }
.v-life span.o, .v-life.all span { color: var(--accent-ink); border: 1px solid var(--accent-line); background: var(--surface); box-shadow: var(--shadow-sm); }
.v-life span.o { background: var(--accent); border-color: var(--accent); color: #fff; }
.v-life.all span + span::before { background: var(--accent-line); }

/* problem tiles */
.v-silo { flex-wrap: nowrap; gap: 0; }
.v-silo span { display: grid; justify-items: center; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.v-silo span b { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.v-silo i { position: relative; width: 44px; height: 0; border-top: 1px dashed var(--line-2); }
.v-silo i::after { content: '×'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--danger); background: var(--tile); }
.v-silo.two i { width: 56px; }
.v-pile { position: relative; flex-direction: column; flex-wrap: nowrap; gap: 0; }
.v-pile span { padding: 8px 40px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 12px; color: var(--text-3); margin-top: -14px; }
.v-pile span:first-child { margin-top: 0; transform: rotate(-3deg); }
.v-pile span:nth-child(2) { transform: rotate(2deg); }
.v-pile b { position: absolute; right: calc(50% - 82px); top: 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 16px; box-shadow: var(--shadow); }
.v-gap { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.v-gap .bar { display: flex; align-items: center; width: 100%; max-width: 260px; }
.v-gap .bar span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 500; box-shadow: var(--shadow-sm); }
.v-gap .bar i { flex: 1; height: 10px; margin: 0 6px; border-radius: 3px; background: repeating-linear-gradient(-45deg, rgba(220, 38, 38, 0.22) 0 4px, transparent 4px 8px); border: 1px solid rgba(220, 38, 38, 0.25); }
.v-gap small { font-size: 12px; color: var(--danger); }

.nx-flow .flow-row.rt .no { color: var(--accent-ink); }
.nx-punch { margin-top: 32px; text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; }

/* component tabs */
.nx-tabs .tab-list { align-items: center; }
.tab-sep { width: 1px; height: 16px; margin: 0 6px; background: var(--line-2); flex-shrink: 0; }
.tp-copy .card-tag { margin-bottom: 10px; }
.tp-copy .comp-list { margin-top: 0; }
.tp-copy p + .comp-list { margin-top: 16px; }
.ui-finding b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ui-finding code { font-family: var(--mono); font-size: 11.5px; padding: 1px 5px; border-radius: 4px; background: var(--tile); color: var(--accent-ink); }
.ui-trace { position: relative; display: grid; gap: 8px; padding: 16px 16px 14px; }
.ui-trace::before { content: ''; position: absolute; left: 47px; top: 26px; bottom: 26px; width: 1px; background: var(--line-2); }
.ui-trace li { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.ui-trace em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.ui-trace code { font-family: var(--mono); font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-trace span { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.ui-trace li.sink { background: #fef2f2; border-color: rgba(220, 38, 38, 0.2); }
.ui-trace li.sink em, .ui-trace li.sink code { color: var(--danger); }
.ui-rows { padding: 8px; }
.ui-rows li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 72px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: 12.5px; }
.ui-rows li + li { border-top: 1px dashed var(--line); }
.ui-rows li.bad { background: #fef2f2; border-top-color: transparent; }
.ui-rows li.bad + li { border-top-color: transparent; }
.ui-rows b { font-family: var(--mono); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-rows span { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-rows em { font-style: normal; justify-self: end; }
.ui-steps { display: flex; align-items: center; gap: 8px; margin: 4px 16px 14px; font-size: 12px; }
.ui-steps span { padding: 5px 10px; border-radius: 999px; background: var(--tile); color: var(--text-2); white-space: nowrap; }
.ui-steps span.on { background: var(--ink); color: #fff; font-weight: 600; }
.ui-steps i { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.ui-steps i::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--line-2); border-right: 0; }
.ui-ptree { padding: 12px; display: grid; gap: 4px; }
.ui-ptree li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.ui-ptree li.d1 { margin-left: 18px; }
.ui-ptree li.d2 { margin-left: 36px; }
.ui-ptree li.d1, .ui-ptree li.d2 { background: var(--bg-2); border: 1px solid var(--line); }
.ui-ptree code { font-family: var(--mono); font-size: 12px; color: var(--text); white-space: nowrap; }
.ui-ptree span { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-ptree b { font-family: var(--mono); font-size: 11.5px; color: var(--danger); }
.ui-meter span.is-red { background: var(--danger); }
.w-85 { width: 85%; }
.ui-tactics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 12px; }
.ui-tactics li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); min-height: 112px; }
.ui-tactics li + li::before { content: ''; position: absolute; left: -7px; top: 22px; width: 8px; height: 1px; background: var(--line-2); }
.ui-tactics b { font-size: 11px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.ui-tactics .sig { padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sig); }
.sig.web { --sig: #3b82f6; } .sig.ws { --sig: #e11d48; } .sig.edr { --sig: #0891b2; } .sig.rasp { --sig: var(--ok); }
.ui-cover { display: grid; gap: 6px; padding: 16px 16px 8px; }
.ui-cover div { display: grid; grid-template-columns: 100px repeat(3, 1fr); gap: 6px; align-items: center; }
.ui-cover small { font-size: 11.5px; color: var(--text-2); }
.ui-cover i { height: 22px; border-radius: 5px; background: var(--tile); border: 1px solid var(--line); }
.ui-cover i.p { background: var(--ink); border-color: var(--ink); }
.ui-legend { display: flex; gap: 16px; padding: 4px 16px 12px; font-size: 11.5px; color: var(--text-3); }
.ui-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--tile); border: 1px solid var(--line-2); vertical-align: -1px; }
.ui-legend span.p::before { background: var(--ink); border-color: var(--ink); }

/* integration */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lk { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.lk-pair { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.lk-pair i { font-style: normal; color: var(--accent); margin: 0 4px; }
.lk p:not(.lk-pair) { font-size: 14.5px; color: var(--text-2); }
.lk b { margin-top: auto; padding-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--accent-ink); }

/* AI tiles */
.bento.nx-ai { grid-template-columns: repeat(4, 1fr); }
.v-roles { gap: 10px; flex-wrap: nowrap; }
.v-roles div { display: grid; justify-items: center; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.v-roles div.ai { background: var(--surface); color: var(--text); border: 1px dashed var(--line-2); box-shadow: none; }
.v-roles b { font-size: 18px; font-weight: 600; }
.v-roles small { font-size: 11px; opacity: 0.7; white-space: nowrap; }
.v-allow { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.v-allow ul { display: grid; gap: 4px; width: 100%; max-width: 200px; }
.v-allow li { padding: 5px 10px; line-height: 1.5; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.v-allow li.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.v-allow small { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

.nx-story { max-width: 860px; margin: 0 auto; }

@media (max-width: 1080px) {
  .bento.nx-ai { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ic-body { grid-template-columns: 1fr; }
  .nx-evolve { grid-template-columns: 1fr; }
  .v-life span { padding: 6px 9px; font-size: 11.5px; }
  .v-life span + span { margin-left: 8px; }
  .v-life span + span::before { width: 8px; }
}
@media (max-width: 560px) {
  .ic-timeline ol::before, .ic-timeline li::before { display: none; }
  .ic-timeline li { grid-template-columns: 1fr; gap: 2px; padding: 8px 10px; border-left: 2px solid var(--ax); border-radius: 0 8px 8px 0; background: var(--c-panel-2); }
  .ic-timeline time { padding-left: 0; }
  .ic-timeline em { justify-self: start; }
  .bento.nx-ai, .links { grid-template-columns: 1fr; }
  .v-life { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .v-life span + span { margin-left: 0; }
  .v-life span + span::before { display: none; }
  .v-silo span { padding: 10px; }
  .v-silo i { width: 22px; }
  .ui-tactics { grid-template-columns: 1fr 1fr; }
  .ui-tactics li { min-height: 0; }
  .ui-tactics li + li::before { display: none; }
  .ui-cover div { grid-template-columns: 84px repeat(3, 1fr); }
  .tab-sep { display: none; }
}

/* ---------- NextSG RedTeam page ---------- */
.ax-rt { --ax: var(--c-violet); }
.ic-timeline li.ax-rt time { font-size: 10px; color: var(--c-violet); }
.rt-checks { display: grid; gap: 6px; margin-top: 12px; }
.rt-checks span { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--c-panel-2); border: 1px solid var(--c-line); font-size: 11px; color: var(--c-green); }
.rt-checks b { color: var(--c-text-2); font-weight: 500; }
.rt-pass { border-color: rgba(47, 216, 143, 0.35); background: radial-gradient(100% 100% at 50% 0%, rgba(47, 216, 143, 0.10), transparent 70%), var(--c-panel); }
.rt-pass > p:not(.ic-title) { font-size: 12px; line-height: 1.7; color: var(--c-text); margin-bottom: 10px; }
.ic-verdict.ok { color: var(--c-green); background: rgba(47, 216, 143, 0.12); border-color: rgba(47, 216, 143, 0.45); }
.rt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.rt-steps li { position: relative; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.rt-steps li + li::before { content: ''; position: absolute; left: -12px; top: 38px; width: 12px; height: 1px; background: var(--line-2); }
.rt-steps .no { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.rt-steps h3 { font-size: 17px; font-weight: 600; margin: 10px 0 8px; }
.rt-steps p { font-size: 14.5px; color: var(--text-2); }
.rt-steps li.is-final { background: var(--ink); border-color: var(--ink); color: #fff; }
.rt-steps li.is-final p { color: rgba(255, 255, 255, 0.7); }
.rt-steps li.is-final .no { color: var(--accent); }
.rt-layers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.rt-layer { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.rt-layer .h-3 { margin-bottom: 6px; }
.rt-layer > p:not(.card-tag) { font-size: 14.5px; color: var(--text-2); }
.rt-layer .pc-chips { margin-top: 16px; }
.rt-layer-arrow { display: grid; place-items: center; color: var(--text-3); }
.rt-layer-arrow svg { width: 24px; height: 24px; }
.rt-note { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
@media (max-width: 1080px) { .rt-steps { grid-template-columns: repeat(2, 1fr); } .rt-steps li:nth-child(3)::before { display: none; } }
@media (max-width: 860px) { .rt-layers { grid-template-columns: 1fr; } .rt-layer-arrow svg { transform: rotate(90deg); } .rt-problems { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rt-steps { grid-template-columns: 1fr; } .rt-steps li + li::before { display: none; } }
/* ---------- mockup skeleton (윤곽만: 실제 화면 구조·수치 비노출) ---------- */
.console .sk { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); }
.console .sk-tall { height: 16px; background: rgba(255, 255, 255, 0.14); }
.console .sk-pill { width: 34px; height: 16px; border-radius: 999px; flex-shrink: 0; margin-left: auto; background: rgba(255, 255, 255, 0.12); }
.console .sk-center { margin: 8px auto 0; }
.console .sk-pink { background: rgba(251, 79, 122, 0.25); }
.sk-w10 { width: 10%; } .sk-w12 { width: 12%; } .sk-w14 { width: 14%; } .sk-w20 { width: 20%; } .sk-w24 { width: 24%; }
.sk-w30 { width: 30%; } .sk-w40 { width: 40%; } .sk-w45 { width: 45%; } .sk-w50 { width: 50%; } .sk-w55 { width: 55%; }
.sk-w60 { width: 60%; } .sk-w65 { width: 65%; } .sk-w70 { width: 70%; } .sk-w80 { width: 80%; } .sk-w90 { width: 90%; } .sk-w100 { width: 100%; }
.sk-nav { flex: 1; display: flex; align-items: center; gap: 14px; max-width: 420px; }
.sk-nav .sk { height: 7px; }
.cs-nav .cs-live { margin-left: auto; }
.sk-head { display: flex; align-items: center; gap: 14px; flex: 1; }
.sk-head strong { font-size: 18px; font-weight: 700; flex-shrink: 0; }
.sk-console .sk-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.sk-sig { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 12px; border-radius: 9px; background: var(--c-panel-2); border: 1px solid var(--c-line); border-left: 3px solid var(--sig-c); }
.sk-sig.pink { --sig-c: var(--c-pink); } .sk-sig.cyan { --sig-c: var(--c-cyan); } .sk-sig.green { --sig-c: var(--c-green); }
.sk-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--sig-c); box-shadow: 0 0 8px var(--sig-c); animation: blink 1.6s infinite; }
.sk-sig .sk-pill { background: var(--sig-c); opacity: 0.35; }
.sk-chain { margin: 6px 0 10px; }
.sk-lines { display: grid; gap: 8px; margin-top: 10px; }
.cs-verdict .sk { margin-top: 8px; }
.ic-panel .sk-lines { margin-bottom: 12px; }
.sk-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.sk-card { display: grid; gap: 12px; padding: 14px; border-radius: 10px; background: var(--c-panel); border: 1px solid var(--c-line); }
.ic-timeline li time .sk { height: 7px; }
.ic-timeline li div > .sk { margin-top: 7px; height: 7px; }
@media (max-width: 860px) { .sk-nav { display: none; } .sk-bottom { grid-template-columns: 1fr 1fr; } .sk-bottom .sk-card:last-child { display: none; } }
@media (max-width: 560px) { .sk-head .sk { display: none; } .ic-timeline li time .sk { width: 60px; } }

/* table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.table th, .table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; font-weight: 500; color: var(--text-3); background: var(--bg-2); letter-spacing: 0.01em; }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

/* history — product lineage */
.lineage { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lin { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.lin + .lin::before { content: ''; position: absolute; left: -12px; top: 42px; width: 12px; height: 1px; background: var(--line-2); }
.lin .card-tag { margin-bottom: 18px; }
.lin .h-3 { font-size: 19px; letter-spacing: -0.03em; margin-bottom: 8px; white-space: nowrap; }
.lin p:not(.card-tag) { font-size: 14.5px; color: var(--text-2); }
.lin.is-now { background: var(--ink); border-color: var(--ink); color: #fff; }
.lin.is-now .card-tag { color: var(--accent); }
.lin.is-now p:not(.card-tag) { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 1080px) { .lineage { grid-template-columns: repeat(2, 1fr); } .lin:nth-child(odd)::before { display: none; } .lin:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lineage { grid-template-columns: 1fr; } .lin + .lin::before { display: none; } }

/* timeline */.timeline { position: relative; display: grid; gap: 0; }
.tl-year { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.tl-year:last-child { border-bottom: 1px solid var(--line); }
.tl-year h3 { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; position: sticky; top: calc(var(--header-h) + 80px); align-self: start; }
.tl-year h3 small { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); margin-top: 10px; letter-spacing: 0; }
.tl-items { display: grid; gap: 0; }
.tl-items li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.tl-items li:last-child { border-bottom: 0; }
.tl-items li b { font-weight: 600; color: var(--text); }
.tl-items li span { color: var(--text-2); }

/* logo grid — gray tiles */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 140px; padding: 24px 16px; border-radius: var(--radius);
  background: var(--tile);
  transition: background 0.2s, box-shadow 0.2s;
}
.logo-tile:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.logo-tile:hover img { opacity: 0.85; }
.logo-tile span { font-size: 12.5px; color: var(--text-3); }

/* org chart */
.org { display: grid; justify-items: center; gap: 0; }
.org-node {
  padding: 13px 26px; border-radius: var(--radius); text-align: center; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.org-node.ceo { background: var(--ink); border-color: var(--ink); color: #fff; padding: 15px 40px; }
.org-node.audit { color: var(--text-2); font-weight: 500; }
.org-stem { width: 1px; height: 28px; background: var(--line-2); }
.org-mid { position: relative; display: flex; justify-content: center; width: 100%; }
.org-mid .org-node.audit { position: absolute; left: calc(50% + 40px); top: 50%; transform: translateY(-50%); }
.org-mid .org-mid-line { width: 1px; height: 64px; background: var(--line-2); }
.org-mid .org-mid-line::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 1px; background: var(--line-2); }
.org-depts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; padding-top: 28px; }
.org-depts::before { content: ''; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 1px; background: var(--line-2); }
.org-dept { position: relative; display: grid; gap: 10px; align-content: start; }
.org-dept::before { content: ''; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--line-2); }
.org-dept ul { padding: 16px; border-radius: var(--radius); background: var(--bg-2); text-align: center; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-item .card-icon { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }
.contact-item dt { font-size: 13px; font-weight: 500; color: var(--text-3); }
.contact-item dd { font-size: 17px; font-weight: 600; margin-top: 4px; }
.contact-item dd a:hover { color: var(--accent-ink); }
.contact-item dd small { display: block; font-size: 14px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--tile); }
.map-card img { width: 100%; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 40px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand img { width: 92px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--text-2); max-width: 300px; }
.footer-col h2 { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: var(--text-3); font-style: normal; }
.footer-bottom address { font-style: normal; line-height: 1.8; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .frag-layer { display: none; }
}

@media (max-width: 1080px) {
  .cs-nav ul li:nth-child(n+5) { display: none; }
  .cs-bottom { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .prod-main { grid-column: 1 / -1; }
  .gnb, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .hero { padding-bottom: 88px; }
  .hero-inner { gap: 56px; }
  .grid-2, .grid-3, .split, .feature-groups, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .tl-year { grid-template-columns: 1fr; gap: 20px; }
  .tl-year h3 { position: static; }
  .org-depts { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .org-depts::before, .org-dept::before { display: none; }
  .flow-row { grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .flow-row .what { grid-column: 2; }
  .flow-row .who { grid-column: 2; justify-self: start; }
  .sdlc { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .product-card.wide { grid-template-columns: 1fr; }
  .product-card.wide .pc-media { padding: 64px 24px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card.wide .pc-body { padding: 28px; }
  .cs-nav ul { display: none; }
  .cs-flow { grid-template-columns: 1fr; gap: 0; }
  .cs-link { width: 2px; height: 20px; justify-self: center; background: linear-gradient(180deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.8)); }
  .cs-link::after { display: none; }
  .cs-table { display: none; }
  .tab-panel { grid-template-columns: 1fr; gap: 0; }
  .tp-copy { padding: 28px 24px 8px; }
  .tp-visual { padding: 16px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 72px; }
  .card, .product-card .pc-body, .feature-group, .step { padding: 24px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2), .stat:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .stat:last-child { border-bottom: 0; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-items li { grid-template-columns: 1fr; gap: 2px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .org-depts { grid-template-columns: 1fr; }
  .org-mid .org-node.audit { position: static; transform: none; margin-top: 12px; }
  .org-mid { flex-direction: column; align-items: center; }
  .org-mid .org-mid-line { height: 28px; }
  .org-mid .org-mid-line::after { display: none; }
  .principles { grid-template-columns: 1fr; }
  .sdlc-list li { grid-template-columns: 1fr; gap: 2px; }
  .story li { grid-template-columns: 1fr; gap: 6px; }
  .hero-actions .btn, .cta-band .btns .btn { flex: 1 1 auto; }
  .cta-band { padding: 40px 24px; }
  .cs-page { padding: 14px; }
  .cs-head span { display: none; }
  .cs-sub { display: none; }
  .cs-clock { font-size: 15px; }
  .cs-kpis b { font-size: 18px; }
  .mock-note { margin-top: -40px; }
  .tab-list { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tab-list [role="tab"] { padding: 12px; white-space: nowrap; }
  .bento { grid-template-columns: 1fr; }
  .tile.t-wide { grid-column: auto; }
  .v-collapse span { width: 34px; height: 44px; margin-left: -18px; }
  .service-row { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ==========================================================================
   Utilities — inline style 대신 사용 (CSP style-src 'self' 유지)
   맨 끝에 두어 컴포넌트 규칙을 덮어쓴다
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }
.mb-64 { margin-bottom: 64px; }
.pt-0 { padding-top: 0; }
.fs-15 { font-size: 15px; }
.ta-center { text-align: center; }
.text-strong { color: var(--text); }
.title-sub { font-size: 16px; font-weight: 500; }
.stack-16 { display: grid; gap: 16px; }
.split.split-tight { gap: 40px; align-items: start; }
.figure-narrow { max-width: 960px; margin: 0 auto; }
.w-75 { width: 75%; }
