@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap";

:root {
  --ink: #17151c;
  --muted: #6f6b73;
  --purple: #8b5cf6;
  --lavender: #eee8ff;
  --yellow: #fff0a8;
  --pink: #ffdbe1;
  --green: #d8f3df;
  --line: #d8d3cb;
  --white: #fffdf9;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

.u-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.u-text-center {
  text-align: center;
}

.u-mt-1 { margin-top: 0.5rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.5rem; }
.u-mt-4 { margin-top: 2rem; }
.u-mb-1 { margin-bottom: 0.5rem; }
.u-mb-2 { margin-bottom: 1rem; }
.u-mb-3 { margin-bottom: 1.5rem; }
.u-mb-4 { margin-bottom: 2rem; }

/* ── Animations ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift {
  to { transform: translate(-25%); }
}

@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-3deg); }
}

.u-animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.u-animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.u-animate-pop {
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.u-delay-1 { animation-delay: 0.08s; }
.u-delay-2 { animation-delay: 0.16s; }
.u-delay-3 { animation-delay: 0.24s; }
.u-delay-4 { animation-delay: 0.32s; }
.u-delay-5 { animation-delay: 0.4s; }
.u-delay-6 { animation-delay: 0.48s; }

/* ── Brand ── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.06em;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 22px;
  transform: rotate(-8deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__mark {
  animation: wiggle 0.5s ease-in-out;
}

.brand__name {
  font-size: 27px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:hover::after {
  opacity: 1;
  animation: shimmer 0.9s linear;
}

.btn:active {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--small {
  padding: 10px 16px;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--accent {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

.btn--accent:hover {
  background: #c2410c;
  border-color: #c2410c;
}

/* ── Section ── */

.section {
  padding: 4rem 0;
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--dark .section__title,
.section--dark .section__subtitle {
  color: #fff;
}

.section--dark .section__text {
  color: #ccc6cf;
}

.section__title {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section__title em {
  font-style: normal;
  color: var(--purple);
  position: relative;
}

.section__title em::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 3px;
  width: 100%;
  height: 8px;
  border-top: 2px solid var(--purple);
  border-radius: 50%;
}

.section__subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section__text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.section__text--white {
  color: #ccc6cf;
}

.section__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #5d5961;
  margin-bottom: 16px;
  display: block;
}

.section__grid {
  display: grid;
  gap: 24px;
  margin-top: 2rem;
}

/* ── Card ── */

.card {
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 22px 20px;
  background: var(--white);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(139, 92, 246, 0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 0 var(--ink);
}

.card:hover::before {
  opacity: 1;
  animation: shimmer 1.2s linear;
}

.card--lavender { background: var(--lavender); }
.card--yellow { background: var(--yellow); }
.card--pink { background: var(--pink); }
.card--green { background: var(--green); }
.card--purple { background: var(--purple); color: #fff; }

.card__icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card__icon {
  transform: scale(1.12) rotate(-4deg);
}

.card__title {
  font-size: 24px;
  line-height: 1.03;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
  font-weight: 600;
}

.card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.card--purple .card__text {
  color: #e4dcff;
}

.card__number {
  font-family: var(--mono);
  font-size: 10px;
  display: block;
  margin-bottom: 8px;
}

.card__link {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
  transition: transform 0.2s, color 0.2s;
}

.card__link:hover {
  transform: translateX(4px);
  color: var(--purple);
}

/* ── Hero ── */

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: 55px 32px 70px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 40px;
}

.hero__content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title {
  font-size: clamp(55px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  margin: 0 0 28px;
  font-weight: 600;
}

.hero__title em {
  font-style: normal;
  color: var(--purple);
  position: relative;
}

.hero__title em::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 3px;
  width: 100%;
  height: 8px;
  border-top: 2px solid var(--purple);
  border-radius: 50%;
}

.hero__text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 410px;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.hero__art {
  height: 430px;
  position: relative;
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}

/* ── Avatar Stack ── */

.avatar-stack {
  display: flex;
}

.avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 10px;
  color: var(--ink);
  margin-left: -7px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:first-child { margin-left: 0; }

.avatar:hover {
  transform: translateY(-4px) scale(1.15);
  z-index: 2;
}

.avatar--purple { background: #a98bfa; }
.avatar--yellow { background: #f9da62; }
.avatar--pink { background: #f5aab8; }
.avatar--green { background: #8bd3a0; }

/* ── Marquee ── */

.marquee {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  padding: 13px 0;
  background: var(--purple);
  color: #fff;
}

.marquee__track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 45px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  animation: drift 18s linear infinite;
  white-space: nowrap;
}

.marquee__track b {
  font-size: 22px;
  color: var(--yellow);
}

/* ── Stat Banner ── */

.stat-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 70px 32px 60px;
  position: relative;
  overflow: hidden;
}

.stat-banner__title {
  font-size: clamp(50px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 600;
  margin-bottom: 44px;
}

.stat-banner__title em {
  font-style: normal;
  color: var(--yellow);
}

.stat-banner__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid #4c4851;
  padding-top: 28px;
  flex-wrap: wrap;
}

.stat-banner__number {
  font-size: 88px;
  letter-spacing: -0.08em;
  line-height: 1;
  color: var(--yellow);
  font-weight: 600;
}

.stat-banner__number span {
  font-size: 43px;
}

.stat-banner__text {
  font-size: 15px;
  line-height: 1.35;
  color: #ccc6cf;
}

.stat-banner__text b {
  color: #fff;
}

.stat-banner__action {
  margin-left: auto;
}

.stat-banner__doodle {
  position: absolute;
  right: 43px;
  top: 42px;
  font-size: 70px;
  color: var(--purple);
  transform: rotate(25deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-banner:hover .stat-banner__doodle {
  transform: rotate(35deg) scale(1.1);
}

/* ── CTA ── */

.cta {
  text-align: center;
  padding: 120px 32px;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(50px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 600;
}

.cta__title em {
  font-style: normal;
  color: var(--purple);
}

.cta__text {
  max-width: 440px;
  margin: 26px auto 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__scribble {
  position: absolute;
  left: 19%;
  top: 28%;
  font-size: 35px;
  color: var(--purple);
  transform: rotate(-20deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta:hover .cta__scribble {
  transform: rotate(-30deg) scale(1.15);
}

/* ── Responsive ── */

@media (max-width: 800px) {
  .hero {
    padding-top: 55px;
  }

  .hero__art {
    display: none;
  }

  .hero__title {
    font-size: 65px;
  }

  .stat-banner__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-banner__action {
    margin-left: 0;
  }

  .stat-banner__doodle {
    display: none;
  }
}

@media (max-width: 500px) {
  .u-container,
  .hero,
  .cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__title {
    font-size: 57px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero__proof {
    justify-content: center;
  }

  .stat-banner {
    border-radius: 0;
    padding: 50px 20px 45px;
  }

  .stat-banner__number {
    font-size: 70px;
  }

  .cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta__scribble {
    left: 7%;
    top: 19%;
  }
}

/* ── Scrollbar ── */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 9999px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* ── Reduced Motion ── */

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