:root {
  --bg: #0a0e1a;
  --bg-2: #070a13;
  --surface: rgba(20, 28, 44, 0.72);
  --surface-strong: rgba(15, 22, 36, 0.92);
  --surface-card: #131a2a;
  --ink: #f1f5f9;
  --ink-2: rgba(241, 245, 249, 0.86);
  --muted: rgba(148, 163, 184, 0.92);
  --muted-2: rgba(148, 163, 184, 0.62);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --accent-warm: #fbbf24;
  --accent-soft: rgba(94, 234, 212, 0.1);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 36px rgba(0, 0, 0, 0.32);
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 1200px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background: world-map style dot pattern overlay + radial glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 8% -8%, rgba(94, 234, 212, 0.16), transparent 60%),
    radial-gradient(900px 600px at 92% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(251, 191, 36, 0.06), transparent 70%),
    linear-gradient(180deg, #0a0e1a 0%, #080b14 60%, #06080e 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("./assets/station-bg.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

h1,
h2,
h3,
p,
ul,
dl {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: #06080e;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  z-index: 30;
  width: 100%;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: transparent;
  border-bottom: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max-width));
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 19, 31, 0.72);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  pointer-events: auto;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled .header-inner {
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(8, 13, 23, 0.82);
  box-shadow:
    0 26px 84px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(94, 234, 212, 0.05) inset;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #06080e;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
  overflow: hidden;
}

.brand-mark.has-avatar {
  background: var(--surface-card);
  color: transparent;
}

.brand-mark img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.brand-text span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* Navigation pill — like target page right-side capsule */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(15, 22, 36, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(94, 234, 212, 0.1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(15, 22, 36, 0.78);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* === Main / Sections === */
main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding-top: 96px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 118px;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.kicker,
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* The "FUNDAMENTAL STATION" style chip */
.station-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 7px 14px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.06);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.station-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.04); }
}

h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 .line-1,
h1 .line-2 {
  display: block;
}

h1 .line-2 {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

#cc-title span {
  display: block;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 700px;
  line-height: 1.7;
}

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(430px, 0.92fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0 80px;
}

.hero-copy {
  min-width: 0;
}

.hero-summary {
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 600px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(20, 28, 44, 0.6);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease;
}

.button .arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(94, 234, 212, 0.6);
  background: rgba(94, 234, 212, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #06080e;
  box-shadow: 0 12px 28px rgba(94, 234, 212, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(135deg, #74f0d8 0%, #56c8f5 100%);
  box-shadow: 0 16px 36px rgba(94, 234, 212, 0.36);
}

/* === Profile Card (right sidebar in hero) === */
.profile-card {
  position: relative;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5) 50%, transparent);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(56, 189, 248, 0.14), transparent 60%);
  z-index: 0;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-card-head > div {
  display: grid;
  flex: 1;
  min-width: 0;
}

.profile-card-head strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.profile-card-head span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #06080e;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px rgba(94, 234, 212, 0.32);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar.has-avatar {
  background: var(--surface-card);
  color: transparent;
}

.profile-tags {
  margin: 22px 0 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.profile-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.profile-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 12, 22, 0.5);
}

.profile-list span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: fit-content;
}

.profile-list p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

/* === Card Grids === */
.card-grid {
  display: grid;
  gap: 14px;
}

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

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* feature & flow cards — solid dark cards with step pill */
.feature-card,
.flow-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.feature-card::before,
.flow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.4) 50%, transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.feature-card:hover,
.flow-card:hover {
  border-color: rgba(94, 234, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 22px 44px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before,
.flow-card:hover::before {
  opacity: 1;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.feature-card h3,
.flow-card h3 {
  font-size: 19px;
  font-weight: 700;
}

.feature-card p,
.flow-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Color-rotate accents for visual rhythm */
.card-grid.three .feature-card:nth-child(2) .step-tag {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-2);
}

.card-grid.three .feature-card:nth-child(3) .step-tag {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-warm);
}

.card-grid.four .flow-card:nth-child(2) .step-tag {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-2);
}

.card-grid.four .flow-card:nth-child(3) .step-tag {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-warm);
}

.card-grid.four .flow-card:nth-child(4) .step-tag {
  border-color: rgba(167, 139, 250, 0.32);
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

/* === Partner === */
.partner-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.partner-card:hover {
  border-color: rgba(94, 234, 212, 0.36);
  transform: translateY(-3px);
}

.partner-num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.partner-card:nth-child(2) .partner-num { color: var(--accent-2); }
.partner-card:nth-child(3) .partner-num { color: var(--accent-warm); }
.partner-card:nth-child(4) .partner-num { color: #a78bfa; }

.partner-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.partner-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.partner-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* === JOIN Banner === */
.join-section {
  padding: 64px 0;
}

.join-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 36px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 280px at 0% 100%, rgba(94, 234, 212, 0.16), transparent 60%),
    radial-gradient(420px 280px at 100% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    var(--surface-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.join-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5) 50%, transparent);
}

.join-copy {
  min-width: 0;
}

.join-copy .kicker {
  margin-bottom: 14px;
}

.join-copy h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.join-copy h2 span:nth-of-type(1) {
  color: var(--accent);
}

.join-copy h2 span:nth-of-type(2) {
  color: var(--accent-2);
}

.join-copy h2 span:nth-of-type(3) {
  color: var(--accent-warm);
}

.join-copy .section-lead {
  margin-top: 14px;
}

.join-cards {
  display: grid;
  gap: 14px;
}

.join-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 12, 22, 0.6);
  transition: border-color 200ms ease, transform 200ms ease;
  overflow: hidden;
}

.join-card:hover {
  transform: translateY(-2px);
}

.join-tag {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.join-card strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.join-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-right: 28px;
}

.join-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 600;
  transition: transform 180ms ease;
}

.join-card:hover .join-arrow {
  transform: translateY(-50%) translateX(4px);
}

.join-card-warm {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, transparent 50%),
    rgba(34, 22, 12, 0.7);
  border-color: rgba(251, 191, 36, 0.36);
}

.join-card-warm strong,
.join-card-warm .join-arrow {
  color: var(--accent-warm);
}

.join-card-warm:hover {
  border-color: rgba(251, 191, 36, 0.7);
}

.join-card-cool {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, transparent 50%),
    rgba(8, 22, 34, 0.7);
  border-color: rgba(56, 189, 248, 0.36);
}

.join-card-cool strong,
.join-card-cool .join-arrow {
  color: var(--accent-2);
}

.join-card-cool:hover {
  border-color: rgba(56, 189, 248, 0.7);
}

/* === Cases === */
.case-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, transform 200ms ease;
  overflow: hidden;
}

.case-card:hover {
  border-color: rgba(94, 234, 212, 0.34);
  transform: translateY(-3px);
}

.case-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-card:nth-child(3n + 2) .case-tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-2);
}

.case-card:nth-child(3n + 3) .case-tag {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-warm);
}

.case-card h3 {
  font-size: 19px;
}

.case-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.case-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 2px;
}

.case-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.case-status.is-live {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(94, 234, 212, 0.1);
  color: var(--accent);
}

.case-status.is-local {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-2);
}

.case-status.is-planned {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-warm);
}

.project-status-inline {
  margin-top: 22px;
}

/* === Document Agent Showcase === */
.document-agent-showcase {
  padding-top: 44px;
}

.document-showcase-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: 30px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 340px at 0% 0%, rgba(94, 234, 212, 0.18), transparent 58%),
    radial-gradient(520px 340px at 100% 100%, rgba(56, 189, 248, 0.14), transparent 60%),
    rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.document-showcase-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%);
  pointer-events: none;
}

.document-showcase-copy {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.document-showcase-copy h2 {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.document-showcase-copy h2 span:nth-child(2) {
  color: var(--accent);
}

.document-showcase-copy .section-lead {
  margin-top: 18px;
}

.document-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.document-workflow-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 18, 0.58);
}

.workflow-node {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.74);
}

.workflow-node span {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-node strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.workflow-node.is-agent {
  border-color: rgba(94, 234, 212, 0.34);
  background: rgba(15, 118, 110, 0.14);
}

.workflow-node.is-output {
  border-color: rgba(56, 189, 248, 0.32);
}

.workflow-line {
  width: 1px;
  height: 24px;
  margin-left: 22px;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.65), rgba(56, 189, 248, 0.18));
}

.document-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.document-feature-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.document-feature-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.document-feature-grid article:nth-child(2) span {
  color: var(--accent-2);
}

.document-feature-grid article:nth-child(3) span {
  color: var(--accent-warm);
}

.document-feature-grid article:nth-child(4) span {
  color: #a78bfa;
}

.document-feature-grid h3 {
  color: var(--ink);
  font-size: 18px;
}

.document-feature-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* === AI Task Workbench Showcase === */
.task-workbench-showcase {
  padding-top: 44px;
}

.task-showcase-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 340px at 12% 0%, rgba(56, 189, 248, 0.18), transparent 58%),
    radial-gradient(520px 340px at 100% 100%, rgba(251, 191, 36, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.task-showcase-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%);
  pointer-events: none;
}

.task-showcase-copy,
.task-preview-card {
  position: relative;
  z-index: 1;
}

.task-showcase-copy h2 {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.task-showcase-copy h2 span:nth-child(2) {
  color: var(--accent-2);
}

.task-showcase-copy .section-lead {
  margin-top: 18px;
}

.task-preview-card,
.task-detail-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 18, 0.58);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.task-preview-card img,
.task-detail-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.task-preview-card figcaption,
.task-detail-shot figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.task-detail-media {
  padding-top: 10px;
}

/* === Project detail pages === */
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: end;
  padding-top: 64px;
}

.project-hero .section-heading {
  max-width: 860px;
  margin-bottom: 0;
}

.project-snapshot {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.09) 0%, transparent 52%),
    var(--surface-card);
  box-shadow: var(--shadow-card);
}

.snapshot-row {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.5);
}

.snapshot-row span {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-row strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(8, 12, 22, 0.64);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

/* === Stack === */
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list li {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 28, 44, 0.6);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: default;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease,
    background 180ms ease;
}

.stack-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.contact-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
}

.contact-topics li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.08) 0%, transparent 55%),
    var(--surface-card);
  box-shadow: var(--shadow-card);
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.55;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-topics li::before {
  content: "→";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}

.contact-topics li:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.13) 0%, transparent 58%),
    var(--surface-card);
  transform: translateY(-2px);
}

.contact-section-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.1), rgba(96, 165, 250, 0.08)),
    rgba(15, 23, 42, 0.72);
}

.contact-section-cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.contact-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(94, 234, 212, 0.1) 0%, transparent 50%),
    var(--surface-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5) 50%, transparent);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-card-head > div {
  display: grid;
}

.contact-card-head strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.contact-meta {
  display: grid;
  gap: 14px;
  margin: 22px 0 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.qr-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px dashed rgba(94, 234, 212, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 58%),
    rgba(8, 12, 22, 0.48);
  text-align: center;
}

.qr-placeholder img {
  width: min(100%, 280px);
  max-height: 360px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
}

.qr-placeholder img:not([src]),
.qr-placeholder img[src=""] {
  display: none;
}

.qr-placeholder span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.qr-placeholder p {
  color: var(--muted);
  font-size: 13px;
}

.qr-placeholder.is-missing {
  min-height: 150px;
}

.contact-meta > div {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}

.contact-meta dt {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.contact-meta dd a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 160ms ease, color 160ms ease;
}

.contact-meta dd a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-page {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
}

.contact-page .section-heading {
  max-width: 820px;
}

.contact-page #contact-page-title {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.contact-page-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.1) 0%, transparent 42%),
    var(--surface-card);
  box-shadow: var(--shadow-card);
}

.contact-page-copy h2 {
  max-width: 620px;
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.contact-page-copy p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.contact-page-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 18, 0.42);
}

.contact-page-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

.contact-page-list li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
}

.contact-page-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-direct-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.08), transparent 48%),
    rgba(5, 10, 18, 0.46);
}

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

.direct-contact-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.6fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.56);
}

.direct-contact-list span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.direct-contact-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.direct-contact-list button,
.direct-contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(20, 28, 44, 0.74);
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.direct-contact-list button:hover,
.direct-contact-list button:focus-visible,
.direct-contact-list a:hover,
.direct-contact-list a:focus-visible {
  border-color: rgba(94, 234, 212, 0.58);
  background: rgba(94, 234, 212, 0.1);
  outline: none;
}

.delivery-dialog {
  width: min(100% - 28px, 560px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--ink);
}

.delivery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.delivery-dialog-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.1), transparent 46%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.delivery-dialog-card h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.delivery-dialog-card p,
.delivery-dialog-card li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.delivery-dialog-card ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  list-style: disc;
}

.delivery-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* === Footer === */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

/* === Toast === */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 50;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast[hidden] {
  display: none;
}

/* === Responsive === */
@media (max-width: 980px) {
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
  }

  .header-inner {
    height: 64px;
  }

  .brand-text span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 72px;
  }

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

  .document-showcase-panel {
    grid-template-columns: 1fr;
  }

  .task-showcase-panel {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .card-grid.three,
  .card-grid.two,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-banner {
    grid-template-columns: 1fr;
    padding: 32px;
  }

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

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

  .contact-page-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  main {
    width: calc(100% - 24px);
    padding-top: 86px;
  }

  .site-footer {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 44px 0 60px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-summary {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-summary {
    font-size: 16px;
    line-height: 1.75;
  }

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

  .hero-actions .button {
    justify-content: center;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .card-grid.three,
  .card-grid.two,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .contact-topics {
    grid-template-columns: 1fr;
  }

  .contact-section-cta {
    align-items: stretch;
  }

  .contact-section-cta .button {
    justify-content: center;
  }

  .document-showcase-panel {
    padding: 24px;
  }

  .task-showcase-panel {
    padding: 24px;
  }

  .document-action-row {
    flex-direction: column;
  }

  .document-action-row .button {
    justify-content: center;
  }

  .document-feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-panel {
    padding: 22px;
  }

  .contact-page-actions {
    flex-direction: column;
  }

  .contact-page-actions .button {
    justify-content: center;
  }

  .direct-contact-list {
    grid-template-columns: 1fr;
  }

  .direct-contact-list > div {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .direct-contact-list button,
  .direct-contact-list a {
    width: 100%;
  }

  .profile-card,
  .contact-card {
    padding: 22px;
  }

  .partner-card {
    padding: 24px;
  }

  .feature-card,
  .flow-card,
  .case-card {
    padding: 22px;
  }

  .project-snapshot {
    padding: 18px;
  }

  .stack-list li {
    padding: 9px 14px;
    font-size: 13px;
  }

  .contact-meta > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .contact-actions .button {
    justify-content: center;
  }
}

/* === Relay Page Compact Layout === */
.relay-page main {
  padding-top: 84px;
}

.relay-page .hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.88fr);
  gap: 30px;
  padding: 38px 0 50px;
}

.relay-page .station-chip {
  margin-bottom: 18px;
}

.relay-page .hero-summary {
  margin-top: 18px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
}

.relay-page .hero-actions {
  gap: 10px;
  margin-top: 24px;
}

.relay-page .button {
  height: 44px;
  padding: 0 18px;
}

.relay-page .profile-card {
  min-height: 0;
  padding: 26px;
}

.relay-page .profile-card-head {
  gap: 14px;
  padding-bottom: 16px;
}

.relay-page .profile-card-head strong {
  font-size: 20px;
}

.relay-page .profile-card-head span,
.relay-page .profile-tags {
  font-size: 14px;
}

.relay-page .profile-tags {
  margin: 16px 0 2px;
}

.relay-page .profile-list {
  gap: 10px;
  margin-top: 14px;
}

.relay-page .profile-list li {
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 14px;
}

.relay-page .profile-list p {
  font-size: 14px;
  line-height: 1.58;
}

.relay-page .section {
  padding: 56px 0;
}

.relay-page .section-heading {
  margin-bottom: 28px;
}

.relay-page .section-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
}

.relay-page .kicker,
.relay-page .eyebrow {
  margin-bottom: 12px;
}

.relay-page .join-section {
  padding: 38px 0;
}

.relay-page .join-banner,
.relay-page .document-showcase-panel,
.relay-page .task-showcase-panel {
  gap: 24px;
  padding: 28px;
}

.relay-page .join-copy h2,
.relay-page .document-showcase-copy h2,
.relay-page .task-showcase-copy h2 {
  line-height: 1.08;
}

.relay-page .join-cards {
  gap: 10px;
}

.relay-page .join-card {
  gap: 6px;
  padding: 18px;
}

.relay-page .join-card strong {
  font-size: 22px;
}

.relay-page .feature-card,
.relay-page .flow-card,
.relay-page .partner-card,
.relay-page .case-card,
.relay-page .document-feature-grid article {
  gap: 10px;
  padding: 20px;
}

.relay-page .feature-card p,
.relay-page .flow-card p,
.relay-page .partner-card p,
.relay-page .case-card p,
.relay-page .document-feature-grid p {
  line-height: 1.62;
}

.relay-page .partner-card h3 {
  margin-bottom: 6px;
}

.relay-page .partner-num {
  margin-bottom: 12px;
}

.relay-page .partner-cta {
  margin-top: 24px;
}

.relay-page .document-agent-showcase,
.relay-page .task-workbench-showcase {
  padding-top: 34px;
}

.relay-page .document-action-row {
  margin-top: 20px;
}

.relay-page .document-workflow-card {
  gap: 10px;
  padding: 18px;
}

.relay-page .workflow-node {
  padding: 13px;
}

.relay-page .workflow-line {
  height: 16px;
}

.relay-page .document-feature-grid {
  gap: 12px;
  margin-top: 12px;
}

.relay-page .task-preview-card figcaption,
.relay-page .task-detail-shot figcaption {
  padding: 12px 14px;
}

.relay-page .contact-topics {
  gap: 12px;
}

.relay-page .contact-topics li {
  min-height: 86px;
  padding: 16px;
  font-size: 14.5px;
}

.relay-page .contact-section-cta {
  padding: 18px 20px;
}

.relay-page .stack-list {
  gap: 8px;
}

.relay-page .stack-list li {
  padding: 8px 14px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .relay-page main {
    padding-top: 82px;
  }

  .relay-page .hero,
  .relay-page .join-banner,
  .relay-page .document-showcase-panel,
  .relay-page .task-showcase-panel {
    grid-template-columns: 1fr;
  }

  .relay-page .hero {
    gap: 24px;
    padding: 34px 0 44px;
  }

  .relay-page .section {
    padding: 46px 0;
  }

  .relay-page .join-section {
    padding: 32px 0;
  }

  .relay-page .section-heading {
    margin-bottom: 24px;
  }

  .relay-page .card-grid.three,
  .relay-page .card-grid.two,
  .relay-page .card-grid.four,
  .relay-page .document-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .relay-page main {
    padding-top: 78px;
  }

  .relay-page .hero {
    padding: 28px 0 38px;
  }

  .relay-page .hero-actions {
    margin-top: 20px;
  }

  .relay-page .profile-card,
  .relay-page .join-banner,
  .relay-page .document-showcase-panel,
  .relay-page .task-showcase-panel {
    padding: 20px;
  }

  .relay-page .profile-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .relay-page .section {
    padding: 38px 0;
  }

  .relay-page .join-section {
    padding: 28px 0;
  }

  .relay-page .card-grid.three,
  .relay-page .card-grid.two,
  .relay-page .card-grid.four,
  .relay-page .document-feature-grid,
  .relay-page .contact-topics {
    grid-template-columns: 1fr;
  }

  .relay-page .feature-card,
  .relay-page .flow-card,
  .relay-page .partner-card,
  .relay-page .case-card,
  .relay-page .document-feature-grid article {
    padding: 18px;
  }
}

/* === Legacy Article / Tool Pages Compatibility === */
.site-header > .brand,
.site-header > .nav-links {
  pointer-events: auto;
}

.site-header > .brand {
  position: absolute;
  left: max(16px, calc((100vw - var(--max-width)) / 2));
  top: 0;
  min-height: 58px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 19, 31, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.site-header > .nav-links {
  position: absolute;
  right: max(16px, calc((100vw - var(--max-width)) / 2));
  top: 0;
}

.article-main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding-top: 118px;
}

.article-hero {
  position: relative;
  padding: 56px 0 44px;
}

.article-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 28, 44, 0.66);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(20, 28, 44, 0.72);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tool-button:hover,
.tool-button:focus-visible {
  border-color: rgba(94, 234, 212, 0.58);
  background: rgba(94, 234, 212, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.tool-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #061018;
  box-shadow: 0 14px 30px rgba(94, 234, 212, 0.24);
}

.tool-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* === Ops Speech Generator === */
.ops-main {
  max-width: 1180px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.ops-hero-copy {
  min-width: 0;
}

.ops-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
}

.ops-console-card,
.ops-panel,
.ops-mode-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.08), transparent 48%),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow-card);
}

.ops-console-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px;
  min-height: 320px;
}

.ops-console-head,
.ops-panel-head,
.ops-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ops-console-head span,
.ops-console-grid span,
.ops-mode-card > span,
.ops-field > span,
.ops-mini-label {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-console-head strong {
  color: var(--accent);
  font-size: 15px;
}

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

.ops-console-grid div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 10, 18, 0.44);
}

.ops-console-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.ops-signal-stack {
  display: grid;
  gap: 9px;
}

.ops-signal-stack span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent), var(--accent-2)) 0 / var(--value) 100% no-repeat,
    rgba(148, 163, 184, 0.16);
}

.ops-mode-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ops-mode-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.ops-mode-card.is-active {
  border-color: rgba(94, 234, 212, 0.34);
}

.ops-mode-card strong {
  color: var(--ink);
  font-size: 18px;
}

.ops-mode-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.ops-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 72px;
}

.ops-panel {
  padding: 24px;
}

.ops-panel-head {
  margin-bottom: 20px;
}

.ops-panel-head h2 {
  margin-top: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}

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

.ops-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ops-field-full {
  grid-column: 1 / -1;
}

.ops-select,
.ops-textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 10, 18, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ops-select {
  min-height: 44px;
  padding: 0 12px;
}

.ops-textarea {
  min-height: 116px;
  resize: vertical;
  padding: 12px;
  line-height: 1.65;
}

.ops-select:focus,
.ops-textarea:focus {
  border-color: rgba(94, 234, 212, 0.58);
  background: rgba(8, 12, 22, 0.86);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.ops-result-stack {
  display: grid;
  gap: 12px;
}

.ops-output-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 18, 0.48);
}

.ops-output-card h3 {
  font-size: 17px;
}

.ops-output-card p,
.ops-warning-list li {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.ops-copy-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(20, 28, 44, 0.78);
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

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

.ops-message-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
}

.ops-message-item > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.ops-warning-list {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  list-style: disc;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .site-header > .brand {
    left: 12px;
  }

  .site-header > .nav-links {
    right: 12px;
  }

  .ops-hero,
  .ops-workbench,
  .ops-mode-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header > .brand {
    max-width: calc(100vw - 24px);
    min-height: 54px;
  }

  .site-header > .nav-links {
    display: none;
  }

  .article-main {
    width: calc(100% - 24px);
    padding-top: 92px;
  }

  .article-hero {
    padding: 36px 0 28px;
  }

  .ops-console-card,
  .ops-panel,
  .ops-mode-card {
    padding: 18px;
  }

  .ops-fields,
  .ops-console-grid {
    grid-template-columns: 1fr;
  }

  .ops-actions,
  .ops-panel-head,
  .ops-output-head {
    align-items: stretch;
  }

  .ops-actions .tool-button,
  .ops-panel-head .tool-button {
    width: 100%;
  }

  .ops-message-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ops-message-item .ops-copy-button {
    grid-column: 2;
    width: fit-content;
  }
}
