/* Tessera CS — Landing
   Dark warm enterprise SaaS aesthetic.
   Tokens reference --tone-* so dark/light tweak just swaps a theme attribute.
*/

@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --bg: #0b0b0c;
  --bg-1: #131314;
  --bg-2: #1a1a1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f5f4f0;
  --fg-1: rgba(245, 244, 240, 0.72);
  --fg-2: rgba(245, 244, 240, 0.46);
  --fg-3: rgba(245, 244, 240, 0.28);
  --accent: #FF5C28;
  --accent-soft: rgba(255, 92, 40, 0.16);
  --accent-line: rgba(255, 92, 40, 0.32);
  --green: #4ade80;
  --amber: #f5a524;
  --red: #f43f5e;
  --blue: #60a5fa;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
}

[data-theme="light"] {
  --bg: #fbfaf7;
  --bg-1: #ffffff;
  --bg-2: #f4f2ed;
  --line: rgba(15, 15, 17, 0.08);
  --line-2: rgba(15, 15, 17, 0.14);
  --fg: #0f0f11;
  --fg-1: rgba(15, 15, 17, 0.72);
  --fg-2: rgba(15, 15, 17, 0.5);
  --fg-3: rgba(15, 15, 17, 0.32);
  --accent: #E64A14;
  --accent-soft: rgba(230, 74, 20, 0.1);
  --accent-line: rgba(230, 74, 20, 0.28);
  --shadow-1: 0 1px 0 rgba(15, 15, 17, 0.04) inset, 0 24px 60px -20px rgba(15, 15, 17, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  transition: background 240ms ease, color 240ms ease;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ───────────────────────────────────────────── layout primitives */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 140px 0;
  position: relative;
}

.section--tight { padding: 96px 0; }
.section--hero { padding: 120px 0 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 72px;
}

.section-head h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 20px 0 20px;
  text-wrap: balance;
}

.section-head p {
  font-size: 18px;
  color: var(--fg-1);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
  max-width: 600px;
}

/* ───────────────────────────────────────────── nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #0b0b0c;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 1px rgba(255, 92, 40, 0.35), 0 6px 20px -6px rgba(255, 92, 40, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--fg-1);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 160ms, background 160ms;
}

.nav-links a:hover { color: var(--fg); background: var(--bg-1); }

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

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ───────────────────────────────────────────── buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 160ms ease;
  white-space: nowrap;
}

.btn--ghost {
  color: var(--fg-1);
  border-color: var(--line);
  background: transparent;
}
.btn--ghost:hover { color: var(--fg); border-color: var(--line-2); background: var(--bg-1); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }

.btn--accent {
  background: var(--accent);
  color: #0b0b0c;
  border-color: var(--accent);
  box-shadow: 0 6px 20px -8px rgba(255, 92, 40, 0.6), 0 0 0 1px rgba(255, 92, 40, 0.4);
}
.btn--accent:hover { filter: brightness(1.05); transform: translateY(-1px); }

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

.btn .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ───────────────────────────────────────────── card chrome (used everywhere) */

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.divider { height: 1px; background: var(--line); width: 100%; }
.vdivider { width: 1px; background: var(--line); align-self: stretch; }

/* tiny chrome reused inside mock product UIs */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--fg-1);
  background: var(--bg);
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--fg-2); }
.chip--urgent { color: var(--red); border-color: rgba(244, 63, 94, 0.32); background: rgba(244, 63, 94, 0.08); }
.chip--urgent .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18); }
.chip--warn { color: var(--amber); border-color: rgba(245, 165, 36, 0.32); background: rgba(245, 165, 36, 0.08); }
.chip--warn .dot { background: var(--amber); }
.chip--ok { color: var(--green); border-color: rgba(74, 222, 128, 0.32); background: rgba(74, 222, 128, 0.08); }
.chip--ok .dot { background: var(--green); }
.chip--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip--accent .dot { background: var(--accent); }
.chip--live .dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: livePulse 1600ms ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 6px rgba(255, 92, 40, 0.05); }
}

/* faint grid background used in hero + section accents */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
  background: radial-gradient(closest-side, var(--accent), transparent);
}

/* utility */
.muted { color: var(--fg-2); }
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-feature-settings: normal; }
.flex { display: flex; }
.aic { align-items: center; }
.jcb { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* fade-up reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* keyboard kbd */
kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--fg-1);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 100px 0 0;
  overflow: hidden;
}

.hero .grid-bg { top: -40px; }

.hero-glow-1 { width: 700px; height: 700px; left: 50%; top: -300px; transform: translateX(-50%); opacity: 0.42; }

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 28px 0 24px;
  text-wrap: balance;
}

.hero h1 .accent {
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg) 60%, var(--accent) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 4px;
}

.hero .lede {
  font-size: 19px;
  color: var(--fg-1);
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto;
  text-wrap: pretty;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg-2);
}

.hero-meta b { color: var(--fg-1); font-weight: 500; }

.hero-stage {
  position: relative;
  margin: 80px auto 0;
  max-width: 1180px;
  padding: 0 32px;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--bg) 85%);
  pointer-events: none;
  z-index: 4;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT MOCK (used in hero + screen carousel)
═══════════════════════════════════════════════════════════════════ */

.mock {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 60px 140px -40px rgba(0, 0, 0, 0.8),
    0 20px 60px -20px rgba(255, 92, 40, 0.18);
  overflow: hidden;
  transform-origin: center top;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-2);
}
.mock-bar .lights { display: flex; gap: 6px; margin-right: 8px; }
.mock-bar .lights span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-bar .url {
  flex: 1;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

/* dashboard layout inside mock */
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 640px;
}
.dash--compact { height: 520px; }

.dash-side {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-side-head {
  padding: 6px 10px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-side-head .org { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.dash-side-head .sub { font-size: 11px; color: var(--fg-2); }

.dash-side-section { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); padding: 12px 10px 6px; }
.dash-side-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fg-1);
  cursor: default;
}
.dash-side-item .l { display: flex; align-items: center; gap: 8px; }
.dash-side-item .ico { width: 14px; height: 14px; opacity: 0.7; }
.dash-side-item .count { font-size: 10px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dash-side-item.is-active { background: var(--accent-soft); color: var(--fg); }
.dash-side-item.is-active .count { color: var(--accent); }

.dash-main { display: flex; flex-direction: column; min-width: 0; }

.dash-top {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dash-top .crumbs { color: var(--fg-2); }
.dash-top .crumbs b { color: var(--fg); font-weight: 500; }
.dash-top .cmdk {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; min-width: 280px;
  color: var(--fg-3); font-size: 11px;
}
.dash-top .cmdk kbd { margin-left: auto; }

.dash-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  flex: 1;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kpi .label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.kpi .value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 11px; color: var(--green); }
.kpi .delta--down { color: var(--red); }
.kpi--accent .value { color: var(--accent); }

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.panel-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}
.panel-head .tabs { display: flex; gap: 2px; }
.panel-head .tab {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 140ms;
  display: inline-flex; align-items: center; gap: 6px;
}
.panel-head .tab .n {
  font-size: 10px;
  background: var(--bg-2); padding: 0 6px; border-radius: 999px;
}
.panel-head .tab.is-active { background: var(--bg-2); color: var(--fg); }
.panel-head .tab.is-active .n { background: var(--accent-soft); color: var(--accent); }

.panel-body { flex: 1; overflow: hidden; }

.ticket-row {
  display: grid;
  grid-template-columns: 14px 100px 1fr 110px 80px 60px;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.ticket-row:last-child { border-bottom: 0; }
.ticket-row .pri { width: 8px; height: 8px; border-radius: 999px; }
.ticket-row .pri--urgent { background: var(--red); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16); }
.ticket-row .pri--high { background: var(--amber); }
.ticket-row .pri--normal { background: var(--fg-3); }
.ticket-row .id { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--fg-3); }
.ticket-row .title { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-row .title small { color: var(--fg-2); margin-left: 6px; font-size: 11px; }
.ticket-row .cust { color: var(--fg-1); font-size: 11px; display: flex; align-items: center; gap: 4px; }
.ticket-row .vip { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ticket-row .sla { display: flex; align-items: center; gap: 6px; }
.ticket-row .bar { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ticket-row .bar > i { display: block; height: 100%; background: var(--green); }
.ticket-row .bar > i.warn { background: var(--amber); }
.ticket-row .bar > i.danger { background: var(--red); }
.ticket-row .ago { font-size: 11px; color: var(--fg-2); text-align: right; font-variant-numeric: tabular-nums; }

/* right widgets in dashboard mock */
.widget {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.widget h4 { margin: 0; font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.widget h4 .more { font-size: 10px; color: var(--fg-3); }

.dash-right { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut { width: 84px; height: 84px; flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: 11px; flex: 1; }
.donut-legend .item { display: flex; justify-content: space-between; align-items: center; }
.donut-legend .lab { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-1); }
.donut-legend .sw { width: 8px; height: 8px; border-radius: 2px; }
.donut-legend .val { font-variant-numeric: tabular-nums; color: var(--fg-2); }

.kw-list { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.kw-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.kw-row:last-child { border-bottom: 0; }
.kw-row .k { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.kw-row .rank { width: 16px; color: var(--fg-3); font-variant-numeric: tabular-nums; font-size: 10px; }
.kw-row .delta { color: var(--red); font-variant-numeric: tabular-nums; font-size: 10px; }
.kw-row .delta.hot::before { content: "🔥"; margin-right: 2px; }

/* hour bar chart */
.hours { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding: 8px 0; }
.hours .bar {
  flex: 1; background: linear-gradient(180deg, var(--fg-3), var(--fg-3));
  border-radius: 2px 2px 0 0; min-height: 4px; position: relative;
}
.hours .bar > i {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--accent); border-radius: 2px 2px 0 0;
}

/* floating cards over hero mock */
.float {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  padding: 14px;
  font-size: 12px;
  z-index: 3;
  backdrop-filter: blur(12px);
  animation: floatY 6s ease-in-out infinite;
}
.float--1 { top: 12%; left: -32px; width: 240px; animation-delay: -1s; }
.float--2 { top: 38%; right: -40px; width: 260px; animation-delay: -3s; }
.float--3 { bottom: 18%; left: 6%; width: 220px; animation-delay: -2s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float h5 { margin: 0 0 8px; font-size: 11px; font-weight: 500; color: var(--fg-2); display: flex; justify-content: space-between; align-items: center; }
.float .big { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.float .meta { color: var(--fg-2); font-size: 11px; margin-top: 4px; }

@media (max-width: 1100px) {
  .float { display: none; }
}

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; height: auto; }
  .dash-side { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   VALUES (4 cards under hero)
═══════════════════════════════════════════════════════════════════ */

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-card {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.value-card .glyph {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
}
.value-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.value-card p { color: var(--fg-1); font-size: 14px; line-height: 1.55; margin: 0; }
.value-card .tag { font-size: 11px; color: var(--fg-3); font-family: "JetBrains Mono", monospace; }

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

/* ═══════════════════════════════════════════════════════════════════
   SCREEN CAROUSEL
═══════════════════════════════════════════════════════════════════ */

.screens {
  position: relative;
}
.screens-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  box-shadow: 0 60px 140px -50px rgba(0,0,0,0.8);
}
.screens-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
}
.screens-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  transition: opacity 360ms ease, transform 360ms ease;
}
.screens-slide.is-active { opacity: 1; transform: none; }

.screens-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.screens-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-1);
  background: var(--bg-1);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 160ms ease;
}
.screens-tab:hover { color: var(--fg); border-color: var(--line-2); }
.screens-tab.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.screens-tab .num { font-family: "JetBrains Mono", monospace; font-size: 11px; opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════════════
   LIVE QUEUE SECTION (interactive demo)
═══════════════════════════════════════════════════════════════════ */

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.demo-grid.reverse { grid-template-columns: 1fr 1fr; }
.demo-copy h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 16px 0 16px;
}
.demo-copy p { font-size: 17px; color: var(--fg-1); line-height: 1.6; margin: 0 0 24px; }
.demo-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.demo-copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-1); }
.demo-copy li .check {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 12px;
  margin-top: 1px;
}
.demo-copy li b { color: var(--fg); font-weight: 500; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* live queue specific */
.queue-card {
  border-radius: 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.queue-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.queue-head .l { display: flex; align-items: center; gap: 10px; }
.queue-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.queue-tab {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--fg-2);
  display: inline-flex; gap: 8px; align-items: center;
  transition: all 140ms;
}
.queue-tab .n { font-size: 11px; background: var(--bg-2); padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.queue-tab.is-active { background: var(--bg-2); color: var(--fg); }
.queue-tab.is-active .n { background: var(--accent-soft); color: var(--accent); }

.queue-list { display: flex; flex-direction: column; max-height: 480px; }
.queue-item {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  transition: background 140ms;
}
.queue-item:last-child { border-bottom: 0; }
.queue-item:hover { background: var(--bg); }
.queue-item .pri-dot { width: 8px; height: 8px; border-radius: 999px; margin-top: 6px; }
.queue-item .pri-dot.urgent { background: var(--red); box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14); }
.queue-item .pri-dot.high { background: var(--amber); }
.queue-item .body .t { font-size: 13px; font-weight: 500; line-height: 1.45; margin: 0 0 4px; }
.queue-item .body .meta { font-size: 11px; color: var(--fg-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.queue-item .body .meta .id { font-family: "JetBrains Mono", monospace; }
.queue-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11px; }
.queue-item .right .ago { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.queue-item .right .sla {
  display: flex; align-items: center; gap: 6px; font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.queue-item .right .sla .bar { width: 60px; height: 3px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.queue-item .right .sla .bar > i { display: block; height: 100%; background: var(--green); }
.queue-item .right .sla .bar > i.warn { background: var(--amber); }
.queue-item .right .sla .bar > i.danger { background: var(--red); }

/* incoming animation */
@keyframes slideInRow {
  from { opacity: 0; transform: translateY(-8px); background: var(--accent-soft); }
  to { opacity: 1; transform: none; background: transparent; }
}
.queue-item.is-new { animation: slideInRow 480ms ease forwards; }

/* ═══════════════════════════════════════════════════════════════════
   AUTOMATION BUILDER MINI
═══════════════════════════════════════════════════════════════════ */

.automation {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(255, 92, 40, 0.06), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 420px;
}
.automation .grid-bg { opacity: 0.4; }

.flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  z-index: 2;
}

.flow-col h6 {
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

.flow-col .cards { display: flex; flex-direction: column; gap: 10px; }

.node {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 200ms ease;
  cursor: pointer;
}
.node:hover { border-color: var(--line-2); transform: translateY(-1px); }
.node .head { display: flex; justify-content: space-between; align-items: center; }
.node .kind { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.node .ico { width: 14px; height: 14px; }
.node .title { font-weight: 500; color: var(--fg); }
.node .meta { font-size: 11px; color: var(--fg-2); }

.node--trigger .kind { color: var(--green); }
.node--trigger.is-on { border-color: rgba(74, 222, 128, 0.4); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1); }
.node--cond .kind { color: var(--amber); }
.node--cond.is-on { border-color: rgba(245, 165, 36, 0.4); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.1); }
.node--action .kind { color: var(--blue); }
.node--action.is-on { border-color: rgba(96, 165, 250, 0.4); box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1); }

.flow-svg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flow-svg path { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.flow-svg path.is-on {
  stroke: var(--accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 92, 40, 0.5));
}

.flow-pulse {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 800px) {
  .flow { grid-template-columns: 1fr; }
  .flow-svg { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat .v {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .v .unit { color: var(--fg-3); font-size: 0.4em; margin-left: 4px; vertical-align: 0.6em; }
.stat .l { font-size: 13px; color: var(--fg-2); }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 24px; }
  .stat:last-child { border-bottom: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA + footer
═══════════════════════════════════════════════════════════════════ */

.cta-section {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}
.cta-section .glow { width: 600px; height: 600px; left: 50%; top: 30%; transform: translateX(-50%); opacity: 0.32; }
.cta-section h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.cta-section p { font-size: 18px; color: var(--fg-1); margin: 0 auto 36px; max-width: 540px; }

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--fg-2);
}
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   MODAL (demo request)
═══════════════════════════════════════════════════════════════════ */

.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  animation: modalFade 200ms ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 480px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 60px 140px -30px rgba(0,0,0,0.7);
  animation: modalSlide 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
@keyframes modalSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.modal h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 8px; }
.modal p { color: var(--fg-1); font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
.modal .x {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; color: var(--fg-2);
  transition: all 140ms;
}
.modal .x:hover { background: var(--bg-2); color: var(--fg); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--fg-2); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  transition: border 140ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.modal-success {
  text-align: center; padding: 12px 0 4px;
}
.modal-success .ico {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 16px;
  font-size: 24px;
  animation: pop 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════
   TOAST (Socket.IO sim)
═══════════════════════════════════════════════════════════════════ */

.toasts {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  width: 320px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6);
  animation: toastIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.is-out { animation: toastOut 280ms ease forwards; }
.toast .ico {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; flex-shrink: 0;
}
.toast .ico.urgent { background: rgba(244, 63, 94, 0.14); color: var(--red); }
.toast .ico.warn { background: rgba(245, 165, 36, 0.14); color: var(--amber); }
.toast .ico.info { background: rgba(96, 165, 250, 0.14); color: var(--blue); }
.toast .ico.ok { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.toast .body .t { font-size: 13px; font-weight: 500; line-height: 1.4; }
.toast .body .s { font-size: 11px; color: var(--fg-2); margin-top: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ═══════════════════════════════════════════════════════════════════
   SECURITY GRID
═══════════════════════════════════════════════════════════════════ */

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

@media (max-width: 1024px) {
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .security-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — section spacing, hero, nav, toast, carousel
═══════════════════════════════════════════════════════════════════ */

/* ── Tablet & below (≤ 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }
  .section--tight { padding: 72px 0; }
  .section-head { margin-bottom: 56px; }
  .cta-section { padding: 110px 0; }

  .hero-stage { margin-top: 60px; padding: 0 20px; }
  .demo-grid { gap: 40px; }
}

/* ── Small tablet (≤ 800px) ────────────────────────────────────── */
@media (max-width: 800px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .cta-section { padding: 90px 0; }

  .hero { padding-top: 60px; }
  .hero-stage { margin-top: 48px; padding: 0 12px; }

  .nav-inner { height: 56px; }
  .nav-cta .btn--ghost { display: none; } /* keep accent CTA only */

  /* Toast — fit within viewport, full width with side margins */
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { width: auto; }

  /* Hero CTA buttons — equal width, easier tap targets */
  .hero-cta { width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; }
  .hero-cta .btn { flex: 1; }
}

/* ── Mobile (≤ 600px) ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .cta-section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { margin: 14px 0 14px; }
  .section-head p { font-size: 16px; }

  .hero { padding-top: 48px; }
  .hero h1 { margin: 20px 0 18px; }
  .hero .lede { font-size: 16px; }
  .hero-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 12px;
  }

  .demo-copy h2 { margin: 12px 0 12px; }
  .demo-copy p { font-size: 15px; margin-bottom: 18px; }
  .demo-copy ul { gap: 10px; margin-top: 18px; }
  .demo-copy li { font-size: 13px; }

  /* Carousel — give the mock more vertical room than 16:10 allows */
  .screens-stage { aspect-ratio: 4 / 5; }
  .screens-tabs { gap: 4px; margin-top: 16px; }
  .screens-tab { padding: 6px 10px; font-size: 12px; }

  /* Footer — stack rows */
  footer .row { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Modal padding tighter */
  .modal { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ── Hide .flex.aic.jcb on mobile (≤ 768px) ────────────────────── */
@media (max-width: 768px) {
  .flex.aic.jcb { display: none !important; }
  .dash-top .crumbs { display: none; }
}

/* ── Tiny (≤ 420px) ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav-cta .btn--accent { padding: 8px 12px; font-size: 13px; }
  .nav .brand span:nth-of-type(2) { font-size: 14px; }
  .nav .brand span:last-child { display: none; } /* hide "· 운영본부" in nav only */

  .hero-stage { padding: 0 8px; }

  /* Stats tighter on tiny */
  .stat { padding: 28px 16px; }
}

