/* ============================================================
   Homepage - Figma frame 1761:213
   Desktop reference: 1280px wide, 64px horizontal inset
   ============================================================ */

.home-page {
  position: relative;
  background: #fff;
}

.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% -10%, rgba(228, 74, 255, 0.18), transparent 60%),
    radial-gradient(45% 35% at -10% 0%, rgba(50, 98, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 50% 110%, rgba(255, 229, 200, 0.45), transparent 60%);
  z-index: -1;
}

.home-wrap {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

.home-wrap--wide {
  padding-left: 64px;
  padding-right: 64px;
}

.home-section {
  padding: 0;
}

/* ---------- Shared typography blocks ---------- */

.home-rule {
  height: 1px;
  background: rgba(29, 29, 29, 0.12);
  margin-bottom: 64px;
}

.home-rule--dark {
  background: #1d1d1d;
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 933px;
  padding-right: min(400px, 18vw);
  margin-bottom: 48px;
}

.home-intro .home-btn {
  align-self: flex-start;
}

.home-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1d1d1d;
}

.home-heading {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1d1d1d;
}

.home-heading--solo {
  padding-right: 0;
}

.home-body {
  margin: 0;
  max-width: 712px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #646464;
}

/* ---------- Buttons ---------- */

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.home-btn--solid {
  background: #fff;
  color: #1d1d1d;
}

.home-btn--solid:hover {
  background: #ececec;
}

.home-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

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

.home-btn--dark {
  background: #262626;
  color: #fff;
  border-color: #262626;
}

.home-btn--dark:hover {
  background: #000;
  border-color: #000;
}

/* ============================================================
   HERO - 1761:214
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 718px;
  aspect-ratio: 1280 / 718;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0b1a2e;
}

/* Shared parallax - bleed beyond clip without zooming the resting crop */
.home-parallax-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -40px;
  bottom: -40px;
  will-change: transform;
}

.home-parallax-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg-parallax {
  top: -5%;
  bottom: -5%;
}

.hero__bg-parallax img {
  object-position: center center;
}

.hero__scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 622px;
  z-index: -1;
  background: linear-gradient(
    0.108deg,
    rgba(0, 0, 0, 0) 0.2%,
    rgba(0, 0, 0, 0.4) 50%
  );
}

.hero-nav {
  position: absolute;
  top: 33px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(560px, calc(100% - 48px));
  height: 56px;
  padding: 0 16px;
  border-radius: 8px;
  background: #191919;
}

.hero-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex: none;
}

.hero-nav__mark svg {
  height: 24px;
  width: auto;
}

.hero-nav__word {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.hero-nav__links a {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.hero-nav__links a:not(.hero-nav__cta):hover {
  opacity: 0.85;
}

.hero-nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background: #fff;
  color: #1d1d1d !important;
  font-weight: 500;
  transition: background-color 160ms ease;
}

.hero-nav__cta:hover {
  background: #ececec;
}

.hero-nav__burger {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hero-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.hero-nav__drawer {
  display: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 64px 64px;
}

.hero__kicker {
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.hero__title {
  margin: 0;
  max-width: 932px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__subtitle {
  margin: 26px 0 0;
  max-width: 764px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ============================================================
   PROBLEM - 1761:258
   ============================================================ */

.problem {
  padding: 64px 0 0;
}

.problem .home-heading {
  line-height: 1.1;
}

.problem .home-intro {
  margin-bottom: 24px;
}

.problem__lede {
  margin: 0 0 48px;
  max-width: 648px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #646464;
}

.problem__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 0;
}

.problem__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 271px;
  max-width: 100%;
  min-width: 265px;
  padding: 0 20px 40px 0;
}

.problem__icon {
  display: block;
  width: 90px;
  height: 141px;
  object-fit: contain;
}

.problem__item-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem__item-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1d1d1d;
}

.problem__item-body {
  margin: 0;
  max-width: 251px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #646464;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.hiw {
  padding: 0 0 64px;
}

.hiw .home-intro {
  margin-bottom: 32px;
}

.hiw__diagram-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hiw__diagram {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   VALUE PILLARS
   ============================================================ */

.value {
  padding: 0 0 64px;
}

.value .home-intro {
  margin-bottom: 40px;
}

.value__rows {
  display: flex;
  flex-direction: column;
}

.value-row__num {
  flex: none;
  width: 32px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #646464;
}

.value-row__label {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #1d1d1d;
  text-transform: uppercase;
}

/* Value accordion */

.value-accordion {
  border-top: 1px solid rgba(29, 29, 29, 0.12);
}

.value-accordion__trigger {
  display: flex;
  align-items: baseline;
  gap: 32px;
  width: 100%;
  padding: 40px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.value-accordion__trigger:hover .value-row__label {
  color: #646464;
}

.value-accordion__trigger:focus-visible {
  outline: 2px solid #3262ff;
  outline-offset: 4px;
  border-radius: 2px;
}

.value-accordion--open {
  padding-bottom: 40px;
}

.value-accordion__panel {
  display: grid;
  grid-template-columns: minmax(0, 348px) minmax(0, 470px);
  grid-template-rows: auto auto;
  justify-content: space-between;
  column-gap: 40px;
  row-gap: 24px;
  align-items: start;
  padding-top: 24px;
}

.value-accordion__head {
  display: flex;
  align-items: baseline;
  gap: 32px;
  grid-column: 1;
  grid-row: 1;
}

.value-accordion__copy {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #646464;
}

.value-accordion__copy p {
  margin: 0;
}

.value-accordion__lede {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #646464;
}

.value-accordion__body {
  font-weight: 400;
}

.value-accordion__panel .value-expanded__visual {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
}

.value-accordion__panel .value-expanded__visual img {
  display: block;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  height: auto;
  border-radius: 8px;
}

/* ============================================================
   APPROACH + FEATURES
   ============================================================ */

.approach {
  padding: 0;
}

.approach .home-intro {
  margin-bottom: 40px;
}

.features {
  padding: 0 0 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 40px;
  align-items: center;
}

.features__visual {
  border-radius: 8px;
  background: #1d1d1d;
  overflow: hidden;
  min-height: 454px;
}

.features__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 454px;
  object-fit: cover;
}

.features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1d1d1d;
}

.features__body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #646464;
}

/* ============================================================
   FOUNDATION - Figma 1906:501 / 1779:753
   ============================================================ */

.foundation {
  padding: 0;
}

.foundation__stage {
  position: relative;
  min-height: 648px;
  overflow: hidden;
  background: #020200;
}

.foundation__visual-wrap {
  position: absolute;
  left: calc(50% + 5px);
  bottom: -79px;
  z-index: 0;
  width: 1283px;
  transform: translateX(-50%);
  pointer-events: none;
}

.foundation__visual {
  display: block;
  width: 100%;
  height: auto;
}

.foundation__visual--mobile {
  display: none;
}

.foundation__edge-fade {
  position: absolute;
  top: -53px;
  z-index: 1;
  width: 316px;
  height: 769px;
  background: linear-gradient(90deg, #020200 2.1159%, rgba(2, 2, 0, 0) 50.032%);
  pointer-events: none;
}

.foundation__edge-fade--left {
  left: 6px;
}

.foundation__edge-fade--right {
  right: -5px;
  transform: scaleX(-1);
}

.foundation__scrim {
  position: absolute;
  left: 50%;
  top: 46px;
  z-index: 2;
  width: min(749px, calc(100% - 64px));
  height: 277px;
  transform: translateX(-50%);
  background: #010104;
  filter: blur(50px);
  pointer-events: none;
}

.foundation__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 959px;
  margin: 0 auto;
  padding: 64px 64px 0;
  text-align: center;
  color: #fff;
}

.foundation__eyebrow {
  margin: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

.foundation__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.foundation__title span {
  display: block;
}

.foundation__body {
  margin: 0;
  max-width: 684px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.foundation__body span {
  display: block;
}

/* ============================================================
   SECURITY + COMPLIANCE
   ============================================================ */

.security {
  padding: 64px 0;
}

.security .home-intro {
  margin-bottom: 40px;
  padding-right: 0;
}

.compliance-badges {
  width: 100%;
}

.compliance__desktop,
.compliance__mobile {
  position: relative;
}

.compliance__mobile {
  display: none;
}

.compliance__shapes {
  display: block;
  width: 100%;
  height: auto;
}

.compliance__label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d1d1d;
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta {
  padding: 0 0 64px;
}

.cta__panel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 343px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f37e00;
}

.cta__bg {
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  max-width: 640px;
}

.cta__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.cta__body {
  margin: 24px 0 32px;
  max-width: 526px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ============================================================
   LIGHT FOOTER - 1761:600  (452px desktop)
   ============================================================ */

.home-light-footer {
  background: #fff;
}

.home-light-footer__top-rule {
  height: 1px;
  background: #1d1d1d;
}

.home-light-footer__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: start;
  padding: 68px 0 0;
}

.home-light-footer__brand {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  color: #1d1d1d;
}

.home-light-footer__mark {
  display: block;
  flex: none;
  width: 73px;
  height: 83px;
}

.home-light-footer__word {
  font-size: 98px;
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.home-light-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 58px;
  row-gap: 24px;
  justify-self: end;
  font-size: 16px;
  line-height: 1.4;
  color: #1d1d1d;
  text-align: left;
}

.home-light-footer__contact a {
  color: #1d1d1d;
  text-decoration: underline;
}

.home-light-footer__divider {
  height: 1px;
  background: #1d1d1d;
  margin-top: 100px;
}

.home-light-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 48px;
}

.home-light-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.home-light-footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1d;
  text-decoration: underline;
}

.home-light-footer__copy {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: #52525b;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .home-intro {
    padding-right: 0;
  }

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

  .features__visual {
    min-height: 320px;
    max-width: 470px;
  }

  .value-accordion__panel {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .value-accordion__head,
  .value-accordion__copy,
  .value-accordion__panel .value-expanded__visual {
    grid-column: 1;
    grid-row: auto;
  }

  .value-accordion__panel .value-expanded__visual img {
    margin-left: 0;
  }

  .home-light-footer__word {
    font-size: clamp(48px, 12vw, 98px);
  }

  .home-light-footer__mark {
    width: clamp(40px, 10vw, 73px);
    height: auto;
  }
}

@media (max-width: 768px) {
  .home-wrap,
  .home-wrap--wide {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 620px;
    min-height: min(92svh, 780px);
  }

  /* Portrait crop keeps the horizon low so the figure reads under the copy */
  .hero__bg-parallax img {
    object-position: 50% 62%;
  }

  .hero__scrim {
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 45%,
      rgba(0, 0, 0, 0) 78%
    );
  }

  .hero-nav {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 56px;
    border-radius: 0;
    padding: 0 16px;
    flex-wrap: nowrap;
  }

  .hero-nav__links {
    display: none;
  }

  .hero-nav__burger {
    display: flex;
  }

  .hero-nav__drawer {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #191919;
    padding: 8px 16px 16px;
    z-index: 10;
  }

  .hero-nav__drawer a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-nav__drawer a:last-child {
    border-bottom: 0;
  }

  .hero-nav__drawer .hero-nav__cta {
    display: inline-flex;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .hero__content {
    justify-content: flex-start;
    padding: clamp(92px, 15vh, 136px) 24px 60px;
  }

  .hero__kicker {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
  }

  .hero__title {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .hero__subtitle {
    margin-top: 20px;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
  }

  .hero__actions {
    margin-top: 28px;
  }

  .home-heading {
    font-size: clamp(28px, 6vw, 40px);
  }

  .problem__grid {
    flex-direction: column;
    gap: 0;
  }

  .problem__item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 0 0 24px;
  }

  .problem__icon {
    flex: none;
    width: 90px;
    height: 141px;
  }

  .hiw__flow-labels {
    display: none;
  }

  .value-accordion__trigger,
  .value-accordion__head {
    gap: 16px;
  }

  .foundation__stage {
    min-height: 835px;
  }

  .foundation__scrim,
  .foundation__edge-fade {
    display: none;
  }

  .foundation__copy {
    max-width: none;
    padding: 64px 16px 0;
    align-items: center;
    text-align: center;
  }

  .foundation__title {
    max-width: 341px;
    font-size: 32px;
  }

  .foundation__body {
    max-width: 344px;
  }

  .foundation__body span + span {
    margin-top: 22.4px;
  }

  .foundation__visual-wrap {
    left: calc(50% - 0.5px);
    bottom: 37px;
    width: 1283px;
  }

  .foundation__visual--desktop {
    display: none;
  }

  .foundation__visual--mobile {
    display: block;
  }

  .security {
    padding: 48px 0;
  }

  .security .home-intro {
    gap: 24px;
    margin-bottom: 32px;
    padding-right: 0;
  }

  .compliance__desktop {
    display: none;
  }

  .compliance__mobile {
    display: block;
  }

  .compliance__label {
    font-size: 12px;
  }

  .home-light-footer .home-wrap {
    display: flex;
    flex-direction: column;
  }

  .home-light-footer__top-rule {
    order: 0;
  }

  .home-light-footer__body {
    display: contents;
  }

  .home-light-footer__brand {
    order: 1;
    margin-top: 32px;
    margin-bottom: 40px;
  }

  .home-light-footer__mark {
    width: 49px;
    height: 55px;
  }

  .home-light-footer__word {
    font-size: 65px;
    letter-spacing: -0.04em;
  }

  .home-light-footer__divider {
    display: none;
  }

  .home-light-footer__bottom {
    display: contents;
  }

  .home-light-footer__links {
    order: 2;
    padding-bottom: 80px;
  }

  .home-light-footer__contact {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .home-light-footer__copy {
    order: 4;
    margin-top: 80px;
    padding-bottom: 32px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .home-btn {
    width: 100%;
    height: 48px;
  }
}
