:root {
  --bg: #030712;
  --surface: #071113;
  --panel: #0b1719;
  --panel-2: #102124;
  --border: #23464a;
  --border-strong: #2f5d60;
  --text: #eef8f7;
  --muted: #9bb8b7;
  --faint: #648082;
  --primary: #8fe7d4;
  --primary-strong: #5ed9c0;
  --danger: #ff7777;
  --warning: #ffd166;
  --focus: #c4ffef;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body.app-mode {
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(35, 70, 74, 0.65);
  background: rgba(3, 7, 18, 0.86);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 6px;
  padding: 9px 12px;
}

.public-view {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 42px 0 64px;
}

.hero-intro {
  position: relative;
  isolation: isolate;
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(4, 16, 21, 0) 0%, rgba(4, 16, 21, 0) 70%, var(--bg) 100%),
    linear-gradient(rgba(143, 231, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 231, 212, 0.045) 1px, transparent 1px),
    #041015;
  background-size: 32px 32px;
  box-shadow:
    inset 0 72px 90px rgba(3, 7, 18, 0.7),
    inset 0 -82px 110px rgba(3, 7, 18, 0.68);
}

.hero-intro,
.hero-copy,
.hero-console {
  min-width: 0;
}

.hero-intro {
  max-width: 1060px;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span:not(.definition-cue) {
  display: block;
}

.headline-accent {
  font-style: normal;
  font-weight: 500;
}

.hero-asterisk {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  color: var(--primary);
  line-height: 1;
}

.hero-asterisk::before,
.hero-asterisk::after {
  content: "";
  position: absolute;
  inset: 8%;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
  border-radius: 999px;
}

.hero-asterisk::after {
  transform: rotate(45deg);
}

.definition-cue {
  margin-left: 0.12em;
  vertical-align: 0.45em;
}

.agentic-definition {
  max-width: 780px;
  margin-top: 18px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.62;
}

.agentic-definition .hero-asterisk {
  margin-right: 10px;
  vertical-align: -3px;
}

.hero-separator {
  width: min(760px, 100%);
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(460px, 520px);
  gap: 34px;
  align-items: start;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

.hero-console {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #050c14;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.console-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.console-top span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--border-strong);
}

.story-step-rail {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 3;
  width: min(336px, calc(100% - 188px));
  min-height: 44px;
}

.story-active-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
}

.story-active-label strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.1;
  white-space: nowrap;
}

.label-create {
  animation: panelSignup 21.5s ease-in-out infinite;
}

.label-ai {
  animation: panelAi 21.5s ease-in-out infinite;
}

.label-deploy {
  animation: panelDeploy 21.5s ease-in-out infinite;
}

.label-prepare {
  animation: labelPrepare 21.5s ease-in-out infinite;
}

.label-scan {
  animation: labelScan 21.5s ease-in-out infinite;
}

.label-chat {
  animation: labelChat 21.5s ease-in-out infinite;
}

.console-line {
  border-top: 1px solid rgba(47, 93, 96, 0.65);
  padding: 13px 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.console-line.strong {
  color: var(--text);
  font-weight: 800;
}

.console-line.accent {
  color: var(--primary);
}

.deployment-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(35, 70, 74, 0.6);
  border-radius: 8px;
  background:
    linear-gradient(rgba(143, 231, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 231, 212, 0.035) 1px, transparent 1px),
    #030712;
  background-size: 28px 28px;
}

.guided-story {
  padding: 22px;
}

.story-browser {
  position: absolute;
  left: 50%;
  top: 88px;
  bottom: 24px;
  width: min(336px, calc(100% - 44px));
  translate: -50% 0;
  border: 1px solid rgba(47, 93, 96, 0.76);
  border-radius: 8px;
  background: rgba(7, 17, 19, 0.97);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  animation: browserMorph 21.5s ease-in-out infinite;
}

.story-browser-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(35, 70, 74, 0.72);
  color: var(--muted);
  font-size: 0.76rem;
}

.story-browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
}

.story-browser-top strong {
  margin-left: 6px;
  font-weight: 800;
}

.story-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 62px;
  display: grid;
  gap: 9px;
  min-height: 176px;
  padding: 16px;
  border: 1px solid rgba(35, 70, 74, 0.76);
  border-radius: 8px;
  background: #0b1719;
  opacity: 0;
  transform: translateY(12px);
}

.story-panel strong {
  font-size: 1.12rem;
}

.story-panel p {
  color: var(--muted);
  font-size: 0.86rem;
}

.story-step {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.story-signup {
  animation: panelSignup 21.5s ease-in-out infinite;
}

.story-ai {
  animation: panelAi 21.5s ease-in-out infinite;
}

.story-deploy {
  animation: panelDeploy 21.5s ease-in-out infinite;
}

.story-progress {
  animation: panelProgress 21.5s ease-in-out infinite;
}

.story-deploy,
.story-progress {
  min-height: 118px;
  align-content: center;
}

.story-browser-qr {
  justify-items: center;
  align-content: center;
  text-align: center;
  animation: panelBrowserQr 21.5s ease-in-out infinite;
}

.mini-form {
  display: grid;
  gap: 8px;
}

.mini-form span {
  min-height: 26px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(47, 93, 96, 0.68);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.mini-field {
  position: relative;
  justify-content: space-between;
}

.mini-field::after {
  content: attr(data-value);
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
  font-weight: 800;
  opacity: 0;
}

.mini-name::after {
  animation: fillName 21.5s ease-in-out infinite;
}

.mini-email::after {
  animation: fillEmail 21.5s ease-in-out infinite;
}

.mini-form button {
  min-height: 34px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: rgba(143, 231, 212, 0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signup-submit {
  animation: controlPressSignup 21.5s ease-in-out infinite;
}

.choice-list,
.progress-lines {
  display: grid;
  gap: 8px;
}

.choice-list span {
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(47, 93, 96, 0.68);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.choice-list span:first-child,
.choice-primary {
  border-color: rgba(143, 231, 212, 0.86);
  color: var(--text);
  background: rgba(143, 231, 212, 0.08);
}

.choice-primary {
  animation: controlPressAi 21.5s ease-in-out infinite;
}

.fake-deploy-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #041213;
  font-weight: 900;
  text-transform: uppercase;
  animation: controlPressDeploy 21.5s ease-in-out infinite;
}

.progress-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(47, 93, 96, 0.72);
  overflow: hidden;
}

.progress-lines span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform-origin: left;
  animation: progressFill 21.5s ease-in-out infinite;
}

.progress-lines span:nth-child(2)::after {
  animation-delay: 0.45s;
}

.progress-lines span:nth-child(3)::after {
  animation-delay: 0.9s;
}

.story-phone {
  position: absolute;
  left: 50%;
  top: 88px;
  bottom: 24px;
  width: min(336px, calc(100% - 44px));
  translate: -50% 0;
  border: 1px solid rgba(143, 231, 212, 0.62);
  border-radius: 8px;
  background: #071113;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  opacity: 0;
  transform-origin: center center;
  animation: phoneMorph 21.5s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(143, 231, 212, 0.38);
  transform: translateX(-50%);
  z-index: 2;
}

.story-qr,
.story-chat {
  position: absolute;
  inset: 26px 12px 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.story-qr {
  animation: phoneQr 21.5s ease-in-out infinite;
}

.story-qr strong {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.mini-qr {
  width: 76px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #eafffb;
  border-radius: 7px;
  padding: 8px;
}

.mini-qr span {
  background: #041213;
  border-radius: 2px;
}

.story-qr .mini-qr {
  width: 98px;
  height: 98px;
  gap: 5px;
  padding: 10px;
}

.mini-qr span:nth-child(2),
.mini-qr span:nth-child(5),
.mini-qr span:nth-child(8),
.mini-qr span:nth-child(11),
.mini-qr span:nth-child(14) {
  opacity: 0.18;
}

.story-chat {
  opacity: 0;
  transform: translateY(12px);
  animation: phoneChat 21.5s ease-in-out infinite;
}

.chat-bubble {
  display: block;
  max-width: 92%;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.user-bubble {
  justify-self: end;
  background: var(--primary);
  color: #041213;
}

.agent-bubble {
  justify-self: start;
  border: 1px solid rgba(47, 93, 96, 0.76);
  color: var(--text);
  background: rgba(5, 12, 20, 0.86);
}


@keyframes fillName {
  0%,
  3.6% {
    opacity: 0;
    max-width: 0;
  }
  3.7% {
    opacity: 1;
    max-width: 0;
    animation-timing-function: steps(10, end);
  }
  7.4%,
  100% {
    opacity: 1;
    max-width: 10ch;
  }
}

@keyframes fillEmail {
  0%,
  6% {
    opacity: 0;
    max-width: 0;
  }
  6.1% {
    opacity: 1;
    max-width: 0;
    animation-timing-function: steps(13, end);
  }
  10.4%,
  100% {
    opacity: 1;
    max-width: 13ch;
  }
}

@keyframes controlPressSignup {
  0%,
  8.7%,
  12%,
  100% {
    background: rgba(143, 231, 212, 0.12);
    color: var(--primary);
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
  9.4% {
    background: rgba(143, 231, 212, 0.22);
    color: var(--primary);
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 0 3px rgba(143, 231, 212, 0.08);
  }
  10.4% {
    background: var(--primary);
    color: #041213;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 24px rgba(143, 231, 212, 0.2);
  }
}

@keyframes controlPressAi {
  0%,
  18.2%,
  23.3%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
  19.2% {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 0 0 3px rgba(143, 231, 212, 0.08);
  }
  20.4% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 26px rgba(143, 231, 212, 0.18);
  }
}

@keyframes controlPressDeploy {
  0%,
  30.4%,
  34.9%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
  31.4% {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 0 0 3px rgba(143, 231, 212, 0.1);
  }
  32.8% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 28px rgba(143, 231, 212, 0.22);
  }
}

@keyframes panelSignup {
  0%,
  10.8% {
    opacity: 1;
    transform: translateY(0);
  }
  11.6%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes panelAi {
  0%,
  11.6% {
    opacity: 0;
    transform: translateY(12px);
  }
  13%,
  23.6% {
    opacity: 1;
    transform: translateY(0);
  }
  24.8%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes panelDeploy {
  0%,
  25% {
    opacity: 0;
    transform: translateY(12px);
  }
  26.2%,
  34.2% {
    opacity: 1;
    transform: translateY(0);
  }
  35.2%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes panelProgress {
  0%,
  34.2% {
    opacity: 0;
    transform: translateY(12px);
  }
  36.2%,
  50.4% {
    opacity: 1;
    transform: translateY(0);
  }
  52%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes progressFill {
  0%,
  36.2% {
    transform: scaleX(0);
  }
  46.5%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes panelBrowserQr {
  0%,
  52.7% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  53.9%,
  62% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  63%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes browserMorph {
  0%,
  62.8% {
    opacity: 1;
    transform: scale(1);
    border-radius: 8px;
  }
  65.5% {
    opacity: 1;
    transform: scale(1.05, 0.16);
    border-radius: 10px;
  }
  67.5% {
    opacity: 0.8;
    transform: scale(0.32, 0.05);
    border-radius: 14px;
  }
  68.5%,
  100% {
    opacity: 0;
    transform: scale(0);
    border-radius: 14px;
  }
}

@keyframes phoneMorph {
  0%,
  64.5% {
    opacity: 0;
    transform: scale(0);
    border-radius: 24px;
  }
  65.2% {
    opacity: 1;
    transform: scale(0.72, 0.9) rotate(-2deg);
    border-radius: 24px;
  }
  67% {
    opacity: 1;
    transform: scale(0.55, 0.7) rotate(2deg);
    border-radius: 24px;
  }
  68.5% {
    opacity: 1;
    transform: scale(0.65, 0.82) rotate(-1deg);
    border-radius: 24px;
  }
  70%,
  100% {
    opacity: 1;
    transform: scale(0.62, 0.78) rotate(0deg);
    border-radius: 24px;
  }
}

@keyframes phoneQr {
  0%,
  68.5% {
    opacity: 0;
    transform: translateY(14px);
  }
  70%,
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  86%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes phoneChat {
  0%,
  86% {
    opacity: 0;
    transform: translateY(12px);
  }
  87.4%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes labelPrepare {
  0%,
  34.9% {
    opacity: 0;
    transform: translateY(12px);
  }
  36.2%,
  62% {
    opacity: 1;
    transform: translateY(0);
  }
  63%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes labelScan {
  0%,
  68.5% {
    opacity: 0;
    transform: translateY(12px);
  }
  70%,
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  86%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes labelChat {
  0%,
  86% {
    opacity: 0;
    transform: translateY(12px);
  }
  87.4%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-panel,
  .story-active-label,
  .progress-lines span::after,
  .story-browser,
  .story-phone,
  .story-qr,
  .story-chat {
    animation: none;
  }

  .story-signup,
  .label-create,
  .story-qr,
  .story-chat {
    opacity: 1;
    transform: none;
  }

  .story-ai,
  .story-deploy,
  .story-progress,
  .story-browser-qr {
    display: none;
  }

  .story-phone {
    opacity: 1;
    transform: none;
  }
}

.band {
  padding: 74px 0;
  border-top: 1px solid rgba(35, 70, 74, 0.5);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-heading h2,
.split-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 36px;
  align-items: start;
}

.split-band p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  border-bottom: 1px solid rgba(35, 70, 74, 0.65);
  padding-bottom: 12px;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}

.service-band h2 {
  max-width: 520px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(47, 93, 96, 0.75);
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(47, 93, 96, 0.75);
}

.service-list h3,
.flow-line h3,
.path-grid h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.service-list p,
.flow-line p,
.path-grid p,
.faq-list p,
.docs-band p,
.split-band p,
.check-list {
  color: var(--muted);
}

.service-list p,
.flow-line p,
.path-grid p,
.faq-list p,
.docs-band p {
  line-height: 1.65;
}

.flow-band {
  background:
    linear-gradient(rgba(143, 231, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 231, 212, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.flow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.flow-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 1px;
  background: rgba(47, 93, 96, 0.75);
}

.flow-line article {
  position: relative;
  padding-top: 48px;
}

.flow-line span {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  padding-right: 12px;
  background: var(--bg);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.trust-band {
  border: 1px solid rgba(47, 93, 96, 0.78);
  border-radius: 8px;
  margin-top: 74px;
  padding: 42px;
  background: #071113;
}

.trust-band h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.trust-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-points span {
  border: 1px solid rgba(143, 231, 212, 0.28);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.decision-band {
  display: grid;
  gap: 28px;
}

.decision-band h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

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

.path-grid article {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.path-primary {
  background: rgba(143, 231, 212, 0.08);
  border-color: rgba(143, 231, 212, 0.45) !important;
}

.path-grid .btn {
  justify-self: start;
  align-self: end;
}

.faq-list {
  max-width: 860px;
  border-top: 1px solid rgba(47, 93, 96, 0.75);
}

.faq-list details {
  border-bottom: 1px solid rgba(47, 93, 96, 0.75);
  padding: 18px 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 850;
}

.faq-list p {
  max-width: 680px;
  margin-top: 12px;
}

.docs-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.docs-band > div {
  max-width: 720px;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-brand {
  position: fixed;
  top: 24px;
  left: 28px;
}

.auth-panel {
  width: min(430px, 100%);
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.auth-card h1 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 18px;
}

.auth-switch {
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.92rem;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #081012;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: #050b10;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #041213;
  font-weight: 800;
}

.brand h1 {
  font-size: 1rem;
}

.brand p,
.panel p,
.table-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-item,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  background: #091416;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.nav-item {
  justify-content: flex-start;
  text-align: left;
}

.nav-item:hover,
.btn:hover {
  background: var(--panel-2);
  border-color: var(--border-strong);
}

.nav-item.active {
  background: #102426;
  border-color: var(--primary);
  color: var(--primary);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #041213;
  font-weight: 900;
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-danger {
  color: var(--danger);
  border-color: rgba(255, 119, 119, 0.55);
}

.btn-ghost {
  background: transparent;
}

.btn-small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.85rem;
}

.btn,
.nav-item,
.permission-style {
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.session-box {
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.main {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar h2 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.panel {
  background: #0b1719;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header.compact {
  margin-bottom: 12px;
}

.panel h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #050c14;
  color: var(--text);
  padding: 0 12px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

input::placeholder {
  color: var(--faint);
}

.form-group {
  margin-bottom: 12px;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.codex-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.codex-status.ok {
  color: var(--primary);
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.pill.ok {
  border-color: rgba(56, 217, 169, 0.55);
  color: var(--primary);
}

.plan-row,
.agent-item,
.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-columns,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}

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

.detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(35, 70, 74, 0.62);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 750;
}

.inline-warning {
  margin-top: 14px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--warning) !important;
  background: rgba(255, 209, 102, 0.08);
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-row span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.price {
  font-weight: 800;
  color: var(--primary);
}

.agent-info {
  min-width: 0;
  flex: 1;
}

.agent-name {
  font-weight: 700;
}

.agent-meta {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.agent-status {
  min-width: 82px;
  text-align: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
}

.agent-status.ready {
  color: var(--primary);
  border-color: rgba(143, 231, 212, 0.45);
}

.agent-status.creating,
.agent-status.installing {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.45);
}

.agent-status.error {
  color: var(--danger);
  border-color: rgba(255, 119, 119, 0.45);
}

.agent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  background: #0b1719;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.stat strong {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.table-row select {
  width: 150px;
}

.notice,
.empty-state {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal-content {
  width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

#qr-code {
  margin: 18px 0;
}

#qr-code img {
  width: min(260px, 80vw);
  background: white;
  padding: 12px;
  border-radius: 8px;
}

.or {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--primary);
  background: #050c14;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  overflow-wrap: anywhere;
}

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 1100;
}

.toast {
  min-width: 260px;
  max-width: min(420px, calc(100vw - 36px));
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(143, 231, 212, 0.55);
}

.toast.error {
  border-color: rgba(255, 119, 119, 0.65);
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  .public-view {
    width: 100%;
    max-width: 720px;
    padding: 0 16px;
  }

  .hero,
  .split-band,
  .service-band,
  .flow-line,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-line::before {
    display: none;
  }

  .flow-line article {
    padding-top: 34px;
  }

  .trust-band {
    margin-top: 48px;
    padding: 26px;
  }

  .docs-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(2.35rem, 11.2vw, 3.1rem);
  }

  .agentic-definition {
    max-width: 360px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .hero-text {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-console {
    max-width: 100%;
    overflow: hidden;
    padding: 12px;
  }

  .story-step-rail {
    left: 16px;
    right: 16px;
    top: 18px;
    width: auto;
  }

  .deployment-stage {
    min-height: 610px;
  }

  .story-browser {
    left: 50%;
    right: auto;
    top: 88px;
    bottom: auto;
    width: calc(100% - 32px);
    min-height: 318px;
    translate: -50% 0;
  }

  .story-phone {
    left: 50%;
    right: auto;
    top: 88px;
    bottom: auto;
    width: calc(100% - 32px);
    min-height: 318px;
    translate: -50% 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px;
  }

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

  .nav-item {
    text-align: center;
  }

  .main {
    padding: 16px;
  }

  .split,
  .stats-grid,
  .dashboard-grid,
  .dashboard-columns,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .plan-row,
  .agent-item,
  .table-row,
  .panel-header,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-actions {
    justify-content: flex-start;
  }
}
