.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--bd);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tx3);
}

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

.nav-links a {
  font-size: 14.5px;
  color: var(--tx2);
  transition: color .15s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-signin {
  font-size: 14.5px;
  color: var(--tx2);
  transition: color .15s ease;
}

.nav-signin:hover {
  color: var(--tx);
}

.toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--tx2);
  transition: color .15s ease, border-color .15s ease;
}

.toggle:hover {
  color: var(--tx);
  border-color: var(--bdh);
}

.toggle svg {
  width: 16px;
  height: 16px;
}

.icon-moon {
  display: block;
}

.icon-sun {
  display: none;
}

html.dark .icon-moon {
  display: none;
}

html.dark .icon-sun {
  display: block;
}

.hero {
  padding: 76px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 66px;
  line-height: 1.0;
  letter-spacing: -0.8px;
  margin-top: 20px;
}

.hero h1 em {
  color: var(--teal);
}

.hero-sub {
  max-width: 500px;
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--tx2);
}

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

.console-shell {
  position: relative;
}

.console-glow {
  position: absolute;
  inset: -8% -6% -12% -6%;
  background: var(--teal-s);
  filter: blur(55px);
  border-radius: 40px;
  z-index: 0;
}

.console {
  position: relative;
  z-index: 1;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bd);
}

.console-head .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-s);
}

.console-head .tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--tx2);
}

.console-head .audit {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--tx3);
}

.thread {
  padding: 18px 18px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
}

.bubble {
  max-width: 84%;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

.bubble.show {
  opacity: 1;
  transform: none;
}

.bubble.user {
  align-self: flex-end;
  background: var(--bg-elev);
  border-bottom-right-radius: 5px;
}

.bubble.agent {
  position: relative;
  align-self: flex-start;
  background: var(--bg-paper);
  border: 1px solid var(--bd);
  border-bottom-left-radius: 5px;
}

.bubble.agent b {
  font-weight: 600;
}

.bubble .btext {
  transition: opacity .3s ease;
}

.bubble.agent .btext {
  opacity: 0;
}

.bubble.agent.filled .btext {
  opacity: 1;
}

.dots {
  position: absolute;
  left: 14px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.bubble.agent.show .dots {
  opacity: 1;
}

.bubble.agent.filled .dots {
  opacity: 0;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tx3);
  animation: blink 1.2s infinite;
}

.dots span:nth-child(2) {
  animation-delay: .2s;
}

.dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {
  0%, 60%, 100% {
    opacity: .25;
  }

  30% {
    opacity: 1;
  }
}

.approval {
  margin: 12px 18px 0;
  padding: 15px;
  border: 1px solid var(--bd);
  border-radius: 13px;
  background: var(--bg-paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

.approval.show {
  opacity: 1;
  transform: none;
}

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

.pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 5px 9px;
  border-radius: 6px;
}

.pill-amber {
  background: var(--amber-s);
  color: var(--amber);
}

.approval-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tx2);
}

.approval-body {
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx2);
}

.approval-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.approval-actions .btn {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  font-size: 12.5px;
}

.audit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--bd);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx3);
  opacity: 0;
  transition: opacity .4s ease;
}

.audit-row.show {
  opacity: 1;
}

.audit-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--green-s);
  color: var(--green);
  font-size: 9px;
}

.band {
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 26px 0;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 26px;
}

.band-inner .lead {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--tx3);
}

.band-inner .chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--tx2);
}

.band-inner .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--tx3);
  opacity: .6;
}

section.block {
  padding: 104px 0;
}

.section-head {
  max-width: 700px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.4px;
  margin-top: 14px;
}

.section-head .lead {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--tx2);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
}

.value {
  background: var(--bg-card);
  padding: 30px 26px;
}

.value .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--teal);
}

.value h3 {
  font-family: var(--serif);
  font-size: 27px;
  margin-top: 16px;
}

.value p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tx2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.step {
  padding: 28px 26px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: var(--bg-card);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.step:hover {
  border-color: var(--bdh);
  box-shadow: var(--shadow-soft);
}

.step .num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 14px;
}

.step p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tx2);
}

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

.lane {
  padding: 24px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: var(--bg-card);
}

.lane-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lane-light {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.lane.green .lane-light {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-s);
}

.lane.amber .lane-light {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-s);
}

.lane.red .lane-light {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-s);
}

.lane .lane-name {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tx2);
}

.lane h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
}

.lane p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tx2);
}

.lane-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--tx3);
  display: flex;
  align-items: center;
  gap: 9px;
}

.closing {
  border-top: 1px solid var(--bd);
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.closing h2 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.4px;
  margin-top: 14px;
}

.closing p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--tx2);
}

.closing p.closing-detail {
  margin-top: 16px;
}

.contact {
  padding: 28px;
  border: 1px solid var(--bd);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.contact h3 {
  font-family: var(--serif);
  font-size: 25px;
}

.contact .sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--tx2);
}

.field-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.field {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--bd);
  border-radius: 11px;
  background: var(--bg-paper);
  color: var(--tx);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
  font-family: var(--sans);
}

textarea.field {
  height: auto;
  padding: 13px 15px;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  margin-top: 12px;
}

.field::placeholder {
  color: var(--tx3);
}

.field:focus {
  border-color: var(--teal);
}

.contact .btn {
  width: 100%;
  margin-top: 14px;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}

.form-note.ok {
  color: var(--green);
}

.form-note.err {
  color: var(--red);
}

footer {
  border-top: 1px solid var(--bd);
  padding: 40px 0;
}

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

.foot-inner .left {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.foot-inner .brand-name {
  font-size: 20px;
}

.foot-inner .tag {
  font-size: 13.5px;
  color: var(--tx3);
}

.foot-links {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--tx2);
}

.foot-links a:hover {
  color: var(--tx);
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    padding: 56px 0 36px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .console-shell {
    order: 2;
  }

  .values,
  .steps,
  .lanes {
    grid-template-columns: 1fr;
  }

  .closing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-links {
    display: none;
  }

  .section-head h2 {
    font-size: 34px;
  }

  section.block {
    padding: 72px 0;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 40px;
  }

  .field-row {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .bubble,
  .approval,
  .audit-row,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
