/* Anchor — Marketing Website UI kit styles (uses tokens from colors_and_type.css) */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 64px);
}
section {
  position: relative;
}

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.nav.scrolled {
  border-color: var(--gray-200);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 18px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--dur-fast);
}
.nav-link:hover {
  color: var(--forest);
}
.nav-link svg {
  width: 14px;
  height: 14px;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 72px 0 0;
}
.hero h1 {
  margin: 0 auto;
  max-width: 13ch;
}
.hero .lead {
  max-width: 46ch;
  margin: 22px auto 0;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* product card cluster */
.cluster {
  position: relative;
  height: 430px;
  margin-top: 8px;
}
/* Cards are ALWAYS fully opaque & in final position by default — only the
   entrance position animates, so a frozen/hidden/print render still shows them. */
.pcard {
  position: absolute;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transform: translateY(0) rotate(var(--rot));
  transition:
    transform 0.6s var(--ease-settle),
    box-shadow var(--dur-fast) var(--ease-out);
}
.cluster.entering .pcard {
  transform: translateY(44px) rotate(calc(var(--rot) * 1.6));
}
.pcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) rotate(0deg);
}
.pcard.active {
  transform: translateY(-6px) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .pcard,
  .cluster.entering .pcard {
    transition: none;
    transform: translateY(0) rotate(var(--rot));
  }
}
.pcard .lbl {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 18px;
}
.ghost {
  position: absolute;
  border-radius: 24px;
  background: var(--gray-100);
  box-shadow: var(--shadow-xs);
}

/* detail panel */
.detail {
  max-width: 760px;
  margin: 8px auto 0;
  background: var(--bg-mint-wash);
  border-radius: 28px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  animation: fadeUp var(--dur) var(--ease-out);
}
.detail .eyebrow {
  margin-bottom: 10px;
}
.detail h3 {
  margin: 0 0 10px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* isometric block stack (brand stand-in art) */
.iso {
  display: grid;
  place-items: center;
  height: 170px;
}
.iso .stack {
  transform: rotateX(54deg) rotateZ(45deg);
  transform-style: preserve-3d;
  display: grid;
}
.iso .blk {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  grid-area: 1/1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 30px 0;
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scrollx 22s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes scrollx {
  to {
    transform: translateX(-50%);
  }
}
.mlogo {
  font-weight: 700;
  font-size: 19px;
  color: var(--gray-400);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}
.mlogo:hover {
  color: var(--gray-600);
}

/* ---------- SECTION HEADERS ---------- */
.sec {
  padding: 96px 0;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.sec-head h2 {
  max-width: 18ch;
}

/* ---------- CASE STUDIES CAROUSEL ---------- */
.carousel {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform var(--dur-slow) var(--ease-out);
}
.cs-card {
  flex: 0 0 560px;
  border-radius: 28px;
  padding: 36px;
  color: #fff;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cs-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: auto;
}
.cs-card h3 {
  font-size: 30px;
  line-height: 1.1;
  margin: 24px 0 14px;
  max-width: 14ch;
}
.cs-feats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-feat {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.arrows {
  display: flex;
  gap: 10px;
}
.arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--forest);
  transition: all var(--dur-fast);
}
.arrow:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.arrow:disabled:hover {
  background: #fff;
  color: var(--forest);
  border-color: var(--gray-300);
}

/* ---------- DEVELOPERS ---------- */
.dev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.dev-win {
  background: #0b1f16;
  border-radius: 16px;
  box-shadow: var(--shadow-tilt);
  transform: rotateX(5deg) rotateY(-10deg) rotate(-1.5deg);
  overflow: hidden;
}
.dev-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dev-dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
}
.dev-tab {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7c887f;
}
.dev-code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  padding: 18px;
}
.dev-code .f {
  color: #e06b38;
}
.dev-code .s {
  color: #9fe0be;
}
.dev-code .c {
  color: #5b675f;
}
.dev-code .k {
  color: #f2dfca;
}
.dev-code .p {
  color: #cfe6da;
}
.dev-pills {
  position: relative;
  height: 70px;
  margin-top: 26px;
}
.dev-pill {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 13px;
  padding: 10px 15px;
  box-shadow: var(--shadow-card);
}

/* ---------- FEATURES ---------- */
.features {
  background: var(--bg-mint-wash);
  border-radius: 40px;
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.feat .fic {
  color: var(--forest);
  margin-bottom: 12px;
}
.feat .fic svg {
  width: 26px;
  height: 26px;
}
.feat h4 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
}
.feat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0;
}

/* ---------- FOOTER ---------- */
.cta-band {
  background: var(--forest-deep);
  color: var(--fg-invert);
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 {
  color: #fff;
  max-width: 16ch;
  margin: 0 auto;
}
.cta-band .lead {
  color: var(--fg-invert-2);
  max-width: 44ch;
  margin: 18px auto 0;
}
.footer {
  background: var(--forest-deep);
  color: var(--fg-invert-2);
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.footer h5 {
  color: #fff;
  font-size: 13px;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer a {
  display: block;
  color: var(--fg-invert-2);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 11px;
  cursor: pointer;
  transition: color var(--dur-fast);
}
.footer a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.disc {
  font-size: 12px;
  color: var(--fg-invert-2);
  max-width: 60ch;
  line-height: 1.5;
}
.socials {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.socials a {
  color: var(--fg-invert-2);
}
.socials a:hover {
  color: #fff;
}
.socials svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 880px) {
  .dev,
  .features,
  .detail {
    grid-template-columns: 1fr;
  }
  .features {
    padding: 48px 28px;
    gap: 36px;
  }
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .cs-card {
    flex-basis: 84vw;
  }
}
