/* Base */
html,
body {
  margin: 0;
  background: #0c0e0f;
  color: #edede8;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
a {
  color: #edede8;
}
a:hover {
  color: #d2f06b;
}
.b-root {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: #edede8;
  background: #0c0e0f;
  min-height: 100vh;
}
.b-root * {
  box-sizing: border-box;
}

/* Shared components */
.b-nav a {
  color: #9a9c97;
  text-decoration: none;
  transition: color 0.15s;
}
.b-nav a:hover {
  color: #edede8;
}
.b-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: #d2f06b;
  color: #0c0e0f;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.b-btn:hover {
  background: #e2f79a;
  color: #0c0e0f;
}
.b-btn svg {
  transition: transform 0.2s;
}
.b-btn:hover svg {
  transform: translateX(3px);
}
.b-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(237, 237, 232, 0.22);
  color: #edede8;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.b-ghost:hover {
  border-color: rgba(237, 237, 232, 0.5);
  background: rgba(237, 237, 232, 0.04);
  color: #edede8;
}
.b-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(237, 237, 232, 0.14);
  background: #15181a;
  color: #c9cbc5;
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.15s;
}
.b-pill:hover {
  border-color: rgba(210, 240, 107, 0.5);
  color: #edede8;
}
.b-link {
  color: #edede8;
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 237, 232, 0.35);
  padding-bottom: 2px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.b-link:hover {
  color: #d2f06b;
  border-color: #d2f06b;
}
.b-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.b-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px clamp(72px, 9vw, 120px);
}

/* Header */
.b-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.b-logo {
  text-decoration: none;
  color: #edede8;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.b-logo:hover {
  color: #edede8;
}
.b-logo-muted {
  color: #9a9c97;
}
.b-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.b-nav-cta {
  min-height: 40px;
  margin-left: 8px;
  padding: 0 18px;
  color: #9a9c97;
  font-size: 14px;
  transition: color 0.15s;
}
.b-nav-cta:hover {
  color: #edede8;
}
.b-menu-btn {
  display: none;
}

/* Hero */
.b-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) 28px clamp(72px, 9vw, 128px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.b-pill-tag {
  background: #d2f06b;
  color: #0c0e0f;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.b-hero-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.b-hero-accent {
  color: #d2f06b;
  white-space: nowrap;
}
.b-hero-lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #9a9c97;
}
.b-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* Product */
.b-product-card {
  background: #15181a;
  border: 1px solid rgba(237, 237, 232, 0.08);
  border-radius: 28px;
  overflow: hidden;
}
.b-product-body {
  padding: clamp(28px, 4.5vw, 64px) clamp(28px, 4.5vw, 64px)
    clamp(32px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-end;
}
.b-product-intro {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.b-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #d2f06b;
}
.b-product-title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.b-product-lead {
  margin: 0;
  max-width: 42ch;
  font-size: 19px;
  line-height: 1.55;
  color: #c9cbc5;
}
.b-product-link {
  font-size: 16px;
  font-weight: 500;
}
.b-facts {
  flex: 1 1 340px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(237, 237, 232, 0.1);
}
.b-fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(237, 237, 232, 0.1);
}
.b-fact dt {
  color: #9a9c97;
  font-size: 15px;
}
.b-fact dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.b-screens {
  position: relative;
  aspect-ratio: 2.05 / 1;
  overflow: hidden;
  background: radial-gradient(
    ellipse 70% 90% at 50% 100%,
    #1f2d27 0%,
    #121615 70%
  );
  border-top: 1px solid rgba(237, 237, 232, 0.08);
}
.b-screen {
  position: absolute;
  left: 17%;
  top: 17%;
  width: 66%;
  z-index: 1;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  /* Pivot on the bottom edge so it stays below the frame while tilted */
  transform-origin: 50% 100%;
  transform: translate(var(--x, 0%), var(--y, 0%)) scale(var(--s, 1))
    perspective(1400px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
}
.b-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.b-screen-left {
  --x: -33.33%;
  --y: 1.26%;
  --s: 0.7879;
}
.b-screen-right {
  --x: 33.33%;
  --y: 1.26%;
  --s: 0.7879;
}
.b-screen-front {
  z-index: 2;
}
.b-screen.is-back {
  z-index: 0;
}
.js .b-screen-left,
.js .b-screen-right {
  cursor: pointer;
}
.b-screens {
  touch-action: pan-y;
}
.b-carousel-controls {
  display: none;
}
.js .b-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4.5vw, 64px);
  border-top: 1px solid rgba(237, 237, 232, 0.08);
}
.b-carousel-caption {
  margin: 0;
  color: #c9cbc5;
  font-size: 15px;
  font-weight: 500;
}
.b-carousel-count {
  margin-right: 10px;
  color: #9a9c97;
  font-variant-numeric: tabular-nums;
}
.b-carousel-buttons {
  display: flex;
  flex: none;
  gap: 8px;
}
.b-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(237, 237, 232, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #edede8;
  cursor: pointer;
}
.b-carousel-btn:hover {
  border-color: rgba(237, 237, 232, 0.5);
  background: rgba(237, 237, 232, 0.04);
}

/* Approach */
.b-approach-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
  margin-bottom: 48px;
}
.b-approach-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.b-approach-lead {
  margin: 0;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.6;
  color: #9a9c97;
}
.b-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.b-card {
  background: #15181a;
  border: 1px solid rgba(237, 237, 232, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.b-card-number {
  font-size: 40px;
  line-height: 1;
  color: #d2f06b;
}
.b-card-title {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.b-card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #9a9c97;
}
.b-market {
  margin-top: 16px;
  background: #15181a;
  border: 1px solid rgba(237, 237, 232, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}
.b-market-label {
  font-size: 14px;
  color: #9a9c97;
  flex: 0 0 auto;
}
.b-market-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 17px;
  font-weight: 500;
}
.b-market-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.b-market-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d2f06b;
}
.b-market-arrow {
  color: #5d605b;
}
.b-market-next {
  color: #c9cbc5;
}

/* About */
.b-about {
  border-top: 1px solid rgba(237, 237, 232, 0.1);
  padding-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 72px;
}
.b-about-title {
  flex: 1 1 340px;
  margin: 0;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.b-about-body {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}
.b-about-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #edede8;
}
.b-about-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #9a9c97;
}

/* Contact */
.b-contact {
  background: #d2f06b;
  color: #0c0e0f;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
}
.b-contact-body {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.b-contact-title {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.b-contact-lead {
  margin: 0;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.55;
  color: #2b3110;
}
.b-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0c0e0f;
  color: #edede8;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.b-contact-btn:hover {
  color: #edede8;
}

/* Footer */
.b-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: #8a8c87;
}
.b-footer-link,
.b-footer-link:hover {
  color: #9a9c97;
}

/* Motion */
@keyframes b-rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
@keyframes b-fade {
  from {
    opacity: 0;
  }
}
@keyframes b-menu-in {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* Page load */
  .b-header {
    animation: b-fade 0.6s ease-out backwards;
  }
  .b-hero > * {
    animation: b-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .b-hero > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .b-hero > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .b-hero > :nth-child(4) {
    animation-delay: 0.24s;
  }

  /* Scroll reveal: script.js adds .b-reveal-ready and .is-visible */
  .b-reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 0;
    translate: 0 20px;
  }
  /* Overlapping screens slide without fading, so they never show through */
  .b-reveal-ready .b-screen[data-reveal]:not(.is-visible) {
    opacity: 1;
    translate: 0 32px;
  }
  .b-reveal-ready [data-reveal].is-visible {
    transition:
      opacity 0.7s ease-out,
      translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .b-reveal-ready .b-card:nth-child(2).is-visible,
  .b-reveal-ready .b-screen-right.is-visible {
    transition-delay: 0.08s;
  }
  .b-reveal-ready .b-card:nth-child(3).is-visible,
  .b-reveal-ready .b-screen-left.is-visible {
    transition-delay: 0.16s;
  }

  /* Interaction */
  .b-btn {
    transition:
      background 0.15s,
      transform 0.2s;
  }
  .b-ghost {
    transition:
      border-color 0.15s,
      background 0.15s,
      transform 0.2s;
  }
  .b-contact-btn {
    transition: transform 0.2s;
  }
  .b-card,
  .b-market {
    transition:
      border-color 0.25s,
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .b-pill > span:last-child,
  .b-contact-btn > span {
    transition: transform 0.2s;
  }
  /* Carousel: layers swap at the midpoint, where the crossing screens match */
  .b-screen {
    transition:
      translate 0.3s ease-out,
      transform 0.7s cubic-bezier(0.45, 0, 0.55, 1),
      z-index 0s linear 0.35s;
  }
  .b-screen.is-tilting {
    transition:
      translate 0.3s ease-out,
      transform 0.2s ease-out,
      z-index 0s linear 0.35s;
  }
  .b-carousel-btn {
    transition:
      border-color 0.15s,
      background 0.15s,
      transform 0.2s;
  }
  .b-carousel-btn:active {
    transform: scale(0.94);
  }
  .b-btn:active,
  .b-ghost:active,
  .b-contact-btn:active {
    transform: scale(0.98);
  }
  .js .b-nav.is-open {
    animation: b-menu-in 0.2s ease-out;
  }

  @media (hover: hover) {
    .b-card:hover {
      border-color: rgba(237, 237, 232, 0.18);
      transform: translateY(-3px);
    }
    .b-market:hover {
      border-color: rgba(237, 237, 232, 0.18);
    }
    .js .b-screen-left:hover,
    .js .b-screen-right:hover {
      translate: 0 -6px;
    }
    .b-pill:hover > span:last-child,
    .b-contact-btn:hover > span {
      transform: translateX(3px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .b-menu-icon,
  .b-menu-icon::before,
  .b-menu-icon::after {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 720px) {
  /* Gutters */
  .b-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .b-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header: without JS the section links sit on a second row */
  .b-header {
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-start;
    height: auto;
    padding: 8px 16px;
    gap: 0 8px;
  }
  .b-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .b-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 16px;
  }
  .b-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .b-nav-cta {
    order: 1;
    min-height: 44px;
    margin-left: auto;
  }

  /* Hamburger menu */
  .js .b-menu-btn {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(237, 237, 232, 0.22);
    border-radius: 999px;
    background: transparent;
    color: #edede8;
    cursor: pointer;
  }
  .b-menu-icon,
  .b-menu-icon::before,
  .b-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 0.2s,
      background 0.2s;
  }
  .b-menu-icon {
    position: relative;
  }
  .b-menu-icon::before,
  .b-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .b-menu-icon::before {
    transform: translateY(-6px);
  }
  .b-menu-icon::after {
    transform: translateY(6px);
  }
  .b-menu-btn[aria-expanded='true'] .b-menu-icon {
    background: transparent;
  }
  .b-menu-btn[aria-expanded='true'] .b-menu-icon::before {
    background: #edede8;
    transform: rotate(45deg);
  }
  .b-menu-btn[aria-expanded='true'] .b-menu-icon::after {
    background: #edede8;
    transform: rotate(-45deg);
  }
  .js .b-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    padding: 8px;
    border: 1px solid rgba(237, 237, 232, 0.14);
    border-radius: 20px;
    background: #15181a;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
  }
  .js .b-nav.is-open {
    display: flex;
  }
  .js .b-nav a {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: #edede8;
    font-size: 16px;
  }
  .js .b-nav a:hover {
    background: rgba(237, 237, 232, 0.06);
  }

  /* Larger tap area without moving the underline away from the text */
  .b-link {
    position: relative;
  }
  .b-link::after {
    content: '';
    position: absolute;
    inset: -12px 0;
  }

  /* Hero */
  .b-hero {
    padding: 48px 16px 64px;
    gap: 24px;
  }
  .b-pill {
    max-width: 100%;
    min-height: 44px;
    padding: 7px 12px 7px 6px;
    gap: 6px;
    font-size: 13px;
  }
  .b-hero-title {
    font-size: clamp(40px, 12vw, 52px);
  }
  .b-hero-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 0;
  }
  .b-hero-actions a {
    justify-content: center;
    width: 100%;
  }

  /* Product */
  .b-product-body {
    padding: 28px 20px;
    gap: 32px;
  }
  .b-screens {
    aspect-ratio: 8 / 5;
  }
  .b-screen {
    left: 4%;
    top: 10%;
    width: 92%;
  }
  .b-screen-left {
    --x: -112%;
    --y: 0%;
    --s: 0.92;
  }
  .b-screen-right {
    --x: 112%;
    --y: 0%;
    --s: 0.92;
  }
  /* Off-screen at both ends of its move, so hide it while it crosses */
  .b-screen.is-back {
    opacity: 0;
  }

  /* Approach */
  .b-approach-head {
    margin-bottom: 32px;
  }
  .b-card {
    padding: 24px;
  }
  .b-market {
    padding: 24px;
  }

  /* Contact */
  .b-contact {
    padding: 40px 24px;
  }
  .b-contact-btn {
    justify-content: center;
    width: 100%;
  }
}
