:root {
  --black: #050505;
  --black-2: #08080a;
  --off-white: #f4f1ea;
  --muted: #c9c1b6;
  --muted-2: #928a7f;
  --muted-3: #5e5851;
  --bronze: #b58a55;
  --bronze-soft: #c3965e;
  --olive: #8a941e;
  --graphite: #1a1a1a;
  --line: rgba(244, 241, 234, 0.1);
  --line-2: rgba(244, 241, 234, 0.06);
  --line-strong: rgba(181, 138, 85, 0.5);
  --shadow-bronze: 0 18px 46px rgba(181, 138, 85, 0.18);
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--off-white);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01" on, "cv11" on;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
  opacity: 0.18;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.accent {
  color: var(--bronze);
  font-weight: inherit;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: 16px;
  z-index: 50;
  padding: 10px 14px;
  color: var(--black);
  background: var(--off-white);
  border-radius: 4px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(181, 138, 85, 0.16) 0%,
    rgba(181, 138, 85, 0.04) 35%,
    transparent 70%
  );
  transition: opacity 400ms ease;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.cursor-glow.is-active {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-2);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
}

.brand img {
  width: 200px;
  height: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.lang-toggle button {
  padding: 4px 4px;
  color: var(--muted-3);
  letter-spacing: inherit;
  transition: color 180ms ease;
}

.lang-toggle button:hover {
  color: var(--muted);
}

.lang-toggle button.is-active {
  color: var(--off-white);
}

.lang-toggle span {
  color: var(--muted-3);
}

/* MONO LABELS */
.eyebrow,
.section-kicker,
.stack-kicker,
.trusted-label,
.step-tag,
.stat-number {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  font-weight: 500;
  font-size: 12px;
  color: var(--bronze);
}

/* BUTTONS */
.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  color: var(--black);
  background: var(--bronze);
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  box-shadow: var(--shadow-bronze);
  transition: background-color 220ms var(--ease-out), transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.button::after {
  width: 7px;
  height: 7px;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms var(--ease-out);
}

.button:hover {
  background: var(--bronze-soft);
  box-shadow: 0 22px 56px rgba(181, 138, 85, 0.28);
  transform: translateY(-1px);
}

.button:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

.button:focus-visible {
  outline: 2px solid var(--off-white);
  outline-offset: 4px;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.button-large {
  min-height: 58px;
  padding: 0 30px;
  font-size: 16px;
}

/* HERO */
.hero {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 11vw, 140px);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  top: -25%;
  right: -15%;
  width: 80%;
  height: 120%;
  background: radial-gradient(
    circle at center,
    rgba(181, 138, 85, 0.16) 0%,
    rgba(181, 138, 85, 0.06) 30%,
    transparent 60%
  );
  filter: blur(40px);
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px),
    linear-gradient(180deg, var(--line-2) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
}

.hero-tags {
  position: absolute;
  inset: 0;
}

.hero-tags span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(181, 138, 85, 0.34);
  white-space: nowrap;
  animation: tag-drift 8s ease-in-out infinite alternate;
  animation-delay: var(--d);
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-6%, 4%) scale(1.08);
  }
}

@keyframes tag-drift {
  0% {
    transform: translateY(0);
    opacity: 0.32;
  }
  100% {
    transform: translateY(-12px);
    opacity: 0.5;
  }
}

.hero-inner {
  position: relative;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 14px;
  background: rgba(181, 138, 85, 0.06);
  border: 1px solid rgba(181, 138, 85, 0.2);
  border-radius: 100px;
}

h1 {
  max-width: 920px;
  font-size: clamp(40px, 7.2vw, 86px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--off-white);
}

.hero-subtitle {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  margin-top: 44px;
  align-items: center;
  gap: 22px;
  justify-content: center;
}

/* CREDIBILITY */
.credibility {
  position: relative;
  padding: clamp(72px, 10vw, 110px) 0 clamp(64px, 8vw, 100px);
}

.credibility-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}

.credibility-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 960px);
  text-align: center;
}

.credibility-stats article {
  position: relative;
  min-height: 94px;
  padding: 0 clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.credibility-stats article + article::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 64px;
  content: "";
  background: var(--line);
  transform: translateY(-50%);
}

.stat-number {
  display: block;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: var(--bronze);
  letter-spacing: -0.015em;
  text-transform: none;
  margin-bottom: 12px;
}

.credibility-stats p {
  color: var(--muted);
  font-size: 14px;
  max-width: 190px;
  margin: 0 auto;
  line-height: 1.5;
}

.trusted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.trusted-label {
  font-size: 11px;
  color: var(--muted-3);
  margin: 0;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vw, 80px);
}

.trusted-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--off-white);
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}

.trusted-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.trusted-adidas img {
  width: 48px;
  height: 48px;
}

.trusted-adidas span {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--off-white);
}

.trusted-roche svg {
  width: 130px;
  height: auto;
  display: block;
}

/* STACK MARQUEE */
.section-marquee {
  position: relative;
  padding: clamp(56px, 8vw, 90px) 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: rgba(8, 8, 10, 0.5);
}

.stack-kicker {
  text-align: center;
  margin: 0 0 36px;
  font-size: 11px;
  color: var(--muted-3);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 90s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.marquee-set li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  flex-shrink: 0;
  height: 60px;
}

.marquee-set img {
  width: 36px;
  height: 36px;
  opacity: 0.42;
  filter: grayscale(1) brightness(1.2);
  transition: opacity 240ms ease, filter 240ms ease, transform 240ms ease;
}

.marquee-set li:hover img {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: translateY(-2px);
}

.marquee-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--off-white);
  opacity: 0.42;
  filter: brightness(1.1);
  transition: opacity 240ms ease, filter 240ms ease, transform 240ms ease;
  white-space: nowrap;
}

.marquee-set li:hover .marquee-text {
  opacity: 1;
  filter: brightness(1);
  transform: translateY(-2px);
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* SECTION HEADING */
.section-heading {
  max-width: 820px;
  text-align: center;
  margin-inline: auto;
}

.section-heading p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 22px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
}

.section-kicker {
  margin-bottom: 18px;
}

h2 {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--off-white);
}

h3 {
  color: var(--off-white);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.process-grid article {
  position: relative;
  padding: 32px 28px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.process-grid article:hover {
  border-color: rgba(181, 138, 85, 0.42);
  background: rgba(26, 26, 26, 0.7);
  transform: translateY(-3px);
}

.process-grid article::before {
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--bronze) 50%,
    transparent
  );
  opacity: 0.5;
}

.step-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--bronze);
}

.process-grid h3 {
  font-size: 18px;
}

.process-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* CLOSE */
.close {
  text-align: center;
  position: relative;
}

.close-inner {
  position: relative;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-copy {
  max-width: 580px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}

.close-question {
  max-width: 680px;
  margin-bottom: 40px;
  color: var(--off-white);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* FOOTER */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line-2);
  background: rgba(8, 8, 10, 0.42);
}

.footer-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  color: var(--muted-3);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-grid > [data-reveal]:nth-child(2) {
  transition-delay: 80ms;
}
.process-grid > [data-reveal]:nth-child(3) {
  transition-delay: 160ms;
}
.process-grid > [data-reveal]:nth-child(4) {
  transition-delay: 240ms;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 980px) {
  .credibility-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav {
    min-height: 72px;
  }

  .brand img {
    width: 170px;
  }

  .nav-right {
    gap: 12px;
  }

  .credibility-stats {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .credibility-stats article + article::before {
    left: 50%;
    top: -18px;
    width: 64px;
    height: 1px;
    transform: translateX(-50%);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    min-height: auto;
  }

  .stack-logos img {
    width: 30px;
    height: 30px;
  }

  .hero-tags span {
    font-size: 10px;
  }

  .trusted-adidas span {
    font-size: 24px;
  }

  .trusted-roche svg {
    width: 110px;
  }
}

@media (max-width: 440px) {
  .nav {
    min-height: 64px;
    gap: 12px;
  }

  .brand img {
    width: 150px;
  }

  .nav-right .button {
    padding: 0 10px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-blob,
  .hero-tags span {
    animation: none;
  }
}
