:root {
  color-scheme: dark;
  --ink: #edf0f6;
  --ink-soft: #c5cad7;
  --ink-muted: #a7adbd;
  --surface: #0b0d12;
  --surface-strong: rgba(19, 23, 34, 0.84);
  --surface-stronger: rgba(12, 15, 23, 0.92);
  --surface-tint: rgba(255, 255, 255, 0.04);
  --teal: #5a8799;
  --teal-deep: #131722;
  --teal-soft: rgba(255, 255, 255, 0.06);
  --amber: #e0b63a;
  --coral: #ef4e50;
  --lime: #83bf4f;
  --sky: #4da3dc;
  --blue: 0, 174, 239;
  --green: 120, 200, 0;
  --yellow: 244, 196, 0;
  --red: 230, 0, 18;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --control-radius: 12px;
  --max: 1180px;
  --wordmarkH: 32px;
  --wordmarkOpacity: 0.88;
  --biasY: 0.36;
  --biasR: 0.34;
  --biasG: 0.34;
  --biasB: 0.36;
  --driftA: 26s;
  --grad-ui: linear-gradient(
    90deg,
    rgba(var(--blue), 0.16),
    rgba(var(--green), 0.14),
    rgba(var(--yellow), 0.12)
  );
  --grad-ui-strong: linear-gradient(
    90deg,
    rgba(var(--blue), 0.22),
    rgba(var(--green), 0.18),
    rgba(var(--yellow), 0.14)
  );
  --grad-border: rgba(255, 255, 255, 0.12);
  --grad-border-strong: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(1200px 900px at 50% 40%, rgba(20, 24, 36, 0.95), rgba(11, 13, 18, 1) 70%), #0b0d12;
  color: var(--ink);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: -140px;
  z-index: -2;
  pointer-events: none;
  content: "";
  mix-blend-mode: screen;
  filter: blur(10px) saturate(1.35) contrast(1.08);
  background:
    radial-gradient(1200px 950px at 8% 10%, rgba(var(--yellow), calc(var(--biasY) * 2.2)), rgba(var(--yellow), calc(var(--biasY) * 1.1)) 34%, transparent 68%),
    radial-gradient(1200px 950px at 92% 10%, rgba(var(--red), calc(var(--biasR) * 2.2)), rgba(var(--red), calc(var(--biasR) * 1.1)) 34%, transparent 68%),
    radial-gradient(1200px 950px at 8% 90%, rgba(var(--green), calc(var(--biasG) * 2.2)), rgba(var(--green), calc(var(--biasG) * 1.1)) 34%, transparent 68%),
    radial-gradient(1200px 950px at 92% 90%, rgba(var(--blue), calc(var(--biasB) * 2.2)), rgba(var(--blue), calc(var(--biasB) * 1.1)) 34%, transparent 68%),
    radial-gradient(1000px 760px at 50% 50%, rgba(26, 30, 46, 0.5), rgba(11, 13, 18, 0.92) 72%);
  animation: drift-ambience var(--driftA) ease-in-out infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(1000px 800px at 50% 45%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32) 76%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.86), rgba(11, 13, 18, 0.62));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(11, 13, 18, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

.brand-logo {
  height: 42px;
  width: auto !important;
  max-width: 360px;
  opacity: var(--wordmarkOpacity);
  filter: brightness(1.05) saturate(0.9);
  object-fit: contain;
}

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

.nav-links a {
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
  outline: none;
}

/* -----------------------------------------------------------------
   Platform nav dropdown (groups Features / Integrations / Security
   under a single "Platform" trigger).
   Desktop: hover + focus-within reveals the menu beneath the trigger.
   Mobile: collapses to inline children inside the hamburger panel
   (see the @media block below — the dropdown wrapper becomes
   `display: contents` so the trigger + children flow inline).
   ----------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-caret {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  opacity: 0.7;
  transition: transform 180ms ease;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-menu {
  /* Sit flush against the trigger so cursor never crosses dead space.
     The transparent margin-top extends the hoverable region without
     visual gap (the menu's actual visible body starts after the 8px
     top padding). */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  padding: 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 13, 18, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 100;
}
/* Bridge: pseudo-element on the wrapper makes the area between the
   trigger and the menu hoverable, so the menu doesn't disappear when
   the cursor crosses the gap. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: auto;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu a {
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
  outline: none;
}
.nav-dropdown-menu a[aria-current="page"] {
  background: rgba(224, 182, 58, 0.08);
  color: var(--ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
}

.language-switcher button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  background:
    linear-gradient(135deg, rgba(90, 135, 153, 0.34), rgba(224, 182, 58, 0.22)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.language-switcher button:focus-visible {
  outline: 3px solid rgba(15, 103, 104, 0.18);
  outline-offset: -3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 86svh);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 116px 0 84px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  top: 112px;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: auto;
  left: auto;
  width: min(42vw, 560px);
  height: min(500px, calc(100% - 184px));
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070a;
  box-shadow: var(--shadow);
}

.hero-shade {
  display: none;
  background:
    linear-gradient(90deg, rgba(247, 249, 247, 0.97) 0%, rgba(247, 249, 247, 0.78) 42%, rgba(247, 249, 247, 0.22) 74%),
    linear-gradient(0deg, rgba(247, 249, 247, 0.2), rgba(247, 249, 247, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 700px);
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
  margin-right: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 42px);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background:
    linear-gradient(135deg, rgba(90, 135, 153, 0.46), rgba(224, 182, 58, 0.24)),
    rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background:
    linear-gradient(135deg, rgba(90, 135, 153, 0.62), rgba(224, 182, 58, 0.34)),
    rgba(255, 255, 255, 0.08);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--ink);
}

.signal-strip {
  width: min(100% - 32px, var(--max));
  margin: -36px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
}

.signal-strip div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  padding: 22px;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.signal-strip span {
  color: var(--ink-muted);
  font-size: 14px;
}

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

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.video-layout,
.interactive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.video-stage {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(145deg, rgba(16, 35, 44, 0.74), rgba(24, 28, 42, 0.92) 54%, rgba(30, 19, 34, 0.9));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.brand-video,
.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-video {
  object-fit: cover;
  opacity: 0.64;
}

.video-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(19, 23, 34, 0.06), rgba(19, 23, 34, 0.72) 72%),
    linear-gradient(90deg, rgba(19, 23, 34, 0.72), rgba(19, 23, 34, 0.08));
}

.video-topbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.video-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.video-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 10px;
  opacity: 0;
  padding: 84px 42px 88px;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.video-frame.is-active {
  opacity: 1;
  transform: translateY(0);
}

.video-frame h3 {
  max-width: 560px;
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.video-frame p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.stream,
.node-map,
.knowledge-core,
.citation-ribbons,
.control-grid {
  position: absolute;
  pointer-events: none;
}

.stream {
  top: 98px;
  width: 42%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: drift 3.4s infinite linear;
}

.stream-left {
  left: 5%;
}

.stream-right {
  right: 5%;
  animation-delay: 1.2s;
}

.node-map {
  top: 96px;
  right: 12%;
  width: 260px;
  height: 170px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.node-map span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 8px rgba(77, 163, 220, 0.08);
}

.node-map span:nth-child(1) { top: 22%; left: 18%; }
.node-map span:nth-child(2) { top: 42%; left: 42%; }
.node-map span:nth-child(3) { top: 18%; left: 72%; }
.node-map span:nth-child(4) { top: 68%; left: 28%; }
.node-map span:nth-child(5) { top: 72%; left: 68%; }

.knowledge-core {
  top: 78px;
  right: 13%;
  width: 210px;
  height: 210px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.18) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.18) 50%, transparent 51%),
    rgba(255, 255, 255, 0.05);
  animation: slow-turn 9s infinite linear;
}

.citation-ribbons {
  top: 95px;
  right: 10%;
  display: grid;
  gap: 14px;
  width: 320px;
}

.citation-ribbons span {
  height: 44px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.control-grid {
  top: 92px;
  right: 9%;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 12px;
  width: 280px;
}

.control-grid span {
  height: 82px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.video-controls {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.icon-button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.story-points,
.contact-panel,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.story-points {
  padding: 28px;
}

.story-brand-image {
  width: 100%;
  aspect-ratio: 1.35;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.story-points h3,
.contact-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-points ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.platform-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.platform-flow article,
.feature-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--surface-strong);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
  padding: 24px;
}

.platform-flow span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(224, 182, 58, 0.2), rgba(77, 163, 220, 0.14)),
    rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-weight: 900;
}

.platform-flow h3,
.feature-card h3 {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 23px;
}

.platform-flow p,
.feature-card p {
  margin: 0;
  color: var(--ink-muted);
}

.features-section {
  border-top: 1px solid var(--line);
}

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

.capability-table {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.capability-table [role="row"] {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr 0.9fr;
  border-top: 1px solid var(--line);
}

.capability-table [role="row"]:first-child {
  border-top: 0;
}

.capability-table span {
  padding: 16px 18px;
  color: var(--ink-muted);
}

.capability-table span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.capability-table .table-head {
  background: rgba(255, 255, 255, 0.055);
}

.capability-table .table-head span {
  color: var(--ink);
}

.chat-contact-section {
  border-top: 1px solid var(--line);
}

.chat-panel {
  display: grid;
  min-height: 590px;
  grid-template-rows: 1fr auto auto;
  overflow: hidden;
}

.chat-window {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 430px;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(77, 163, 220, 0.1), transparent 46%),
    rgba(5, 7, 11, 0.26);
}

.message {
  max-width: min(86%, 580px);
  border-radius: 8px;
  padding: 12px 14px;
}

.message p {
  margin: 0;
}

.message.bot {
  justify-self: start;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.message.user {
  justify-self: end;
  border: 1px solid rgba(77, 163, 220, 0.28);
  background: rgba(77, 163, 220, 0.18);
  color: var(--ink);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.chat-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  padding: 12px 13px;
}

.chat-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--line-strong);
  outline: 3px solid rgba(77, 163, 220, 0.2);
}

.chat-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(237, 240, 246, 0.48);
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.prompt-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.contact-panel {
  padding: 26px;
}

.contact-panel p {
  color: var(--ink-muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

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

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.form-status a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
}

.footerInner {
  display: flex;
  align-items: center;
  width: 100%;
}

.footerBrand {
  display: flex;
  align-items: center;
}

.footerWordmark {
  height: var(--wordmarkH);
  width: auto;
  max-width: 520px;
  opacity: var(--wordmarkOpacity);
  filter: none;
  pointer-events: none;
  display: block;
  object-fit: contain;
}

.footerLinks {
  display: flex;
  gap: 14px;
  margin-left: auto;
  font-size: 13px;
}

.footerLinks a {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-muted);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.footerLinks a:hover,
.footerLinks a:focus-visible {
  background: var(--grad-ui);
  border-color: var(--grad-border);
  color: var(--ink);
  outline: none;
  text-decoration: none;
}

.footerLegal {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footerLegalInner {
  display: flex;
  align-items: center;
  width: 100%;
}

.footerLegalBlock {
  min-width: 260px;
}

.footerLegalTitle {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.footerLegalLine,
.footerLegalNote {
  color: var(--ink-muted);
  font-size: 12px;
}

.footerLegalLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.footerLegalName {
  color: var(--ink-soft);
  font-weight: 700;
}

.footerLegalNote {
  margin-top: 6px;
}

@keyframes drift {
  0% { transform: translateX(-20%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(20%); opacity: 0; }
}

@keyframes slow-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes drift-ambience {
  0% { transform: translate3d(-6px, 5px, 0) scale(1.01); }
  50% { transform: translate3d(7px, -6px, 0) scale(1.015); }
  100% { transform: translate3d(-6px, 5px, 0) scale(1.01); }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(11, 13, 18, 0.96);
    padding: 10px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    border-radius: var(--control-radius);
  }

  /* On mobile, the dropdown collapses into its parent (hamburger
     menu). display: contents lets the trigger + children flow as
     siblings of the other nav links; the children get a small
     indent + left border to signal hierarchy. */
  .nav-dropdown {
    display: contents;
  }
  .nav-dropdown-menu {
    position: static;
    display: flex;
    min-width: 0;
    padding: 4px 0 4px 18px;
    margin-left: 14px;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: auto;
  }
  .nav-dropdown-caret {
    display: none;
  }

  .language-switcher {
    background: rgba(255, 255, 255, 0.04);
  }

  h1 {
    font-size: 58px;
  }

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

  .signal-strip,
  .platform-flow,
  .feature-grid,
  .video-layout,
  .interactive-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    inset: 92px 16px auto;
    width: auto;
    height: 280px;
    opacity: 0.32;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
  }

  .platform-flow article,
  .feature-card {
    min-height: auto;
  }

  .capability-table,
  .capability-table [role="row"],
  .capability-table span {
    display: block;
  }

  .capability-table [role="row"] {
    padding: 12px 0;
  }

  .capability-table .table-head {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .section,
  .signal-strip,
  .footer,
  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: 720px;
    padding-top: 112px;
  }

  .hero-shade {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .brand-logo {
    height: 24px;
    max-width: calc(100vw - 176px);
  }

  .footerWordmark {
    height: 28px;
    max-width: min(86vw, 300px);
  }

  .language-switcher {
    grid-template-columns: repeat(2, minmax(40px, 1fr));
  }

  .language-switcher button {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .video-stage {
    min-height: 560px;
  }

  .video-frame {
    padding: 76px 24px 90px;
  }

  .video-frame h3 {
    font-size: 25px;
  }

  .node-map,
  .citation-ribbons,
  .control-grid,
  .knowledge-core {
    top: 86px;
    right: 24px;
    left: 24px;
    width: auto;
  }

  .knowledge-core {
    left: auto;
    width: 180px;
    height: 180px;
  }

  .chat-form,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .footerInner {
    row-gap: 14px;
    text-align: center;
    flex-direction: column;
  }

  .footerLinks {
    margin-left: 0;
    justify-content: center;
  }
}

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

/* ===========================================================================
 * Cookie & storage settings modal (slice 0099-portal item #4)
 * ===========================================================================
 * Triggered from the footer "Cookie Settings" link. Stores consent in
 * localStorage under `kilm.consent.v1`. No third-party scripts load
 * before consent is recorded; window.kilmConsent exposes the current
 * state for any future analytics loaders.
 */
.cookieBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 28, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.cookieBackdrop[data-open="true"] {
  display: flex;
}
.cookieDialog {
  background: #ffffff;
  color: #14282d;
  border-radius: 14px;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookieDialog h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.cookieDialog p.cookieIntro {
  margin: 0;
  font-size: 0.9rem;
  color: #3b5760;
  line-height: 1.45;
}
.cookieCategory {
  border: 1px solid #d9e2e5;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cookieCategory input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #0f3b3e;
}
.cookieCategory input[type="checkbox"]:disabled {
  opacity: 0.6;
}
.cookieCategoryBody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cookieCategoryTitle {
  font-weight: 600;
  font-size: 0.92rem;
}
.cookieCategoryDesc {
  font-size: 0.82rem;
  color: #4b6770;
  line-height: 1.45;
}
.cookieButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cookieButtons button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #0f3b3e;
  background: #ffffff;
  color: #0f3b3e;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cookieButtons button:hover {
  background: #f1f5f6;
}
.cookieButtons button[data-cookie-primary] {
  background: #0f3b3e;
  color: #ffffff;
}
.cookieButtons button[data-cookie-primary]:hover {
  background: #185055;
}
.cookieToast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #14282d;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1001;
}
.cookieToast[data-show="true"] {
  opacity: 1;
}

/* Slice 0105 -- Trial request modal */
.trialBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}
.trialBackdrop[data-open="true"] { display: flex; }
.trialModal {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}
.trialClose {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}
.trialClose:hover { color: #1e293b; }
.trialForm label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #1e293b;
}
.trialForm input,
.trialForm textarea {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.trialForm textarea { resize: vertical; min-height: 70px; }
.trialActions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.trialStatus {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #047857;
  min-height: 1.25rem;
}
body.trial-open { overflow: hidden; }
