:root {
  --steel-0: #f5f8fc;
  --steel-1: #eef3fa;
  --steel-2: #dde6f2;
  --ink: #0a0f1a;
  --ink-soft: #1a2336;
  --muted: #6b7a90;
  --line: #d5e0ee;
  --line-strong: #c0cee0;
  --panel: rgba(255, 255, 255, .9);
  --navy: #0c1220;
  --teal: #2f6bff;
  --teal-deep: #1f54e0;
  --teal-soft: #e8efff;
  --cyan: #2f6bff;
  --cyan-bright: #5b8cff;
  --blue: #2f6bff;
  --blue-deep: #1f54e0;
  --blue-soft: #e8efff;
  --blue-glow: rgba(47, 107, 255, .32);
  --warn: #9c4d1c;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: var(--display);
  --shadow: 0 18px 48px rgba(30, 64, 140, .1);
  --radius: 999px;
  --radius-card: 16px;
  --paper: var(--steel-0);
  --paper-deep: var(--steel-1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--steel-0);
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
.hidden { display: none !important; }
img { display: block; max-width: 100%; }

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 46% at 12% 8%, rgba(120, 170, 255, .38), transparent 58%),
    radial-gradient(ellipse 48% 40% at 88% 18%, rgba(80, 140, 255, .28), transparent 55%),
    radial-gradient(ellipse 42% 34% at 72% 78%, rgba(160, 200, 255, .18), transparent 60%),
    radial-gradient(ellipse 36% 30% at 28% 88%, rgba(100, 155, 255, .12), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #f2f7fc 42%, #eef4fb 100%);
}
.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .7;
  background:
    radial-gradient(circle 280px at 18% 22%, rgba(100, 160, 255, .22), transparent 70%),
    radial-gradient(circle 320px at 82% 12%, rgba(70, 130, 255, .18), transparent 68%),
    radial-gradient(circle 240px at 70% 55%, rgba(140, 185, 255, .14), transparent 70%);
  filter: blur(8px);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(80, 120, 180, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 120, 180, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black 0%, transparent 58%);
}
@keyframes meshDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.5%, 1.2%, 0); }
}

/* —— Nav —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(20px) saturate(1.35);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.top.scrolled {
  border-bottom-color: rgba(200, 214, 232, .55);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 28px rgba(40, 80, 160, .06);
}
.top-inner,
.band,
.footer-inner,
.hero-inner,
.finale-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.top-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.logo:hover { color: var(--blue); transform: translateY(-1px); }
.logo-img {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: normal;
}
.logo-mark {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border: 1px solid #8aafff;
  border-radius: 8px 8px 8px 2px;
  background: linear-gradient(145deg, #eef3ff, #dce8ff);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.7);
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  top: 5px; left: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 7px 5px 0 #5b8cff;
}
.nav {
  display: flex;
  gap: 30px;
  flex: 1;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav a:hover { color: var(--blue); }
.nav-clients-mobile { display: none; }
.nav-clients {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s ease;
  padding: 0 2px;
}
.nav-clients:hover { color: var(--blue); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-soft);
  font: inherit;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--blue); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 140px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(210, 222, 238, .95);
  box-shadow: var(--shadow);
  display: none;
  z-index: 50;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
  gap: 2px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(47, 107, 255, .08);
  color: var(--blue-deep);
}
.nav-mobile-cta { display: none; }
.top-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.user-chip {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: .78rem;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.7);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 10px 28px var(--blue-glow);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  box-shadow: 0 14px 34px rgba(47, 107, 255, .42);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn.ghost {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.88);
  color: var(--ink-soft);
  box-shadow: 0 2px 10px rgba(40, 80, 140, .04);
}
.btn.ghost:hover {
  border-color: #a8bfe8;
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 6px 18px rgba(47, 107, 255, .1);
}
.btn.lg { min-height: 48px; padding: 0 26px; font-size: .92rem; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: .8rem; box-shadow: 0 6px 18px rgba(47, 107, 255, .22); }
.btn.ghost.sm { box-shadow: none; }
.btn[disabled], .btn.disabled {
  border-color: #c7d0dd;
  background: #c7d0dd;
  pointer-events: none;
  box-shadow: none;
}

/* —— Hero (full-bleed composition) —— */
.hero {
  position: relative;
  min-height: min(100vh, 880px);
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-aurora {
  position: absolute;
  inset: -12% -6% auto -6%;
  height: 90%;
  background:
    radial-gradient(ellipse 44% 52% at 78% 32%, rgba(100, 160, 255, .42), transparent 62%),
    radial-gradient(ellipse 38% 48% at 58% 58%, rgba(47, 107, 255, .22), transparent 60%),
    radial-gradient(ellipse 48% 38% at 22% 28%, rgba(160, 200, 255, .28), transparent 55%),
    linear-gradient(165deg, #f7fafd 0%, #eef4fb 42%, #e8f0fa 100%);
  animation: auroraShift 14s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(80, 120, 180, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 120, 180, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 72% 68% at 68% 42%, black, transparent 78%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .55;
  pointer-events: none;
}
.hero-orb-a {
  width: 320px;
  height: 320px;
  right: 16%;
  top: 18%;
  background: rgba(80, 140, 255, .32);
  animation: orbPulse 9s ease-in-out infinite alternate;
}
.hero-orb-b {
  width: 260px;
  height: 260px;
  right: 36%;
  bottom: 16%;
  background: rgba(140, 185, 255, .28);
  animation: orbPulse 11s ease-in-out infinite alternate-reverse;
}
.hero-mesh {
  position: absolute;
  right: -4%;
  top: 50%;
  width: min(62vw, 720px);
  height: auto;
  transform: translateY(-48%);
  opacity: .95;
  animation: meshFloat 10s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin-left: max(28px, calc((100% - 1160px) / 2 + 28px));
  margin-right: 28px;
  padding: 0;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.hero-logo,
.hero-brand img {
  width: 96px;
  height: 96px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 28px rgba(12, 70, 90, .22));
}
.brand-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.05rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: .045em;
  color: var(--navy);
  line-height: 1.1;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.lead {
  max-width: 34rem;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-signals li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7aa4ff);
  transform: translateY(-50%);
}

@keyframes auroraShift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
@keyframes meshFloat {
  from { transform: translateY(-48%) translateX(0); }
  to { transform: translateY(-52%) translateX(-12px); }
}
@keyframes orbPulse {
  from { transform: scale(1); opacity: .45; }
  to { transform: scale(1.12); opacity: .7; }
}

/* Entrance */
.reveal-in {
  opacity: 0;
  transform: translateY(22px);
  animation: enterUp .85s cubic-bezier(.22, 1, .36, 1) forwards;
}
.reveal-in.delay-1 { animation-delay: .12s; }
.reveal-in.delay-2 { animation-delay: .24s; }
.reveal-in.delay-3 { animation-delay: .36s; }
@keyframes enterUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* —— Sections —— */
.band { padding-top: 100px; padding-bottom: 100px; }
.section-intro { max-width: 720px; }
.section-intro.narrow { max-width: 640px; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-intro h2,
.panel h2,
.workspace-head h2,
.finale h2,
.docs-cta h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.03em;
}
.section-lead {
  max-width: 40rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.arch-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin-top: 44px;
  padding: 8px 0 8px;
}
.arch-step {
  min-height: 148px;
  padding: 22px 18px;
  border: 1px solid rgba(200, 214, 232, .9);
  border-radius: var(--radius-card);
  background:
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(240, 246, 255, .82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.arch-step span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .14em;
}
.arch-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.08rem;
}
.arch-step p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}
.arch-flow {
  width: 28px;
  align-self: center;
  height: 2px;
  margin: 0 4px;
  background: linear-gradient(90deg, rgba(47, 107, 255, .15), rgba(47, 107, 255, .7), rgba(90, 150, 255, .55));
  position: relative;
}
.arch-flow::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(47, 107, 255, .7);
  border-right: 2px solid rgba(47, 107, 255, .7);
  transform: translateY(-50%) rotate(45deg);
}

.scenario-grid,
.case-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.scenario-grid article,
.case-rail article {
  min-height: 196px;
  padding: 24px;
  border: 1px solid rgba(200, 214, 232, .85);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.78);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.scenario-grid article:hover,
.case-rail article:hover {
  transform: translateY(-3px);
  border-color: #a8bfe8;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.scenario-tag,
.case-meta {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scenario-grid h3,
.case-rail h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.15rem;
}
.scenario-grid p,
.case-rail p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}
.case-rail {
  grid-template-columns: repeat(2, 1fr);
}
.case-rail ul {
  margin: 14px 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.7;
}

.story-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line-strong);
}
.story-rail article {
  position: relative;
  min-height: 200px;
  padding: 28px 28px 20px 0;
  border-right: 1px solid var(--line);
}
.story-rail article + article { padding-left: 28px; }
.story-rail article:last-child { border-right: 0; }
.story-rail span,
.pillar-number {
  color: var(--blue);
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
}
.story-rail h3 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--navy);
}
.story-rail p {
  max-width: 18rem;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--line);
}
.cap-grid article {
  min-height: 220px;
  padding: 28px;
  background: rgba(255,255,255,.86);
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.cap-grid article:hover {
  z-index: 1;
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cap-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-soft), #f0f5ff);
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 1.05rem;
}
.cap-grid h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--navy);
}
.cap-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.band.soft {
  max-width: none;
  padding-left: max(28px, calc((100% - 1160px) / 2 + 28px));
  padding-right: max(28px, calc((100% - 1160px) / 2 + 28px));
  background:
    linear-gradient(120deg, rgba(232, 240, 255, .7), rgba(245, 249, 255, .85));
  border-block: 1px solid rgba(200, 214, 232, .65);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.pillars div {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(200, 214, 232, .9);
  background: rgba(255,255,255,.72);
  border-radius: var(--radius-card);
}
.pillars strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--navy);
}
.pillars div > span:last-child {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.company-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 720px;
  margin-top: 32px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(232, 244, 248, .75));
}
.company-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.company-strip p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  max-width: 28rem;
}
.company-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 720px;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.company-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.company-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  max-width: 28rem;
}

/* —— Clients —— */
.clients-band { padding-bottom: 80px; }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(238, 244, 255, .85));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #a8bfe8;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--navy);
}
.card .meta {
  color: var(--muted);
  font-size: .84rem;
  font-family: var(--display);
}
.features {
  flex: 1;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}

/* —— Docs band —— */
.docs-band { padding-top: 40px; }
.docs-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(100, 160, 255, .18), transparent 55%),
    rgba(255,255,255,.82);
}
.docs-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* —— Finale —— */
.finale {
  margin: 20px 0 0;
  padding: 0 28px 20px;
}
.finale-inner {
  padding: 56px 40px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(70, 130, 255, .28), transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 30%, rgba(100, 160, 255, .2), transparent 50%),
    linear-gradient(135deg, #0e1a33 0%, #152848 48%, #12305a 100%);
  color: #d7e4ef;
  box-shadow: 0 24px 60px rgba(30, 64, 140, .18);
}
.finale h2 {
  color: #f2f8fc;
  max-width: 16ch;
}
.finale p {
  max-width: 34rem;
  margin: 14px 0 26px;
  color: rgba(215, 228, 239, .82);
  font-size: 1rem;
  line-height: 1.7;
}
.finale .btn.ghost {
  border-color: rgba(190, 210, 240, .45);
  background: rgba(255,255,255,.08);
  color: #e8f0ff;
  box-shadow: none;
}
.finale .btn.ghost:hover {
  border-color: var(--cyan-bright);
  background: rgba(90, 140, 255, .18);
  color: #fff;
}
.finale .btn:not(.ghost) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 12px 32px rgba(47, 107, 255, .4);
}
.finale .btn:not(.ghost):hover {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  box-shadow: 0 14px 36px rgba(47, 107, 255, .45);
}

/* —— Auth (login) —— */
.auth-dock { max-width: 1160px; margin: 0 auto 86px; padding: 0 28px; }
.auth-card {
  position: relative;
  max-width: 510px;
  margin: 0 auto;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.auth-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -165px;
  right: -115px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.auth-card > * { position: relative; }
.auth-orbit {
  position: absolute;
  right: 32px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #b7cceb;
  border-radius: 50%;
  color: var(--blue);
  z-index: 1;
}
.auth-card h1, .auth-card h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--navy);
}
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(100, 160, 255, .22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 10%, rgba(47, 107, 255, .14), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #f0f5fc 55%, #eaf0f9 100%);
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 22px 0;
}
.auth-back { color: var(--muted); font-size: .88rem; text-decoration: none; }
.auth-back:hover { color: var(--blue); }
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 22px 48px;
}
.login-card { width: 100%; max-width: 480px; }
.auth-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 22px 36px;
  color: var(--muted);
  font-size: .84rem;
}
.auth-footer a { color: var(--blue); text-decoration: none; }

/* —— Workspace / admin leftovers —— */
.panel {
  max-width: 1124px;
  margin: 0 auto 18px;
  padding: 27px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(40, 80, 160, .05);
}
.workspace { max-width: 1160px; margin: 0 auto; padding: 0 28px 48px; }
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 10px 0 19px;
}
.workspace-head h2 { font-size: 2rem; }
.hint { margin: 7px 0 13px; color: var(--muted); font-size: .87rem; line-height: 1.6; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; color: #41536c; font-size: .84rem; }
.form input, .form textarea, select, input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  outline: none;
}
.form input:focus, .form textarea:focus {
  border-color: #8aafff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: .86rem;
}
.check input { accent-color: var(--blue); }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1124px;
  margin: 0 auto 18px;
}
.grid-2 .panel { margin: 0; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1124px;
  margin: 0 auto 18px;
}
.stat {
  min-width: 164px;
  padding: 12px 15px;
  border: 1px solid #c5d6f5;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #2a4570;
  font-size: .83rem;
}
.stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 1.3rem;
}
.phase-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }
.phase-tabs button {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
}
.phase-tabs button.active {
  border-color: #a8bfe8;
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.connector-list { display: flex; flex-direction: column; gap: 9px; }
.connector {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.52);
}
.connector h3 { margin: 0; font-family: var(--display); font-size: 1rem; }
.connector .meta { color: var(--muted); font-size: .79rem; line-height: 1.55; }
.connector .actions { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border: 1px solid #c5d6f5;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 500;
  vertical-align: middle;
}
.badge.warn { border-color: #edd4bf; background: #fff2e7; color: var(--warn); }
.badge.ok { border-color: #c7e6d1; background: #e7f8ed; color: #1d6b43; }
.answer {
  max-height: 360px;
  margin-top: 12px;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #f5f9fd;
  color: #334a66;
  font-size: .84rem;
  white-space: pre-wrap;
}
.citations { margin-top: 10px; color: var(--muted); font-size: .82rem; }

footer {
  margin-top: 48px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand img {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.footer-inner strong {
  color: var(--navy);
  font-family: var(--display);
}
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.footer-links a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--blue-deep); }
code { padding: 1px 5px; background: var(--blue-soft); }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a, .nav-dropdown-trigger, .nav-clients { font-size: .78rem; }
}

@media (max-width: 980px) {
  .hero-mesh { width: min(70vw, 520px); opacity: .55; right: -8%; }
  .hero-inner { max-width: 560px; }
  .arch-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .arch-flow { display: none; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .case-rail { grid-template-columns: 1fr; }
  .story-rail, .cap-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .story-rail article:nth-child(2) { border-right: 0; }
  .story-rail article:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    grid-column: span 2;
  }
  .cap-grid article:last-child { grid-column: span 2; }
  .pillars div:last-child { grid-column: span 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
    z-index: 45;
  }
  body.nav-open .nav { display: flex; }
  .nav-clients-mobile { display: block; }
  .nav a, .nav-dropdown-trigger {
    padding: 12px 12px;
    border-radius: 8px;
  }
  .nav a:hover, .nav-dropdown-trigger:hover {
    background: rgba(47, 107, 255, .06);
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 8px;
    min-width: 0;
    opacity: 1;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    display: grid;
    transform: none;
  }
  .nav-mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .top-actions { display: none; }
  .hero {
    min-height: auto;
    padding: 36px 0 64px;
    align-items: flex-start;
  }
  .hero-inner {
    margin-left: 28px;
    max-width: none;
  }
  .hero-mesh {
    width: 120%;
    right: -30%;
    top: auto;
    bottom: -8%;
    transform: none;
    opacity: .35;
    animation: none;
  }
  .hero-logo,
  .hero-brand img { width: 72px; height: 72px; border-radius: 0; }
}

@media (max-width: 640px) {
  .top-inner, .band, .footer-inner, .finale { padding-left: 20px; padding-right: 20px; }
  .hero-inner { margin-left: 20px; margin-right: 20px; }
  .band { padding-top: 72px; padding-bottom: 72px; }
  .band.soft {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero h1 { font-size: 1.95rem; max-width: none; }
  .lead { font-size: .96rem; }
  .cta .btn.lg { width: 100%; }
  .arch-strip,
  .scenario-grid,
  .story-rail, .cap-grid, .pillars, .grid-2, .cards { grid-template-columns: 1fr; }
  .story-rail article,
  .story-rail article + article {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .story-rail article:last-child,
  .story-rail article:nth-child(3) {
    border-bottom: 0;
    grid-column: auto;
  }
  .story-rail h3 { margin-top: 16px; }
  .cap-grid article:last-child,
  .pillars div:last-child { grid-column: auto; }
  .cap-grid article { min-height: 0; padding: 22px; }
  .docs-cta { padding: 28px 22px; }
  .finale-inner { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
  .workspace-head { align-items: start; flex-direction: column; }
  .connector { grid-template-columns: 1fr; }
  .auth-card { padding: 27px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-in {
    opacity: 1;
    transform: none;
  }
}
