/* Leadfive — AIOS home page components (dark editorial, gold signal).
   Tokens, header, footer and buttons live in aios-base.css, which must be loaded first.
   Source of truth: DESIGN.md. Japanese-first labels; English only as small accents. */

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-base);
  font-family: var(--font-body);
  font-feature-settings: "palt" 1;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--bg-base);
  background: var(--gold-bright);
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3,
p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
}

.hero__copy,
.flow-card,
.section-intro,
.friction-grid,
.architecture,
.architecture__visual,
.use-case-grid,
.proof-list,
.expansion__region,
.industry-note {
  min-width: 0;
}

/* Labels */
.eyebrow,
.section-label,
.card-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.eyebrow i,
.section-label i,
.card-kicker i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: var(--gold);
  border-radius: 50%;
}

.section-label b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 56px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 78% 40%, rgba(214, 173, 85, 0.1), transparent 26%),
    radial-gradient(circle at 12% 92%, rgba(214, 173, 85, 0.06), transparent 28%),
    linear-gradient(180deg, #0a0a0f 0%, #0c0c12 100%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
}

.signal-canvas {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms ease;
  pointer-events: none;
}

.signal-canvas.is-ready {
  opacity: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(440px, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(46px, 5.4vw, 80px);
  line-height: 1.14;
}

.hero h1 span {
  display: inline-block;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 34px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-subtle);
}

.trust-badge {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  transition: color 180ms ease;
}

.trust-badge:hover {
  color: var(--text-primary);
}

.trust-badge img {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
}

.trust-badge strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.hero__footprint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  color: var(--text-tertiary);
  font-size: 12px;
  list-style: none;
}

.hero__footprint li {
  position: relative;
  padding-left: 12px;
}

.hero__footprint li::before {
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

/* Hero visual — sample workflow card (labelled as a sample, not a product screen) */
.flow-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: rgba(17, 17, 24, 0.9);
  border: 1px solid var(--line-default);
  border-radius: 16px;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 500ms var(--ease-soft);
  will-change: transform;
}

.flow-card::before {
  position: absolute;
  top: -140px;
  right: -110px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(214, 173, 85, 0.18), transparent 66%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.flow-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 12px;
}

.flow-card__head strong {
  color: var(--text-primary);
  font-weight: 600;
}

.flow-card__head small {
  margin-left: 8px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.flow-card__status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.flow-card__status i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: statusPulse 2.4s ease-in-out infinite;
}

.flow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px;
  list-style: none;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 16px 16px 14px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  transition: border-color 320ms ease, background-color 320ms ease, transform 320ms var(--ease-soft);
}

.flow-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--line-default);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease;
}

.flow-step.is-active {
  background: rgba(214, 173, 85, 0.075);
  border-color: var(--gold-line);
  transform: translateX(4px);
}

.flow-step.is-active > span {
  color: var(--bg-base);
  background: var(--gold);
  border-color: var(--gold);
}

.flow-step.is-done > span {
  color: var(--gold-bright);
  border-color: var(--gold-line);
}

.flow-step__title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.flow-step__title small {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
}

.flow-mail {
  margin: 0;
  padding: 12px 14px;
  color: var(--text-secondary);
  background: rgba(17, 17, 24, 0.9);
  border-left: 2px solid var(--line-strong);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  line-height: 1.75;
}

.flow-mail small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.flow-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-lines li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.7;
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity 420ms ease, transform 420ms var(--ease-out);
}

.flow-lines li b {
  color: var(--gold-bright);
  font-weight: 600;
}

.flow-step.is-active .flow-lines li,
.flow-step.is-done .flow-lines li {
  opacity: 1;
  transform: translateX(0);
}

.flow-step.is-active .flow-lines li:nth-child(1) { transition-delay: 120ms; }
.flow-step.is-active .flow-lines li:nth-child(2) { transition-delay: 520ms; }
.flow-step.is-active .flow-lines li:nth-child(3) { transition-delay: 920ms; }

.flow-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.flow-gate p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.flow-gate__buttons {
  display: flex;
  gap: 8px;
}

.flow-gate__buttons span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--text-secondary);
  border: 1px solid var(--line-default);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.flow-gate__buttons .is-approve {
  color: var(--bg-base);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow);
}

.flow-step.is-active .flow-gate__buttons .is-approve {
  animation: approvePulse 1.6s ease-out infinite;
}

.flow-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-result li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: var(--text-secondary);
  background: rgba(17, 17, 24, 0.9);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  font-size: 11.5px;
}

.flow-card__note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 20px 16px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--line-subtle);
  font-size: 11px;
}

/* Compact flow strip (mobile only) */
.flow-strip {
  display: none;
  gap: 6px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.flow-strip li {
  display: grid;
  gap: 6px;
  padding: 12px 10px;
  background: rgba(17, 17, 24, 0.9);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 320ms ease, background-color 320ms ease;
}

.flow-strip li span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
}

.flow-strip li.is-active {
  background: rgba(214, 173, 85, 0.08);
  border-color: var(--gold-line);
}

.flow-strip .is-gate {
  color: var(--gold-bright);
}

/* Section rhythm — light "paper" sections are enabled only by data-rhythm="alternate" on body.
   Every component reads the tokens below, so removing the attribute returns the page to all-dark. */
[data-rhythm="alternate"] .section--light {
  --bg-base: #f5f2ea;
  --bg-elevated: #fbfaf5;
  --bg-overlay: #ffffff;
  --bg-soft: #efebe1;
  --text-primary: #16151b;
  --text-secondary: #4b4942;
  --text-tertiary: #6d6a61;
  --gold: #7f6019;
  --gold-bright: #6a4f12;
  --gold-dim: rgba(127, 96, 25, 0.1);
  --gold-line: rgba(127, 96, 25, 0.42);
  --gold-glow: rgba(127, 96, 25, 0.18);
  --line-subtle: rgba(22, 21, 27, 0.08);
  --line-default: rgba(22, 21, 27, 0.14);
  --line-strong: rgba(22, 21, 27, 0.26);
  --shadow-panel: 0 24px 60px rgba(22, 21, 27, 0.1);
  color: var(--text-primary);
  background: var(--bg-base);
}

[data-rhythm="alternate"] .section--light + .section,
[data-rhythm="alternate"] .section + .section--light {
  border-top: 0;
}

[data-rhythm="alternate"] .section--light ::selection {
  color: #fff;
  background: #8a6a1e;
}

[data-rhythm="alternate"] .section--light .friction-card:hover,
[data-rhythm="alternate"] .section--light .use-case:hover,
[data-rhythm="alternate"] .section--light .practice-card:hover {
  box-shadow: 0 18px 44px rgba(22, 21, 27, 0.1);
}

/* Shared sections */
.section {
  position: relative;
  padding: clamp(96px, 10vw, 124px) 0;
}

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

.section-intro h2,
.section-head h2,
.contact-band h2 {
  margin-bottom: 26px;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.16;
}

.section-intro h2 {
  font-size: clamp(36px, 3.6vw, 50px);
}

.section-intro h2 span,
.section-head h2 span,
.expansion__region h2 span,
.contact-band h2 span,
.contact-context h2 span {
  display: inline-block;
}

.section-intro > p:not(.section-label),
.section-head__body > p {
  color: var(--text-secondary);
  line-height: 1.95;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
  gap: 8.333%;
  align-items: end;
  margin-bottom: 64px;
}

.section-head h2 {
  max-width: 770px;
  margin-bottom: 0;
}

.section-head__body p {
  margin-bottom: 20px;
}

/* 01 — the shift */
.shift {
  background:
    radial-gradient(circle at 9% 12%, rgba(214, 173, 85, 0.055), transparent 25%),
    var(--bg-base);
}

.shift__grid,
.proof__grid {
  display: grid;
  grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr);
  gap: 8.333%;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.friction-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.friction-card,
.use-case,
.industry-note,
.dx-block {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.friction-card:hover,
.use-case:hover,
.industry-note:hover {
  border-color: var(--gold-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.friction-card {
  min-height: 226px;
  padding: 28px;
}

.friction-card--primary {
  grid-row: span 2;
  min-height: 466px;
  padding: 38px;
  background:
    linear-gradient(155deg, rgba(214, 173, 85, 0.12), transparent 60%),
    var(--bg-overlay);
}

.friction-card--primary::after {
  position: absolute;
  right: -74px;
  bottom: -74px;
  width: 210px;
  height: 210px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  content: "";
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.friction-card--primary .card-index {
  margin-bottom: 84px;
}

.friction-card h3,
.use-case h3,
.industry-note h3,
.dx-block h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.28;
}

.friction-card:not(.friction-card--primary) h3 {
  font-size: 27px;
}

.friction-card p,
.use-case p,
.industry-note p,
.dx-block p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.card-kicker {
  margin-bottom: 14px;
  font-size: 11px;
}

/* 02 — AIOS architecture */
.aios {
  background: var(--bg-elevated);
}

.architecture {
  padding: 18px;
  background: var(--bg-base);
  border: 1px solid var(--line-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-panel);
}

.architecture__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
  padding: 42px 48px;
  overflow: hidden;
  background:
    linear-gradient(var(--line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(214, 173, 85, 0.12), transparent 44%);
  background-size: 42px 42px, 42px 42px, auto;
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
}

.architecture__axis {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.architecture__axis i {
  position: relative;
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-default), var(--gold));
}

.architecture__axis i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
  content: "";
}

.architecture__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  perspective: 900px;
}

.stack-layer {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 16px 22px;
  background: rgba(10, 10, 15, 0.84);
  border: 1px solid var(--line-default);
  border-left: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transform: rotateX(2deg) translateX(var(--shift, 0));
  transition: border-color 260ms ease, background-color 260ms ease;
}

.stack-layer.is-active {
  background: rgba(214, 173, 85, 0.11);
  border-color: var(--gold-line);
}

.stack-layer--knowledge { --shift: 0; }
.stack-layer--agents { --shift: 18px; }
.stack-layer--approval { --shift: 36px; }
.stack-layer--measure { --shift: 54px; }

.stack-layer span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.stack-layer div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
}

.stack-layer strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stack-layer small {
  color: var(--text-tertiary);
  font-size: 12.5px;
}

.architecture__guardrails {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 44px;
}

.architecture__guardrails p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.architecture__guardrails span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text-secondary);
  background: rgba(10, 10, 15, 0.76);
  border: 1px solid var(--line-subtle);
  border-left: 2px solid var(--gold-line);
  border-radius: 8px;
  font-size: 13px;
}

/* 03 — use cases */
.use-cases {
  overflow: hidden;
}

.use-case-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 1fr;
  grid-template-rows: repeat(2, minmax(210px, auto));
  gap: 14px;
}

.use-case {
  min-height: 210px;
  padding: 28px;
}

.use-case--feature {
  grid-row: 1 / 3;
  min-height: 434px;
  padding: 40px;
  background:
    radial-gradient(circle at 76% 19%, rgba(214, 173, 85, 0.15), transparent 24%),
    var(--bg-overlay);
}

.use-case:nth-child(4) {
  grid-column: 2 / 4;
}

.use-case .card-index {
  margin-bottom: 42px;
}

.use-case--feature .card-index {
  margin-bottom: 70px;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-subtle);
}

.mini-flow span {
  padding: 8px 11px;
  color: var(--text-secondary);
  background: var(--bg-base);
  border: 1px solid var(--line-default);
  border-radius: 6px;
  font-size: 11.5px;
  white-space: nowrap;
}

.mini-flow .mini-flow__gate {
  color: var(--gold-bright);
  border-color: var(--gold-line);
}

.mini-flow i {
  width: 16px;
  height: 1px;
  background: var(--gold-line);
}

/* 04 — proof */
.proof {
  background:
    linear-gradient(125deg, rgba(214, 173, 85, 0.05), transparent 35%),
    var(--bg-elevated);
}

.proof-list {
  border-top: 1px solid var(--line-default);
}

.proof-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line-default);
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.proof-list article:hover {
  padding-left: 24px;
  background: rgba(214, 173, 85, 0.055);
}

.proof-list article > span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.proof-list h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

.proof-list h3 small {
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.proof-list p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.proof__policy {
  display: inline-block;
  margin-top: 24px;
  padding: 7px 11px;
  color: var(--text-tertiary) !important;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dx-block {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: 34px 38px;
  background:
    linear-gradient(135deg, rgba(214, 173, 85, 0.1), transparent 55%),
    var(--bg-overlay);
  border-color: var(--gold-line);
}

.dx-block__logo {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.dx-block__logo img {
  width: min(100%, 240px);
}

.dx-block__logo small {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.dx-block h3 {
  font-size: clamp(24px, 2.3vw, 32px);
}

.dx-block p + p {
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.75;
}

.dx-block .text-link {
  margin-top: 18px;
}

/* 05 — practice */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 14px;
}

.practice-card {
  position: relative;
  padding: 30px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.practice-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-4px);
}

.practice-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
}

.practice-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.practice-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-links a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--line-default);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 180ms ease, transform 180ms ease;
}

.practice-links a:hover {
  border-color: var(--gold-line);
  transform: translateX(4px);
}

.practice-links a span {
  min-width: 64px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.practice-links a i {
  margin-left: auto;
  color: var(--gold);
  font-style: normal;
}

/* 06 — expansion */
.expansion {
  background: var(--bg-base);
}

.expansion__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: 8.333%;
  align-items: stretch;
}

.expansion__region {
  position: relative;
  min-height: 440px;
  padding: 54px;
  overflow: hidden;
  background:
    linear-gradient(var(--line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(214, 173, 85, 0.16), transparent 34%),
    var(--bg-elevated);
  background-size: 52px 52px, 52px 52px, auto, auto;
  border: 1px solid var(--line-subtle);
  border-radius: 14px;
}

.expansion__region h2 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.12;
}

.expansion__region > p:not(.section-label) {
  max-width: 620px;
  color: var(--text-secondary);
}

.route {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 70px;
  font-size: 13px;
  font-weight: 600;
}

.route span:first-child {
  color: var(--gold-bright);
}

.route i {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--line-default);
}

.route i::before {
  position: absolute;
  inset: 0;
  background: var(--gold);
  content: "";
  transform: scaleX(var(--draw, 1));
  transform-origin: left;
}

.route i::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
  opacity: var(--draw, 1);
}

.industry-note {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.industry-note .text-link {
  align-self: flex-start;
  margin-top: 28px;
}

/* Contact band and footer */
.contact-band {
  padding: clamp(88px, 9vw, 116px) 0;
  background:
    radial-gradient(circle at 8% 50%, rgba(214, 173, 85, 0.12), transparent 28%),
    var(--bg-overlay);
  border-block: 1px solid var(--gold-line);
}

.contact-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
  gap: 8.333%;
  align-items: end;
}

.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-band__inner > div:last-child p {
  margin-bottom: 26px;
  color: var(--text-secondary);
}

/* Contact page */
.contact-page {
  background:
    radial-gradient(circle at 80% 8%, rgba(214, 173, 85, 0.08), transparent 28%),
    var(--bg-base);
}

.contact-page__intro {
  padding: calc(var(--header-height) + 92px) 0 72px;
  border-bottom: 1px solid var(--line-subtle);
}

.contact-page__intro .shell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 8.333%;
  align-items: end;
}

.contact-page__intro h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 1.1;
}

.contact-page__intro h1 span {
  display: inline-block;
}

.contact-page__intro p:last-child {
  margin: 0;
  color: var(--text-secondary);
}

.contact-page__body {
  padding: 92px 0 120px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(0, 7fr);
  gap: 8.333%;
  align-items: start;
}

.contact-context {
  position: sticky;
  top: calc(var(--header-height) + 44px);
}

.contact-context h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.18;
}

.contact-context > p {
  color: var(--text-secondary);
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.contact-details div {
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
}

.contact-details small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.contact-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-form-panel {
  padding: 42px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-default);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
}

.contact-form-panel__head {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-subtle);
}

.contact-form-panel__head h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-form-panel__head p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.composer {
  display: grid;
  gap: 22px;
}

.composer__group {
  display: grid;
  gap: 8px;
  margin: 0;
}

.composer__group label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.composer__group label b {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.composer__group small {
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.7;
}

.composer__group input,
.composer__group textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--line-default);
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.composer__group input:hover,
.composer__group textarea:hover {
  border-color: var(--line-strong);
}

.composer__group input:focus,
.composer__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 173, 85, 0.12);
  outline: none;
}

.composer__group textarea {
  min-height: 120px;
  resize: vertical;
}

.composer__group input::placeholder,
.composer__group textarea::placeholder {
  color: #77756f;
}

.composer__actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.composer__actions .button {
  width: 100%;
  cursor: pointer;
}

.composer__note {
  margin: 4px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.7;
}

.composer__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--gold-bright);
  font-size: 13px;
}

/* Motion */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js.has-gsap [data-reveal] {
  transition: none;
}

.hero__copy > *,
.flow-card {
  opacity: 0;
  animation: heroIn 820ms var(--ease-out) forwards;
}

.hero__copy > :nth-child(1) { animation-delay: 80ms; }
.hero__copy > :nth-child(2) { animation-delay: 160ms; }
.hero__copy > :nth-child(3) { animation-delay: 260ms; }
.hero__copy > :nth-child(4) { animation-delay: 360ms; }
.hero__copy > :nth-child(5) { animation-delay: 440ms; }
.hero__copy > :nth-child(6) { animation-delay: 520ms; }
.flow-card { animation-delay: 300ms; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.84); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes approvePulse {
  0% { box-shadow: 0 0 0 0 var(--gold-glow); }
  70% { box-shadow: 0 0 0 10px rgba(214, 173, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 173, 85, 0); }
}

/* Responsive */
@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 40px;
  }

  .architecture__visual {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .architecture__guardrails {
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }

  .architecture__guardrails p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding: calc(var(--header-height) + 52px) 0 64px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(42px, 8.4vw, 64px);
  }

  .flow-card {
    transform: none;
  }

  .section-intro {
    position: static;
    margin-bottom: 44px;
  }

  .shift__grid,
  .proof__grid,
  .expansion__grid,
  .section-head,
  .contact-band__inner,
  .footer__main,
  .contact-page__intro .shell,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-head {
    margin-bottom: 44px;
  }

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

  .friction-card--primary {
    grid-row: auto;
    min-height: 0;
  }

  .use-case-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .use-case--feature {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 0;
  }

  .use-case:nth-child(4) {
    grid-column: auto;
  }

  .expansion__region,
  .industry-note {
    min-height: 0;
  }

  .dx-block {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .contact-context {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: calc(var(--header-height) + 40px) 0 56px;
  }

  .hero::after {
    background-size: 48px 48px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 11.2vw, 46px);
    line-height: 1.18;
  }

  .hero__lead {
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.9;
  }

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

  .hero__actions .button {
    width: 100%;
  }

  .flow-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .flow-strip li {
    padding: 10px 8px;
    font-size: 11px;
  }

  .hero__trust {
    margin-top: 28px;
    padding-top: 22px;
  }

  .trust-badge img {
    width: 84px;
  }

  .hero__footprint {
    gap: 8px 16px;
  }

  .flow-card__head {
    flex-wrap: wrap;
    gap: 6px 12px;
    min-height: 0;
    padding: 14px 16px;
  }

  .flow-steps {
    padding: 12px;
  }

  .flow-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
  }

  .flow-step > span {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .flow-step.is-active {
    transform: none;
  }

  .flow-lines li {
    grid-template-columns: 54px minmax(0, 1fr);
    font-size: 12px;
  }

  .section {
    padding: 76px 0;
  }

  .section-intro h2,
  .section-head h2,
  .contact-band h2 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .friction-card,
  .friction-card--primary,
  .use-case,
  .use-case--feature,
  .industry-note {
    padding: 24px;
  }

  .friction-card--primary .card-index,
  .use-case--feature .card-index,
  .card-index {
    margin-bottom: 30px;
  }

  .friction-card h3,
  .friction-card:not(.friction-card--primary) h3,
  .use-case h3,
  .industry-note h3 {
    font-size: 25px;
  }

  .architecture {
    padding: 10px;
  }

  .architecture__visual {
    padding: 22px 16px;
  }

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

  .architecture__guardrails span {
    min-height: 40px;
    font-size: 12.5px;
  }

  .stack-layer {
    grid-template-columns: 30px 1fr;
    min-height: 60px;
    padding: 14px 16px;
    transform: none;
  }

  .stack-layer div {
    gap: 2px 12px;
  }

  .practice-card {
    padding: 24px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .proof-list article {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    min-height: 84px;
    padding: 16px 10px;
  }

  .proof-list h3 {
    font-size: 21px;
  }

  .dx-block {
    padding: 26px 22px;
  }

  .expansion__region {
    padding: 30px 24px;
  }

  .expansion__region h2 {
    font-size: clamp(34px, 9.4vw, 44px);
  }

  .route {
    flex-wrap: wrap;
    margin-top: 44px;
  }

  .route i {
    width: 32px;
  }

  .contact-page__intro {
    padding: calc(var(--header-height) + 60px) 0 52px;
  }

  .contact-page__intro h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .contact-page__body {
    padding: 60px 0 84px;
  }

  .contact-form-panel {
    padding: 26px 20px;
  }

  .contact-form-panel__head h2 {
    font-size: 27px;
  }
}

@media (hover: none) {
  .flow-card {
    transform: none;
  }
}

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

  .scroll-progress,
  .flow-card__status i,
  .flow-step.is-active .flow-gate__buttons .is-approve {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

  .hero__copy > *,
  .flow-card {
    opacity: 1;
    animation: none;
  }

  .flow-card {
    transform: none;
    transition: none;
  }

  .flow-step,
  .flow-lines li,
  .stack-layer,
  .architecture__layers li {
    transition: none;
  }

  .flow-lines li {
    opacity: 1;
    transform: none;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .flow-card {
    backdrop-filter: none;
  }
}
