:root {
  --wasel-purple: #704ef0;
  --wasel-purple-2: #4d22d8;
  --wasel-purple-3: #2b0f8f;
  --growth-lime: #d8ff33;
  --growth-lime-2: #bfff00;
  --pure-white: #ffffff;
  --ink: #17122f;
  --muted: #686179;
  --line: rgba(112, 78, 240, 0.16);
  --surface: #f8f7ff;
  --glass: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(29, 14, 95, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --font-ui: "Poppins", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 255, 51, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(112, 78, 240, 0.16), transparent 32rem),
    #fbfbff;
  letter-spacing: 0;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(112, 78, 240, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(38, 18, 120, 0.08);
}

.brand {
  width: 174px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.brand img {
  width: 38px;
}

.brand span,
.panel-brand span {
  color: var(--wasel-purple);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
}

.brand small,
.panel-brand small {
  margin-left: 3px;
  font-size: 0.46em;
  font-weight: 500;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  color: rgba(23, 18, 47, 0.74);
  font-size: 0.9rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--growth-lime);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: 220ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-cta,
.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--growth-lime), var(--growth-lime-2));
  box-shadow: 0 16px 32px rgba(216, 255, 51, 0.34);
}

.button-ghost {
  color: var(--pure-white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta:hover,
.button:hover,
.lab-panel:hover,
.device:hover {
  transform: translateY(-4px);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  margin-top: 18px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  color: var(--pure-white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 78% 28%, rgba(216, 255, 51, 0.16), transparent 16rem),
    linear-gradient(145deg, #2f12bb 0%, var(--wasel-purple) 48%, #27008d 100%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -7% -18% 34%;
  height: 80%;
  background: url("public/assets/mark-large.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wasel-purple);
  font-size: 0.84rem;
  font-weight: 800;
}

.eyebrow {
  color: var(--pure-white);
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow span,
.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--growth-lime);
  box-shadow: 0 0 18px rgba(216, 255, 51, 0.8);
}

.hero h1,
.section-heading h2,
.handoff h2 {
  margin: 22px 0 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--growth-lime);
  font-style: normal;
}

.hero p,
.section-heading p,
.asset-notes p,
.type-spec p,
.handoff p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 580px;
}

.trust-row div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
}

.trust-row strong {
  display: block;
  color: var(--growth-lime);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.trust-row span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.hero-stage {
  position: relative;
  min-height: 540px;
}

.hero-mark {
  position: absolute;
  width: min(88%, 680px);
  left: -2%;
  bottom: 0;
  filter: drop-shadow(0 30px 44px rgba(24, 7, 74, 0.45));
  animation: floatMark 5s ease-in-out infinite;
}

.growth-path {
  position: absolute;
  inset: 4% 0 auto auto;
  width: 100%;
  height: 76%;
  overflow: visible;
}

.path-line,
.path-shadow {
  fill: none;
  stroke-linecap: round;
  stroke-width: 9;
}

.path-shadow {
  stroke: rgba(23, 18, 47, 0.16);
  transform: translateY(10px);
}

.path-line {
  stroke: var(--growth-lime);
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
  animation: drawPath 2200ms ease 400ms forwards;
  filter: drop-shadow(0 0 12px rgba(216, 255, 51, 0.64));
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(24, 7, 74, 0.2);
}

.service-stack {
  position: absolute;
  right: 0;
  top: 15%;
  width: min(310px, 88%);
  padding: 16px;
  border-radius: 28px;
}

.service-stack article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-stack article:last-child {
  border-bottom: 0;
}

.service-stack span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--growth-lime);
  font-weight: 800;
}

.service-stack h3,
.service-stack p {
  margin: 0;
}

.service-stack h3 {
  font-size: 1rem;
}

.service-stack p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.4;
}

.foundations,
.components,
.motion,
.responsive,
.handoff,
.asset-strip {
  padding: clamp(74px, 10vw, 128px) 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  line-height: 1.02;
}

.section-heading p,
.asset-notes p,
.type-spec p,
.handoff p {
  color: var(--muted);
}

.analysis-grid,
.token-board,
.component-lab,
.motion-rules,
.device-grid {
  display: grid;
  gap: 18px;
}

.analysis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card,
.token-card,
.lab-panel,
.device,
.type-spec,
.handoff-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(32, 20, 86, 0.08);
}

.insight-card {
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.insight-card h3,
.lab-panel h3,
.device h3,
.motion-rules h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.insight-card p,
.lab-panel p,
.device p,
.motion-rules p {
  margin: 0;
  color: rgba(23, 18, 47, 0.68);
  line-height: 1.7;
}

.insight-card.purple {
  color: var(--pure-white);
  background: linear-gradient(145deg, var(--wasel-purple), var(--wasel-purple-3));
}

.insight-card.purple p {
  color: rgba(255, 255, 255, 0.78);
}

.insight-card.lime {
  background: linear-gradient(145deg, var(--growth-lime), #efffb2);
}

.insight-card.white {
  background: var(--pure-white);
}

.token-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.token-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.token-card span,
.token-card small {
  font-weight: 700;
}

.token-card strong {
  margin: 6px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.swatch-purple {
  color: var(--pure-white);
  background: var(--wasel-purple);
}

.swatch-lime {
  background: var(--growth-lime);
}

.swatch-white {
  background: var(--pure-white);
}

.swatch-ink {
  color: var(--pure-white);
  background: var(--ink);
}

.type-spec {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: 30px;
  align-items: center;
  background: var(--pure-white);
}

.type-spec h3 {
  margin: 12px 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

.type-scale {
  padding: clamp(22px, 4vw, 38px);
  border-radius: 24px;
  color: var(--pure-white);
  background:
    url("public/assets/mark-large.png") 115% 20% / 48% auto no-repeat,
    linear-gradient(145deg, var(--wasel-purple), #3010b1);
}

.display {
  margin: 0;
  color: var(--growth-lime);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
}

.headline {
  margin: 24px 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.body-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.asset-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.asset-strip img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.asset-notes h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
}

.component-lab {
  grid-template-columns: 1.05fr 0.85fr 0.85fr 0.85fr;
}

.lab-panel {
  min-height: 310px;
  padding: 26px;
  background: var(--pure-white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.lab-panel:hover {
  box-shadow: var(--shadow);
}

.dark-panel {
  color: var(--pure-white);
  background:
    url("public/assets/mark-large.png") right -20% bottom -22% / 74% auto no-repeat,
    linear-gradient(145deg, #3312bc, var(--wasel-purple));
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 54px;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-brand img {
  width: 42px;
  filter: brightness(0) invert(1);
}

.panel-brand span {
  color: var(--pure-white);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.icon-button span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--pure-white);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 22px 0 24px;
  border: 1px solid rgba(112, 78, 240, 0.3);
  border-radius: 18px;
  color: var(--wasel-purple);
  font-size: 1.8rem;
  font-weight: 800;
  background: rgba(112, 78, 240, 0.06);
}

.mini-link {
  margin-top: 24px;
  padding: 0;
  border: 0;
  color: var(--wasel-purple);
  background: transparent;
  font-weight: 800;
}

.form-panel label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-panel input,
.form-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
}

.form-panel .button {
  width: 100%;
  margin-top: 22px;
}

.metric-panel strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--wasel-purple);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1;
}

.mini-chart {
  height: 86px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 30px;
}

.mini-chart span {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--growth-lime), var(--wasel-purple));
}

.method-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--pure-white);
  box-shadow: var(--shadow);
}

.method-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.method-line {
  fill: none;
  stroke: var(--wasel-purple);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawPath 2600ms ease forwards;
}

.method-step {
  position: absolute;
  width: 138px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(112, 78, 240, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(32, 20, 86, 0.12);
}

.method-step span {
  color: var(--wasel-purple);
  font-weight: 800;
}

.method-step strong {
  display: block;
  margin-top: 10px;
}

.step-1 { left: 7%; top: 48%; }
.step-2 { left: 19%; top: 16%; }
.step-3 { left: 36%; top: 58%; }
.step-4 { left: 54%; top: 18%; }
.step-5 { left: 70%; top: 56%; }
.step-6 { right: 5%; top: 15%; }

.motion-rules {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.motion-rules article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--pure-white);
}

.device-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  align-items: stretch;
}

.device {
  padding: 22px;
  background: var(--pure-white);
  transition: transform 180ms ease;
}

.device-screen {
  overflow: hidden;
  border-radius: 24px;
  background: #111;
}

.device-screen img {
  width: 100%;
}

.phone-screen {
  min-height: 520px;
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 12px solid #15131d;
  border-radius: 44px;
  color: var(--pure-white);
  background: linear-gradient(160deg, #3312bc, var(--wasel-purple));
}

.phone-screen img {
  width: 78%;
  filter: brightness(0) invert(1);
}

.phone-screen p {
  margin: 0;
  color: var(--growth-lime);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
}

.phone-screen span {
  width: 64%;
  height: 4px;
  border-radius: 999px;
  background: var(--growth-lime);
  animation: pulseLine 1400ms ease-in-out infinite;
}

.handoff {
  padding-bottom: 56px;
}

.handoff-card {
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: center;
  color: var(--pure-white);
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 255, 51, 0.18), transparent 18rem),
    linear-gradient(145deg, var(--wasel-purple), #2f12bb);
}

.handoff-card img {
  width: 220px;
  animation: floatMark 5s ease-in-out infinite;
}

.handoff .kicker {
  color: var(--pure-white);
}

.handoff h2 {
  margin: 12px 0;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
}

.handoff p {
  color: rgba(255, 255, 255, 0.78);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes floatMark {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(1.5deg);
  }
}

@keyframes pulseLine {
  0%,
  100% {
    transform: scaleX(0.72);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .type-spec,
  .asset-strip,
  .device-grid,
  .handoff-card {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 430px;
  }

  .component-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-grid,
  .token-board,
  .motion-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handoff-card {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, var(--max));
  }

  .brand {
    width: 118px;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 30px 22px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .hero-actions,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .button,
  .nav-cta {
    width: auto;
  }

  .trust-row {
    display: grid;
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-mark {
    width: 112%;
    left: -18%;
  }

  .service-stack {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 22px;
  }

  .analysis-grid,
  .token-board,
  .component-lab,
  .motion-rules {
    grid-template-columns: 1fr;
  }

  .method-map {
    min-height: 640px;
  }

  .method-map svg {
    transform: rotate(88deg) scale(1.15);
  }

  .method-step {
    width: calc(50% - 18px);
  }

  .step-1 { left: 6%; top: 8%; }
  .step-2 { right: 6%; left: auto; top: 20%; }
  .step-3 { left: 6%; top: 34%; }
  .step-4 { right: 6%; left: auto; top: 48%; }
  .step-5 { left: 6%; top: 62%; }
  .step-6 { right: 6%; top: 76%; }

  .phone-screen {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
