/* =====================================================================
   FONTS
   ---------------------------------------------------------------------
   The design uses three typefaces:
     • The Acres Sans  (uppercase display — hero headline, section labels)
     • Neue Grand 53 Regular Wide (body copy, headlines, buttons)
     • Geist            (nav menu, "Play video" label)

   Geist is free (loaded from Google Fonts).
   "The Acres Sans" and "Neue Grand" are COMMERCIAL fonts. To get a true
   1:1 match, drop the licensed web files into the /fonts folder and
   uncomment the @font-face blocks below. Until then the closest free
   grotesque (Archivo) is used as a stand-in via the font stacks.
   ===================================================================== */

@font-face {
  font-family: "The Acres Sans";
  src: url("fonts/TheAcresSans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Grand";
  src: url("fonts/NeueGrand-Wide-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #081014;
  --ink-70: rgba(8, 16, 20, 0.7);
  --ink-12: rgba(8, 16, 20, 0.12);
  --ink-1e: #1e1e1e;
  --gray-bg: #f2f3f5;
  --gray-999: #999999;
  --white: #ffffff;
  --muted: #707070;
  --c8: #c8c8c8;
  --video-bg: #121214;

  /* Font stacks — real commercial fonts first, free stand-in second */
  --font-acres: "The Acres Sans", "Archivo", system-ui, sans-serif;
  --font-neue: "Neue Grand", "Archivo", system-ui, sans-serif;
  --font-geist: "Geist", system-ui, -apple-system, sans-serif;

  /* Design canvas reference: 1920px frame, 220px / 217px side padding */
  --pad-l: 220px;
  --pad-r: 217px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-neue);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* Full-width section + exact Figma side padding */
.section-pad {
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

/* ---------- Scroll / load reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero "lights up": the background photo starts dark + zoomed and brightens into place */
  .hero__bg img {
    filter: brightness(0.16) saturate(0.85);
    transform: scale(1.12);
    transition: filter 1.9s ease, transform 2.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hero.is-loaded .hero__bg img {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  /* Content eases up gently while the photo brightens */
  .hero__content {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.1s ease 0.25s, transform 1.1s ease 0.25s;
  }
  .hero.is-loaded .hero__content {
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal--d1 {
    transition-delay: 0.1s;
  }
  .reveal--d2 {
    transition-delay: 0.2s;
  }
  .reveal--d3 {
    transition-delay: 0.3s;
  }

  /* Word-by-word blur reveal: plays once when scrolled into view */
  .text-reveal:not(.tr-ready) {
    opacity: 0;
  }
  .tr-word {
    filter: blur(12px);
    opacity: 0.12;
    transition: filter 0.6s ease, opacity 0.6s ease;
  }
  .text-reveal.is-revealed .tr-word {
    filter: none;
    opacity: 1;
  }
}

.tr-word {
  display: inline-block;
  will-change: filter, opacity;
}

/* ---------- Shared "Link - Main Button" (Neue Grand) ---------- */
.link-button {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 14px 20px;
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 22.4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.link-button__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Section label (logo + The Acres Sans text) ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.label__logo {
  width: 23px;
  height: 24px;
  flex-shrink: 0;
}

.label span {
  font-family: var(--font-acres);
  font-size: 18px;
  line-height: 21.6px;
  text-transform: uppercase;
  color: var(--ink);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Design frame is 1920 x 1200 (= 62.5% of width) */
  min-height: min(1200px, 62.5vw);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 16, 20, 0) 33%, var(--ink) 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 3;
}

.nav__inner {
  max-width: 1479px;
  margin: 0 auto;
  padding: 27px 40px;
  height: 117px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand img {
  height: 31px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 13px;
}

.nav__link {
  font-family: var(--font-geist);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.32px;
  color: var(--white);
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 20px 16px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav__link:first-child {
  padding-inline: 10px;
}

.nav__link:hover {
  opacity: 0.85;
}

.nav__link--active {
  border-bottom-color: rgba(255, 255, 255, 0.48);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-geist);
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  height: 50.41px;
  padding: 15px 16px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
}

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

/* ---------- Hero content ---------- */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad-l) 121px;
}

.hero__title {
  font-family: var(--font-acres);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 40px;
  line-height: 72px;
  max-width: 1160px;
  background: linear-gradient(201.133deg, rgb(255, 255, 255) 53.366%, rgba(255, 255, 255, 0) 151.13%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 16px;
  font-family: var(--font-neue);
  font-size: 24px;
  line-height: 1.2;
  max-width: 796px;
  color: var(--white);
}

.hero__content .link-button {
  margin-top: 40px;
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--white);
  padding-top: 90px;
  padding-bottom: 90px;
}

.about__grid {
  display: flex;
  gap: 35px;
  align-items: flex-start;
}

.about__left {
  flex: 0 0 732px;
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.about__headline {
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 30px;
  line-height: 50.4px;
  letter-spacing: -1.26px;
  max-width: 725px;
  color: var(--ink);
}

.about__right {
  flex: 0 1 716px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about__right p {
  font-family: var(--font-neue);
  font-size: 18px;
  line-height: 27px;
  color: var(--ink-70);
}

/* ===================== THE SENTINALY OS ===================== */
/* Pinned scroll track: each module gets ~1 viewport of scroll.
   The panel keeps its Figma size (760px) and is centered while pinned. */
.os-scroll {
  position: relative;
  height: 500vh;
  background: var(--white);
}

.os {
  position: sticky;
  top: max(0px, calc((100vh - 760px) / 2));
  height: 760px;
  background: var(--gray-bg);
  padding: 38px var(--pad-r) 38px var(--pad-l);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.os__grid {
  display: flex;
  gap: 194px;
  align-items: flex-start;
  width: 1479px;
  max-width: 100%;
  margin: 0 auto;
}

.os__left {
  flex: 0 0 417px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.os__headline {
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 30px;
  line-height: 50.4px;
  color: var(--ink);
}

.os__right {
  display: flex;
  gap: 218px;
  align-items: center;
}

/* iOS picker-wheel: items sit on a 3D cylinder, JS rotates the drum on scroll */
.os__list {
  list-style: none;
  position: relative;
  width: 446px;
  height: 420px;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.os__item {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 66px;
  margin-top: -33px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 60px;
  line-height: 66px;
  letter-spacing: -1.8px;
  color: var(--gray-999);
  cursor: pointer;
  opacity: 0.45;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: color 0.25s ease;
}

.os__item--active {
  color: var(--ink);
  opacity: 1;
}

.os__explore {
  flex-shrink: 0;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  background: var(--white);
  padding-top: 38px;
  padding-bottom: 38px;
}

.testimonials__row {
  margin-top: 118px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tcard {
  position: relative;
  width: 430px;
  height: 500px;
  overflow: hidden;
  flex-shrink: 0;
}

.tcard--light {
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.tcard__avatar {
  width: 60px;
  height: 60px;
  border-radius: 100px;
  overflow: hidden;
}

.tcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__quote {
  margin-top: auto;
  margin-bottom: 24px;
  font-family: var(--font-neue);
  font-size: 24px;
  line-height: 26.4px;
  color: var(--ink);
  max-width: 303px;
}

.tcard__meta {
  padding-left: 20px;
  border-left: 1px solid var(--ink);
  font-family: var(--font-neue);
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--ink);
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* Video card */
.tcard--video {
  background: var(--video-bg);
  color: var(--white);
}

.tcard__videobg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__videooverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 18, 20, 0) 24.587%, var(--video-bg) 100%);
}

.tcard__play {
  position: absolute;
  top: calc(50% - 28.8px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 100px;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tcard__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.tcard__play img {
  width: 14px;
  height: 14px;
}

.tcard__playtext {
  position: absolute;
  top: calc(50% + 40px);
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tcard__playlabel {
  font-family: var(--font-geist);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

.tcard__playtime {
  font-family: var(--font-geist);
  font-weight: 400;
  font-size: 14px;
  line-height: 19.6px;
  color: var(--c8);
}

.tcard__meta--light {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 31.99px;
  border-left-color: var(--white);
  color: var(--white);
}

/* ===================== SECURITY & TRUST ===================== */
.security {
  background: var(--white);
  padding-top: 38px;
  padding-bottom: 38px;
}

.security__features {
  margin-top: 87px;
  margin-left: 162px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 257px;
  flex-shrink: 0;
}

.feature__icon {
  width: 30px;
  height: 30px;
}

.feature__title {
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 17px;
  line-height: 23px;
  letter-spacing: -0.4px;
  color: var(--ink-1e);
}

.feature__text {
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 19.2px;
  letter-spacing: -0.4px;
  color: var(--ink-1e);
  opacity: 0.8;
}

.security__badges {
  margin-top: 80px;
  margin-left: 162px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 127px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-align: center;
  justify-content: flex-end;
}

.badge--soc {
  width: 206px;
}

.badge--iso,
.badge--enc {
  width: 179px;
}

.badge__img--soc {
  height: 102px;
  width: 351px;
  max-width: none;
  object-fit: cover;
}

.badge__iso {
  position: relative;
  width: 114px;
  height: 114px;
}

.badge__ring {
  position: absolute;
  top: 3px;
  left: 3.6px;
  width: 106.8px;
  height: 106.8px;
  z-index: 0;
}

.badge__img--iso {
  position: relative;
  z-index: 1;
  width: 114px;
  height: 114px;
  object-fit: contain;
}

.badge__img--enc {
  width: 114px;
  height: 114px;
  object-fit: cover;
}

.badge__caption {
  font-family: var(--font-neue);
  font-size: 15px;
  line-height: 23px;
  letter-spacing: -0.4px;
  color: var(--ink-1e);
}

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  min-height: 865px;
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding: 67px 360px 40px;
}

.footer__head {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 402px;
}

.footer__eyebrow {
  font-family: var(--font-acres);
  font-size: 14px;
  line-height: 19.6px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--white);
}

.footer__title {
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 35px;
  line-height: 49px;
  color: var(--white);
}

/* Newsletter */
.footer__signup {
  margin-top: 56px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 1200px;
}

.newsletter {
  background: var(--gray-bg);
  color: var(--ink);
  padding: 0 32px;
  height: 120.59px;
  flex: 1 1 954px;
  display: grid;
  grid-template-columns: 167px 1fr;
  align-items: center;
  gap: 0 44px;
}

.newsletter__label {
  font-family: var(--font-neue);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.4px;
  color: var(--ink);
  grid-row: 1;
}

.newsletter__form {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  position: relative;
  height: 61px;
  background: var(--white);
}

.newsletter__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 20px;
  font-family: var(--font-neue);
  font-size: 16px;
  color: var(--ink);
}

.newsletter__input::placeholder {
  color: var(--muted);
}

.newsletter__btn {
  background: var(--ink);
  color: var(--white);
  border: none;
  width: 120px;
  margin: 5px;
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.newsletter__btn:hover {
  opacity: 0.85;
}

.newsletter__terms {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 8px;
  font-family: var(--font-neue);
  font-size: 13px;
  line-height: 19.6px;
  color: var(--muted);
}

.newsletter__terms a {
  text-decoration: underline;
}

.newsletter__cta {
  position: relative;
  flex: 0 0 236px;
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 22.4px;
  transition: background 0.2s ease;
}

.newsletter__cta span {
  margin-top: auto;
}

.newsletter__cta .link-button__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
}

.newsletter__cta:hover {
  background: #f2f3f5;
}

/* Footer links */
.footer__links {
  margin-top: 10px;
  background: var(--white);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
}

.footer__col {
  padding: 32px 45px;
}

.footer__col--legal {
  border-left: 1px solid var(--ink-12);
  padding-left: 337px;
  padding-right: 93px;
}

.footer__coltitle {
  font-family: var(--font-neue);
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.footer__muted {
  font-family: var(--font-neue);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 245px;
  margin-bottom: 18px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__list a {
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 16px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* Footer bottom bar */
.footer__bottom {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.footer__copy span {
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

.footer__wordmark {
  height: 10px;
  width: 112.308px;
}

.footer__powered {
  font-family: var(--font-neue);
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1700px) {
  :root {
    --pad-l: 120px;
    --pad-r: 120px;
  }
  .os__grid {
    gap: 100px;
  }
  .os__right {
    gap: 80px;
  }
  .security__features {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .security__badges {
    margin-left: 0;
  }
  .testimonials__row {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 1280px) {
  :root {
    --pad-l: 64px;
    --pad-r: 64px;
  }
  .about__grid,
  .os__grid {
    flex-direction: column;
    gap: 48px;
  }
  .about__left,
  .os__left {
    flex-basis: auto;
  }
  .os__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }
  .footer__inner {
    padding-left: 64px;
    padding-right: 64px;
  }
  .footer__col--legal {
    padding-left: 45px;
    padding-right: 45px;
  }
}

@media (max-width: 1000px) {
  .nav__menu {
    display: none;
  }
  .hero__title {
    font-size: 32px;
    line-height: 1.2;
  }
  .hero__subtitle {
    font-size: 20px;
  }
  /* Disable pinned scroll-jacking + the 3D wheel on small screens */
  .os-scroll {
    height: auto;
  }
  .os {
    position: static;
    height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
    overflow: visible;
  }
  .os__list {
    height: auto;
    perspective: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .os__item {
    position: static;
    height: auto;
    margin-top: 0;
    font-size: 44px;
    line-height: 1.1;
    white-space: normal;
    opacity: 1 !important;
    transform: none !important;
  }
  .footer__signup {
    flex-direction: column;
  }
  .newsletter__cta {
    flex-basis: auto;
    min-height: 96px;
  }
  .newsletter {
    grid-template-columns: 1fr;
    height: auto;
    padding: 28px 24px;
    gap: 16px;
  }
  .newsletter__form,
  .newsletter__terms {
    grid-column: 1;
  }
  .footer__links {
    grid-template-columns: 1fr;
  }
  .footer__col--legal {
    border-left: none;
    border-top: 1px solid var(--ink-12);
  }
}

@media (max-width: 768px) {
  :root {
    --pad-l: 20px;
    --pad-r: 20px;
  }
  .nav__inner {
    padding: 16px 20px;
    height: auto;
    flex-wrap: wrap;
  }
  .hero__content {
    padding-bottom: 48px;
  }
  .about,
  .testimonials,
  .security {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .footer__inner {
    padding: 48px 20px 32px;
  }
  .tcard {
    width: 100%;
    max-width: 430px;
  }
  .security__badges {
    gap: 48px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
