:root {
  --bg: #C8FF00;
  --bg-deep: #BAEE00;
  --ink: #0A0A0A;
  --card: #0E0E0E;
  --card-glow-center: #5A3A1E;
  --card-glow-edge: #0E0E0E;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --radius-card: 28px;
  --radius-pill: 999px;
  --radius-tile: 14px;
  --container: 980px;
  --pad-x: clamp(20px, 4vw, 40px);
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 76px;
  --title-stick-top: 90px;
  --card-stack-top: 200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-weight: 700; }
p { font-weight: 500; }

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

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding: 22px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.brand__spark {
  width: 32px;
  height: 32px;
  display: block;
}

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
}
.nav__list a {
  font-weight: 500;
  font-size: 15px;
}
.nav__list a:hover { opacity: .7; }

.nav__cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.nav__cta:hover { opacity: .9; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* -------- Hero -------- */
.hero {
  text-align: center;
  padding: 56px 0 48px;
}
.hero__mark {
  width: clamp(140px, 16vw, 180px);
  height: auto;
  margin: 0 auto 28px;
}
.hero__title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero__sub {
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

/* -------- Chain carousel (CSS marquee) -------- */
.chains {
  padding: 100px 0;
}
.chains__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.chains__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 56px;
  width: max-content;
  animation: chains-scroll 40s linear infinite;
}
.chain {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--ink);
}
.chain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes chains-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.chains__viewport:hover .chains__track { animation-play-state: paused; }

/* -------- Expertise (sticky title + stacking cards) -------- */
.cards {
  display: block;
  padding-bottom: 60px;
}
.cards__title {
  position: sticky;
  top: var(--title-stick-top);
  z-index: 5;
  background: var(--bg);
  padding: 8px 0;
  margin: 0 0 24px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform .35s ease, opacity .35s ease;
}
.cards__title.is-released {
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}
.card {
  position: sticky;
  top: var(--card-stack-top);
  background: var(--card);
  border-radius: var(--radius-card);
  color: var(--white);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 360px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 -1px 0 rgba(0,0,0,.04), 0 24px 48px -28px rgba(0,0,0,.45);
  will-change: transform;
}
.card:nth-of-type(1) { top: calc(var(--card-stack-top) + 0px);  z-index: 1; }
.card:nth-of-type(2) { top: calc(var(--card-stack-top) + 16px); z-index: 2; }
.card:nth-of-type(3) { top: calc(var(--card-stack-top) + 32px); z-index: 3; }
.card:nth-of-type(4) { top: calc(var(--card-stack-top) + 48px); z-index: 4; }
.card:last-child { margin-bottom: 0; }
.card--glow {
  background:
    radial-gradient(circle at 70% 50%, var(--card-glow-center) 0%, var(--card-glow-edge) 60%),
    var(--card);
}
.card__body { max-width: 460px; }
.card__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.card__text {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}
.card__illu {
  justify-self: end;
  width: clamp(180px, 26vw, 280px);
  height: auto;
  opacity: 0.95;
}

/* -------- Services tags -------- */
.services {
  padding: 60px 0 40px;
}
.services__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.tag:hover {
  animation: tag-bounce .55s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes tag-bounce {
  0%   { transform: translateY(0)   scale(1); }
  35%  { transform: translateY(-6px) scale(1.04); }
  70%  { transform: translateY(2px)  scale(.99); }
  100% { transform: translateY(0)   scale(1); }
}

/* -------- CTA -------- */
.cta { padding: 60px 0 80px; }
.cta__card {
  background: var(--card);
  border-radius: var(--radius-card);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px) 24px;
  text-align: center;
}
.cta__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.cta__text {
  max-width: 460px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn--primary {
  background: var(--bg);
  color: var(--ink);
}

/* -------- Footer -------- */
.site-footer {
  padding: 24px 0 32px;
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__copy { margin: 0; }
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.site-footer__links a:hover { opacity: .65; }

/* -------- Mobile -------- */
@media (max-width: 800px) {
  :root {
    --title-stick-top: 70px;
    --card-stack-top: 150px;
  }
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute;
    top: 70px;
    right: var(--pad-x);
    background: var(--bg);
    flex-direction: column;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open .nav__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .card {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: 0;
  }
  .card__illu {
    justify-self: center;
    width: 60%;
    max-width: 240px;
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chains__track { animation: none !important; }
  .tag:hover { animation: none !important; }
  .cards__title { transition: none !important; }
}
