:root {
  --jl-accent: #7c3aed;
  --jl-accent-muted: #f1edfc;
  --jl-text: #111111;
  --jl-text-muted: #6b6b73;
  --jl-canvas: #ffffff;
  --jl-cta: #0d0d0f;
  --jl-cta-hover: #1a1a1e;
  --jl-cta-arrow: #f472b6;
  --jl-cta-arrow-icon: #0d0d0f;
  --font-display: "Satoshi", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-display);
  color: var(--jl-text);
  background: var(--jl-canvas);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: clamp(1.25rem, 3.5vh, 2rem);
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 2.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 2.75rem;
  }
}

.wordmark {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #7c3aed;
  text-transform: capitalize;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--jl-canvas);
}

.atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.atmosphere-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--jl-text) 5%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--jl-text) 5%, transparent) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 75% 70% at 50% 45%,
    #000 20%,
    transparent 78%
  );
  opacity: 0.55;
}

.atmosphere-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    color-mix(in srgb, var(--jl-accent) 34%, transparent) 0%,
    color-mix(in srgb, #f472b6 18%, transparent) 42%,
    transparent 70%
  );
  filter: blur(48px);
  opacity: 0.7;
  will-change: transform;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 70% 50% at 100% 40%,
    color-mix(in srgb, var(--jl-accent) 10%, transparent),
    transparent 58%
  );
}

.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  height: 100%;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
  padding-top: clamp(5.25rem, 12vh, 7rem);
  padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
}

.copy {
  position: relative;
  z-index: 10;
  min-width: 0;
  max-width: 30rem;
}

.headline {
  margin-top: 0;
}

.display {
  margin: 0;
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--jl-text);
}

.word-slot {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.more {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.strike {
  pointer-events: none;
  position: absolute;
  left: -3%;
  top: 0.72em;
  height: 3px;
  width: 106%;
  transform-origin: left center;
  transform: translateY(-50%) scaleX(0);
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-text) 72%, var(--jl-accent) 28%);
  opacity: 0;
}

.better {
  display: inline-block;
  white-space: nowrap;
  color: var(--jl-accent);
}

.caret {
  display: inline-block;
  width: 2.5px;
  height: 0.82em;
  margin-left: 2px;
  transform: translateY(0.1em);
  border-radius: 1px;
  background: var(--jl-accent);
  vertical-align: baseline;
  opacity: 0;
}

.tagline {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--jl-text);
  opacity: 0;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 30rem;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--jl-text-muted);
  opacity: 0;
}

.cta {
  margin-top: 2rem;
  opacity: 0;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  background: var(--jl-cta);
  color: #fff;
  padding: 0.5rem 0.5rem 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    transform 0.12s ease;
}

.cta-pill:hover {
  background: var(--jl-cta-hover);
}

.cta-pill:active {
  transform: scale(0.98);
}

.cta-pill-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--jl-cta-arrow);
  color: var(--jl-cta-arrow-icon);
}

.mockup-spacer {
  display: none;
}

.mockup-mobile {
  display: none;
}

.mockup-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 0;
  }

  .mockup-spacer {
    display: block;
    position: relative;
    min-height: min(42vh, 380px);
  }

  .mockup-desktop {
    pointer-events: none;
    position: absolute;
    inset-block: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    width: min(52vw, 860px);
  }

  .mockup-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(78vh, 720px);
    object-fit: contain;
    object-position: right center;
    opacity: 0;
    transform: translate3d(12px, 8px, 0);
    animation: hero-mockup-in 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@media (min-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  }

  .mockup-spacer {
    min-height: min(48vh, 460px);
  }
}

@media (max-width: 1023px) {
  .shell {
    height: auto;
    max-height: 58dvh;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-grid {
    height: auto;
    padding-top: clamp(5rem, 12vh, 6.5rem);
    padding-bottom: 0.5rem;
  }

  .mockup-mobile {
    position: relative;
    z-index: 1;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 1rem 1rem;
    overflow: hidden;
  }

  .mockup-mobile img {
    display: block;
    margin-left: auto;
    width: min(100%, 480px);
    height: auto;
    max-height: min(42dvh, 360px);
    object-fit: contain;
    object-position: right bottom;
  }
}

@keyframes hero-mockup-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-img {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (min-width: 1024px) and (max-height: 720px) {
  .display {
    font-size: clamp(2.25rem, 6vh, 3.5rem);
  }

  .tagline {
    font-size: clamp(1.1rem, 2.4vh, 1.4rem);
    margin-top: 0.75rem;
  }

  .lede {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .mockup-img {
    max-height: min(70vh, 520px);
  }
}

@media (min-width: 1024px) and (max-height: 600px) {
  .lede {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
