@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/jetbrains-mono-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --primary: #e65c00;
  --primary-hover: #f06d12;
  --secondary: #fdfbf7;
  --accent: #ffb380;
  --background: #fdfbf7;
  --surface: #f7f4eb;
  --surface-raised: #fffdf9;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-soft: #68707d;
  --border: #e5e7eb;
  --border-strong: #d2d5da;
  --error: #a52f24;
  --success: #31623b;
  --radius-card: 16px;
  --radius-control: 8px;
  --radius-pill: 9999px;
  --space: 8px;
  --section-padding: clamp(64px, 8vw, 96px);
  --page-gutter: clamp(16px, 4vw, 64px);
  --content-width: 1400px;
  --font-sans: Inter, Aptos, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --shadow-card: 0 20px 60px rgba(64, 49, 32, 0.1);
  --shadow-lifted: 0 28px 80px rgba(99, 55, 20, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 5%, rgba(255, 179, 128, 0.26), transparent 23rem),
    var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(230, 92, 0, 0.34);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--text-primary);
  color: var(--secondary);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.section-shell,
.nav-shell {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  background: rgba(253, 251, 247, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 28px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-control);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.nav-shell > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms ease,
    box-shadow 200ms ease;
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
}

.button-primary {
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.button-primary:hover {
  background: var(--primary-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 24px rgba(230, 92, 0, 0.18);
  transform: translateY(-2px);
}

.button:active,
.text-link:active,
.product-tab:active {
  transform: translateY(1px) scale(0.985);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  min-height: calc(100dvh - 64px);
  padding-top: clamp(48px, 7vh, 80px);
  padding-bottom: clamp(56px, 8vh, 80px);
  gap: clamp(40px, 7vw, 104px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.eyebrow,
.card-kicker,
.waitlist-label,
.stage-meta {
  font-family: var(--font-mono);
}

.eyebrow {
  margin-bottom: 20px;
  color: #aa4000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.headline-mask {
  display: block;
  overflow: hidden;
}

.headline-mask > span {
  display: block;
}

.hero-lede {
  max-width: 43ch;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-link {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.text-link:hover {
  border-color: var(--primary);
  color: #a63c00;
}

.hero-product {
  position: relative;
  width: min(850px, 65vw);
  margin: 0 -7vw 0 0;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-lifted);
}

.hero-stage::before {
  position: absolute;
  inset: 24px -20px -20px 24px;
  z-index: -1;
  border-radius: var(--radius-card);
  background: var(--accent);
  content: "";
}

.stage-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 12px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-frame,
.preview-frame {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: calc(var(--radius-card) - 4px);
  background: #252521;
}

.product-frame img,
.preview-frame img {
  width: 100%;
  height: auto;
}

.hero-product figcaption {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 12px;
}

.product-section,
.principles-section,
.waitlist-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.product-section {
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

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

.section-heading h2,
.waitlist-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-heading p,
.waitlist-copy > p:last-child {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.product-switcher {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.product-tabs {
  display: grid;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  gap: 4px;
}

.product-tab {
  display: grid;
  width: 100%;
  padding: 18px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-tab:hover {
  color: var(--text-primary);
}

.product-tab.is-active {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(64, 49, 32, 0.08);
}

.tab-name {
  font-size: 15px;
  font-weight: 700;
}

.tab-description {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.preview-panel {
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.preview-frame {
  padding: 6px;
}

.preview-frame img {
  border-radius: calc(var(--radius-control) - 2px);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-frame img.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.preview-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(220px, 0.4fr);
  align-items: start;
  padding: 20px 6px 4px;
  gap: 24px;
}

.preview-copy h3 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.preview-copy p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.principles-section {
  border-top: 1px solid var(--border);
}

.hardware-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(340px, 1fr));
  gap: 16px;
}

.hardware-photo,
.hardware-feature,
.hardware-details {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.hardware-photo {
  grid-column: span 7;
  grid-row: span 2;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hardware-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hardware-photo:hover img {
  transform: scale(1.018);
}

.hardware-feature {
  grid-column: span 5;
  padding: clamp(24px, 3.2vw, 44px);
  background: var(--primary);
  color: var(--text-primary);
}

.card-kicker,
.waitlist-label {
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hardware-feature h3 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.hardware-feature > p:last-child {
  max-width: 40ch;
  margin-bottom: 0;
  font-size: 14px;
}

.hardware-details {
  display: grid;
  grid-column: span 5;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hardware-details > div {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
}

.hardware-details > div + div {
  border-left: 1px solid var(--border-strong);
}

.detail-visual {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--secondary);
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-item:hover .detail-visual img {
  transform: scale(1.025);
}

.hardware-details h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.hardware-details p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.waitlist-section {
  padding-top: clamp(48px, 7vw, 80px);
}

.waitlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  gap: 8px;
}

.waitlist-copy,
.waitlist-form {
  border-radius: calc(var(--radius-card) - 4px);
}

.waitlist-copy {
  padding: clamp(32px, 5vw, 72px);
  background: var(--accent);
}

.waitlist-label {
  color: #6f2a00;
}

.waitlist-copy h2 {
  max-width: 11ch;
  font-size: clamp(38px, 4.5vw, 60px);
}

.waitlist-copy > p:last-child {
  max-width: 43ch;
  color: #3f342d;
}

.waitlist-form {
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  background: var(--surface-raised);
}

.field {
  display: grid;
  width: 100%;
  gap: 10px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--secondary);
  color: var(--text-primary);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.field input:hover {
  border-color: #a9adb5;
}

.field input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.18);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field .button {
  width: 100%;
}

.field-helper,
.form-status {
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.45;
}

.field-helper {
  color: var(--text-soft);
}

.form-status {
  min-height: 16px;
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.waitlist-form button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .headline-mask > span {
    animation: masked-line 800ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .headline-mask:nth-child(2) > span {
    animation-delay: 90ms;
  }

  .eyebrow,
  .hero-lede,
  .hero-actions {
    animation: fade-up 650ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .eyebrow {
    animation-delay: 40ms;
  }

  .hero-lede {
    animation-delay: 170ms;
  }

  .hero-actions {
    animation-delay: 230ms;
  }

  .hero-product {
    animation: product-enter 850ms 160ms both cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes masked-line {
  from {
    transform: translateY(105%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes product-enter {
  from {
    opacity: 0;
    transform: translateX(32px) scale(0.98);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 80px;
    gap: 48px;
  }

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

  .hero-product {
    width: min(100%, 900px);
    margin: 0;
  }

  .product-switcher {
    grid-template-columns: 1fr;
  }

  .product-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-tab {
    min-height: 96px;
  }

  .hardware-bento {
    grid-template-rows: repeat(2, minmax(300px, 1fr));
  }

  .hardware-photo {
    grid-column: span 7;
  }

  .hardware-feature,
  .hardware-details {
    grid-column: span 5;
  }

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

  .hardware-details > div + div {
    border-left: 1px solid var(--border-strong);
  }

  .waitlist-panel {
    grid-template-columns: 1fr 0.78fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
    --section-padding: 64px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .nav-shell > .button {
    font-size: 12px;
  }

  .hero {
    width: 100%;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 60px);
  }

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

  .hero-stage {
    padding: 10px;
  }

  .hero-stage::before {
    inset: 14px -8px -10px 16px;
  }

  .stage-meta {
    padding-bottom: 8px;
    font-size: 8px;
  }

  .section-heading h2,
  .waitlist-copy h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .product-tabs {
    grid-template-columns: 1fr;
  }

  .product-tab {
    min-height: 0;
  }

  .preview-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hardware-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hardware-photo,
  .hardware-feature,
  .hardware-details {
    grid-column: auto;
    grid-row: auto;
  }

  .hardware-photo {
    height: min(72dvh, 520px);
    min-height: 380px;
  }

  .hardware-photo img {
    object-position: 68% center;
  }

  .hardware-feature {
    min-height: 300px;
  }

  .hardware-details {
    grid-template-columns: 1fr 1fr;
  }

  .hardware-details > div + div {
    border-top: 0;
    border-left: 1px solid var(--border-strong);
  }

  .waitlist-panel {
    grid-template-columns: 1fr;
  }

  .waitlist-copy,
  .waitlist-form {
    width: 100%;
  }

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

@media (max-width: 460px) {
  .brand span {
    max-width: 100px;
    overflow: hidden;
  }

  .hardware-details {
    grid-template-columns: 1fr;
  }

  .hardware-details > div + div {
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--background);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
