@font-face {
  font-family: "Zarathustra";
  src: url("assets/fonts/zarathustra-v01.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-medium.woff2?v=2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-bold.woff2?v=2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #141818;
  --primary: #595959;
  --stroke: #e6e6e6;
  --surface: #f9f9f9;
  --off-white: #f0efef;
  --gold: #c2aa8a;
  --rail-width: 38.75rem;
  --section-pad: 3rem;
  --container-pad: 3rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--accent);
  font-family: "Geist", Arial, sans-serif;
  font-size: 100%;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a, button {
  -webkit-tap-highlight-color: rgb(0 0 0 / 8%);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--surface);
}

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

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

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-height: 100vh;
  overflow: hidden;
}

.rail-lines {
  position: absolute;
  top: 0;
  height: 1000em;
  left: 50%;
  z-index: 0;
  width: var(--rail-width);
  border-inline: 0.0625rem solid rgb(0 0 0 / 15%);
  pointer-events: none;
  transform: translateX(-50%);
}

.section {
  position: relative;
  z-index: 1;
  width: 100%;
}

.section-hero,
.section-info,
.section-faq,
.footer {
  display: flex;
  justify-content: center;
  padding-block: var(--section-pad);
}

.container {
  width: min(var(--rail-width), 100%);
  padding: var(--container-pad);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  width: 6.25rem;
  height: 2.375rem;
  display: flex;
  align-items: center;
}

.brand img {
  width: 5.703rem;
  aspect-ratio: 91.2488 / 26.4392;
  height: auto;
}

.ghost-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.5rem;
  border-radius: 999rem;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ghost-link {
  padding-inline: 1rem;
  color: var(--primary);
}

.ghost-link:hover,
.button:hover {
  transform: translateY(-0.0625rem);
}

.button {
  padding-inline: 1rem;
  border: 0.125rem solid rgb(255 255 255 / 15%);
}

.button-dark {
  background: var(--accent);
  color: var(--gold);
  box-shadow: 0 0.0625rem 0 rgb(255 255 255 / 10%) inset;
}

.button-light {
  border-color: rgb(255 255 255 / 50%);
  background: var(--off-white);
  color: var(--accent);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button-tablet-only {
  display: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

h1,
h2 {
  font-family: "Zarathustra", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 32.75rem;
  font-size: 3.3125rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-copy p,
.text-block p,
.faq-item p,
.cta-content p {
  color: var(--primary);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.section-product {
  display: flex;
  min-height: 42.875rem;
  align-items: center;
  justify-content: center;
  padding-block: 2.5rem;
}

.hero-art {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 90rem;
  height: 52.875rem;
  transform: translate(-50%, -50%);
  overflow: hidden;
  pointer-events: none;
}

.hero-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: bottom;
}

.ui-stage {
  position: relative;
  z-index: 2;
  width: 51.75rem;
  padding: 1rem;
}

.ui-texture {
  position: absolute;
  top: 50%;
  right: 1rem;
  left: calc(1rem - 0.15%);
  z-index: 0;
  aspect-ratio: 651 / 450;
  overflow: hidden;
  border-radius: 2rem;
  opacity: 1;
  transform: translateY(calc(-50% - 0.03125rem));
}

.ui-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.product-window {
  position: relative;
  z-index: 1;
  width: 48rem;
  margin: 0 auto;
  padding: 0.5rem;
  overflow: hidden;
  border: 0.125rem solid rgb(255 255 255 / 55%);
  border-radius: 1rem;
  background: #f0f0f0;
  box-shadow:
    0 0.1875rem 0.1875rem rgb(0 0 0 / 12%),
    0 0.25rem 1.5625rem rgb(0 0 0 / 15%);
}

.product-window img {
  width: 100%;
  height: 31.375rem;
  object-fit: cover;
  object-position: center;
}

.copy-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 1rem;
}

.divider span {
  flex: 1;
  height: 0.09375rem;
  border-radius: 999rem;
  background: var(--stroke);
}

.divider img {
  width: 4rem;
  height: 1.25rem;
  max-width: none;
}

.section-cards {
  height: 37.375rem;
  z-index: 2;
}

.cards {
  position: absolute;
  top: 50%;
  left: calc(50% + 0.03125rem);
  z-index: 2;
  width: 61.9375rem;
  height: 37.375rem;
  transform: translate(-50%, -50%);
}

.feature-card {
  position: absolute;
  isolation: isolate;
  display: flex;
  width: 18.75rem;
  height: 25rem;
  padding: 0.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--off-white);
  box-shadow:
    0 0.125rem 0.125rem rgb(0 0 0 / 25%),
    inset 0 0.125rem 0.125rem rgb(255 255 255 / 25%);
}

.card-left {
  left: 1.25rem;
  top: 4.75rem;
  z-index: 2;
  transform: rotate(-6deg);
}

.card-center {
    left: 20.8125rem;
    top: 3.1875rem;
  z-index: 4;
}

.card-right {
  left: 39.5rem;
  top: 5rem;
  z-index: 3;
  transform: rotate(6deg);
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 0.0625rem solid rgb(0 0 0 / 13%);
  border-radius: 0.75rem;
}

.card-icon-wrap {
  position: relative;
  display: block;
  align-self: flex-end;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
}

.card-icon-wrap img {
  position: absolute;
  display: block;
  max-width: none;
}

.card-icon-monitor img {
  inset: 12.5% 8.33%;
  width: 83.34%;
  height: 75%;
}

.card-icon-wallet img {
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: auto;
  transform: translate(-50%, -50%);
}

.card-icon-shield img {
  inset: 4.17% 10.35% 4.16%;
  width: 79.3%;
  height: 91.67%;
}

.card-inner div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-inner p {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-question {
  display: flex;
  min-height: 2rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.faq-icon {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  place-items: center;
}

.faq-icon img {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-icon img {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
  overflow: hidden;
  transition: grid-template-rows 180ms ease, margin-top 180ms ease, opacity 180ms ease;
}

.faq-answer[hidden] {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
}

.faq-answer > p {
  min-height: 0;
}

.section-cta {
  display: flex;
  justify-content: center;
  padding-block: 3rem;
}

.wide-container {
  width: 50rem;
}

.cta-wrap {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 2rem;
  background: #fff;
}

.cta-halftone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cta-card {
  position: relative;
  min-height: 19.0625rem;
  
  border-radius: 1.5rem;
  background: var(--accent);
}

.cta-illustration {
position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 100%;
    min-width: 1em;
    min-height: 1em;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 1.5rem;
}

.knight-layer {
  position: absolute;
  inset: -1.125rem 0 0 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 1.5rem;
  pointer-events: none;
}

.knight {
position: absolute;
    /* top: -1em; */
    bottom: 0em;
    right: 0;
   width: auto;
    height: 105%;
    max-width: none;
}

.cta-content {
  position: relative;
  z-index: 3;
  display: flex;
  width: 31.5rem;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem;
}

.cta-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cta-content h2 {
  color: #fff;
}

.cta-content h2 span {
  color: var(--gold);
}

.cta-content p {
  margin-top: 0.75rem;
  color: #fff;
}

.footer {
  padding-bottom: 6rem;
}

.footer p {
  color: rgb(20 24 24 / 50%);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---- Small desktop / large tablet (<= 979px) ---- */
@media (max-width: 61.1875rem) {
  :root {
    --rail-width: 38.75rem;
    --section-pad: 3rem;
    --container-pad: 3rem;
  }

  .section-product {
    min-height: 42.875rem;
    padding-block: 2.5rem;
  }

  .hero-art {
    width: 61.125rem;
    height: 52.875rem;
  }

  .ui-stage {
    width: 44.75rem;
    padding: 0;
  }

  .product-window {
    width: 42.75rem;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .product-window img {
    height: 27.875rem;
  }

  .ui-texture {
    right: 0;
    left: 0;
    aspect-ratio: 716 / 494;
    border-radius: 1.5625rem;
  }

  .section-cards {
    height: 61.1875rem;
  }

  .cards {
    width: 61.1875rem;
    height: 57.25rem;
  }

  .card-left {
    left: 10.766rem;
    top: 15.459rem;
    transform: rotate(-3.44deg);
  }

  .card-center {
    left: 30.739rem;
    top: 1.523rem;
    transform: rotate(-0.63deg);
  }

  .card-right {
    left: 28.284rem;
    top: 27.731rem;
    transform: rotate(7.71deg);
  }

  .wide-container {
    width: 44.75rem;
  }
}

/* ---- Tablet (<= 720px) ---- */
@media (max-width: 45rem) {
  :root {
    --rail-width: 27.5rem;
    --section-pad: 1.25rem;
    --container-pad: 2rem 1.5rem;
  }

  .button-desktop-only {
    display: none;
  }

  .button-tablet-only {
    display: inline-flex;
    min-height: 2.75rem;
  }

  .button-tablet-only img {
    width: 1.5rem;
    height: 1.5rem;
  }

  h1 {
    font-size: 2.75rem;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: 1.875rem;
    letter-spacing: -0.04em;
  }

  .section-faq {
    padding-block: 3rem;
  }

  .section-faq h2 {
    font-size: 2rem;
  }

  /* Hero UI section: anchored left, overflows right */
  .section-product {
    position: relative;
    height: 46.8125rem;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .hero-art {
    width: 45rem;
    height: 47.8125rem;
  }

  .ui-stage {
    position: absolute;
    top: calc(50% - 6.875rem);
    left: 1.5rem;
    width: 41.9375rem;
    padding: 0;
    transform: translateY(-50%);
  }

  .product-window {
    width: 40rem;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .product-window img {
    height: 26rem;
  }

  .ui-texture {
    right: 0;
    left: 0;
    aspect-ratio: 671 / 463;
    border-radius: 1.5625rem;
  }

  /* Cards stack vertically */
  .section-cards {
    height: auto;
    padding-block: 1.125rem;
  }

  .cards {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: none;
    top: auto;
    left: auto;
  }

  .feature-card {
    position: relative;
    inset: auto;
  }

  .card-left {
    left: auto;
    top: auto;
    transform: rotate(2deg);
  }

  .card-center {
    left: auto;
    top: auto;
    transform: rotate(-2deg);
  }

  .card-right {
    left: auto;
    top: auto;
    transform: rotate(2deg);
  }

  /* CTA: stacked, knight at bottom */
  .section-cta {
    padding-block: 3rem;
  }

  .wide-container {
    width: 100%;
    max-width: 27.5rem;
    padding: 0 1.5rem;
  }

  .cta-wrap {
    padding: 1.5rem;
    border-radius: 2rem;
    background: transparent;
  }

  .cta-card {
    min-height: 0;
    padding: 3rem 2rem 21.25rem;
  }

  .cta-content {
    width: 100%;
    gap: 3rem;
    padding: 0;
  }

  .cta-content h2 {
    font-size: 2rem;
    letter-spacing: -0.04em;
  }

  .cta-content .button-row {
    width: 100%;
  }

  .knight-layer {
    inset: 0;
    border-radius: 1.5rem;
  }

  .knight {
    bottom: 0;
    left: 50%;
    right: auto;
    width: 114.54%;
    height: auto;
    aspect-ratio: 392 / 313;
    transform: translateX(-50%);
    object-fit: cover;
  }

  .cta-illustration {
    object-position: center bottom;
  }
}

/* ---- Mobile (<= 480px) ---- */
@media (max-width: 30rem) {
  /* Hero UI: no halftone frame, just the bare UI window */
  .ui-stage {
    width: 40rem;
  }

  .ui-texture {
    display: none;
  }

  /* Tighter outer padding so CTA fits on small phones */
  .wide-container {
    padding: 0 0.5rem;
  }

  /* CTA: drop the halftone overlay; bg illustration shifts to bottom-right */
  .cta-halftone-pic {
    display: none;
  }

  .cta-wrap {
    padding: 1rem;
  }

  .cta-card {
    padding: 2.5rem 1rem 21.25rem;
  }

  .cta-illustration {
    object-position: right bottom;
  }

  .knight {
    aspect-ratio: 449 / 313;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
