:root {
  color-scheme: light;
  --ink: #121416;
  --muted: #5b6570;
  --paper: #f6f2ea;
  --white: #ffffff;
  --line: rgba(18, 20, 22, 0.14);
  --black: #090b0d;
  --blue: #145cff;
  --mint: #16c784;
  --amber: #ffb22d;
  --coral: #ef5b4f;
  --shadow: 0 24px 58px rgba(18, 20, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  color: var(--black);
  background: var(--amber);
  font-weight: 900;
}

.skip-link:focus {
  left: 12px;
}

.theme-performance {
  background:
    linear-gradient(90deg, rgba(18, 20, 22, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 20, 22, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.topbar,
.ai-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(16px);
}

.topbar {
  background: rgba(246, 242, 234, 0.9);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark,
.ai-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 950;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu,
.ai-menu,
.hero-actions,
.cta-actions,
.ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.menu a,
.ai-menu a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}

.menu a:hover,
.ai-menu a:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-alt {
  color: #ffffff;
  background: var(--black);
  border-color: var(--black);
}

.perf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 32px;
  min-height: calc(88svh - 74px);
  padding: clamp(48px, 7vw, 92px) max(18px, calc((100vw - 1180px) / 2));
}

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

.eyebrow,
.section-label,
.ai-kicker {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead,
.hero-copy p,
.method-copy p,
.platform-section p,
.cta-panel p,
.chapter-copy p,
.role-copy p,
.ai-final p,
.solution-matrix p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.62;
}

.lead {
  max-width: 62ch;
  margin-bottom: 28px;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 16px 30px rgba(20, 92, 255, 0.24);
}

.button.primary:hover {
  background: var(--black);
  border-color: var(--black);
}

.button.secondary {
  color: var(--black);
  background: #ffffff;
}

.growth-board {
  display: grid;
  gap: 16px;
  min-height: 520px;
  padding: 20px;
  color: #ffffff;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-head strong {
  padding: 7px 10px;
  color: var(--black);
  background: var(--mint);
  border-radius: 6px;
}

.board-metrics {
  display: grid;
  gap: 14px;
}

.board-metrics article {
  display: grid;
  align-content: center;
  min-height: 138px;
  padding: 18px;
  border-left: 5px solid var(--mint);
  background: rgba(255, 255, 255, 0.08);
}

.board-metrics article:nth-child(2) {
  border-left-color: var(--amber);
}

.board-metrics article:nth-child(3) {
  border-left-color: var(--coral);
}

.board-metrics span,
.board-metrics small {
  color: rgba(255, 255, 255, 0.66);
}

.board-metrics span {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-metrics strong {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.board-metrics small {
  margin-top: 10px;
  font-size: 0.95rem;
}

.stat-strip,
.section,
.method-band,
.platform-section,
.cta-panel,
.chapter,
.solution-matrix,
.v3-role,
.ai-final {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 36px;
}

.stat-strip article {
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-strip strong {
  display: block;
  color: var(--coral);
  font-size: 2rem;
}

.stat-strip span {
  color: var(--muted);
  line-height: 1.35;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.service-grid article,
.method-steps article,
.pain-list article,
.matrix-grid article {
  min-height: 230px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 6px;
  font-weight: 950;
}

.service-grid article:nth-child(2) span {
  background: var(--mint);
}

.service-grid article:nth-child(3) span {
  color: var(--black);
  background: var(--amber);
}

.service-grid article:nth-child(4) span {
  background: var(--coral);
}

.service-grid h3,
.matrix-grid h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.service-grid p,
.matrix-grid p {
  margin-bottom: 0;
}

.method-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: start;
  padding: 34px;
  color: #ffffff;
  background: var(--black);
  border-radius: 8px;
}

.method-band .section-label {
  color: var(--mint);
}

.method-band h2,
.method-copy p {
  color: #ffffff;
}

.method-copy p {
  color: rgba(255, 255, 255, 0.74);
}

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

.method-steps article {
  min-height: 170px;
  color: var(--ink);
}

.method-steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.method-steps span {
  color: var(--muted);
  line-height: 1.48;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: center;
  padding: 74px 0;
}

.platform-list,
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-list li,
.role-tags li {
  min-height: 44px;
  padding: 12px 14px;
  color: var(--black);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 54px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cta-panel > div:first-child {
  max-width: 740px;
}

.theme-ai {
  color: #f8fafc;
  background: #06070a;
}

.theme-ai .crania-demo-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-topbar {
  background: rgba(6, 7, 10, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-brand span {
  background: var(--coral);
}

.ai-brand strong,
.ai-menu a {
  color: #f8fafc;
}

.ai-menu a {
  border-color: rgba(248, 250, 252, 0.24);
}

.ai-menu .menu-alt {
  color: var(--black);
  background: #f8fafc;
  border-color: #f8fafc;
}

.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: end;
  gap: 34px;
  min-height: calc(94svh - 74px);
  padding: clamp(50px, 8vw, 104px) max(18px, calc((100vw - 1180px) / 2)) 58px;
  background:
    linear-gradient(90deg, rgba(255, 91, 79, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 199, 132, 0.1) 1px, transparent 1px),
    #06070a;
  background-size: 58px 58px;
}

.ai-hero-copy {
  max-width: 830px;
}

.ai-kicker {
  color: var(--mint);
}

.ai-hero h1 {
  max-width: 13.5ch;
  color: #ffffff;
  font-size: clamp(3.1rem, 7.4vw, 7.3rem);
  line-height: 0.9;
}

.ai-hero-copy p {
  max-width: 62ch;
  color: rgba(248, 250, 252, 0.78);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.62;
}

.theme-ai .button.primary {
  color: #06070a;
  background: var(--mint);
  border-color: var(--mint);
}

.theme-ai .button.primary:hover {
  color: #06070a;
  background: var(--amber);
  border-color: var(--amber);
}

.button.ghost {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
}

.ai-console {
  display: grid;
  gap: 16px;
  min-height: 480px;
  padding: 20px;
  background: #11151b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-top strong {
  color: #06070a;
  padding: 7px 10px;
  background: var(--mint);
  border-radius: 6px;
}

.ai-console ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-console li {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border-left: 5px solid var(--coral);
  background: rgba(255, 255, 255, 0.06);
}

.ai-console li:nth-child(2) {
  border-left-color: var(--mint);
}

.ai-console li:nth-child(3) {
  border-left-color: var(--amber);
}

.ai-console span,
.ai-console small {
  color: rgba(248, 250, 252, 0.62);
}

.ai-console strong {
  font-size: 1.25rem;
}

.ai-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  gap: 10px;
  padding: 26px 0 70px;
}

.ai-numbers article {
  min-height: 150px;
  padding: 22px;
  color: #06070a;
  background: #f8fafc;
  border-radius: 8px;
}

.ai-numbers strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
}

.ai-numbers span {
  color: #46515c;
  font-weight: 850;
}

.chapter {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
  padding: 84px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.chapter-label {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter h2,
.solution-matrix h2,
.v3-role h2,
.ai-final h2 {
  color: #ffffff;
}

.chapter-copy p,
.role-copy p,
.ai-final p,
.solution-matrix p {
  color: rgba(248, 250, 252, 0.74);
}

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

.pain-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.pain-list span {
  color: var(--coral);
  font-size: 1.4rem;
  font-weight: 950;
}

.solution-matrix {
  padding: 32px 0 84px;
}

.matrix-head {
  max-width: 860px;
  margin-bottom: 28px;
}

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

.matrix-grid article {
  color: #06070a;
  background: #f8fafc;
}

.matrix-grid p {
  color: #46515c;
}

.v3-role {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  background: #11151b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.role-tags li {
  color: #06070a;
  border-color: rgba(255, 255, 255, 0.08);
}

.ai-final {
  max-width: 880px;
  padding: 84px 0 58px;
  text-align: center;
}

.ai-final .ai-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .topbar,
  .ai-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .menu,
  .ai-menu {
    justify-content: flex-start;
  }

  .perf-hero,
  .method-band,
  .platform-section,
  .ai-hero,
  .chapter,
  .v3-role {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .matrix-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-board,
  .ai-console {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .topbar,
  .ai-topbar {
    padding-inline: 14px;
  }

  .perf-hero,
  .ai-hero {
    min-height: auto;
    padding: 38px 14px;
  }

  h1,
  .ai-hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .stat-strip,
  .section,
  .method-band,
  .platform-section,
  .cta-panel,
  .chapter,
  .solution-matrix,
  .v3-role,
  .ai-final,
  .ai-numbers {
    width: min(100% - 24px, 1180px);
  }

  .stat-strip,
  .service-grid,
  .method-steps,
  .matrix-grid,
  .ai-numbers {
    grid-template-columns: 1fr;
  }

  .section,
  .chapter,
  .solution-matrix,
  .platform-section,
  .ai-final {
    padding-block: 54px;
  }

  .method-band,
  .v3-role,
  .cta-panel {
    padding: 18px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu a,
  .ai-menu a,
  .button {
    width: 100%;
  }
}
