.hero {
  position: relative;
  overflow: hidden;
}


.hero__inner {
  display: grid;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 112px;
}


.hero__content {
  min-width: 0;
}


.hero__heading,
.hero__body,
.hero__visual {
  min-width: 0;
}


.eyebrow {
  color: var(--muted-foreground);
  font-size: var(--font-small);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: lowercase;
}


.display {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}


.hero__eyebrow {
  margin-bottom: 24px;
}


.hero__title {
  width: 100%;
  max-width: 600px;
  min-height: calc(3 * 1.2em);


  color: #000000;
  font-size: var(--font-title);
  line-height: 1.2;
}


.hero__platforms {
  display: table;
  margin-top: 20px;
  padding: 1px 4px 2px;
  background: var(--accent);
  color: #000000;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;


  opacity: 0;
  transform: translateY(8px);


  transition:
    opacity .55s ease,
    transform .55s ease;
}


.hero__platforms.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.hero__divider {
  width: 100%;
  height: 1px;
  margin-block: 36px;
  background: var(--border);
}


.hero__description {
  width: 100%;
  max-width: 100%;
  padding-left: 20px;
  border-left: 4px solid var(--accent);
}


.hero__description > p {
  margin: 0;
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.54px;
}


.hero__description-line {
  display: block;
  white-space: nowrap;
}


.hero__description > p:first-child {
  line-height: 1.35; 
}


.hero__description > p:last-child {
  margin-top: 8px;
  color: var(--foreground);
  line-height: 1.2;
}


.hero__description > p + p {
  margin-top: 8px;
  color: var(--foreground);
  line-height: 22px;
  letter-spacing: -0.54px;
}


.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}


.hover-arrow svg {
  transition: transform 250ms ease;
}


.hover-arrow:hover svg {
  transform: translate(2px, -2px);
}



.hero-type-cursor {
  display: inline-block;
  margin-left: 4px;
  opacity: 1;


  animation: hero-cursor-blink .8s steps(1) infinite;
}


.hero-type-cursor.is-hidden {
  opacity: 0;
  animation: none;
}


@keyframes hero-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }


  51%,
  100% {
    opacity: 0;
  }
}


/* Word flow */


.hero-word-flow {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  user-select: none;
}


.hero-word-flow__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 55% 50%,
      color-mix(in oklab, var(--accent) 45%, transparent),
      transparent 62%
    );
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 1.2s ease;
}


.hero-word-flow__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}


.hero-word-flow__line {
  stroke: var(--accent);
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  filter:
    drop-shadow(
      0 0 10px
      color-mix(in oklab, var(--accent) 60%, transparent)
    );
  transition:
    stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1),
    stroke-width 0.5s ease;
}


.hero-word-flow__word {
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition-property:
    left,
    top,
    opacity,
    background-color,
    color,
    box-shadow;
  transition-duration:
    1.5s,
    1.5s,
    0.6s,
    0.7s,
    0.7s,
    0.7s;
  transition-timing-function:
    cubic-bezier(0.65, 0, 0.35, 1),
    cubic-bezier(0.65, 0, 0.35, 1),
    ease,
    ease,
    ease,
    ease;
  transition-delay: 0ms;
}


.hero-word-flow__word-inner {
  display: inline-block;
  animation:
    hero-word-drift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}


.hero-word-flow__logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 25%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition:
    opacity 0.8s ease 0.5s,
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}


.hero-word-flow__logo span {
  color: var(--muted-foreground);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}


.hero-word-flow[data-stage="1"] .hero-word-flow__word,
.hero-word-flow[data-stage="2"] .hero-word-flow__word,
.hero-word-flow[data-stage="3"] .hero-word-flow__word {
  left: var(--target-x);
  top: var(--target-y);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  transition-delay:
    var(--align-delay),
    var(--align-delay),
    0ms,
    0ms,
    0ms,
    0ms;
}


.hero-word-flow[data-stage="1"] .hero-word-flow__word-inner,
.hero-word-flow[data-stage="2"] .hero-word-flow__word-inner,
.hero-word-flow[data-stage="3"] .hero-word-flow__word-inner {
  animation: none;
}


.hero-word-flow[data-stage="2"] .hero-word-flow__glow,
.hero-word-flow[data-stage="3"] .hero-word-flow__glow {
  opacity: 0.85;
}


.hero-word-flow[data-stage="2"] .hero-word-flow__line,
.hero-word-flow[data-stage="3"] .hero-word-flow__line {
  stroke-dashoffset: 0;
}


.hero-word-flow[data-stage="3"] .hero-word-flow__line {
  stroke-width: 0.9;
}


.hero-word-flow[data-stage="3"] .hero-word-flow__logo {
  opacity: 1;
  transform: scale(1);
}


@keyframes hero-word-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }


  50% {
    transform: translate3d(var(--dx), var(--dy), 0);
  }


  100% {
    transform: translate3d(0, 0, 0);
  }
}


@media (min-width: 768px) {
  .hero-word-flow__word {
    font-size: var(--font-text);
  }


  .hero-word-flow__logo span {
    font-size: 40px;
  }
}


@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 80px;
  }


  .hero__content {
    max-width: 720px;
  }


  .hero__title {
    max-width: 680px;
    font-size: var(--font-title);
  }


  .hero-word-flow {
    max-width: 520px;
  }
}


@media (max-width: 767px) {
  .hero__inner {
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }


  .hero__content {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: 32px;
    padding-bottom: 72px;
  }


  .hero__visual {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 24px;
    padding-bottom: 48px;
  }


  .hero__body {
    align-self: stretch;
    margin-top: 0;
  }


  .hero__eyebrow {
    margin-bottom: 18px;
  }


  .hero__title {
    max-width: 100%;
    font-size: calc(var(--font-title) * 1.25);
    line-height: 1.1;
  }


  .hero__platforms {
    align-self: flex-start;
    margin-top: 16px;
    font-size: calc(var(--font-subtitle) * 1.18);
  }


  .hero__divider {
    margin-top: 0;
    margin-bottom: 24px;
  }


  .hero__description {
    max-width: 100%;
    padding-left: 16px;
  }


  .hero__description > p {
    color: var(--foreground);
    font-size: 20.9px;
    line-height: 1.35;
    letter-spacing: -0.03em;
  }


  .hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }


  .hero__actions .button {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    padding: 14px 16px;
    font-size: 12px;
    white-space: nowrap;
  }


  .hero__actions .button svg {
    width: 14px;
    height: 14px;
  }


  .hero-word-flow {
    width: calc(100% + (var(--page-padding) * 2));
    max-width: none;
    margin-inline: calc(var(--page-padding) * -1);
  }


  .hero-word-flow:not(.is-started) {
    visibility: hidden;
    opacity: 0;
  }


  .hero-word-flow.is-started {
    visibility: visible;
    opacity: 1;
  }


  .hero-word-flow[data-stage="0"] .hero-word-flow__word {
    left: clamp(
      64px,
      var(--start-x),
      calc(100% - 64px)
    );
  }


  .hero-word-flow__logo span {
    font-size: 36px;
  }


  .hero__description-line {
    white-space: normal;
  }
}


@media (max-width: 480px) {
  .hero__inner {
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }


  .hero__content {
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 72px;
  }


  .hero__body {
    margin-top: 0;
  }


  .hero__visual {
    padding-top: 20px;
    padding-bottom: 40px;
  }


  .hero__title {
    font-size: calc(var(--font-title) * 1.2);
  }


  .hero__platforms {
    font-size: calc(var(--font-subtitle) * 1.4);
    white-space: normal;
  }


  .hero__divider {
    margin-top: 0;
    margin-bottom: 26px;
  }


  .hero__description > p {
    font-size: calc(var(--font-text) * 1.3);
  }


  .hero__actions {
    gap: 8px;
    margin-top: 0;
  }


  .hero__actions .button {
    padding: 13px 12px;
    font-size: 15px;
  }


  .hero-word-flow {
    max-width: none;
  }


  .hero-word-flow__word {
    padding: 5px 9px;
  }


  .hero-word-flow__logo span {
    font-size: 32px;
  }
}


@media (max-width: 390px) {
  .hero__title {
    font-size: calc(var(--font-title) * 1.4);
  }


  .hero__actions {
    gap: 6px;
  }


  .hero__actions .button {
    padding: 12px 10px;
    font-size: 14px;
  }


  .hero-word-flow {
    max-width: none;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .hero__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero__eyebrow {
    margin-bottom: 16px;
  }

  .hero__platforms {
    margin-top: 14px;
  }

  .hero__divider {
    margin-block: 24px;
  }

  .hero__actions {
    margin-top: 24px;
  }
}


@media (min-width: 1024px) and (max-height: 700px) {
  .hero__inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 12px;
  }

  .hero__platforms {
    margin-top: 10px;
  }

  .hero__divider {
    margin-block: 18px;
  }

  .hero__actions {
    margin-top: 18px;
  }
}


@media (min-width: 768px) and (max-width: 1023px) and (max-height: 800px) {
  .hero__inner {
    padding-top: 32px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
  }

  .hero__platforms {
    margin-top: 12px;
  }

  .hero__divider {
    margin-block: 22px;
  }

  .hero__actions {
    margin-top: 22px;
  }
}


@media (max-width: 767px) and (max-height: 700px) {
  .hero__content {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .hero__eyebrow {
    margin-bottom: 12px;
  }

  .hero__platforms {
    margin-top: 10px;
  }

  .hero__divider {
    margin-top: 0;
    margin-bottom: 18px;
  }

  .hero__actions {
    margin-top: 0;
  }
}


@media (max-width: 480px) and (max-height: 650px) {
  .hero__content {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .hero__eyebrow {
    margin-bottom: 10px;
  }

  .hero__platforms {
    margin-top: 8px;
    font-size: 25px;
  }

  .hero__divider {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .hero__actions {
    margin-top: 0;
  }
}