:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #686862;
  --paper: #f4f5f1;
  --paper-alt: #fbfbf8;
  --line: rgba(23, 23, 23, 0.15);
  --line-strong: rgba(23, 23, 23, 0.28);
  --green: #1d6f62;
  --blue: #315d92;
  --rose: #9a3f4f;
  --display: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #f8f8f4 54%, #eff4f1 100%);
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 54px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--display);
  font-size: 1.24rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(44px, 6vw, 76px);
  width: min(1240px, calc(100% - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 56px;
}

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

.wide-copy {
  max-width: 990px;
}

.kicker,
.section-label,
.detail-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.45;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.4vw, 6.7rem);
  font-weight: 400;
  line-height: 0.96;
}

.lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: #353530;
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.primary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.98rem;
}

.primary-action {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--ink);
  color: #fffdf8;
}

.primary-action:hover {
  background: #2a2927;
}

.text-action {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.text-action.secondary {
  color: var(--muted);
}

.text-action::after {
  content: "->";
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 600px;
  margin: 0;
  place-items: center;
}

.hero-visual figcaption,
.product-visual figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  text-align: center;
}

.opal-layer {
  position: absolute;
  display: block;
  border: 1px solid rgba(23, 23, 23, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(192, 229, 220, 0.58) 30%, rgba(231, 184, 201, 0.45) 58%, rgba(226, 213, 154, 0.48)),
    repeating-linear-gradient(115deg, rgba(23, 23, 23, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.layer-one {
  width: min(390px, 78%);
  height: 470px;
  transform: translate(-34px, -8px) rotate(-7deg);
}

.layer-two {
  width: min(330px, 68%);
  height: 420px;
  opacity: 0.84;
  transform: translate(72px, 16px) rotate(8deg);
}

.layer-three {
  width: min(230px, 54%);
  height: 310px;
  opacity: 0.72;
  transform: translate(-108px, 82px) rotate(15deg);
}

.material-stack-map {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(430px, 88%);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 34px;
  background: rgba(250, 250, 246, 0.24);
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.06);
  backdrop-filter: blur(8px);
}

.stack-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.stack-node:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.stack-node.primary {
  min-height: 78px;
  border-color: rgba(23, 23, 23, 0.34);
  background: rgba(255, 255, 255, 0.74);
  font-family: var(--display);
  font-size: 1.8rem;
}

.stack-rail {
  width: 1px;
  height: 38px;
  margin-left: 28px;
  background: var(--line);
}

.product-section,
.stack-section,
.principles-section {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.52fr);
  gap: clamp(44px, 7vw, 86px);
  align-items: center;
}

.section-copy h2,
.principles-section h2 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(2.55rem, 5.3vw, 4.9rem);
  font-weight: 400;
  line-height: 1.02;
}

.section-copy p:not(.section-label) {
  max-width: 690px;
  margin-bottom: 32px;
  color: #353530;
  font-size: 1.05rem;
  line-height: 1.62;
}

.product-visual {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 0;
}

.screen-stage {
  width: min(330px, 94%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 34px 80px rgba(23, 23, 23, 0.15);
  backdrop-filter: blur(18px);
}

.screen-stage img {
  border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.1);
}

.detail-grid,
.principle-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 42px);
  padding-top: 46px;
}

.detail-grid article,
.principle-list article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.detail-grid p,
.principle-list p {
  color: #353530;
  font-size: 0.98rem;
  line-height: 1.55;
}

.detail-label {
  margin-bottom: 14px;
  color: var(--ink);
}

.stack-section {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

.stack-section .section-copy h2 {
  max-width: 930px;
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
}

.stack-section .section-copy p:not(.section-label) {
  margin-bottom: 0;
}

.stack-list {
  display: grid;
  gap: 16px;
}

.stack-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(300px, 0.58fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(20px, 2.6vw, 34px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.stack-item > * {
  min-width: 0;
}

.stack-item:last-child {
  border-bottom: 1px solid var(--line);
}

.stack-heading {
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.05;
  white-space: nowrap;
}

.stack-heading:hover {
  color: var(--green);
}

.stack-item p {
  margin-bottom: 0;
  color: #393934;
  font-size: 0.98rem;
  line-height: 1.52;
}

pre {
  width: 100%;
  margin: 0;
  overflow-x: auto;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 111, 98, 0.08), rgba(49, 93, 146, 0.07)),
    rgba(255, 255, 255, 0.58);
}

code {
  display: block;
  min-width: max-content;
  padding: 16px 18px;
  color: #242424;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.45;
}

.principles-section {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.principles-section .section-copy {
  max-width: 1040px;
}

.site-footer {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
}

.footer-logo {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.42rem;
}

.footer-brand p,
.footer-bottom p {
  margin-bottom: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 80px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-nav div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-nav p {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.footer-nav a,
.footer-bottom a {
  width: fit-content;
  font-size: 0.92rem;
  line-height: 1.35;
}

.footer-nav a:hover,
.footer-bottom a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .hero,
  .product-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .product-visual {
    justify-items: start;
  }

  .detail-grid,
  .principle-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .stack-heading {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    min-height: auto;
    padding: 22px 14px 0;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.84rem;
  }

  .hero,
  .product-section,
  .stack-section,
  .principles-section,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  .hero {
    padding: 72px 0 44px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.03;
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-actions,
  .section-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-visual figcaption {
    position: static;
    margin-top: 18px;
  }

  .material-stack-map {
    width: min(360px, 92%);
    padding: 24px;
  }

  .stack-node.primary {
    min-height: 68px;
    font-size: 1.45rem;
  }

  .layer-one {
    width: 270px;
    height: 370px;
  }

  .layer-two {
    width: 240px;
    height: 330px;
    transform: translate(48px, 8px) rotate(8deg);
  }

  .layer-three {
    width: 170px;
    height: 240px;
    transform: translate(-70px, 72px) rotate(15deg);
  }

  .product-section,
  .stack-section,
  .principles-section {
    padding: 58px 0;
  }

  .screen-stage {
    width: min(284px, 96%);
    padding: 10px;
    border-radius: 38px;
  }

  .screen-stage img {
    border-radius: 28px;
  }

  pre {
    border-radius: 7px;
  }

  code {
    padding: 14px;
    font-size: 0.79rem;
  }

  .footer-brand,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
