:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --ink: #11131a;
  --muted: #626a7a;
  --line: #dfe3eb;
  --panel: #ffffff;
  --soft: #edf1ff;
  --accent: #4d5fd1;
  --accent-dark: #3546b8;
  --accent-pale: #e8ebff;
  --coral: #e15151;
  --amber: #d99a32;
  --success: #18794e;
  --github: #24292f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.project-return-banner {
  min-height: 52px;
  padding: 0.65rem clamp(1.1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.project-return-banner a {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 850;
}

.project-return-banner a:hover,
.project-return-banner a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.project-footer a:hover,
.project-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.project-return-banner p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem clamp(1.1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(223, 227, 235, 0.9);
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.link,
.button {
  min-height: 40px;
  padding: 0.68rem 0.9rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.link {
  color: var(--muted);
}

.link:hover,
.link:focus-visible {
  color: var(--ink);
  background: var(--panel);
}

.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary-button {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.light-button {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 112px);
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1.1rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(410px, 1.07fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

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

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.38rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0.26rem rgba(217, 154, 50, 0.16);
  display: inline-block;
}

.product-title {
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(4.1rem, 6.4vw, 7.2rem);
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.accent-word {
  color: var(--accent);
}

.product-title-logo {
  width: clamp(3rem, 4vw, 4.4rem);
  height: clamp(3rem, 4vw, 4.4rem);
  object-fit: contain;
}

.hero-kicker {
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
}

.hero-statement {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.lede {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.availability-note {
  max-width: 660px;
  margin: 1.2rem 0 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.availability-note strong {
  color: var(--ink);
}

.product-scene {
  position: relative;
}

.stage-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 2rem 5rem rgba(31, 38, 67, 0.15);
}

.browser-bar {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  display: block;
}

.dot:nth-child(1) {
  background: var(--coral);
}

.dot:nth-child(2) {
  background: var(--amber);
}

.dot:nth-child(3) {
  background: var(--success);
}

.url {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.preview-layout {
  min-height: 500px;
  display: grid;
  grid-template-columns: 142px 1fr;
}

.preview-sidebar {
  padding: 1rem 0.7rem;
  border-right: 1px solid var(--line);
  background: #f8f9fc;
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.sidebar-pill {
  min-height: 36px;
  padding: 0.55rem 0.65rem;
  border-radius: 0.48rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.sidebar-pill.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0.65rem 1.4rem rgba(77, 95, 209, 0.24);
}

.preview-main {
  min-width: 0;
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.preview-header {
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.mini-label {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.preview-header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
}

.status-badge,
.git-badge {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge {
  border: 1px solid #ecd293;
  background: #fff7df;
  color: #7a5518;
}

.preview-feedback {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.preview-feedback h3 {
  margin: 0 0 0.28rem;
  font-size: 0.9rem;
}

.preview-feedback p,
.preview-feedback small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.preview-feedback p {
  margin: 0 0 0.35rem;
}

.preview-feedback > span {
  padding: 0.38rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.preview-site-row {
  margin-top: 0.15rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f8f9fc;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
}

.preview-site-row strong {
  margin-top: 0.18rem;
  display: block;
}

.git-badge {
  background: var(--github);
  color: #fff;
}

.preview-site-row em {
  color: var(--success);
  font-style: normal;
  font-weight: 900;
}

.problem-section,
.workflow-band,
.context-section,
.design-section,
.test-status {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.1rem, 4vw, 3.5rem);
}

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

.section-heading.compact {
  max-width: 830px;
}

.section-heading > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.problem-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.problem-card {
  min-height: 290px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.card-index {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.card-label {
  margin: auto 0 0.6rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.problem-card h3 {
  max-width: 570px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: -0.045em;
}

.problem-card > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-band {
  background: var(--ink);
  color: #fff;
}

.workflow-band .eyebrow {
  color: #aeb8ff;
}

.steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--accent);
}

.step > span {
  margin-bottom: 1.3rem;
  color: #aeb8ff;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.step h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.035em;
}

.step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.context-section {
  background: var(--soft);
}

.benefit-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.benefit {
  min-height: 235px;
  padding: 1.4rem;
  border: 1px solid rgba(77, 95, 209, 0.17);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.benefit > span {
  margin-bottom: 3.2rem;
  color: var(--accent-dark);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.benefit p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.design-section {
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.design-copy {
  position: sticky;
  top: 7rem;
}

.text-link {
  margin-top: 1.4rem;
  color: var(--accent-dark);
  display: inline-flex;
  gap: 0.35rem;
  font-weight: 900;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.role-grid article {
  min-height: 245px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-grid article:nth-child(even) {
  border-right: 0;
}

.role-grid span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 900;
}

.role-grid h3 {
  margin-top: 4rem;
  font-size: 1.3rem;
}

.role-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.test-status {
  background: var(--accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 6rem);
}

.test-status > div {
  max-width: 860px;
}

.test-status .eyebrow {
  color: #cbd1ff;
}

.test-status h2 {
  margin-bottom: 1rem;
}

.test-status p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.65;
}

.project-footer {
  padding: 1.4rem clamp(1.1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.project-footer a {
  color: var(--accent-dark);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .product-scene {
    max-width: 850px;
  }

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

  .design-section {
    grid-template-columns: 1fr;
  }

  .design-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .project-return-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-return-banner p {
    text-align: left;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hide-mobile {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .product-title {
    align-items: flex-end;
    font-size: clamp(3.65rem, 17vw, 6rem);
  }

  .product-title-logo {
    margin-bottom: 0.15rem;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-pill {
    justify-content: center;
  }

  .problem-grid,
  .steps,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .role-grid article,
  .role-grid article:nth-child(even) {
    border-right: 0;
  }

  .test-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .topbar {
    align-items: center;
  }

  .topbar .link {
    display: none;
  }

  .product-title {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 0.8rem;
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

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

  .hero-actions .button {
    width: 100%;
  }

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

  .preview-feedback,
  .preview-site-row {
    grid-template-columns: 1fr;
  }

  .preview-feedback > span,
  .git-badge {
    justify-self: start;
  }

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

  .problem-card,
  .benefit,
  .role-grid article {
    min-height: auto;
  }

  .card-label,
  .benefit > span,
  .role-grid h3 {
    margin-top: 2.5rem;
  }
}

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

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