:root {
  --bg: #081427;
  --bg-deep: #0f1c30;
  --surface: rgba(15, 30, 53, 0.82);
  --surface-strong: rgba(10, 22, 44, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(148, 163, 184, 0.24);
  --line-strong: rgba(148, 163, 184, 0.14);
  --text: #e5eefc;
  --text-strong: #f8fbff;
  --muted: #97a8c2;
  --muted-2: #64748b;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --emerald: #10b981;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --orange: #fb923c;
  --danger: #ef4444;
  --radius: 12px;
  --max-width: 1180px;
  --shadow: 0 14px 45px rgba(2, 6, 23, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(130deg, rgba(59, 130, 246, 0.16) 0%, rgba(8, 20, 39, 0.75) 48%, rgba(4, 10, 24, 0.96) 100%),
    linear-gradient(200deg, #061227 0%, var(--bg) 35%, var(--bg-deep) 100%);
  color: var(--text);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  line-height: 1.72;
  word-break: keep-all;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1001;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--text-strong);
  color: var(--bg);
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--emerald), var(--amber));
  transition: width 0.1s linear;
}

.progress-bar::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 3px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: var(--text-strong);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(129, 140, 248, 0.12);
  color: var(--indigo);
  outline: none;
}

.section,
.section-band {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 82px 0;
}

.section-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(20px, calc((100vw - var(--max-width)) / 2));
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.hero.section-band {
  padding-top: 44px;
  padding-bottom: 24px;
}

.hero-content {
  max-width: none;
  width: 100%;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-title-row .eyebrow {
  margin: 0;
  color: var(--indigo);
  font-size: 12px;
  width: fit-content;
  background: rgba(129, 140, 248, 0.09);
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 5px 14px;
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: var(--radius);
  background: rgba(129, 140, 248, 0.08);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}

.hero .eyebrow {
  border-color: rgba(129, 140, 248, 0.28);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  color: var(--text-strong);
  font-size: clamp(1.9rem, 4.6vw, 4.25rem);
  font-weight: 700;
  white-space: normal;
  word-break: keep-all;
}

.hero h1 {
  color: transparent;
  background: linear-gradient(90deg, #f8fafc 0%, var(--indigo) 40%, var(--emerald) 72%, var(--amber) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1::after {
  content: "";
  display: block;
  width: 210px;
  height: 5px;
  margin-top: 10px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--indigo), var(--emerald), var(--amber));
}

h2 {
  color: var(--text-strong);
  font-size: 42px;
  font-weight: 700;
}

h3 {
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 600;
}

.hero-copy {
  max-width: none;
  width: 100%;
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 21px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-stats div {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, var(--indigo), var(--emerald));
  background-clip: text;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 54px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-strong);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  touch-action: manipulation;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.22);
}

.button.secondary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #06111f;
  box-shadow: 0 12px 34px rgba(52, 211, 153, 0.18);
}

.button.ghost,
.button.outline {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.button.outline {
  color: var(--text);
}

.button.full {
  width: 100%;
}

.hero-panel,
.card,
.quote-panel,
.demo-control,
.demo-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  min-width: 0;
  padding: 28px;
}

.panel-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill,
.card-label {
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  background: rgba(129, 140, 248, 0.14);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}

.panel-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-workflow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.mini-node {
  min-height: 72px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.mini-node.active {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: var(--text-strong);
}

.mini-arrow {
  color: var(--emerald);
  font-size: 22px;
  font-weight: 600;
}

.hero-console {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
}

.hero-console div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.hero-console div:last-child {
  border-bottom: 0;
}

.hero-console span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.hero-console strong {
  color: var(--text);
  font-size: 14px;
}

.notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(56, 189, 248, 0.08);
  color: #cbd5e1;
  font-weight: 500;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.muted,
.demo-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(16px, calc((100vw - var(--max-width)) / 2));
  background: rgba(15, 23, 42, 0.38);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.point-grid,
.card-grid,
.three-column,
.scenario-grid,
.operation-grid,
.assist-layout,
.demo-shell,
.evolution-layout {
  display: grid;
  gap: 18px;
}

.point-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: stretch;
}

.card-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.operation-grid,
.assist-layout,
.demo-shell,
.evolution-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 24px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
}

.card.compact {
  min-height: 118px;
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  color: var(--text-strong);
  font-weight: 600;
}

.point-grid .card.compact {
  width: 100%;
  max-width: 100%;
}

.card h3 + p {
  margin: 12px 0 0;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-title-row h3 {
  margin: 0;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul,
.inline-list,
.source-list,
.assist-panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.card li,
.inline-list li,
.source-list li,
.assist-panel li {
  margin: 8px 0;
}

.section-bridge {
  max-width: 760px;
  margin: 30px 0 0;
  padding: 20px 22px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 600;
}

.customer-story {
  padding-top: 14px;
  position: relative;
}

.customer-story::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
}

.customer-story .section-heading {
  margin-top: 24px;
}

.night-route-story .section-heading h2 {
  margin-top: 12px;
}

.night-route-story .story-panel {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.64)),
    rgba(15, 23, 42, 0.66);
}

.night-route-story .story-context {
  grid-template-columns: 1fr;
  gap: 12px;
}

.night-route-story .story-context h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1.35;
}

.night-route-story .story-context p {
  color: #bfdbfe;
  font-size: 19px;
  font-weight: 600;
}

.night-route-story .strong-message {
  margin-top: 6px;
  color: var(--text-strong) !important;
  background: rgba(56, 189, 248, 0.12);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
}

.night-route-story .compare-card.before {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.night-route-story .compare-card.after {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.32);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.night-route-story .compare-card li {
  color: #dbeafe;
  font-size: 15px;
  font-weight: 500;
}

.night-route-story .dialog-line.citizen span {
  background: rgba(248, 113, 113, 0.16);
  color: var(--danger);
}

.night-route-story .dialog-line.citizen p {
  background: rgba(248, 113, 113, 0.1);
}

.night-route-story .dialog-line.duty span {
  background: rgba(251, 191, 36, 0.16);
  color: var(--amber);
}

.night-route-story .dialog-line.duty p {
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid var(--amber);
}

.checklist-card,
.standard-answer-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.45);
}

.checklist-card ul,
.checklist-card h4,
.standard-answer-card h4 {
  margin-top: 0;
}

.checklist-card li + li,
.standard-answer-card p {
  margin-top: 10px;
}

.badge-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row span {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.12);
  font-size: 13px;
  font-weight: 600;
}

.night-route-story .story-demo-btn {
  width: min(100%, 520px);
  margin-top: 26px;
  min-height: 56px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.story-panel {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(52, 211, 153, 0.055)),
    rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.customer-story .story-panel + .story-panel {
  margin-top: 24px;
}

.story-context {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.story-context h3 {
  margin-top: 14px;
  font-size: 28px;
}

.story-title-col {
  min-width: 0;
}

.story-context p {
  margin: 0;
  color: #dbeafe;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.75;
}

.story-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 0;
  align-self: start;
}

.story-badges span {
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.09);
  color: var(--emerald);
  font-size: 14px;
  font-weight: 600;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.compare-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-card.before {
  background: rgba(248, 113, 113, 0.075);
  border-color: rgba(248, 113, 113, 0.18);
}

.compare-card.after {
  background: rgba(52, 211, 153, 0.085);
  border-color: rgba(52, 211, 153, 0.22);
}

.compare-card h4 {
  margin: 0;
  color: var(--text-strong);
  font-size: 21px;
  font-weight: 700;
}

.compare-card.before h4 {
  color: #fecaca;
}

.compare-card.after h4 {
  color: #bbf7d0;
}

.compare-card ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.compare-card li {
  margin: 10px 0;
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 500;
}

li,
.light-emphasis {
  font-weight: 500;
}

.dialog-card {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.dialog-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.dialog-line span {
  min-height: 34px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.dialog-line p {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.62;
}

.dialog-line.user span {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.dialog-line.user p {
  background: rgba(148, 163, 184, 0.12);
}

.dialog-line.ai span,
.dialog-line.guide span {
  background: rgba(56, 189, 248, 0.16);
  color: var(--blue);
}

.dialog-line.ai p,
.dialog-line.guide p {
  background: rgba(56, 189, 248, 0.09);
}

.dialog-line.guide p {
  border-left: 3px solid var(--emerald);
}

.dialog-line.staff span {
  background: rgba(251, 191, 36, 0.16);
  color: var(--amber);
}

.dialog-line.staff p {
  background: rgba(251, 191, 36, 0.09);
  border-left: 3px solid var(--amber);
}

.ai-subset {
  display: grid;
  gap: 10px;
}

.dialog-subitem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
}

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

.dialog-subitem .sub-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  margin-bottom: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.dialog-subitem p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  flex: 1 1 auto;
}

.notice-subitem {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.08);
}

.notice-subitem .sub-label {
  background: rgba(56, 189, 248, 0.26);
}

.notice-subitem .notice-label {
  background: rgba(56, 189, 248, 0.26);
}

.handoff-subitem {
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.08);
}

.handoff-subitem .handoff-label {
  background: rgba(52, 211, 153, 0.26);
}

.handoff-staff span {
  background: rgba(52, 211, 153, 0.18);
  color: #8df0b1;
}

.handoff-staff p {
  background: rgba(52, 211, 153, 0.1);
  border-left: 3px solid rgba(52, 211, 153, 0.55);
}

.staff-label {
  color: #8df0b1;
}

.story-result {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.1);
  color: var(--text-strong);
  font-size: 19px;
  font-weight: 600;
}

.story-result strong {
  color: var(--emerald);
}

.story-result span {
  margin-left: 6px;
}

.demo-question-btn {
  width: min(100%, 360px);
  margin-top: 22px;
  font-size: 18px;
}

.workflow-flow {
  width: 100%;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
}

.workflow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.workflow-row.connector {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  justify-items: center;
}

.workflow-row.connector .wf-arrow {
  grid-column: 2;
  font-size: 28px;
  height: 42px;
  justify-self: center;
}

.workflow-row.connector.align-left .wf-arrow {
  grid-column: 1;
  justify-self: center;
}

.workflow-row.connector.align-right .wf-arrow {
  grid-column: 3;
  justify-self: center;
}

.flow-card {
  min-width: 0;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}

.flow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.32);
  box-shadow: 0 16px 38px rgba(52, 211, 153, 0.1);
}

.fc-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fc-step {
  width: fit-content;
  padding: 3px 9px;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.fc-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 600;
}

.fc-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.fc-badge {
  width: fit-content;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.12);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
}

.flow-card.confirmed {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.flow-card.confirmed .fc-step {
  background: rgba(52, 211, 153, 0.13);
  color: var(--emerald);
}

.wf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 24px;
  font-weight: 600;
}

.loop-container,
.parallel-container {
  position: relative;
  min-width: 236px;
  padding: 34px 16px 22px;
  border: 1px dashed rgba(129, 140, 248, 0.42);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.34);
}

.loop-label,
.parallel-label {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 0 8px;
  background: #111827;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}

.loop-arrow {
  position: absolute;
  right: 18px;
  bottom: -12px;
  padding: 0 8px;
  background: #111827;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}

.knowledge-pipeline {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.pipe-node {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pipe-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  min-width: 52px;
  padding-top: 2px;
}

.pipe-node span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.pipe-node strong {
  display: block;
  margin-top: 0;
  color: var(--text-strong);
  font-size: 18px;
}

.pipe-node.success {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
}

.pipe-node.success span,
.pipe-node.success strong {
  color: var(--emerald);
}

.pipe-arrow {
  color: var(--emerald);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.quote-panel {
  padding: 32px;
  display: flex;
  align-items: center;
}

.quote-panel p {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
}

.demo-shell {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.demo-side-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.demo-control,
.demo-result {
  padding: 24px;
}

.demo-status-bar {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-strong);
  font-weight: 600;
}

.demo-control .button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.demo-control .button {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.status-dot.listening {
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

#demoStatus {
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-simulation,
.fallback-box,
.result-block {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.demo-shell > .call-simulation,
.demo-side-column .fallback-box {
  min-width: 0;
  margin-top: 0;
}

.demo-shell > .call-simulation {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.call-simulation h3,
.fallback-box h3,
.result-block h3 {
  font-size: 17px;
}

.call-simulation ol#callStepList {
  max-height: 360px;
  margin: 16px 0 0;
  padding: 14px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.call-simulation #callStepList li {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.call-log {
  max-height: 280px;
  margin-top: 16px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.call-log-empty,
.call-log-line {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.call-log-line + .call-log-line {
  margin-top: 10px;
}

#callStepList .call-log-line + .call-log-line {
  margin-top: 10px;
}

.call-log-line.system,
#callStepList .call-log-line.system {
  color: var(--text);
  font-weight: 900;
}

.call-log-line.speaking,
#callStepList .call-log-line.speaking,
.call-interim.speaking {
  color: #fff;
  font-weight: 900;
}

.call-log-line.ai .call-role,
#callStepList .call-log-line.ai .call-role,
.call-log-line.greeting .call-role,
#callStepList .call-log-line.greeting .call-role {
  color: var(--blue);
}

.call-log-line.caller .call-role,
#callStepList .call-log-line.caller .call-role {
  color: var(--emerald);
}

.call-log-line.speaking .call-role,
#callStepList .call-log-line.speaking .call-role {
  color: #fff;
}

.call-log-line.ai.has-metadata {
  cursor: pointer;
  border-radius: var(--radius);
  transition:
    background 0.2s,
    color 0.2s;
}

.call-log-line.ai.has-metadata:hover,
.call-log-line.ai.has-metadata:focus-visible {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-strong);
  outline: 2px solid rgba(56, 189, 248, 0.28);
  outline-offset: 3px;
}

.call-role {
  display: inline-block;
  margin-right: 6px;
  font-weight: 900;
}

.call-interim {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.small-note,
.support-message,
.interim-text {
  color: var(--muted);
  font-size: 15px;
}

.call-simulation .small-note {
  margin-top: auto;
}

.support-message.supported {
  color: var(--emerald);
  font-weight: 600;
}

.support-message.unsupported,
.support-message.error {
  color: var(--danger);
  font-weight: 600;
}

.fallback-box label {
  display: block;
  margin-top: 16px;
  color: var(--text-strong);
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 112px;
  margin: 8px 0 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  color: var(--text);
  resize: vertical;
}

textarea::placeholder {
  color: var(--muted-2);
}

textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(56, 189, 248, 0.14);
}

.text-send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}

.text-send-row textarea {
  min-height: 112px;
  margin: 0;
}

.text-preset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.text-preset-row .button {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 14px;
}

.text-preset-accordion {
  margin-top: 10px;
}

.text-preset-accordion-items {
  display: grid;
  gap: 8px;
}

.text-preset-accordion-item {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}

.send-icon-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  align-self: end;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.answer-meta-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.answer-meta-modal.hidden {
  display: none;
}

.answer-meta-dialog {
  width: min(100%, 560px);
  max-height: min(720px, calc(100vh - 48px));
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.answer-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.answer-meta-close {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 900;
}

.answer-meta-close:hover,
.answer-meta-close:focus-visible {
  border-color: rgba(56, 189, 248, 0.42);
  outline: none;
}

.answer-meta-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.answer-meta-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.answer-meta-list dt {
  color: var(--muted);
  font-weight: 900;
}

.answer-meta-list dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.answer-meta-sources {
  margin-top: 18px;
}

.answer-meta-sources h4 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 16px;
}

.answer-meta-sources ul {
  margin: 0;
  padding-left: 20px;
}

.answer-meta-sources li + li {
  margin-top: 8px;
}

.answer-meta-sources a {
  color: var(--blue);
  word-break: break-all;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-text {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 500;
}

.result-text.empty,
.interim-text {
  font-weight: 500;
}

.interim-text {
  min-height: 24px;
  margin: 10px 0 0;
}

.answer-card {
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(129, 140, 248, 0.09);
}

.source-list a {
  color: var(--blue);
  word-break: break-all;
}

.scenario-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-card .sample {
  margin: 0;
  padding: 14px;
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(167, 139, 250, 0.08);
  color: #cbd5e1;
  font-weight: 500;
}

.scenario-card p {
  margin: 0;
}

.scenario-card .source-list {
  margin-top: auto;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.mini-flow span,
.mock-panel span {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.08);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.mock-screen {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.mock-top {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text-strong);
  font-weight: 600;
}

.mock-button {
  min-height: 46px;
  margin: 12px 0;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  color: #06111f;
  font-weight: 600;
}

.mock-panel {
  display: grid;
  gap: 8px;
}

.assist-intro {
  align-self: start;
}

.assist-layout {
  grid-template-columns: 1fr;
}

.assist-layout-open {
  grid-template-columns: 1fr;
}

.assist-layout-open .assist-panel {
  grid-column: 1 / -1;
}

.assist-split {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 14px;
}

.assist-reference-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assist-reference-col h3 {
  margin: 0;
  font-size: 18px;
}

.assist-reference-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.assist-reference-status--hidden {
  display: none;
}

.assist-reference-frame {
  display: none;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.assist-reference-frame--visible {
  display: block;
}

.assist-panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  backdrop-filter: blur(12px);
}

.footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  h1 {
    font-size: clamp(1.95rem, 5.8vw, 3.8rem);
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 900px;
  }

  .card-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.9rem);
  }

  h2 {
    font-size: 30px;
  }

  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .section,
  .section-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero.section-band {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero {
    gap: 22px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 19px;
  }

  .hero-stats {
    margin-top: 20px;
  }

  .hero-stats div {
    min-height: 88px;
    padding: 16px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-workflow {
    margin-top: 18px;
  }

  .mini-node {
    min-height: 54px;
  }

  .hero-console {
    margin-top: 16px;
  }

  .hero-console div {
    padding: 9px 14px;
  }

  .hero .notice {
    margin-top: 16px;
    padding: 12px 14px;
  }

  .three-column,
  .operation-grid,
  .assist-layout,
  .demo-shell,
  .evolution-layout,
  .story-context,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .night-route-story .checklist-card,
  .night-route-story .standard-answer-card {
    padding: 16px;
  }

  .night-route-story .badge-row span {
    padding: 6px 11px;
    font-size: 12px;
  }

  .assist-split {
    grid-template-columns: 1fr;
  }

  .assist-reference-col iframe {
    min-height: 420px;
  }

  .workflow-flow {
    gap: 18px;
    padding-bottom: 20px;
  }

  .workflow-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-row.connector {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .workflow-row.connector .wf-arrow,
  .workflow-row.connector.align-left .wf-arrow,
  .workflow-row.connector.align-right .wf-arrow {
    grid-column: 1;
    justify-self: center;
  }

  .flow-card {
    min-width: 0;
  }

  .flow-card + .wf-arrow,
  .wf-arrow + .flow-card {
    grid-column: 1;
  }

  .loop-container {
    min-width: 0;
  }

  .wf-arrow {
    justify-content: center;
    transform: none;
    margin: 4px 0;
    font-size: 20px;
  }

  .customer-story {
    padding-top: 20px;
  }

  .night-route-story .story-context h3 {
    font-size: 26px;
  }

  .night-route-story .story-context p {
    font-size: 17px;
  }

  .night-route-story .story-demo-btn {
    width: 100%;
    max-width: none;
    font-size: 19px;
  }

  .story-context p {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  h1 {
    white-space: normal;
    max-width: 100%;
    font-size: 2rem;
  }

  h2 {
    font-size: 27px;
  }

  .nav-links a {
    flex: 1 1 42%;
    justify-content: center;
    border: 1px solid var(--line);
  }

  .hero-stats,
  .card-grid,
  .scenario-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .demo-control .button-row {
    grid-template-columns: 1fr;
  }

  .send-icon-button {
    width: 44px;
    min-width: 44px;
  }

  .answer-meta-modal {
    padding: 16px;
  }

  .answer-meta-dialog {
    padding: 18px;
  }

  .answer-meta-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-workflow {
    grid-template-columns: 1fr;
  }

  .mini-arrow {
    text-align: center;
    transform: rotate(90deg);
  }

  .card,
  .hero-panel,
  .quote-panel,
  .knowledge-pipeline,
  .demo-control,
  .demo-result,
  .story-panel {
    padding: 20px;
  }

  .section-bridge {
    font-size: 18px;
  }

  .dialog-card {
    padding: 16px;
  }

  .dialog-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dialog-subitem {
    padding: 8px 10px;
  }

  .dialog-line span {
    width: fit-content;
  }

  .story-result span {
    display: block;
    margin: 6px 0 0;
  }

}
