:root {
  color-scheme: dark;
  --font: "Montserrat", Arial, sans-serif;
  --bg: #040504;
  --bg-soft: #09100c;
  --surface: rgba(18, 20, 19, 0.86);
  --surface-strong: #111412;
  --surface-light: #f4efe7;
  --offwhite: #f4efe7;
  --text: #f4efe7;
  --muted: #b9c0ba;
  --muted-strong: #7d867f;
  --ink: #07100b;
  --accent: #36c978;
  --accent-dark: #10924e;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(54, 201, 120, 0.45);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --site-width: 1180px;
  --reading-width: 760px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(54, 201, 120, 0.9);
  outline-offset: 4px;
}

.section {
  padding: 30px 0;
}

.section-spacious {
  padding: 96px 0;
}

.section-inner {
  width: min(var(--site-width), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  max-width: var(--reading-width);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: rgba(4, 5, 4, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-wordmark {
  display: inline-grid;
  gap: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 0.84;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-action {
  flex: 0 0 auto;
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.menu-button {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.menu-line {
  width: 23px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  display: block;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-line:nth-child(1) {
  transform: translateY(-8px);
}

.menu-line:nth-child(3) {
  transform: translateY(8px);
}

.mobile-nav[open] .menu-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-nav[open] .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav[open] .menu-line:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu-panel {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  left: 16px;
  right: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - var(--header-height) - 28px);
  max-height: calc(100dvh - var(--header-height) - 28px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10, 12, 11, 0.97);
  box-shadow: var(--shadow);
}

.mobile-menu-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
}

.mobile-menu-panel a:not(.button) {
  background: rgba(255, 255, 255, 0.045);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.82rem 1.45rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--offwhite);
  box-shadow: 0 16px 45px rgba(54, 201, 120, 0.24);
}

.button-secondary {
  background: var(--offwhite);
  color: var(--ink);
  box-shadow: none;
  outline: 0;
}

.button-secondary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.button:hover {
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 34px 0 40px;
  background:
    linear-gradient(135deg, #020302 0%, #050706 58%, #07100b 100%);
}

.hero-content {
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 1000px;
  margin-bottom: 24px;
  font-size: 4.85rem;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.15rem;
  font-weight: 900;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.42rem;
  font-weight: 900;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-lede {
  max-width: 780px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.34rem;
  font-weight: 800;
}

.hero-proof {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.36rem;
  font-weight: 900;
}

.page-hero {
  padding-top: 34px;
  padding-bottom: 22px;
}

.page-hero-inner {
  max-width: var(--site-width);
}

.page-hero-inner .hero-lede {
  max-width: 820px;
}

.page-hero h1 {
  font-size: 4.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: start;
}

.section-heading {
  max-width: 640px;
}

.section-heading.wide {
  max-width: 820px;
  margin-bottom: 34px;
}

.text-stack {
  display: grid;
  gap: 14px;
}

.text-stack p {
  font-size: 1.1rem;
}

.title-aligned-copy > .text-stack {
  padding-top: 42px;
}

.section-muted {
  background: linear-gradient(180deg, rgba(54, 201, 120, 0.08), rgba(255, 255, 255, 0.02));
  border-block: 1px solid var(--border);
}

.section-light {
  background: #f4efe7;
  color: var(--ink);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light .check-list li {
  color: var(--ink);
}

.section-light p {
  color: #38433c;
}

.section-light .button-primary {
  background: var(--accent);
  color: var(--offwhite);
}

.section-light .button-secondary {
  background: #050605;
  color: var(--offwhite);
}

.section-light .stage-card,
.section-light .info-card,
.section-light .architecture-layer,
.section-light .feature-panel,
.section-light .form-aside,
.section-light .case-card,
.section-light .process-grid article,
.section-light .starting-card,
.section-light .route-panel,
.section-light .price-card,
.section-light .faq-item,
.section-light .related-route {
  border-color: rgba(7, 16, 11, 0.13);
  background: rgba(244, 239, 231, 0.82);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(7, 16, 11, 0.1);
}

.section-light .stage-card h3,
.section-light .info-card h3,
.section-light .feature-panel h3,
.section-light .form-aside h2,
.section-light .form-aside h3,
.section-light .starting-card h3,
.section-light .route-panel h3,
.section-light .price-card h3,
.section-light .price-card h2,
.section-light .related-route strong,
.section-light label,
.section-light .faq-item summary {
  color: var(--ink);
}

.section-light .stage-card p,
.section-light .info-card p,
.section-light .feature-panel p,
.section-light .form-aside p,
.section-light .starting-card p,
.section-light .route-panel p,
.section-light .price-card p,
.section-light .faq-answer,
.section-light .faq-answer p {
  color: #38433c;
}

.section-light input,
.section-light select,
.section-light textarea {
  border-color: rgba(7, 16, 11, 0.16);
  background: rgba(7, 16, 11, 0.05);
  color: var(--ink);
}

.light-page {
  background: var(--offwhite);
  color: var(--ink);
}

.light-page main,
.light-page .page-hero,
.light-page .section {
  background: var(--offwhite);
  color: var(--ink);
}

.light-page h1,
.light-page h2,
.light-page h3,
.light-page .case-url,
.light-page .check-list li {
  color: var(--ink);
}

.light-page p,
.light-page .hero-lede {
  color: #38433c;
}

.light-page .case-card {
  border-color: rgba(7, 16, 11, 0.13);
  background: rgba(244, 239, 231, 0.86);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(7, 16, 11, 0.1);
}

.light-page .case-card .button-secondary {
  background: var(--accent);
  color: var(--offwhite);
}

.section-radar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #020302 0%, #050706 58%, #07100b 100%);
}

.section-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
  opacity: 1;
}

.section-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 5, 4, 0.02), rgba(4, 5, 4, 0.62));
  pointer-events: none;
}

.section-dark {
  background: #050605;
  border-block: 1px solid var(--border);
}

.screen-break {
  position: relative;
  overflow: hidden;
  height: clamp(70px, 7vw, 126px);
  margin: -1px 0;
  background: var(--break-from);
  pointer-events: none;
}

.screen-break::before,
.screen-break::after,
.screen-break span {
  content: "";
  position: absolute;
}

.screen-break::before {
  inset: 0;
  z-index: 0;
  background: var(--break-from);
}

.screen-break::after {
  left: -14%;
  right: -14%;
  top: 32%;
  z-index: 1;
  height: 156%;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background: var(--break-to);
  box-shadow: 0 -22px 70px rgba(54, 201, 120, 0.08);
}

.screen-break span {
  inset: 0;
  z-index: 2;
  background: var(--break-glow, none);
  opacity: 0.42;
}

.screen-break-dark-to-light,
.screen-break-light-to-dark,
.screen-break-dark-to-green {
  --break-dark: #050706;
  --break-light: #f4efe7;
  --break-green: #050706;
}

.screen-break-dark-to-light {
  --break-from: var(--break-dark);
  --break-to: var(--break-light);
  --break-glow: none;
}

.screen-break-light-to-dark {
  --break-from: var(--break-light);
  --break-to: var(--break-dark);
  --break-glow: none;
}

.screen-break-dark-to-green {
  --break-from: var(--break-dark);
  --break-to: var(--break-green);
  --break-glow: none;
}

.screen-break-light-to-dark::after,
.screen-break-dark-to-green::after {
  top: 28%;
}

.card-grid,
.stage-grid,
.process-grid,
.admin-stats {
  display: grid;
  gap: 18px;
}

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

.stage-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.stage-card,
.info-card,
.architecture-layer,
.feature-panel,
.form-aside,
.auth-card,
.case-card,
.process-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.info-card {
  min-width: 0;
  padding: 28px;
}

.info-card h3 {
  line-height: 1.12;
}

.info-card p {
  line-height: 1.55;
}

.stage-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(210px, 0.55fr) 240px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 0%, rgba(54, 201, 120, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.stage-gantt-meta {
  display: grid;
  gap: 14px;
  align-content: center;
}

.stage-label {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-gantt-copy {
  min-width: 0;
}

.stage-gantt-copy h3 {
  margin-bottom: 10px;
}

.stage-gantt-copy p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.48;
}

.stage-gantt-lane {
  position: relative;
  min-height: 74px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 25% 100%;
}

.stage-gantt-track,
.stage-gantt-bar {
  position: absolute;
  top: 50%;
  height: 18px;
  border-radius: var(--radius-pill);
  transform: translateY(-50%);
}

.stage-gantt-track {
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.stage-gantt-bar {
  background: var(--accent);
}

.stage-gantt-land .stage-gantt-bar {
  left: 16px;
  width: 44%;
}

.stage-gantt-build .stage-gantt-bar {
  left: 30%;
  width: 46%;
}

.stage-gantt-expand .stage-gantt-bar {
  left: 58%;
  right: 16px;
}

.stage-gantt-detail {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.stage-gantt-detail .check-list {
  margin-bottom: 0;
}

.stage-number,
.process-grid span {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-weight: 900;
}

.stage-cta {
  width: 100%;
}

.check-list,
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li,
.tag,
.status-chip,
.admin-mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--offwhite);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.tag {
  background: var(--accent);
  color: var(--offwhite);
}

.architecture-section {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.architecture-section .section-heading {
  max-width: 940px;
}

.architecture-visual {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.architecture-house {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 5, 4, 0.74);
  box-shadow: var(--shadow);
}

.architecture-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 5, 4, 0.74);
  box-shadow: var(--shadow);
}

.summary-outcomes,
.summary-layers {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.summary-outcomes h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.summary-outcome-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-outcome-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.36rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--offwhite);
  font-size: 0.76rem;
  font-weight: 900;
}

.summary-layers {
  display: grid;
  gap: 10px;
}

.summary-layer {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.summary-layer > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--offwhite);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-layer-land > span,
.summary-layer-build > span,
.summary-layer-expand > span {
  background: var(--accent);
  color: var(--offwhite);
}

.summary-layer h3 {
  margin-bottom: 5px;
  font-size: 1.04rem;
  line-height: 1.1;
}

.summary-layer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section-light .architecture-house,
.section-light .architecture-summary,
.section-light .summary-outcomes,
.section-light .summary-layers,
.section-light .case-card {
  border-color: rgba(7, 16, 11, 0.12);
  background: rgba(244, 239, 231, 0.84);
  box-shadow: 0 24px 70px rgba(7, 16, 11, 0.12);
}

.section-light .summary-layer {
  border-color: rgba(7, 16, 11, 0.1);
  background: rgba(7, 16, 11, 0.045);
}

.section-light .summary-layer h3,
.section-light .case-card h3,
.section-light .case-url {
  color: var(--ink);
}

.section-light .summary-layer p,
.section-light .case-card p {
  color: #4a554e;
}

.section-light .summary-layer > span {
  background: #050605;
  color: var(--offwhite);
}

.section-light .summary-layer-land > span,
.section-light .summary-layer-build > span,
.section-light .summary-layer-expand > span {
  background: var(--accent);
  color: var(--offwhite);
}

.section-light .case-image-wrap {
  background: radial-gradient(circle, rgba(54, 201, 120, 0.12), rgba(7, 16, 11, 0.06));
}

.architecture-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-roof,
.architecture-layer {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.architecture-roof {
  padding: 18px;
}

.architecture-roof h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

.architecture-roof:hover,
.architecture-layer:hover,
.architecture-foundation:hover {
  border-color: rgba(54, 201, 120, 0.6);
  box-shadow: 0 0 0 1px rgba(54, 201, 120, 0.18), 0 18px 48px rgba(54, 201, 120, 0.08);
  transform: translateY(-1px);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.outcome-card {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.46);
}

.outcome-card h3 {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.outcome-card p {
  margin-bottom: 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.architecture-spine {
  width: 2px;
  height: 22px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.architecture-layers {
  display: grid;
  gap: 10px;
}

.architecture-layer {
  overflow: hidden;
}

.architecture-layer summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.architecture-layer summary::-webkit-details-marker {
  display: none;
}

.architecture-layer summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.1;
}

.architecture-layer summary small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.architecture-layer-build {
  border-color: rgba(54, 201, 120, 0.52);
}

.layer-index {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--offwhite);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-layer-body {
  padding: 0 18px 18px;
}

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

.architecture-columns article {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
}

.architecture-columns h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.92rem;
}

.architecture-layer .pill-list li,
.architecture-foundation .pill-list li {
  background: var(--offwhite);
  color: var(--ink);
  font-size: 0.72rem;
}

.architecture-foundation {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.architecture-foundation h3 {
  margin-bottom: 8px;
}

.architecture-foundation p:not(.architecture-kicker) {
  margin-bottom: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.starting-grid,
.price-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.starting-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.starting-card,
.route-panel,
.price-card,
.faq-item,
.related-route {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.starting-card {
  min-height: 250px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.starting-card > a {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.starting-card span,
.related-route span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--offwhite);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.starting-card h3 {
  margin-bottom: 0;
}

.starting-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

.starting-card strong {
  margin-top: auto;
  color: var(--text);
}

.starting-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 48px rgba(54, 201, 120, 0.08);
  transform: translateY(-2px);
}

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

.route-panel,
.price-card {
  padding: 24px;
}

.route-panel .check-list {
  margin-bottom: 0;
}

.price-grid .price-card,
.price-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.price-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.maturity-route {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.maturity-route span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--offwhite);
  color: var(--ink);
  font-weight: 900;
}

.maturity-route span.is-current {
  background: var(--accent);
  color: var(--offwhite);
}

.related-routes {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.related-route {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.faq-shell {
  display: grid;
  gap: 28px;
}

.faq-toolbar {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.faq-search {
  display: grid;
  gap: 8px;
}

.faq-search span {
  font-weight: 900;
}

.faq-search input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 1rem;
  background: var(--offwhite);
  color: var(--ink);
}

.faq-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-filter {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  background: var(--offwhite);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-filter.is-active {
  background: var(--accent);
  color: var(--offwhite);
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-nav {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.faq-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.faq-nav a:hover {
  color: var(--text);
}

.faq-list,
.faq-category,
.faq-mini {
  display: grid;
  gap: 14px;
}

.faq-category {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-empty {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.case-grid {
  display: grid;
  gap: 22px;
}

.case-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.55fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
}

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

.case-card .tag {
  margin-bottom: 18px;
}

.case-url {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.case-image-wrap {
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(54, 201, 120, 0.14), rgba(0, 0, 0, 0.24));
  overflow: hidden;
}

.case-image-wrap img {
  max-height: 430px;
  object-fit: contain;
}

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

.process-grid article {
  padding: 22px;
}

.process-grid h3 {
  margin-top: 18px;
}

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, #020302 0%, #050706 62%, #07100b 100%);
}

.cta-band .section-inner {
  display: grid;
  justify-items: center;
}

.cta-band p {
  max-width: 690px;
}

.cta-band .button-primary {
  background: var(--offwhite);
  color: var(--ink);
  box-shadow: none;
}

.cta-band .button-secondary {
  background: #050605;
  color: var(--offwhite);
}

.feature-panel {
  padding: 30px;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card h2 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  line-height: 1.18;
}

.legal-card p {
  line-height: 1.62;
}

.legal-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.legal-updated {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.58;
}

.legal-list strong {
  color: var(--text);
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  text-align: left;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.proof-route {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.proof-capsule {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--offwhite);
  font-size: 0.9rem;
  font-weight: 900;
}

.case-study-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.case-study-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.case-study-media img {
  width: 100%;
  max-height: 660px;
  object-fit: contain;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.conversation-form,
.auth-form {
  display: grid;
  gap: 18px;
}

.conversation-form {
  min-width: 0;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0.95rem 1rem;
}

select option {
  color: #111;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

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

.form-status {
  margin: 0;
  color: var(--muted);
}

.form-aside {
  padding: 26px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: #030403;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 38px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 14px;
}

.auth-page,
.admin-page {
  background: var(--offwhite);
  color: var(--ink);
}

.auth-page main,
.admin-page main {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(54, 201, 120, 0.2), transparent 34%),
    var(--offwhite);
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: 28px;
  color: var(--ink);
}

.auth-card {
  width: min(100%, 470px);
  padding: 32px;
  background: var(--offwhite);
  color: var(--ink);
  border-color: rgba(7, 16, 11, 0.12);
}

.auth-card p,
.auth-row a {
  color: #59635c;
}

.auth-form input {
  background: var(--offwhite);
  color: var(--ink);
  border-color: rgba(7, 16, 11, 0.14);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.88rem;
}

.auth-status {
  min-height: 1.4em;
  margin: 0;
  color: #59635c;
  font-size: 0.9rem;
}

.check-control {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.check-control input {
  width: auto;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 24px;
  background: #07100b;
  color: var(--text);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 38px;
}

.admin-sidebar nav a {
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover {
  background: rgba(54, 201, 120, 0.16);
  color: var(--text);
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-topbar,
.admin-content {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-topbar h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 2.8rem;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
}

.admin-stats article,
.admin-list,
.admin-detail {
  border: 1px solid rgba(7, 16, 11, 0.1);
  border-radius: 22px;
  background: var(--offwhite);
  box-shadow: 0 18px 50px rgba(7, 16, 11, 0.08);
}

.admin-stats article {
  padding: 20px;
}

.admin-stats span,
.admin-detail dt,
.admin-list-head span {
  color: #68736b;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
}

.admin-content {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.admin-list,
.admin-detail {
  padding: 18px;
}

.admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-list h2,
.admin-detail h2 {
  margin: 0;
  color: var(--ink);
}

.admin-row {
  width: 100%;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 80px auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.admin-row.is-active,
.admin-row:hover {
  background: #eff7f1;
}

.admin-detail p,
.admin-detail dd {
  color: #4f5b54;
}

.admin-detail dl {
  display: grid;
  gap: 14px;
}

.admin-detail dt,
.admin-detail dd {
  margin: 0;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .desktop-nav {
    gap: 14px;
    font-size: 0.8rem;
  }

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

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .split,
  .form-layout,
  .case-study-layout,
  .footer-grid,
  .admin-content,
  .admin-shell {
    grid-template-columns: 1fr;
  }

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

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

  .stage-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .stage-gantt-lane,
  .stage-gantt-detail {
    grid-column: 1 / -1;
  }

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

  .admin-sidebar {
    display: none;
  }

  .title-aligned-copy > .text-stack {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 20px 0;
  }

  .section-inner {
    width: min(100% - 32px, var(--site-width));
  }

  .header-inner {
    width: min(100% - 32px, var(--site-width));
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding: 22px 0 24px;
  }

  .section-spacious {
    padding: 62px 0;
  }

  .screen-break {
    height: 72px;
  }

  .screen-break::after {
    left: -22%;
    right: -22%;
  }

  .architecture-house {
    padding: 14px;
  }

  .architecture-summary,
  .summary-outcomes,
  .summary-layers {
    padding: 14px;
  }

  .summary-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .outcome-grid,
  .architecture-columns {
    grid-template-columns: 1fr;
  }

  .architecture-columns article {
    grid-template-columns: 1fr;
  }

  .architecture-layer summary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .architecture-layer-body,
  .architecture-foundation {
    padding: 16px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.42rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-lede {
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .hero-proof {
    font-size: 1.04rem;
  }

  .button-row,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
    min-height: 56px;
  }

  .stage-grid,
  .card-grid,
  .process-grid,
  .admin-stats,
  .form-grid.two,
  .price-grid,
  .route-grid,
  .route-grid.compact,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-nav {
    position: static;
  }

  .stage-card,
  .case-card,
  .feature-panel,
  .form-aside,
  .route-panel,
  .price-card,
  .faq-toolbar {
    padding: 24px;
    border-radius: 22px;
  }

  .stage-card .eyebrow {
    margin-bottom: 16px;
  }

  .stage-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stage-gantt-meta {
    display: flex;
    align-items: center;
  }

  .stage-gantt-lane,
  .stage-gantt-detail {
    grid-column: auto;
  }

  .stage-gantt-lane {
    min-height: 54px;
  }

  .case-image-wrap {
    min-height: 210px;
  }

  .case-url {
    font-size: 1rem;
  }

  .auth-brand {
    position: static;
    margin-bottom: 22px;
  }

  .auth-shell {
    align-content: center;
    place-items: stretch;
  }

  .auth-card,
  .admin-main {
    padding: 22px;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .section-inner,
  .header-inner {
    width: min(100% - 28px, var(--site-width));
  }

  h1,
  .page-hero h1 {
    font-size: 2.14rem;
  }

  h2 {
    font-size: 1.88rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .brand-wordmark {
    font-size: 1.06rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
