:root {
  color-scheme: dark;
  --ink: #ecfff9;
  --muted: #92b8ad;
  --paper: #061311;
  --paper-deep: #030807;
  --surface: #0a1c19;
  --line: rgba(236, 255, 249, 0.22);
  --line-strong: rgba(236, 255, 249, 0.42);
  --teal: #00c8b3;
  --coral: #a94e30;
  --orange: #ff8d28;
  --green: #34c759;
  --cream: #fff8f0;
  --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;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0%, #081a16 52%, var(--paper-deep) 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);
  border-bottom: 1px solid rgba(236, 255, 249, 0.08);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.footer-logo {
  font-family: var(--display);
}

.brand {
  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-wall {
  position: relative;
  display: grid;
  min-height: 88vh;
  min-height: 88svh;
  align-content: center;
  gap: clamp(32px, 5vw, 72px);
  overflow: hidden;
  padding: 124px clamp(24px, 5vw, 72px) clamp(58px, 8vw, 96px);
}

.hero-wall::before {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.hero-wall::before {
  top: 23%;
  right: -8vw;
  width: min(540px, 44vw);
  height: clamp(150px, 23vh, 230px);
  background: var(--teal);
  opacity: 0.56;
  transform: rotate(-10deg);
}

.hero-kicker,
.hero-statement,
.hero-focus {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.section-label,
.row-number {
  font-family: var(--mono);
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-kicker {
  grid-column: 1 / -1;
  width: fit-content;
  margin: 0;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-statement {
  max-width: 1080px;
}

h1 {
  max-width: 1160px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--display);
  font-size: clamp(3.5rem, 7.6vw, 7.8rem);
  font-weight: 400;
  line-height: 0.88;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 640px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  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(--cream);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--cream);
  color: #061311;
}

.primary-action:hover {
  border-color: #ffffff;
  background: #ffffff;
}

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

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

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

.hero-focus {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 42px);
  align-items: center;
  max-width: 880px;
  border-top: 1px solid rgba(236, 255, 249, 0.18);
  padding-top: 20px;
}

.hero-focus span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-section {
  scroll-margin-top: 72px;
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 141, 40, 0.42), transparent 30%),
    linear-gradient(180deg, #b85b36 0%, var(--coral) 48%, #87391f 100%);
  color: var(--cream);
}

.product-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.44fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: center;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 140px) 0;
}

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

.section-label {
  margin: 0 0 18px;
  color: currentColor;
  font-size: 0.77rem;
  opacity: 0.7;
}

.section-copy h2,
.principles-section h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.96;
}

.section-copy p:not(.section-label) {
  max-width: 680px;
  margin-bottom: 32px;
  font-size: 1.06rem;
  line-height: 1.62;
}

.product-section .section-copy p:not(.section-label) {
  color: var(--cream);
}

.product-section .text-action.secondary {
  color: rgba(255, 248, 240, 0.74);
}

.product-visual {
  display: grid;
  justify-items: center;
  margin: 0;
  overflow: visible;
}

.iphone-device {
  position: relative;
  isolation: isolate;
  width: var(--device-width, 320px);
  aspect-ratio: 1450 / 2936;
}

.iphone-device::before {
  position: absolute;
  z-index: 0;
  inset: 2.4% 3.5% 2.8%;
  border-radius: 12.5% / 6.2%;
  box-shadow: 0 34px 48px rgba(23, 22, 20, 0.34), 0 16px 24px rgba(23, 22, 20, 0.24), 0 4px 10px rgba(23, 22, 20, 0.16);
  content: "";
  pointer-events: none;
}

.product-phone {
  --device-width: min(340px, 94%);
}

.iphone-screen {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(1290 / 1450 * 100%);
  height: calc(2796 / 2936 * 100%);
  border-radius: 7.75% / 3.58%;
  transform: translate(-50%, -50%);
}

.iphone-bezel {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.product-points {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: clamp(26px, 4vw, 56px);
  padding-top: clamp(18px, 2vw, 30px);
}

.product-points article {
  flex: 1 1 260px;
  max-width: 360px;
}

.product-points strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  font-weight: 400;
  line-height: 1.05;
}

.product-points p {
  margin: 0;
  color: rgba(255, 248, 240, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
}

.stack-section {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(88px, 11vw, 148px) 0;
  scroll-margin-top: 72px;
}

.stack-intro {
  max-width: 1040px;
  margin-bottom: clamp(42px, 6vw, 74px);
}

.stack-intro h2 {
  max-width: 920px;
}

.stack-title-line {
  display: block;
}

.stack-intro p:not(.section-label) {
  color: var(--muted);
}

.stack-ledger {
  display: grid;
  border-bottom: 1px solid rgba(236, 255, 249, 0.16);
}

.stack-row {
  display: grid;
  grid-template-columns: 78px minmax(500px, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 52px);
  align-items: baseline;
  border-top: 1px solid rgba(236, 255, 249, 0.16);
  padding: clamp(34px, 4.4vw, 60px) 0;
  scroll-margin-top: 92px;
}

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

.row-title {
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(3rem, 5.15vw, 4.75rem);
  line-height: 0.88;
}

.row-title:hover {
  color: var(--teal);
}

.stack-row p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}

.principles-section {
  min-height: 62vh;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(100deg, transparent 0 62%, rgba(0, 200, 179, 0.16) 62% 63%, transparent 63% 100%),
    var(--paper);
  scroll-margin-top: 72px;
}

.principles-section .section-label {
  color: var(--teal);
}

.principles-section h2 {
  max-width: 1180px;
  font-size: clamp(3.1rem, 7.6vw, 8.8rem);
  line-height: 0.9;
}

.principles-section p:not(.section-label) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.2;
}

.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-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-wall {
    min-height: 86vh;
    min-height: 86svh;
  }

  .hero-focus {
    max-width: 100%;
  }

  .product-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

  .stack-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .stack-row p {
    grid-column: 2;
  }

  .row-title {
    font-size: clamp(3.1rem, 11vw, 6.8rem);
  }
}

@media (min-width: 721px) and (max-height: 820px) {
  .hero-wall {
    gap: 48px;
    padding-top: 104px;
    padding-bottom: 72px;
  }

  h1 {
    margin-bottom: 34px;
  }

  .hero-lede {
    margin-bottom: 28px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    min-height: auto;
    padding: 22px 14px 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .brand {
    font-size: 1.18rem;
  }

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

  .hero-wall {
    gap: 24px;
    min-height: auto;
    padding: 42px 14px 34px;
  }

  .hero-wall::before {
    top: 36%;
    right: -58vw;
    width: 90vw;
    height: 110px;
    opacity: 0.34;
  }

  .hero-kicker {
    font-size: 0.78rem;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(2.58rem, 12.8vw, 4.9rem);
    line-height: 0.9;
  }

  h1 span {
    white-space: normal;
  }

  .hero-lede {
    margin-bottom: 20px;
    font-size: 1rem;
  }

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

  .hero-focus {
    display: none;
  }

  .hero-focus span {
    font-size: 0.72rem;
  }

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

  .product-inner,
  .stack-section {
    padding: 68px 0;
  }

  .section-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.9rem);
  }

  .product-phone {
    --device-width: min(284px, 96%);
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 0;
  }

  .stack-row p {
    grid-column: auto;
  }

  .row-title {
    font-size: clamp(3rem, 15.5vw, 5.5rem);
  }

  .principles-section {
    min-height: auto;
    padding: 58px 14px;
  }

  .principles-section h2 {
    font-size: clamp(2.95rem, 13vw, 4.9rem);
    line-height: 0.94;
  }

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

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