:root {
  --bg: #0a0a0b;
  --bg-elev: #141416;
  --surface: #1a1a1e;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --muted: #9a9aa3;
  --accent: #8fa3b8;
  --accent-hover: #a8b8c8;
  --accent-soft: rgba(143, 163, 184, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Satoshi", sans-serif;
  --font-body: "General Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav__cta:focus-visible,
.nav__toggle:focus-visible,
.tabs__tab:focus-visible,
.faq-item__head:focus-visible,
.nav__links a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(680px, calc(100% - 2.5rem));
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav__brand span {
  color: var(--muted);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  color: var(--text) !important;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
}

.nav__cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav__toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 0.35rem;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
  }

  .nav__cta {
    text-align: center;
  }
}

/* —— Hero (split, anti-center) —— */
.hero {
  display: grid;
  min-height: 100dvh;
  min-height: 100svh;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 11, 0.35) 100%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero .brand {
  margin: 0 0 1rem;
  animation: rise 0.75s 0s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0 0 1rem;
  animation: rise 0.75s 0.05s var(--ease) both;
}

.hero__lead {
  max-width: 28rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.75s 0.15s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.75s 0.25s var(--ease) both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.brand span {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 500;
}

.brand--sm {
  font-size: 1.05rem;
}

.hero__visual {
  position: relative;
  min-height: 42vh;
  overflow: hidden;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 11, 0.55), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero__visual {
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero__visual::after {
    background: linear-gradient(90deg, rgba(10, 10, 11, 0.72) 0%, rgba(10, 10, 11, 0.2) 38%, transparent 62%);
  }
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: ken 18s var(--ease) both;
}

@media (max-width: 899px) {
  .hero__visual {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 48vh;
  }

  .hero__visual::after {
    background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 11, 0.75) 100%);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #0a0a0b;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 60%
  );
  transform: translateX(-130%);
  animation: btn-sheen 4.5s var(--ease) 1.4s 2;
  pointer-events: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Sections —— */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
}

.section__lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

/* —— Pain —— */
.pain-grid {
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}

.pain-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.35rem 0;
  transition: opacity 0.3s ease;
}

.pain-card:hover {
  transform: none;
  border-color: var(--line);
  background: transparent;
  opacity: 0.92;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.pain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

.pain-punch {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--muted);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  position: relative;
  overflow: visible;
}

.pain-punch.is-in {
  animation: none;
}

/* —— How it works —— */
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 42rem;
  counter-reset: how;
}

.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: none;
}

.how-steps li:first-child {
  border-top: 1px solid var(--line);
}

.how-steps li:hover {
  transform: none;
  border-color: var(--line);
}

.how-steps__num {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.how-steps li.is-in .how-steps__num {
  animation: pop-in 0.55s var(--ease-spring) both;
}

.how-steps h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* —— Tabs / capabilities —— */
.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
  background: var(--bg-elev);
}

.tabs__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s ease;
}

.tabs__tab:hover {
  color: var(--text);
  transform: none;
}

.tabs__tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.tabs__tab:active {
  transform: scale(0.97);
}

.tabs__panel {
  animation: panel-in 0.45s var(--ease) both;
}

.tabs__panel[hidden] {
  display: none;
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.cap-list li {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s var(--ease), opacity 0.35s ease, transform 0.35s var(--ease);
  opacity: 0;
  transform: translateY(8px);
}

.tabs__panel.is-active .cap-list li {
  opacity: 1;
  transform: none;
}

.tabs__panel.is-active .cap-list li:nth-child(1) { transition-delay: 0.02s; }
.tabs__panel.is-active .cap-list li:nth-child(2) { transition-delay: 0.06s; }
.tabs__panel.is-active .cap-list li:nth-child(3) { transition-delay: 0.1s; }
.tabs__panel.is-active .cap-list li:nth-child(4) { transition-delay: 0.14s; }
.tabs__panel.is-active .cap-list li:nth-child(5) { transition-delay: 0.18s; }
.tabs__panel.is-active .cap-list li:nth-child(6) { transition-delay: 0.22s; }

.cap-list li:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding-left: 1.2rem;
}

.cap-list li:last-child {
  border-bottom: 0;
}

.cap-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

@media (min-width: 768px) {
  .cap-list {
    grid-template-columns: 1fr 1fr;
  }

  .cap-list li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

/* —— Proof —— */
.proof {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.proof__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .proof__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.proof__media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--line);
  transition: transform 0.7s var(--ease);
}

.proof__media.is-in {
  animation: soft-float 5s ease-in-out 0.6s 2;
}

.proof__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.proof__media:hover img {
  transform: scale(1.04);
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: var(--radius-sm);
  padding-inline: 0.35rem;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open {
  background: var(--bg-elev);
  border-color: var(--line);
  padding-inline: 1rem;
  margin-bottom: 0.5rem;
}

.faq-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.faq-item.is-open .chev {
  transform: rotate(225deg);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.is-open .faq-item__body {
  max-height: 40rem;
  padding-bottom: 1.15rem;
}

.faq-item__body > * {
  margin: 0;
  color: var(--muted);
}

.faq-item__body > * + * {
  margin-top: 0.7rem;
}

.faq-item__body strong {
  color: var(--text);
}

/* —— Footer —— */
.footer {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  gap: 0.85rem;
}

.footer__text {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

/* —— Mobile sticky CTA —— */
.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.94) 28%);
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.3s ease;
    pointer-events: none;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-cta .btn {
    width: 100%;
  }

  body {
    padding-bottom: 5rem;
  }
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease-spring),
    filter 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal--lite {
  filter: none;
  transform: translateY(16px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ken {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes btn-sheen {
  0%,
  65% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate(40px, -30px) scale(1.15);
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes punch-glow {
  0%, 100% {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

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

  .proof__media.is-in {
    animation: none;
  }

  .cap-list li {
    opacity: 1;
    transform: none;
  }

  .btn--primary::after {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    backdrop-filter: none;
  }
}
