:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --surface: #faf8f3;
  --ink: #171715;
  --muted: #66635c;
  --line: #cbc6bb;
  --blue: #154cff;
  --blue-deep: #0b32b3;
  --focus: #154cff;
  --shell: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #10100f;
    --surface: #181817;
    --ink: #f1eee7;
    --muted: #aaa69c;
    --line: #3b3934;
    --blue: #6d94ff;
    --blue-deep: #c6d4ff;
    --focus: #ffc34d;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10100f;
  --surface: #181817;
  --ink: #f1eee7;
  --muted: #aaa69c;
  --line: #3b3934;
  --blue: #6d94ff;
  --blue-deep: #c6d4ff;
  --focus: #ffc34d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(127, 123, 114, 0.08) 50%, transparent 50.1%),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

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

::selection {
  color: #fff;
  background: #154cff;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: #171715;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-actions > a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-actions > a:hover {
  color: var(--ink);
}

.theme-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.js .theme-toggle {
  display: grid;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun,
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .sun {
    display: block;
  }
}

.hero {
  padding-block: clamp(76px, 11vw, 150px) clamp(80px, 12vw, 164px);
}

.kicker,
.section-label > p,
.principle > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  max-width: 1000px;
  margin: 30px 0 45px;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero-bottom > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.text-link,
.venture-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.text-link {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
}

.text-link svg,
.venture-link svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.text-link:hover svg,
.venture-link:hover svg {
  transform: translateX(4px);
}

.work {
  padding-block: clamp(70px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.section-label {
  display: grid;
  margin-bottom: 52px;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.section-label h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.venture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.venture {
  display: flex;
  min-width: 0;
  min-height: 680px;
  padding: clamp(26px, 4vw, 46px);
  flex-direction: column;
  background: var(--surface);
}

.venture + .venture {
  border-left: 1px solid var(--line);
}

.venture-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #21a466;
  box-shadow: 0 0 0 4px rgba(33, 164, 102, 0.12);
}

.apps-art,
.code-art {
  display: grid;
  height: 300px;
  margin-block: 42px 50px;
  place-items: center;
  overflow: hidden;
}

.apps-art {
  position: relative;
  grid-template-columns: repeat(3, 92px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    #154cff;
  background-size: 28px 28px;
}

.app-tile {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: #154cff;
  background: #fff;
  box-shadow: 0 18px 30px rgba(0, 18, 82, 0.2);
  font-size: 2.2rem;
  font-weight: 800;
}

.app-tile:first-child {
  transform: rotate(-7deg) translateY(12px);
}

.app-tile:nth-child(2) {
  z-index: 1;
  transform: translateY(-10px);
}

.app-tile:nth-child(3) {
  transform: rotate(7deg) translateY(12px);
}

.signal-tile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.signal-tile i {
  width: 9px;
  background: #154cff;
}

.signal-tile i:nth-child(1) { height: 18px; }
.signal-tile i:nth-child(2) { height: 32px; }
.signal-tile i:nth-child(3) { height: 48px; }

.code-art {
  position: relative;
  padding: 34px 28px 28px;
  align-content: start;
  background:
    radial-gradient(circle at 76% 15%, rgba(79, 70, 229, 0.2), transparent 42%),
    radial-gradient(circle at 20% 5%, rgba(37, 99, 235, 0.25), transparent 46%),
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    #05070c;
  background-size: auto, auto, 22px 22px, 22px 22px, auto;
}

.verified-brand {
  display: flex;
  width: min(100%, 390px);
  margin-bottom: 18px;
  align-items: center;
  gap: 9px;
  color: #f8fafc;
}

.verified-brand strong {
  font-size: 0.82rem;
  letter-spacing: -0.025em;
}

.verified-brand strong span,
.venture-code h3 span {
  color: #3b82f6;
}

.verified-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 9px;
  place-items: center;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  box-shadow:
    inset 0 0 16px rgba(59, 130, 246, 0.2),
    0 0 18px rgba(59, 130, 246, 0.14);
}

.verified-mark::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 5px;
  content: "";
}

.verified-mark svg {
  z-index: 1;
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-preview {
  width: min(100%, 390px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.82);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 50px rgba(59, 130, 246, 0.08);
}

.report-head {
  display: flex;
  padding: 2px 4px 9px;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.54rem;
}

.report-head > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.report-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.report-head code {
  color: #475569;
  font-size: 0.5rem;
}

.report-body {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 8px;
}

.score-panel,
.prompt-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.score-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-topline b {
  padding: 3px 5px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 4px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  font-size: 0.42rem;
}

.score-panel > p {
  margin: 6px 0 12px;
  color: #64748b;
  font-size: 0.58rem;
}

.score-panel > p strong {
  color: #f8fafc;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.score-panel dl,
.score-panel dl div {
  margin: 0;
}

.score-panel dl div + div {
  margin-top: 8px;
}

.score-panel dt {
  display: flex;
  margin-bottom: 4px;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.47rem;
}

.score-panel dd {
  height: 3px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.score-panel dd i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.prompt-panel {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(59, 130, 246, 0.06);
}

.prompt-panel > span {
  color: #93c5fd;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-panel p {
  margin: 9px 0;
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.48rem;
  line-height: 1.55;
}

.prompt-panel small {
  color: #6ee7b7;
  font-size: 0.43rem;
}

.venture-copy {
  flex: 1;
}

.venture-kind {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.venture-code .venture-kind {
  color: var(--blue-deep);
}

.venture h3 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.venture-copy > p:last-child {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.venture-link {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 0.86rem;
}

.venture-code .venture-link {
  color: var(--blue-deep);
}

.principle {
  display: grid;
  padding-block: clamp(90px, 14vw, 180px);
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.principle blockquote {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.site-footer {
  padding-block: 52px;
  color: #f1eee7;
  background: #171715;
}

.not-found {
  display: flex;
  min-height: 100vh;
  padding-block: 80px;
  flex-direction: column;
  justify-content: center;
}

.not-found h1 {
  max-width: 800px;
  margin: 30px 0 24px;
  font-size: clamp(3.2rem, 9vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.not-found > p:not(.kicker) {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 50px;
}

.footer-grid strong {
  font-size: 1.1rem;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #aaa69c;
  font-size: 0.82rem;
}

.footer-grid nav {
  display: flex;
  gap: 24px;
}

.footer-grid a {
  color: #f1eee7;
  font-size: 0.82rem;
  text-underline-offset: 4px;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .site-header {
    min-height: 78px;
  }

  .header-actions > a {
    display: none;
  }

  .hero h1 {
    margin-bottom: 34px;
    font-size: clamp(3rem, 15vw, 5.1rem);
  }

  .hero-bottom,
  .section-label,
  .principle {
    grid-template-columns: 1fr;
  }

  .text-link {
    margin-top: 16px;
    justify-self: start;
  }

  .section-label {
    gap: 20px;
  }

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

  .venture {
    min-height: 620px;
  }

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

  .apps-art {
    grid-template-columns: repeat(3, 70px);
  }

  .app-tile {
    width: 76px;
    height: 76px;
  }

  .principle {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .footer-grid nav {
    flex-direction: column;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .apps-art,
  .code-art,
  .site-footer {
    border: 1px solid CanvasText;
  }

  .status i,
  .kicker span {
    background: CanvasText;
  }
}
