@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-pure: #ffffff;
  --bg-subtle: #eceef3;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --ink-4: #aeaeb2;
  --hair: rgba(18, 22, 32, 0.075);
  --hair-strong: rgba(18, 22, 32, 0.14);

  --glass-nav: rgba(248, 249, 252, 0.76);
  --glass-card: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.76) 100%);
  --glass-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.89) 100%);
  --glass-dark: linear-gradient(165deg, #2c2c31 0%, #161619 100%);

  --shadow-sm: 0 0 0 1px rgba(18, 22, 32, 0.055), 0 6px 20px rgba(18, 22, 32, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-md: 0 0 0 1px rgba(18, 22, 32, 0.065), 0 18px 46px rgba(18, 22, 32, 0.075), 0 4px 12px rgba(18, 22, 32, 0.03), inset 0 1px 0 #ffffff;
  --shadow-stage: 0 0 0 1px rgba(18, 22, 32, 0.08), 0 32px 80px rgba(15, 18, 28, 0.11), 0 8px 24px rgba(15, 18, 28, 0.045), inset 0 1px 0 #ffffff;
  --shadow-btn: 0 0 0 1px rgba(0, 0, 0, 0.65), 0 10px 26px rgba(18, 22, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);

  --warn-ink: #b83b2b;
  --warn-bg: rgba(184, 59, 43, 0.075);
  --warn-border: rgba(184, 59, 43, 0.28);

  --ok-ink: #1d1d1f;
  --ok-bg: rgba(29, 29, 31, 0.065);

  --radius-2xl: 32px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Nunito Sans", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 760px at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0) 80%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  word-break: keep-all;
  overflow-x: hidden;
}

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

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

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.stage-container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================================
   STICKY APPLE FROSTED GLASS NAV
   ========================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--glass-nav);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(18, 22, 32, 0.065);
  transition: background 0.3s ease;
}

.nav-inner {
  width: min(1160px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.038em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: var(--glass-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(18, 22, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

/* =========================================
   SURFACE MODULE: HERO + LIVE STAGE (TARGET A: HWP)
   ========================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - 52px);
  padding: clamp(68px, 7.2vh, 98px) 0 clamp(112px, 11.5vh, 152px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.038em;
  color: var(--ink);
}

.hero-sub {
  margin: 18px auto 0;
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 430;
  line-height: 1.55;
  letter-spacing: -0.016em;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--glass-dark);
  color: #ffffff;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.015em;
  box-shadow: var(--shadow-btn);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 16px 34px rgba(18, 22, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 22, 32, 0.1);
  box-shadow: 0 4px 14px rgba(18, 22, 32, 0.04), inset 0 1px 0 #ffffff;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.hero-os-note {
  margin-top: 13px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.008em;
}

.hero-os-note button {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   LIVE INTERACTIVE REALIEUM DESKTOP STAGE
   ========================================= */
.stage-wrap {
  position: relative;
  z-index: 2;
  margin-top: 48px;
}

.scenario-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.lvl-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.07);
  color: var(--ink-2);
  margin-right: 4px;
}

.scenario-tab.active .lvl-pill {
  background: var(--ink);
  color: #ffffff;
}

.scenario-tab {
  position: relative;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 22, 32, 0.075);
  font-size: 14px;
  font-weight: 580;
  letter-spacing: -0.014em;
  color: var(--ink-2);
  transition: all 0.25s var(--ease-out);
  overflow: hidden;
}

.scenario-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.scenario-tab.active {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(18, 22, 32, 0.14);
  box-shadow: 0 4px 16px rgba(18, 22, 32, 0.065), inset 0 1px 0 #ffffff;
  font-weight: 650;
}

.scenario-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  opacity: 0;
}

.scenario-tab.active .scenario-progress {
  opacity: 0.85;
}

/* Authentic 3-Pane realieum App Window */
.app-window {
  background: rgba(250, 251, 253, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 24px;
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  display: grid;
  grid-template-columns: 196px 0.94fr 1.32fr;
  min-height: 584px;
}

/* Pane 1: Companion Sidebar */
.app-sidebar {
  background: linear-gradient(180deg, rgba(232, 234, 240, 0.78) 0%, rgba(225, 228, 235, 0.68) 100%);
  border-right: 1px solid var(--hair);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.mac-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px 18px;
}

.mac-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.16);
}

.mac-dots i:nth-child(1) { background: #ff5f57; }
.mac-dots i:nth-child(2) { background: #febc2e; }
.mac-dots i:nth-child(3) { background: #28c840; }

.sidebar-brand {
  padding: 0 8px 18px;
  font-size: 16.5px;
  font-weight: 720;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sidebar-group-label {
  padding: 8px 8px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.sidebar-item {
  width: 100%;
  text-align: left;
  padding: 11px 11px;
  border-radius: 11px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.2s ease;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.45);
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(18, 22, 32, 0.05);
}

.sidebar-item b {
  font-size: 12.5px;
  font-weight: 640;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sidebar-item span {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-foot {
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid rgba(18, 22, 32, 0.06);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-2);
}

.local-shield-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d1d1f;
  flex-shrink: 0;
}

/* Pane 2: Center Conversation */
.app-chat {
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  padding: 20px 26px 22px;
}

.app-pane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-2);
}

.app-pane-top b {
  font-weight: 650;
  color: var(--ink);
}

.perm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.055);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--ink-2);
}

.chat-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
  padding: 18px 0;
}

.memory-context-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(240, 242, 247, 0.9);
  border: 1px solid rgba(18, 22, 32, 0.07);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.45s var(--ease-out);
}

.memory-context-chip.show {
  opacity: 1;
  transform: translateY(0);
}

.memory-context-chip code {
  font-family: var(--mono);
  font-weight: 650;
  color: var(--ink);
}

.msg-user {
  align-self: flex-end;
  max-width: 90%;
  padding: 12px 17px;
  border-radius: 17px 17px 4px 17px;
  background: var(--glass-dark);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 520;
  line-height: 1.48;
  letter-spacing: -0.012em;
  box-shadow: 0 6px 18px rgba(18, 22, 32, 0.14);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s var(--ease-out);
}

.msg-user.show {
  opacity: 1;
  transform: translateY(0);
}

.action-trace {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 11px;
  background: rgba(244, 245, 249, 0.95);
  border: 1px solid rgba(18, 22, 32, 0.09);
  font-size: 12.5px;
  font-weight: 580;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease-out);
}

.action-trace.show {
  opacity: 1;
  transform: translateY(0);
}

.trace-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulseDot 1.1s ease-in-out infinite;
}

.action-trace.done .trace-pulse {
  animation: none;
  background: #1d1d1f;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.msg-agent {
  align-self: flex-start;
  max-width: 92%;
  padding: 13px 17px;
  border-radius: 17px 17px 17px 4px;
  background: #ffffff;
  border: 1px solid rgba(18, 22, 32, 0.085);
  box-shadow: 0 4px 16px rgba(18, 22, 32, 0.045);
  font-size: 14.5px;
  font-weight: 470;
  line-height: 1.52;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s var(--ease-out);
}

.msg-agent.show {
  opacity: 1;
  transform: translateY(0);
}

.app-input-bar {
  margin-top: auto;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(243, 244, 248, 0.85);
  border: 1px solid rgba(18, 22, 32, 0.075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

.input-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.tool-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 22, 32, 0.07);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

/* Pane 3: Right Workspace (Live HWP & Multi-Doc Canvas) */
.app-workspace {
  background: #f1f3f7;
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ws-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  font-size: 13px;
}

.ws-file-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--ink);
}

.hwp-badge {
  padding: 2px 7px;
  border-radius: 5px;
  background: #1d1d1f;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ws-status-pill {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: all 0.5s var(--ease-out);
}

.ws-status-pill.pain {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-border);
}

.ws-status-pill.fixed {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

/* Live Paper Canvas inside Workspace */
.ws-stage-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.ws-scene.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hwp-paper {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(18, 22, 32, 0.09);
  box-shadow: 0 8px 26px rgba(18, 22, 32, 0.055);
  padding: 24px 28px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.doc-meta-grid > div {
  padding: 7px 11px;
  border-radius: 7px;
  background: #f6f7fa;
  border: 1px solid rgba(18, 22, 32, 0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-meta-grid span {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 600;
}

.doc-meta-grid b {
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 650;
}

/* Optical Agent Scan Sweep */
.agent-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 64px;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0) 0%, rgba(29, 29, 31, 0.055) 50%, rgba(29, 29, 31, 0) 100%);
  border-bottom: 1.5px solid rgba(29, 29, 31, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.ws-scene.working .agent-scan-beam {
  animation: sweepDown 1.35s var(--ease-out) forwards;
}

@keyframes sweepDown {
  0% { top: -15%; opacity: 0; }
  20% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

.doc-title-box {
  border: 1.5px solid #1d1d1f;
  padding: 8px 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  background: #fafbfd;
}

.doc-sec-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

/* Bullet lines that transform from crooked to aligned */
.doc-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  transition: all 0.65s var(--ease-out);
}

.doc-bullet-line {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.45;
  transition: all 0.65s var(--ease-out);
}

/* Pain state: crooked indentation & awkward letter spacing */
.ws-scene.pain-state .doc-bullet-line.crooked-1 {
  padding-left: 0;
  letter-spacing: 0.07em;
  color: #55555a;
}
.ws-scene.pain-state .doc-bullet-line.crooked-2 {
  padding-left: 22px;
  margin-top: 3px;
  color: var(--warn-ink);
  background: rgba(184, 59, 43, 0.05);
  border-radius: 4px;
}

.ws-scene.fixed-state .doc-bullet-line {
  padding-left: 12px;
  text-indent: -12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: transparent;
}

/* HWP Table that transforms from spilling across Page 3 break to crisp fit */
.hwp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  transition: all 0.7s var(--ease-out);
}

.hwp-table th,
.hwp-table td {
  border: 1px solid rgba(29, 29, 31, 0.28);
  text-align: left;
  transition: padding 0.65s var(--ease-out), background 0.5s ease, color 0.5s ease;
}

.hwp-table th {
  background: #f3f4f8;
  font-weight: 660;
  color: var(--ink);
}

.hwp-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 11px;
}

/* Pain state: bloated cells pushing rows past the page break! */
.ws-scene.pain-state .hwp-table th,
.ws-scene.pain-state .hwp-table td {
  padding: 11px 11px;
}

.ws-scene.pain-state .hwp-table tr.spill-row td {
  background: rgba(184, 59, 43, 0.06);
  color: var(--warn-ink);
}

/* Fixed state: crisp, balanced HWP cell padding fitting cleanly above page 3 */
.ws-scene.fixed-state .hwp-table th,
.ws-scene.fixed-state .hwp-table td {
  padding: 7.5px 11px;
}

.ws-scene.fixed-state .hwp-table tr.total-row td {
  background: #f6f7fa;
  font-weight: 680;
  color: var(--ink);
}

.page-break-line {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1.5px dashed var(--warn-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--warn-ink);
  transition: all 0.55s var(--ease-out);
}

.ws-scene.pain-state .page-break-line {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 58px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 8px;
}

.ws-scene.fixed-state .page-break-line {
  position: relative;
  border-top-style: solid;
  border-top-color: rgba(29, 29, 31, 0.12);
  color: var(--ink-3);
}

/* Scene 2 & Scene 3: Multi-Window Agent & Multi-Doc Sync Stage */
.multi-ws-grid {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.mini-win {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(18, 22, 32, 0.085);
  box-shadow: 0 6px 20px rgba(18, 22, 32, 0.04);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.55s var(--ease-out);
}

.mini-win.full-span {
  grid-column: 1 / -1;
}

.mini-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hair);
}

.mini-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(29, 29, 31, 0.07);
  color: var(--ink);
}

.mini-tag.dark {
  background: var(--ink);
  color: #ffffff;
}

.mini-url {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-win-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.web-scan-row,
.folder-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #f7f8fb;
  transition: all 0.5s var(--ease-out);
}

.web-scan-row span {
  color: var(--ink-3);
  font-size: 11px;
}

.web-scan-row b {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
}

.folder-file-row span {
  font-size: 11px;
  font-weight: 560;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.extract-pill {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 999px;
  transition: all 0.5s var(--ease-out);
  flex-shrink: 0;
}

.ws-scene.pain-state .extract-pill {
  background: rgba(18, 22, 32, 0.05);
  color: var(--ink-4);
  opacity: 0.45;
}

.ws-scene.fixed-state .extract-pill {
  background: var(--ink);
  color: #ffffff;
  opacity: 1;
}

.synth-rows {
  gap: 7px;
  justify-content: center;
  flex: 1;
}

.synth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid rgba(18, 22, 32, 0.055);
  transition: all 0.55s var(--ease-out);
}

.ws-scene.fixed-state .synth-row {
  background: #ffffff;
  border-color: rgba(29, 29, 31, 0.14);
}

.s-label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-2);
  flex-shrink: 0;
}

.s-val {
  font-size: 11.5px;
  text-align: right;
  transition: all 0.45s var(--ease-out);
}

.ws-scene.pain-state .pending-slot::after {
  content: attr(data-before);
  color: var(--warn-ink);
  font-weight: 560;
}

.ws-scene.fixed-state .pending-slot::after {
  content: attr(data-after);
  color: var(--ink);
  font-weight: 660;
}

/* Scene 3: 3-Week Decision Map (A.19) -> HWPX + XLSX + PPTX Synchronization */
.sync-stage-grid {
  grid-template-rows: auto 1fr;
}

.decision-history-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.15fr;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.dec-node {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7fa;
  border: 1px solid rgba(18, 22, 32, 0.07);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.55s var(--ease-out);
}

.dec-node.past {
  opacity: 0.72;
}

.dec-addr {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  color: var(--ink-3);
}

.dec-node b {
  font-size: 11.5px;
  font-weight: 660;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.dec-arr {
  font-size: 13px;
  color: var(--ink-3);
}

.ws-scene.fixed-state .dec-node.latest {
  background: var(--glass-dark);
  border-color: #161619;
  box-shadow: 0 6px 18px rgba(18, 22, 32, 0.14);
}

.ws-scene.fixed-state .dec-node.latest .dec-addr {
  color: rgba(255, 255, 255, 0.72);
}

.ws-scene.fixed-state .dec-node.latest b {
  color: #ffffff;
}

.sync-doc-card {
  justify-content: flex-start;
}

.sync-doc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
}

.sync-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f7f8fb;
  border: 1px solid rgba(18, 22, 32, 0.06);
  transition: all 0.55s var(--ease-out);
}

.ws-scene.fixed-state .sync-line {
  background: #ffffff;
  border-color: rgba(29, 29, 31, 0.14);
}

.sync-line span {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

.sync-val {
  font-size: 12.5px;
  letter-spacing: -0.015em;
}

.ws-scene.pain-state .sync-val::after {
  content: attr(data-before);
  color: var(--warn-ink);
  font-weight: 600;
}

.ws-scene.fixed-state .sync-val::after {
  content: attr(data-after);
  color: var(--ink);
  font-weight: 680;
}

/* =========================================
   SHARED SECTIONS: EDITORIAL APPLE SPACING
   ========================================= */
.section {
  padding: 120px 0;
  position: relative;
}

.section-divider {
  border-top: 1px solid rgba(18, 22, 32, 0.065);
}

.sec-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.sec-kicker {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.sec-title {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.sec-desc {
  margin-top: 16px;
  font-size: clamp(16.5px, 1.55vw, 19.5px);
  font-weight: 430;
  line-height: 1.6;
  color: var(--ink-2);
}

/* =========================================
   MOVEMENT 1: HWP BEFORE -> AFTER SCULPTURAL SHIFT
   ========================================= */
.shift-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.shift-art {
  background: var(--glass-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shift-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.shift-stat-caption {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.shift-stat-caption strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.shift-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shift-card {
  background: var(--glass-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

.shift-old {
  font-size: 14.5px;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(134, 134, 139, 0.5);
}

.shift-new {
  font-size: 20px;
  font-weight: 670;
  letter-spacing: -0.024em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.shift-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  flex-shrink: 0;
}

/* =========================================
   MOVEMENT 2: EXPANSION (HWP -> PPT -> CONTENT)
   ========================================= */
.expand-panel {
  background: var(--glass-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expand-art {
  width: min(760px, 100%);
  margin: -12px auto 24px;
}

.expand-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.expand-step {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(246, 247, 250, 0.78);
  border: 1px solid rgba(18, 22, 32, 0.06);
}

.expand-step .step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-3);
}

.expand-step h3 {
  margin-top: 8px;
  font-size: 19.5px;
  font-weight: 670;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.expand-step p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* =========================================
   MOVEMENT 3: SHARED ESSENCE BENTO (CONVERGENCE)
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bento-card {
  background: var(--glass-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 40px 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.bento-card .b-kicker {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.bento-card h3 {
  margin-top: 10px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.bento-card p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink-2);
}

.bento-art {
  margin-top: 26px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-art img {
  max-height: 240px;
  width: auto;
  object-fit: contain;
}

.bento-card.sanctuary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
  padding: 48px 52px;
}

.model-pills {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-pills span {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(244, 245, 249, 0.92);
  border: 1px solid rgba(18, 22, 32, 0.075);
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
}

.sanctuary-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================================
   DEEP EXPLORATION ACCORDION (FOR CURIOUS MINDS)
   ========================================= */
.deep-box {
  background: var(--glass-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: 12px 36px;
}

.deep-item {
  border-bottom: 1px solid var(--hair);
}

.deep-item:last-child {
  border-bottom: none;
}

.deep-trigger {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deep-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-2);
  transition: transform 0.3s var(--ease-out), background 0.2s ease;
  flex-shrink: 0;
}

.deep-item.open .deep-icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: #ffffff;
}

.deep-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease-out);
}

.deep-panel-inner {
  padding: 0 0 28px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.proof-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.proof-mini-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #f6f7fa;
  border: 1px solid rgba(18, 22, 32, 0.06);
}

.proof-mini-card b {
  display: block;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.proof-mini-card span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.deep-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.deep-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================
   CLOSING DOWNLOAD SECTION & FOOTER
   ========================================= */
.download-section {
  padding: 110px 0 120px;
  text-align: center;
}

.closing-art {
  width: min(440px, 80vw);
  margin: 0 auto 24px;
}

.os-cards {
  margin: 42px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.os-card {
  background: var(--glass-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s var(--ease-out);
}

.os-card:hover {
  transform: translateY(-3px);
}

.os-card.recommended {
  border: 1.5px solid rgba(29, 29, 31, 0.2);
}

.os-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.os-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.os-card .btn-primary,
.os-card .btn-secondary {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 22px;
  width: auto;
  opacity: 0.78;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--ink);
}

/* =========================================
   DOWNLOAD MODAL SHEET
   ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 22, 32, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(15, 18, 28, 0.22);
  padding: 34px 34px 30px;
  text-align: center;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.28s var(--ease-out);
}

.modal-backdrop.open .modal-sheet {
  transform: scale(1) translateY(0);
}

.modal-sheet h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.modal-sheet p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

.modal-file-box {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f5f6fa;
  border: 1px solid rgba(18, 22, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.modal-file-box b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.modal-file-box span {
  font-size: 12.5px;
  color: var(--ink-3);
}

.modal-close {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 560;
  color: var(--ink-2);
  padding: 8px 16px;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .app-window {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none;
  }
  .app-chat {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }
  .shift-showcase,
  .bento-grid,
  .bento-card.sanctuary,
  .expand-steps,
  .proof-mini-grid,
  .os-cards {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
