:root {
  color-scheme: light;
  --navy-950: #051226;
  --navy-900: #071a36;
  --navy-800: #0b2850;
  --navy-700: #10386e;
  --ink: #071a36;
  --muted: #5b687b;
  --paper: #f6f7f8;
  --white: #ffffff;
  --line: #dce3ec;
  --blue: #1767e8;
  --blue-dark: #0e4db4;
  --blue-soft: #eaf2ff;
  --violet: #7641d8;
  --violet-dark: #4a209b;
  --violet-soft: #f2edff;
  --teal: #068b79;
  --teal-dark: #04675b;
  --teal-soft: #e7f6f2;
  --red: #df4338;
  --red-dark: #a7221d;
  --red-soft: #fff0ee;
  --amber: #d88b1c;
  --shadow: 0 24px 80px rgba(7, 26, 54, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 10px max(32px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 18, 38, 0.78);
  color: var(--white);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: #72a9ff;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.top-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #6ca6ff;
  transition: transform 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--white);
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-cta svg {
  width: 16px;
  height: 16px;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: #dceaff;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 144px 0 36px;
  background:
    radial-gradient(circle at 18% 38%, rgba(23, 103, 232, 0.23), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(118, 65, 216, 0.18), transparent 30%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 54%, #0a2042);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  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: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: 160px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(91, 152, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(91, 152, 255, 0.025), 0 0 0 144px rgba(91, 152, 255, 0.02);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.orbit-one {
  top: 90px;
  left: -180px;
  width: 420px;
  height: 420px;
}

.orbit-two {
  top: 160px;
  left: -90px;
  width: 240px;
  height: 240px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.95fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 36px 0 48px;
}

.kicker,
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker {
  color: #9cc1ff;
}

.kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57e7bb;
  box-shadow: 0 0 0 6px rgba(87, 231, 187, 0.12);
}

.hero h1 {
  margin: 22px 0 24px;
  color: var(--white);
  font-size: clamp(4.35rem, 5.3vw, 5.35rem);
  font-weight: 820;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

.hero h1 em {
  position: relative;
  color: #80adf7;
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0.04em;
  height: 0.08em;
  border-radius: 999px;
  background: rgba(128, 173, 247, 0.25);
}

.hero-lede {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(23, 103, 232, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #2a78eb;
  box-shadow: 0 20px 44px rgba(23, 103, 232, 0.36);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #61d9b6;
}

.system-stack {
  position: relative;
  z-index: 1;
  padding: 10px;
  border: 1px solid rgba(151, 185, 238, 0.18);
  border-radius: 24px;
  background: rgba(5, 15, 33, 0.66);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.stack-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 11px 0 13px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.67rem;
  letter-spacing: 0.02em;
}

.stack-toolbar b {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.73rem;
}

.stack-toolbar > span:last-child {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(87, 231, 187, 0.08);
  color: #75d9bd;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54deb7;
  box-shadow: 0 0 0 5px rgba(84, 222, 183, 0.1);
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { box-shadow: 0 0 0 8px rgba(84, 222, 183, 0.015); }
}

.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  min-height: 145px;
  padding: 18px 19px 17px 14px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.965);
  color: var(--ink);
}

.stack-layer::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.08;
}

.layer-panel {
  border-color: rgba(59, 125, 230, 0.8);
}

.layer-panel::after {
  background: var(--blue);
}

.layer-codex {
  border-color: rgba(118, 65, 216, 0.7);
}

.layer-codex::after {
  background: var(--violet);
}

.layer-platform {
  min-height: 126px;
  border-color: rgba(6, 139, 121, 0.72);
}

.layer-platform::after {
  background: var(--teal);
}

.layer-index {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 1px solid var(--line);
  color: #8796aa;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.layer-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.layer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
}

.layer-codex .layer-icon {
  background: var(--violet-soft);
  color: var(--violet);
}

.layer-platform .layer-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.layer-icon svg {
  width: 22px;
  height: 22px;
}

.layer-heading small {
  display: block;
  margin-bottom: 2px;
  color: #728095;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.layer-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.mini-modules {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.mini-modules span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: rgba(249, 251, 254, 0.92);
  color: #3c4c61;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.mini-modules svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.layer-codex .mini-modules svg {
  color: var(--violet);
}

.platform-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.platform-line span {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--teal-soft);
}

.platform-line i {
  flex: 1;
  min-width: 8px;
  height: 1px;
  background: rgba(6, 139, 121, 0.28);
}

.stack-connector {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-connector i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-data-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 58px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 750;
}

.hero-data-path span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-data-path span svg {
  width: 17px;
  height: 17px;
  color: #8fb9ff;
}

.hero-data-path i {
  color: rgba(255, 255, 255, 0.2);
}

.hero-data-path i svg {
  width: 16px;
  height: 16px;
}

.path-label {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-section,
.workspace-section,
.architecture-section,
.security-section,
.ownership-section,
.final-cta {
  scroll-margin-top: 70px;
}

.workflow-section {
  padding: 112px 0 104px;
  background: var(--white);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}

.section-label {
  margin-bottom: 18px;
  color: var(--blue);
}

.section-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.65rem;
}

.section-label.violet {
  color: #b798ff;
}

.section-label.violet span {
  background: rgba(172, 133, 255, 0.13);
  color: #c5adff;
}

.section-label.teal {
  color: var(--teal);
}

.section-label.teal span {
  background: var(--teal-soft);
  color: var(--teal);
}

.section-label.red {
  color: var(--red);
}

.section-label.red span {
  background: var(--red-soft);
  color: var(--red);
}

.section-intro h2,
.workspace-copy h2,
.codex-copy h2,
.security-copy h2,
.ownership-card h2,
.final-layout h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.55rem, 4.4vw, 4.5rem);
  font-weight: 790;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.section-intro > p,
.workspace-copy > p,
.codex-copy > p,
.security-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcfd;
  box-shadow: 0 18px 60px rgba(7, 26, 54, 0.07);
}

.lifecycle li {
  position: relative;
  min-width: 0;
  min-height: 222px;
  padding: 22px 18px 20px;
  border-right: 1px solid var(--line);
}

.lifecycle li:last-child {
  border-right: 0;
}

.lifecycle li::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 46px;
  right: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 1px solid #bfc9d7;
  border-right: 1px solid #bfc9d7;
  background: #fbfcfd;
}

.lifecycle li:last-child::after {
  display: none;
}

.life-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 30px;
  border: 1px solid #d9e0e9;
  border-radius: 15px;
  background: var(--white);
  color: #8a98aa;
}

.life-icon svg {
  width: 25px;
  height: 25px;
}

.lifecycle li.is-done .life-icon {
  border-color: #b9d1fb;
  background: var(--blue-soft);
  color: var(--blue);
}

.lifecycle li.is-active {
  z-index: 1;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 48px rgba(23, 103, 232, 0.22);
}

.lifecycle li.is-active::after {
  border-color: rgba(255, 255, 255, 0.58);
  background: var(--blue);
}

.lifecycle li.is-active .life-icon {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.lifecycle small,
.lifecycle strong,
.lifecycle p {
  display: block;
}

.lifecycle small {
  margin-bottom: 5px;
  color: #8b98a9;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lifecycle strong {
  font-size: 1.01rem;
}

.lifecycle p {
  margin: 8px 0 0;
  color: #6e7c8f;
  font-size: 0.76rem;
  line-height: 1.48;
}

.lifecycle .is-active small,
.lifecycle .is-active p {
  color: rgba(255, 255, 255, 0.68);
}

.workflow-outcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid #cfe6dd;
  border-radius: 15px;
  background: #f2faf7;
}

.outcome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
}

.outcome-mark svg {
  width: 21px;
  height: 21px;
}

.workflow-outcome p {
  margin: 0;
  color: #526b63;
  font-size: 0.9rem;
  line-height: 1.5;
}

.workflow-outcome p strong {
  color: var(--teal-dark);
}

.workflow-outcome > span {
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-section {
  padding: 112px 0;
  border-top: 1px solid #dfe8f5;
  border-bottom: 1px solid #dfe8f5;
  background:
    radial-gradient(circle at 12% 18%, rgba(23, 103, 232, 0.08), transparent 24%),
    #f2f6fb;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(560px, 0.62fr);
  gap: 70px;
  align-items: start;
}

.workspace-copy {
  position: sticky;
  top: 112px;
  padding-top: 10px;
}

.workspace-copy h2 {
  margin-bottom: 25px;
  font-size: clamp(2.65rem, 4vw, 4rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--blue-dark);
  font-size: 0.91rem;
  font-weight: 850;
  text-decoration: none;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.text-link:hover svg,
.text-link:focus-visible svg {
  transform: translateX(4px);
}

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

.bento-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d8e1ee;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(7, 26, 54, 0.06);
}

.bento-card h3 {
  margin: 20px 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.bento-card > p,
.bento-card > div > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

.card-tag {
  padding: 5px 8px;
  border-radius: 99px;
  background: #eef2f7;
  color: #69788b;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bento-board {
  grid-column: span 7;
  min-height: 360px;
}

.bento-context {
  grid-column: span 5;
  min-height: 360px;
}

.bento-voice {
  grid-column: span 5;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-height: 220px;
  background: var(--navy-900);
  color: var(--white);
}

.bento-voice .card-icon {
  z-index: 1;
  flex: 0 0 auto;
  background: var(--red);
  color: var(--white);
}

.bento-voice h3 {
  position: relative;
  z-index: 1;
  margin: 0;
}

.bento-voice > div > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.58);
}

.bento-answers {
  grid-column: span 7;
  min-height: 220px;
}

.board-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 25px;
  padding: 9px;
  border: 1px solid #dfe6ef;
  border-radius: 13px;
  background: #f5f7fa;
}

.board-preview > div {
  min-height: 126px;
  padding: 9px;
  border-radius: 9px;
  background: var(--white);
}

.board-preview > div.active {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px #bdd2f7;
}

.board-preview small {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #667489;
  font-size: 0.55rem;
  font-weight: 850;
}

.board-preview small b {
  color: var(--blue);
}

.board-preview i {
  display: block;
  height: 37px;
  margin-top: 6px;
  border: 1px solid #e1e6ed;
  border-left: 3px solid #97a4b5;
  border-radius: 6px;
  background: #fbfcfd;
}

.board-preview .active i {
  border-left-color: var(--blue);
  background: var(--white);
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.file-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  background: #fafbfc;
  color: #536176;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.file-list svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.voice-wave {
  position: absolute;
  inset: 16px 14px auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 85px;
  opacity: 0.65;
}

.voice-wave::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.voice-wave i {
  flex: 1;
  height: 18%;
  border-radius: 99px;
  background: #6e9eef;
}

.voice-wave i:nth-child(2),
.voice-wave i:nth-child(8) { height: 38%; }
.voice-wave i:nth-child(3),
.voice-wave i:nth-child(7) { height: 62%; }
.voice-wave i:nth-child(4),
.voice-wave i:nth-child(6) { height: 82%; }
.voice-wave i:nth-child(5) { height: 54%; background: #ef6258; }

.answer-preview {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 7px;
  width: 38%;
}

.answer-preview > span {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: #d9e2ee;
}

.answer-preview > span:nth-child(2) { width: 74%; }
.answer-preview > span:nth-child(3) { width: 84%; }

.answer-preview > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d8e7ff, #eee9ff);
  color: var(--blue);
}

.answer-preview svg {
  width: 24px;
  height: 24px;
}

.codex-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(118, 65, 216, 0.25), transparent 26%),
    radial-gradient(circle at 15% 80%, rgba(23, 103, 232, 0.14), transparent 28%),
    var(--navy-950);
  color: var(--white);
}

.codex-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, black, transparent 60%);
  mask-image: linear-gradient(90deg, black, transparent 60%);
}

.codex-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(350px, 0.92fr);
  gap: 84px;
  align-items: center;
}

.session-console {
  overflow: hidden;
  border: 1px solid rgba(184, 160, 242, 0.24);
  border-radius: 20px;
  background: rgba(15, 28, 55, 0.84);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
}

.console-top > span {
  display: flex;
  gap: 5px;
}

.console-top > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef655c;
}

.console-top > span i:nth-child(2) { background: #e5a546; }
.console-top > span i:nth-child(3) { background: #55d0aa; }

.console-top b {
  color: rgba(255, 255, 255, 0.8);
}

.console-top em {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(129, 92, 222, 0.14);
  color: #c1a8ff;
  font-style: normal;
}

.console-body {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 24px 22px 26px;
}

.console-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 17px 0;
}

.console-rail::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.console-rail i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1px solid #647088;
  border-radius: 50%;
  background: #172747;
}

.console-rail i.done {
  border-color: #815cde;
  background: #815cde;
}

.console-rail i.active {
  border-color: #e5a546;
  background: #e5a546;
  box-shadow: 0 0 0 5px rgba(229, 165, 70, 0.1);
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-list > div {
  display: grid;
  grid-template-columns: 58px 32px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.event-list small {
  color: #68758c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
}

.event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(87, 140, 229, 0.1);
  color: #75a8f8;
}

.event-icon.purple { background: rgba(129, 92, 222, 0.14); color: #b79cff; }
.event-icon.amber { background: rgba(229, 165, 70, 0.12); color: #e5a546; }
.event-icon.green { background: rgba(85, 208, 170, 0.12); color: #55d0aa; }

.event-icon svg {
  width: 18px;
  height: 18px;
}

.event-list p {
  margin: 0;
}

.event-list p b,
.event-list p em {
  display: block;
}

.event-list p b {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
}

.event-list p em {
  margin-top: 4px;
  color: #758198;
  font-size: 0.62rem;
  font-style: normal;
}

.event-list .event-code {
  align-items: start;
  background: rgba(0, 0, 0, 0.17);
}

.event-code code {
  padding-top: 2px;
  color: #b9c4d4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  line-height: 1.7;
}

.event-code code i {
  color: #7f66c4;
  font-style: normal;
}

.event-code code strong {
  color: #55d0aa;
}

.codex-copy h2 {
  margin-bottom: 25px;
  color: var(--white);
  font-size: clamp(2.65rem, 4.2vw, 4.15rem);
}

.codex-copy > p {
  color: rgba(255, 255, 255, 0.58);
}

.codex-points {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.codex-points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  align-items: start;
}

.codex-points li > svg {
  width: 23px;
  height: 23px;
  margin-top: 2px;
  color: #b397f5;
}

.codex-points span {
  color: rgba(255, 255, 255, 0.51);
  font-size: 0.82rem;
  line-height: 1.55;
}

.codex-points b {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.architecture-section {
  padding: 112px 0;
  background: #fbfcfb;
}

.architecture-intro h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.6rem);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.platform-grid article {
  position: relative;
  min-width: 0;
  min-height: 320px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid #d8e7e3;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(4, 103, 91, 0.05);
}

.platform-grid article::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--teal-soft);
}

.platform-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 32px;
  border-radius: 15px;
  background: var(--teal-soft);
  color: var(--teal);
}

.platform-icon svg {
  width: 27px;
  height: 27px;
}

.platform-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.platform-grid h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.platform-grid p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.platform-grid article > div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-grid article > div span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #eff6f4;
  color: #52726c;
  font-size: 0.57rem;
  font-weight: 800;
}

.request-route {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #cee2dc;
  border-radius: 18px;
  background: var(--teal-soft);
}

.route-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--teal);
  color: var(--white);
}

.route-title svg {
  width: 24px;
  height: 24px;
}

.route-title small,
.route-title strong {
  display: block;
}

.route-title small {
  margin-bottom: 3px;
  color: #608079;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-title strong {
  color: var(--teal-dark);
  font-size: 0.84rem;
}

.request-route ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  list-style: none;
}

.request-route li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 13px 12px;
  border-right: 1px solid #d4e5e0;
}

.request-route li:last-child {
  border-right: 0;
}

.request-route li > span {
  position: absolute;
  top: 7px;
  right: 7px;
  color: #8aa49d;
  font-size: 0.48rem;
  font-weight: 900;
}

.request-route li > svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.request-route li b {
  color: #234c45;
  font-size: 0.72rem;
}

.request-route li small {
  color: #769089;
  font-size: 0.55rem;
}

.security-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  border-top: 1px solid #f2d3cf;
  background: #fff8f7;
}

.security-section::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(223, 67, 56, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(223, 67, 56, 0.025), 0 0 0 160px rgba(223, 67, 56, 0.02);
}

.security-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, 0.42fr) minmax(560px, 0.58fr);
  gap: 76px;
  align-items: center;
}

.security-copy h2 {
  margin-bottom: 25px;
  font-size: clamp(2.7rem, 4.2vw, 4.2rem);
}

.red-link {
  color: var(--red-dark);
}

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

.security-grid article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 144px;
  padding: 20px;
  border: 1px solid #f0c9c5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.security-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
}

.security-grid article > span svg {
  width: 24px;
  height: 24px;
}

.security-grid h3 {
  margin: 2px 0 0;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.security-grid p {
  margin: 7px 0 0;
  color: #746563;
  font-size: 0.77rem;
  line-height: 1.48;
}

.security-grid .security-wide {
  grid-column: 1 / -1;
  min-height: 116px;
}

.ownership-section {
  padding: 72px 0;
  background: var(--white);
}

.ownership-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 35px 38px;
  border: 1px solid #cbd6e4;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(23, 103, 232, 0.05), transparent 45%),
    #f9fafb;
  box-shadow: 0 18px 60px rgba(7, 26, 54, 0.07);
}

.ownership-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
}

.ownership-icon svg {
  width: 33px;
  height: 33px;
}

.ownership-card p {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ownership-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.ownership-card > div > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ownership-path {
  min-width: 260px;
  padding: 16px 18px;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  background: var(--white);
}

.ownership-path small,
.ownership-path code {
  display: block;
}

.ownership-path small {
  color: #8895a6;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ownership-path code {
  margin-top: 7px;
  color: var(--navy-700);
  font-size: 0.72rem;
}

.ownership-path > span {
  display: flex;
  gap: 5px;
  margin-top: 13px;
}

.ownership-path i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55c9a9;
}

.ownership-path i:nth-child(2) { background: #6b9ce7; }
.ownership-path i:nth-child(3) { background: #aa89ea; }

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0;
  background: var(--navy-900);
  color: var(--white);
}

.final-cta::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  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: 42px 42px;
}

.cta-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 10%;
  width: 420px;
  height: 240px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(23, 103, 232, 0.28);
  filter: blur(100px);
}

.final-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.final-layout > div {
  max-width: 790px;
}

.final-layout h2 {
  margin-top: 18px;
  color: var(--white);
  font-size: clamp(3rem, 5.2vw, 5.2rem);
}

.final-layout p:last-child {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  line-height: 1.6;
}

.button-primary.light {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.button-primary.light:hover,
.button-primary.light:focus-visible {
  background: #dceaff;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.48);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.78rem;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-inner nav a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  color: var(--white);
}

@media (max-width: 1120px) {
  .top-nav {
    gap: 16px;
  }

  .top-nav a {
    font-size: 0.78rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 0.96fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(4rem, 6.4vw, 4.7rem);
  }

  .hero-data-path {
    flex-wrap: wrap;
  }

  .path-label {
    width: 100%;
    margin: 0 0 3px;
    text-align: center;
  }

  .section-intro,
  .security-layout {
    gap: 50px;
  }

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

  .lifecycle li:nth-child(3) {
    border-right: 0;
  }

  .lifecycle li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .lifecycle li:nth-child(3)::after {
    display: none;
  }

  .workspace-layout {
    gap: 46px;
  }

  .codex-layout {
    gap: 48px;
  }

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

  .platform-grid article {
    min-height: 280px;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 40px, 760px);
  }

  .site-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .top-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-layout,
  .workspace-layout,
  .codex-layout,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 690px;
    padding-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 10.8vw, 6.2rem);
  }

  .system-stack {
    width: 100%;
    max-width: 690px;
  }

  .hero-data-path {
    max-width: 690px;
    margin-top: 38px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .section-intro > p {
    max-width: 650px;
  }

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

  .workflow-outcome > span {
    grid-column: 2;
  }

  .workspace-copy {
    position: static;
    max-width: 670px;
  }

  .codex-layout {
    max-width: 720px;
  }

  .codex-copy {
    grid-row: 1;
  }

  .session-console {
    grid-row: 2;
  }

  .architecture-intro h2 br {
    display: none;
  }

  .request-route {
    grid-template-columns: 1fr;
  }

  .security-copy {
    max-width: 670px;
  }

  .security-grid {
    max-width: 720px;
  }

  .ownership-card {
    grid-template-columns: auto 1fr;
  }

  .ownership-path {
    grid-column: 2;
    width: 100%;
  }

  .final-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 68px;
  }

  .page-shell {
    width: min(100% - 28px, 560px);
  }

  .site-header {
    min-height: 62px;
    padding: 8px 14px;
  }

  .brand {
    gap: 8px;
    font-size: 0.87rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .header-cta svg {
    display: none;
  }

  .hero {
    padding: 96px 0 24px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .kicker,
  .section-label {
    font-size: 0.66rem;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(3.15rem, 15vw, 4.4rem);
    letter-spacing: -0.067em;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-note {
    align-items: flex-start;
  }

  .system-stack {
    padding: 7px;
    border-radius: 18px;
  }

  .stack-toolbar {
    height: 38px;
  }

  .stack-layer {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    min-height: 0;
    padding: 14px 12px 13px 9px;
    border-radius: 13px;
  }

  .layer-platform {
    min-height: 0;
  }

  .layer-heading {
    gap: 8px;
  }

  .layer-icon {
    width: 34px;
    height: 34px;
  }

  .layer-icon svg {
    width: 19px;
    height: 19px;
  }

  .layer-heading h2 {
    font-size: 0.94rem;
  }

  .layer-heading small {
    font-size: 0.53rem;
  }

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

  .mini-modules span {
    padding: 8px 6px;
    font-size: 0.59rem;
  }

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

  .platform-line span {
    text-align: center;
  }

  .platform-line i {
    display: none;
  }

  .hero-data-path {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 13px;
  }

  .hero-data-path .path-label {
    grid-column: 1 / -1;
  }

  .hero-data-path > span:not(.path-label) {
    justify-content: center;
    padding: 9px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.65rem;
    white-space: normal;
    text-align: center;
  }

  .hero-data-path > i {
    display: none;
  }

  .workflow-section,
  .workspace-section,
  .architecture-section,
  .security-section {
    padding: 78px 0;
  }

  .codex-section {
    padding: 82px 0;
  }

  .section-intro {
    margin-bottom: 34px;
  }

  .section-intro h2,
  .workspace-copy h2,
  .codex-copy h2,
  .security-copy h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.3rem);
  }

  .section-intro > p,
  .workspace-copy > p,
  .codex-copy > p,
  .security-copy > p {
    font-size: 0.95rem;
  }

  .lifecycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 15px;
  }

  .lifecycle li {
    min-height: 190px;
    padding: 18px 14px;
  }

  .lifecycle li:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .lifecycle li:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .lifecycle li:nth-child(2n) {
    border-right: 0;
  }

  .lifecycle li:nth-child(3)::after {
    display: block;
  }

  .lifecycle li:nth-child(2n)::after {
    display: none;
  }

  .life-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
  }

  .workflow-outcome {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }

  .workflow-outcome > span {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .workspace-bento {
    grid-template-columns: 1fr;
  }

  .bento-board,
  .bento-context,
  .bento-voice,
  .bento-answers {
    grid-column: auto;
    min-height: 0;
  }

  .bento-board,
  .bento-context,
  .bento-answers {
    min-height: 320px;
  }

  .bento-voice {
    min-height: 230px;
  }

  .answer-preview {
    width: 44%;
  }

  .session-console {
    border-radius: 15px;
  }

  .console-top {
    padding: 0 12px;
  }

  .console-top b {
    font-size: 0.62rem;
  }

  .console-top em {
    font-size: 0.57rem;
  }

  .console-body {
    grid-template-columns: 12px 1fr;
    gap: 7px;
    padding: 14px 10px 18px;
  }

  .event-list > div {
    grid-template-columns: 30px 1fr;
    min-height: 56px;
    padding: 9px;
  }

  .event-list small {
    display: none;
  }

  .event-icon {
    grid-column: 1;
  }

  .event-list p,
  .event-code code {
    grid-column: 2;
  }

  .codex-points {
    margin-top: 26px;
  }

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

  .platform-grid article {
    min-height: 275px;
  }

  .request-route {
    padding: 16px;
  }

  .request-route ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-route li:nth-child(2) {
    border-right: 0;
  }

  .request-route li:nth-child(-n + 2) {
    border-bottom: 1px solid #d4e5e0;
  }

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

  .security-grid .security-wide {
    grid-column: auto;
  }

  .security-grid article,
  .security-grid .security-wide {
    min-height: 0;
  }

  .ownership-section {
    padding: 48px 0;
  }

  .ownership-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 22px;
  }

  .ownership-icon {
    width: 56px;
    height: 56px;
  }

  .ownership-card h2 {
    font-size: 2rem;
  }

  .ownership-path {
    grid-column: auto;
    min-width: 0;
  }

  .final-cta {
    padding: 74px 0;
  }

  .final-layout h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  .brand > span:last-child {
    max-width: 82px;
    line-height: 1.05;
    white-space: normal;
  }

  .header-cta {
    padding: 0 10px;
    font-size: 0.71rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .stack-toolbar > span:last-child {
    display: none;
  }

  .board-preview small {
    font-size: 0.47rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
