@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken_grotesk/HankenGrotesk-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 300 900;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains_mono/JetBrainsMono-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 800;
}

:root {
  --background: #faf8f3;
  --surface: #ffffff;
  --ink: #1a1c1c;
  --muted: #5f5e5e;
  --quiet: #8b8782;
  --line: #ddd8cf;
  --soft: #f1eee6;
  --signal: #b72301;
  --signal-soft: #fff0eb;
  --success: #2f7d3b;
  --blue: #2549d8;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(26, 28, 28, 0.15);
  --hairline: rgba(26, 28, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(26, 28, 28, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 28, 28, 0.03) 1px, transparent 1px),
    var(--background);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  text-rendering: geometricprecision;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  font-size: 18px;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--signal);
}

.nav-action {
  justify-self: end;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(26, 28, 28, 0.08);
}

.section-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  padding: clamp(56px, 8vw, 104px) 0 86px;
}

.eyebrow,
.label {
  margin: 0 0 16px;
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(58px, 8.4vw, 112px);
  line-height: 0.9;
  font-weight: 900;
  text-wrap: balance;
}

h1 span,
h2 span {
  display: block;
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(19px, 1.75vw, 24px);
  line-height: 1.3;
  font-weight: 640;
  text-wrap: pretty;
}

.hero-actions,
.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 860;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 14px 30px rgba(26, 28, 28, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.signal-strip {
  margin: 44px 0 0;
}

.signal-strip div {
  min-width: 152px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(26, 28, 28, 0.04);
}

.signal-strip dt {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.signal-strip dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.12;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--quiet);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 456px);
  isolation: isolate;
}

.hero-device-card {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-device-card::before {
  content: "";
  position: absolute;
  inset: 10% 8% 8%;
  z-index: -1;
  border: 1px solid rgba(183, 35, 1, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(183, 35, 1, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(47, 125, 59, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.44);
  transform: rotate(-4deg) translate(22px, 20px);
}

.hero-phone {
  width: auto;
  max-width: 100%;
  max-height: min(760px, calc(100vh - 124px));
  margin: 0 auto;
  filter: drop-shadow(0 30px 54px rgba(26, 28, 28, 0.2));
  transform: rotate(2.5deg);
}

.wake-card {
  position: absolute;
  right: -20px;
  bottom: 21%;
  width: 214px;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(183, 35, 1, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 240, 235, 0.94);
  box-shadow: 0 18px 42px rgba(183, 35, 1, 0.16);
  backdrop-filter: blur(12px);
}

.wake-card span {
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.wake-card strong {
  font-size: 21px;
  line-height: 0.98;
}

.flow-section,
.screens-section,
.trust-section,
.beta-section {
  padding: clamp(78px, 10vw, 128px) 0;
  border-top: 1px solid var(--hairline);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
  margin-bottom: clamp(28px, 5vw, 52px);
}

.flow-section .section-heading {
  display: block;
  max-width: 880px;
  margin-right: auto;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.flow-section .eyebrow {
  margin-bottom: 18px;
}

.screens-section .section-heading {
  display: block;
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: clamp(38px, 6vw, 68px);
  text-align: center;
}

.screens-section .eyebrow {
  margin-bottom: 18px;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  text-wrap: balance;
}

.flow-section h2 {
  max-width: 880px;
  font-size: clamp(46px, 6.2vw, 90px);
  line-height: 0.94;
}

.screens-section h2 {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: 0.96;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-grid article,
.trust-list div,
.beta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.flow-grid article {
  min-height: 300px;
  padding: 26px;
  box-shadow: 0 1px 0 rgba(26, 28, 28, 0.04);
}

.flow-grid article span {
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
  line-height: 1;
}

h3 {
  margin: 72px 0 12px;
  font-size: 31px;
  line-height: 0.98;
}

.flow-grid p,
.trust-copy p,
.beta-section p,
.trust-list span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.34;
  font-weight: 560;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 0 8px;
}

.screen-gallery figure {
  margin: 0;
}

.screen-gallery figure:nth-child(1) {
  grid-column: 1 / span 3;
}

.screen-gallery figure:nth-child(2) {
  grid-column: 4 / span 3;
}

.screen-gallery figure:nth-child(3) {
  grid-column: 7 / span 3;
}

.screen-gallery figure:nth-child(4) {
  grid-column: 10 / span 3;
}

.screen-gallery img {
  width: 100%;
  border-radius: 30px;
  filter: drop-shadow(0 22px 38px rgba(26, 28, 28, 0.15));
}

.screen-gallery figure:nth-child(2),
.screen-gallery figure:nth-child(4) {
  transform: translateY(44px);
}

.screen-gallery figure:nth-child(1),
.screen-gallery figure:nth-child(3) {
  transform: translateY(-10px);
}

.screen-gallery figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.trust-section h2 {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.trust-copy p,
.beta-section > div:first-child p {
  max-width: 560px;
}

.beta-section h2 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.beta-section > div:first-child p {
  margin-bottom: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.36;
  text-wrap: pretty;
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-list div {
  display: grid;
  gap: 8px;
  padding: 21px;
  box-shadow: 0 1px 0 rgba(26, 28, 28, 0.04);
}

.trust-list strong {
  font-size: 21px;
  line-height: 1.05;
}

.beta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.beta-card {
  padding: 30px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.beta-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1;
  text-wrap: balance;
}

.beta-card p {
  color: rgba(255, 255, 255, 0.72);
}

.beta-card .button-primary {
  width: 100%;
  margin-top: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-weight: 780;
  line-height: 1.2;
}

.site-footer div {
  gap: 18px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .trust-section,
  .beta-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(46px, 13.2vw, 68px);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(36px, 9vw, 54px);
    line-height: 1;
  }

  .hero-lede {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.32;
  }

  .beta-section h2 {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 1.02;
  }

  .hero-visual {
    width: min(100%, 360px);
  }

  .hero-phone {
    width: min(100%, 360px);
    max-height: none;
    transform: none;
  }

  .wake-card {
    right: -4px;
    bottom: 42px;
  }

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

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

  .screen-gallery figure:nth-child(n) {
    grid-column: auto;
  }

  .screen-gallery figure:nth-child(1),
  .screen-gallery figure:nth-child(3) {
    transform: translateY(0);
  }

  .screen-gallery figure:nth-child(2),
  .screen-gallery figure:nth-child(4) {
    transform: translateY(28px);
  }

  .flow-grid article {
    min-height: 210px;
  }

  h3 {
    margin-top: 34px;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .nav-action {
    padding: 10px 12px;
    font-size: 14px;
  }

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

  .signal-strip div {
    flex: 1 1 100%;
  }

  .wake-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .screen-gallery {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .screen-gallery figure:nth-child(2),
  .screen-gallery figure:nth-child(4) {
    transform: translateY(0);
  }

  .flow-section,
  .screens-section,
  .trust-section,
  .beta-section {
    padding: 62px 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
