/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
  --border: rgba(255, 255, 255, 0.05);
  --primary: #6366F1;
  --bg-dark: #050505;
  --text-dim: #52525B;
  --title-height: clamp(12rem, 28vh, 20rem);
  --text-main: #FFFFFF;
  --font-mono: ui-monospace, "SF Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --text-muted: #9CA3AF;

  --bg-panel: #080808;
  --primary-rgb: 99, 102, 241;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --title-size: clamp(1.5rem, 4vw, 4rem);
  --left-width: clamp(21rem, 36vw, 40vw);
  --stage-stroke: 1.5px;
}

/* ==========================================================================
   BASE
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  background: var(--bg-panel);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;

  @media (min-width: 768px) {
    font-size: 16px;
  }

  @media (min-width: 1200px) {
    overflow: hidden;
  }

  &:has(.section:last-of-type:target) #btn-down {
    opacity: 0;
    pointer-events: none;
  }
}

#btn-down[aria-disabled="true"] {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   ICONS & LOGO
   ========================================================================== */

.icon {
  display: inline-flex;
  fill: none;
  flex-shrink: 0;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
  max-width: 100%;

  &.icon--filled {
    fill: currentColor;
    stroke: none;
  }
}

.nav-icon-btn .icon {
  height: 1.25rem;
  width: 1.25rem;
}

.nav-btn .icon {
  height: 1.5rem;
  width: 1.5rem;
}

.logo,
.logo-elephant {
  height: auto;
  width: 100%;
}

/* ==========================================================================
   BRANDING
   ========================================================================== */

.brand__logo {
  margin: 0 auto;
  display: grid;
  height: 5rem;
  place-content: center;
  width: auto;
  aspect-ratio: 1;
  z-index: 90;

  svg {
    height: auto;
    width: 100%;
    transition: transform 750ms ease-out;
  }

  &:hover svg {
    transform: scale(1.08) rotate(-11deg) translateY(-3%);
    transition-duration: 250ms;
  }

  margin-block-end: -1.5rem;
}

@media screen and (max-width: 1200px) {
  .brand__logo {
    position: fixed;
    left: 1.5rem;
    top: 1rem;
  }
}

.brand-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.brand-heading {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  text-align: center;
  text-transform: uppercase;

  @media (min-width: 768px) {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

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

  a:after {
    content: '';
    display: block;
    inset: 0;
    position: absolute;
  }

  span {
    color: #FFFFFF;
    font-weight: 400;
  }
}

.brand-subtext {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 32rem;
  text-align: center;
  display: flex;
  gap: 0.75rem;
}

.brand-subtext__part {}

.brand-subtext__accent {
  position: relative;
  display: inline-block;
  padding: 0 0.15rem;
}

.brand-subtext__accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 0.18rem;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0.85) 85%, rgba(99, 102, 241, 0.95) 100%);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0) rotate(-1deg);
  opacity: 0;
  animation: brand-subtext-underline 1.1s ease-out 0.25s forwards;
}

@keyframes brand-subtext-underline {
  0% {
    transform: scaleX(0) rotate(-1deg);
    opacity: 0;
  }

  65% {
    transform: scaleX(1.08) rotate(-1deg);
    opacity: 1;
  }

  100% {
    transform: scaleX(1) rotate(-1deg);
    opacity: 1;
  }
}

/* ==========================================================================
   INTERACTIVE BUTTONS
   ========================================================================== */

.btn-scale {
  transition: transform 0.3s ease;

  &:hover,
  &:focus-visible {
    transform: scale(1.08);
    transition: transform 0.15s ease-out;
  }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.split-layout {
  display: flex;
  flex-direction: column;
  width: 100%;

  @media (max-width: 1199px) {
    padding-left: 4.75rem;
  }

  @media (min-width: 1200px) {
    flex-direction: row;
    height: 100vh;
    padding-left: 0;
  }
}

.split-layout__static {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
  scroll-snap-align: start;
  width: 100%;

  @media (max-width: 1199px) {
    padding-top: 5rem;
  }

  @media (min-width: 768px) {
    gap: 1.75rem;
    padding: clamp(1.5rem, 5vw, 2rem);
    padding-top: 5rem;
  }

  @media (min-width: 1200px) {
    flex-shrink: 0;
    min-height: 100vh;
    padding: min(5vw, 5vh);
    width: var(--left-width);
  }
}

.split-layout__scrollable {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  width: 100%;

  @media (min-width: 1200px) {
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    width: calc(100% - var(--left-width));

    &::-webkit-scrollbar {
      display: none;
    }
  }
}

.footer {
  display: none;
  padding: 0 1rem .75rem;
  text-align: center;

  @media (min-width: 1200px) {
    display: grid;
    gap: .25rem;
  }

  position: fixed;
  bottom: 0;
  width: var(--left-width);

  p {
    color: rgba(255, 255, 255, 0.345);
    font-stretch: semi-condensed;
    line-height: 1.25;
    margin: 0 auto;
    text-transform: uppercase;
    text-wrap: balance;
    max-inline-size: 23rem;

    a {
      color: inherit;
      transition: color 0.2s ease;
      text-decoration: none;

      &:hover {
        color: rgba(255, 255, 255, 0.57);
      }
    }
  }
}

.footer-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-note {
  font-weight: 300;
  font-size: 0.65rem;

  a {
    color: inherit;
  }
}

/* ==========================================================================
   LEFT PANEL
   ========================================================================== */

.pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: auto;
  row-gap: 1rem;

  @media (min-width: 768px) {
    row-gap: 1.5rem;
  }

  @media (min-width: 1200px) {
    height: 100%;
    grid-template-rows: var(--title-height) 1fr auto;
  }
}

.pane__title {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 1rem;
  text-align: center;

  @media (min-width: 768px) {
    gap: 1.25rem;
    padding: 0 1.5rem;
  }

  @media (min-width: 1200px) {
    justify-content: flex-end;
    min-height: var(--title-height);
  }
}

.pane__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0.75rem 1rem;

  @media (min-width: 768px) {
    gap: 2rem;
    padding: 0 1.5rem 1.5rem;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block-start: auto;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 28rem;

  /*@media (max-width: 580px) {*/
  /*  grid-template-columns: 1fr;*/
  /*  gap: 1.5rem;*/
  /*}*/
}

.hero-meta__item {
  align-items: center;
  display: grid;
  line-height: 1;
  gap: 0.25rem;
  padding: 0.4rem;
  font-size: 0.75rem;

  @media (min-width: 768px) {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

.hero-meta__label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 200;
  font-size: 0.7rem;

  @media (min-width: 768px) {
    font-size: 0.75rem;
  }
}

.hero-meta__value {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;

  a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;

    &:hover,
    &:focus-visible {
      color: rgba(255, 255, 255, 1);
      text-decoration: none;
    }
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.5rem 0.75rem;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: 2rem;
  filter: saturate(0.6);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;

  @media (min-width: 768px) {
    padding: 2rem 1rem;
  }

  @media (min-width: 1200px) {
    padding: 2rem;
  }
}

.section__content {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
  row-gap: 1rem;
  width: 100%;

  @media (min-width: 768px) {
    row-gap: 1.5rem;
  }

  @media (min-width: 1200px) {
    grid-template-rows: var(--title-height) 1fr;
    max-width: 50rem;
  }

  em {
    color: #9698F5;
    font-style: normal;
    font-weight: 400;
  }
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 15vh 0.25rem 0;

  @media (min-width: 768px) {
    gap: 1rem;
    padding: 15vh 0.5rem 0;
  }

  @media (min-width: 1200px) {
    min-height: var(--title-height);
    max-width: 50rem;
    padding: 0 1.5rem;
  }
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
  padding-block: 2rem;

  @media (min-width: 768px) {
    gap: 2rem;
  }
}

.grid {}

.section__eyebrow {
  align-items: center;
  color: #818CF8;
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  gap: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-block-end: 1rem;

  .icon {
    height: 1.25rem;
    width: 1.25rem;
  }
}

.section__title {
  font-size: var(--title-size);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: clamp(0.65rem, 0.8vw, 1rem);
}

.section__description {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
}

.section__description .section__accent {
  color: color-mix(in oklch, #C4B5FD 75%, #FFFFFF 25%);
  font-weight: 450;
}

.section:target,
body:not(:has(.section:target)) .section:first-of-type {
  opacity: 1;
  filter: saturate(1);
}

.section:target .section__title,
body:not(:has(.section:target)) .section:first-of-type .section__title {
  color: #fff;
}

.section:target .section__description,
body:not(:has(.section:target)) .section:first-of-type .section__description {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   CODE BLOCKS
   ========================================================================== */

.code-block {
  background: var(--bg-dark);
  border-radius: .75rem;
  max-width: 100%;
  overflow: hidden;
}

.code-block__content {
  font-family: var(--font-mono);
  max-width: 100%;
  overflow-x: auto;

  pre {
    background: transparent;
    scrollbar-color: transparent transparent;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;

    @media (min-width: 768px) {
      font-size: 1rem;
      line-height: 1.65;
      padding: 1.5rem;
    }
  }

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


/* ==========================================================================
   PACKAGE CARDS
   ========================================================================== */

.package-group-title {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 2.5rem 0 1rem;
  text-transform: uppercase;
}

.package-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 100%;
  overflow-x: hidden;

  @media (min-width: 768px) {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }

  @media (min-width: 1200px) {
    max-width: 50rem;
  }

  &.package-grid--special .package-card__title {
    color: #FFF;
  }
}

.package-card {
  background: var(--bg-dark);
  border-radius: 0.5rem;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease, filter 0.3s ease, opacity 0.3s ease;
  overflow: clip;

  @media (min-width: 768px) {
    gap: 1rem;
    padding: 1.1rem 1.25rem;
  }

  &:hover {
    background: rgba(5, 5, 5, 0.8);
  }
}

.package-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.package-card--wip {
  filter: grayscale(0.85) blur(0.4px);
  opacity: 0.75;
}

.package-card--wip:hover,
.package-card--wip:focus-within {
  filter: none;
  opacity: 1;
}

.package-card__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  gap: 0.25rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.package-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;

  &::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
  }
}

.package-card__org {
  color: rgba(255, 255, 255, 0.4);
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  font-stretch: semi-condensed;
  margin-block-start: -.125rem;
}

.package-card__name {
  color: rgba(255, 255, 255, 0.95);
  display: block;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s ease;

  .package-card:hover & {
    color: #A199FF;
  }
}

.package-card__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
}

.package-card__progress {
  margin-top: 0.1rem;
  position: absolute;
  inset: auto 0 0;
  transform: scaleX(1);
  transform-origin: left;
}

.package-card:not(:hover) .package-card__progress {
  transform: scaleX(0);
}

.package-card__icon {
  position: absolute;
  color: rgba(161, 153, 255, 0.8);
  flex-shrink: 0;
  height: 2rem;
  width: 2rem;
  align-self: center;
  stroke-width: 1.5 !important;

  @media (min-width: 768px) {
    height: 2.5rem;
    width: 2.5rem;

    right: 1.5rem;
    top: 1.5rem;
  }
}

.progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  height: 3px;
  overflow: hidden;
  width: 100%;
}

.progress-bar__fill {
  background: linear-gradient(90deg, #6366F1 0%, #A199FF 100%);
  height: 100%;
  transition: width 0.3s ease;
}

.feature-card {
  align-items: center;
  background: var(--bg-dark);
  border-radius: 0.5rem;
  display: flex;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 0.9rem;

  @media (min-width: 768px) {
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
}

.feature-card__icon {
  color: #818CF8;
  flex-shrink: 0;
  height: 2.2rem;
  stroke-width: 1.5;
  width: 2.2rem;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card__title {
  color: #FFF;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

.feature-card__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.section--hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;

  @media (min-width: 768px) {
    padding: 3rem 2rem;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-block: auto;
  max-width: 50rem;
  width: 100%;

  @media (min-width: 768px) {
    gap: 2.5rem;
  }

  @media (min-width: 1200px) {
    gap: 3rem;
  }
}

.hero-title {
  color: #FFFFFF;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.hero-title__accent {
  color: #A199FF;
}

.hero-description {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.hero-intro {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
  font-style: italic;
}

.hero-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 40rem;
  margin: 0 auto;
  padding-top: 2rem;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 3rem;
    padding-top: 3rem;
  }
}

.hero-list-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;

  @media (min-width: 768px) {
    font-size: 1.05rem;
  }
}

.hero-list-more {
  color: #A199FF;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  grid-column: 1 / -1;
  padding-top: 1rem;
}

/* ==========================================================================
   METRICS CARDS
   ========================================================================== */

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;

  @media (min-width: 768px) {
    gap: 1.5rem;
  }

  @media (min-width: 1200px) {
    max-width: 50rem;
  }
}

.metrics-card {
  align-items: center;
  background: var(--bg-dark);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  min-height: 5rem;
  padding: 1rem 0.75rem;

  @media (min-width: 768px) {
    gap: 0.75rem;
    min-height: 6rem;
    padding: 1.5rem 1rem;
  }
}

.metrics-card__value {
  color: #A199FF;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1;

  @media (min-width: 768px) {
    font-size: 2.25rem;
  }
}

.metrics-card__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-stretch: semi-condensed;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;

  @media (min-width: 768px) {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   SUPPORT CARDS
   ========================================================================== */

.support-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 100%;

  @media (min-width: 768px) {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 1200px) {
    max-width: 50rem;
  }
}

.support-card {
  background: var(--bg-dark);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 12rem;
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;

  @media (min-width: 768px) {
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }

  &:hover {
    background: rgba(5, 5, 5, 0.8);
    transform: translateY(-2px);

    .support-card__arrow {
      opacity: 1;
    }
  }
}

.support-card__icon {
  align-self: center;
  color: #A199FF;
  height: 2rem;
  stroke-width: 1.5;
  width: 2rem;

  @media (min-width: 768px) {
    height: 2.5rem;
    width: 2.5rem;
  }
}

.support-card__title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  text-align: center;

  @media (min-width: 768px) {
    font-size: 1.3rem;
  }
}

.support-card__link {
  color: inherit;
  text-decoration: none;

  &::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
  }
}

.support-card__text {
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.support-card__arrow {
  bottom: 1rem;
  color: rgba(161, 153, 255, 0.6);
  height: 1rem;
  opacity: 0;
  position: absolute;
  right: 1rem;
  stroke-width: 1.5;
  transform: rotate(-90deg);
  transition: opacity 0.2s ease;
  width: 1rem;
  z-index: 0;
}

/* ==========================================================================
   COMPOSER COMMAND
   ========================================================================== */

.big-composer {
  align-items: center;
  background: #050505;
  border-radius: .75rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  font-family: var(--font-mono);
  gap: 0.75rem;
  justify-content: space-between;
  margin-block: 1rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.5rem 0.9rem;
  user-select: text;

  @media (min-width: 768px) {
    gap: 1rem;
    margin-block: 2rem;
    padding: 0.65rem 1.25rem;
  }

  &.copied {
    color: #4ADE80;
  }
}

.big-composer__text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.big-composer__verb {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.5;
  font-weight: 400;

  &::before {
    content: "$ ";
    opacity: .5;
  }
}

.big-composer__package {
  color: #A199FF;
  font-weight: 500;
  white-space: nowrap;
}

.composer-copy {
  align-items: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  transition: all 0.25s ease;

  &:hover,
  &:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
  }

  &::after {
    align-items: center;
    background: rgba(5, 5, 5, 0.95);
    border-radius: 0.4rem;
    color: #4ADE80;
    content: "Copied!";
    display: flex;
    font-size: 0.7rem;
    font-weight: 500;
    inset: 0;
    justify-content: center;
    letter-spacing: 0.02em;
    opacity: 0;
    position: absolute;
    text-transform: uppercase;
    transform: scale(0.85);
    transition: opacity 2s ease, transform 0.3s ease;
  }

  &.copied {
    color: #4ADE80;

    &::after {
      animation: copyBounce 0.35s ease-out;
      opacity: 1;
      transform: scale(1);
    }
  }

  .icon {
    height: 1.25rem;
    width: 1.25rem;
  }
}

@keyframes copyBounce {
  0% {
    transform: scale(0.8);
  }

  60% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
}

.install-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 3rem;
}

.install-step__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: 2rem;
  opacity: .75;
}

.install-step__number {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 600;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  margin-left: -3rem;
}

.install-step__title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.3;
  margin: 0;
  font-stretch: semi-condensed;
}

.install-step__copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.install-step .big-composer {
  margin-block: 0;
}

.install-cta {
  margin-top: 2rem;
}

.install-cta__link {
  align-items: center;
  background: #0a0a0a;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: inline-flex;
  font-weight: 600;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.65rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.install-cta__link::after {
  content: "↗";
  font-size: 0.95rem;
}

.install-cta__link:hover,
.install-cta__link:focus-visible {
  background: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #050505;
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.center-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0.5rem;
  background: color-mix(in oklch, #040406 85%, #0f1220 15%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 80;
}

@media (min-width: 768px) {
  .center-nav {
    width: 5.25rem;
    padding: 1.5rem 0.75rem;
  }
}

@media (min-width: 1200px) {
  .center-nav {
    position: static;
    width: auto;
    display: grid;
    height: 100vh;
    place-content: center;
    gap: 2rem;
    padding: 0 2rem;
    border-right: none;
    background: color-mix(in oklch, #050505 40%, #080808 40%);
    z-index: 50;
  }
}

.center-nav__logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  display: flex;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
  z-index: 90;
}

.center-nav__logo-icon {
  display: block;
  width: 2.4rem;
  height: auto;
}

@media (min-width: 1200px) {
  .center-nav__logo {
    display: none;
  }
}

.nav-icon-btn {
  background: transparent;
  border-radius: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  display: grid;
  place-content: center;
  pointer-events: auto;
  width: 3rem;
  height: 3rem;
  --nav-transition-duration: 0.7s;
  transition: background var(--nav-transition-duration) ease, border-color var(--nav-transition-duration) ease, color var(--nav-transition-duration) ease;

  &:hover,
  &:focus-visible,
  &[aria-current="page"] {
    background: var(--primary);
    color: #FFFFFF;
  }

  &[aria-current="page"] {
    --nav-transition-duration: 0.25s;
  }
}

@media (min-width: 1200px) {
  .nav-icon-btn {
    border-radius: 40%;
    border: none;
    width: 2.6rem;
    height: auto;
    aspect-ratio: 1;
    background: var(--bg-dark);
  }
}

.stage-canvas {
  margin-top: 2.5rem;
}

@media (max-width: 1199px) {
  .stage-canvas {
    display: none;
  }
}

.stage-svg {
  width: 100%;
  height: auto;
  display: block;
}

body:has(a[href="#browsers"][aria-current="page"]) .stage-browser {
  transform: scale(0.90);
  transform-origin: center;
  transition: transform 350ms ease-in-out;
}

.stage-browser__body {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: var(--stage-stroke);
}

.stage-browser__divider {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: var(--stage-stroke);
  stroke-dasharray: 6 10;
}

.stage-browser__bar {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: var(--stage-stroke);
}

.stage-browser__dot {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: var(--stage-stroke);
}

.stage-devices {
  position: relative;
  overflow: visible;
}

.stage-device {
  --stage-device-enter-x: 0px;
  --stage-device-enter-y: 0px;
  --stage-device-settle-y: 0px;
  --stage-device-scale: 0.94;
  --stage-device-in-duration: 0.85s;
  --stage-device-out-duration: 0.45s;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate3d(var(--stage-device-enter-x), var(--stage-device-enter-y), 0) scale(var(--stage-device-scale));
  transition:
    transform var(--stage-device-out-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--stage-device-delay, 0s),
    opacity calc(var(--stage-device-out-duration) * 0.8) ease-out var(--stage-device-delay, 0s);
  will-change: transform, opacity;
}

.stage-device--tablet {
  --stage-device-enter-x: -240px;
  --stage-device-enter-y: 28px;
  --stage-device-settle-y: 16px;
  --stage-device-scale: 0.92;
  --stage-device-in-duration: 0.95s;
}

.stage-device--phone {
  --stage-device-enter-x: 240px;
  --stage-device-enter-y: 36px;
  --stage-device-settle-y: 24px;
  --stage-device-scale: 0.9;
  --stage-device-in-duration: 0.9s;
  --stage-device-in-delay: 0.08s;
}

.stage-scene--active .stage-device {
  --stage-device-out-duration: var(--stage-device-in-duration);
  --stage-device-delay: var(--stage-device-in-delay, 0s);
  opacity: 1;
  transform: translate3d(0, var(--stage-device-settle-y), 0) scale(1);
}

.stage-device__shell {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: var(--stage-stroke);
}

.stage-device-card {
  fill: #222;
  stroke: none;
}

.stage-scene {
  --stage-scene-duration: 0.4s;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition:
    opacity var(--stage-scene-duration) ease-out,
    transform calc(var(--stage-scene-duration) * 1.35) cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.stage-scene--active {
  --stage-scene-duration: 0.6s;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.stage-panel,
.stage-device,
.stage-card,
.stage-terminal {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: var(--stage-stroke);
}

.stage-card--accent,
.stage-device--center,
.stage-device--right {
  stroke: rgba(59, 130, 246, 0.4);
}

.stage-pill,
.stage-line,
.stage-line--muted {
  fill: none;
  stroke-width: var(--stage-stroke);
  stroke-linecap: round;
  stroke: rgba(255, 255, 255, 0.25);
}

.stage-pill--accent {
  stroke: rgba(59, 130, 246, 0.6);
}

.stage-line--muted {
  stroke: rgba(255, 255, 255, 0.12);
}

.stage-target {
  fill: none;
  stroke: rgba(248, 113, 113, 0.6);
  stroke-width: var(--stage-stroke);
  stroke-dasharray: 6 6;
  animation: stagePulse 4s ease-in-out infinite;
}

.stage-target--inner {
  stroke: rgba(248, 113, 113, 0.85);
  stroke-dasharray: 2 8;
}

.stage-target-line {
  stroke: rgba(248, 113, 113, 0.25);
  stroke-width: var(--stage-stroke);
}

.stage-column {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: var(--stage-stroke);
}

.stage-dot {
  fill: rgba(59, 130, 246, 0.2);
  stroke: rgba(59, 130, 246, 0.7);
  stroke-width: var(--stage-stroke);
}

.stage-cursor {
  fill: none;
  stroke: rgba(124, 58, 237, 0.7);
  stroke-width: var(--stage-stroke);
  stroke-linejoin: round;
  animation: stageCursor 6s ease-in-out infinite;
}

.stage-check {
  fill: none;
  stroke: rgba(34, 197, 94, 0.9);
  stroke-width: var(--stage-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-scene--active .stage-check-1 {
  animation: checkAppear 4s ease-in-out 0s infinite;
}

.stage-scene--active .stage-check-2 {
  animation: checkAppear 4s ease-in-out 0.3s infinite;
}

.stage-scene--active .stage-check-3 {
  animation: checkAppear 4s ease-in-out 0.6s infinite;
}

.stage-scene--active .stage-check-4 {
  animation: checkAppear 4s ease-in-out 0.9s infinite;
}

.stage-input {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: var(--stage-stroke);
}

.stage-button {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: var(--stage-stroke);
}

.stage-pagination {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: var(--stage-stroke);
}

.stage-typed-text {
  font-family: var(--font-mono);
}

.stage-scene--active .stage-typed-text {
  animation: typing 3s steps(12) 0.3s infinite;
}

.stage-tap {
  opacity: 0;
}

.stage-tap--fill {
  fill: rgba(124, 58, 237, 0.3);
  stroke: none;
}

.stage-tap--stroke {
  fill: none;
  stroke: rgba(124, 58, 237, 0.8);
  stroke-width: var(--stage-stroke);
}

.stage-scene--active .stage-tap {
  animation: tapPulse 4s ease-in-out 2.8s infinite;
}

@keyframes checkAppear {

  0%,
  5% {
    opacity: 0;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
  }

  15%,
  85% {
    opacity: 1;
    stroke-dasharray: 30;
    stroke-dashoffset: 0;
  }

  95%,
  100% {
    opacity: 0;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
  }
}

@keyframes typing {

  0%,
  10% {
    opacity: 0;
  }

  15%,
  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes tapPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }

  5% {
    opacity: 1;
    transform: scale(1);
  }

  10% {
    opacity: 0.4;
    transform: scale(1.3);
  }

  15%,
  90% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.stage-console-panel {
  /* Group container */
}

.stage-console-bg {
  fill: rgba(5, 5, 5, 0.95);
  stroke: none;
}

.stage-console-border {
  fill: none;
  stroke: rgba(94, 234, 212, 0.35);
  stroke-width: var(--stage-stroke);
}

.stage-scene--active .stage-console-panel {
  animation: consoleSlideUp 4s ease-in-out infinite;
}

.stage-terminal {
  stroke: rgba(94, 234, 212, 0.35);
}

.stage-log {
  fill: rgba(94, 234, 212, 0.6);
  stroke: none;
}

.stage-log--warn {
  fill: rgba(251, 191, 36, 0.6);
}

.stage-log--error {
  fill: rgba(248, 113, 113, 0.8);
}

.stage-scene--active .stage-log-1 {
  animation: logAppear 6s ease-in-out 0s infinite;
}

.stage-scene--active .stage-log-2 {
  animation: logAppear 6s ease-in-out 0.2s infinite;
}

.stage-scene--active .stage-log-3 {
  animation: logAppear 6s ease-in-out 0.4s infinite;
}

.stage-scene--active .stage-log-4 {
  animation: logAppear 6s ease-in-out 0.6s infinite;
}

@keyframes consoleSlideUp {

  0%,
  5% {
    transform: translateY(200px);
    opacity: 0;
  }

  15%,
  85% {
    transform: translateY(0);
    opacity: 1;
  }

  95%,
  100% {
    transform: translateY(200px);
    opacity: 0;
  }
}

@keyframes logAppear {

  0%,
  10% {
    opacity: 0;
    transform: translateX(-10px);
  }

  20%,
  80% {
    opacity: 1;
    transform: translateX(0);
  }

  90%,
  100% {
    opacity: 0;
    transform: translateX(-10px);
  }
}

.stage-heart {
  fill: none;
  stroke: rgba(236, 72, 153, 0.65);
  stroke-width: var(--stage-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-scene--active .stage-heart {
  animation: heartDraw 3s ease-in-out infinite;
}

@keyframes heartDraw {
  0% {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0.8;
  }

  100% {
    stroke-dasharray: 100;
    stroke-dashoffset: -100;
    opacity: 0.8;
  }
}

@keyframes stagePulse {

  0%,
  100% {
    stroke-opacity: 0.4;
    transform: scale(0.98);
  }

  50% {
    stroke-opacity: 0.9;
    transform: scale(1.02);
  }
}

@keyframes stageFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes stageCursor {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translate(12px, -6px);
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .stage-scene,
  .stage-device {
    transition: none;
  }
}

@keyframes segmentedFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.corner-btn,
.nav-btn {
  align-items: center;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  height: 3rem;
  justify-content: center;
  padding: 0.75rem;
  position: fixed;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 3rem;
  z-index: 100;

  &:hover,
  &:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
  }
}

.corner-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  height: auto;
  padding: 0;
  right: 2rem;
  top: 2rem;
  width: auto;
  z-index: 120;

  &:hover,
  &:focus-visible {
    background: transparent;
    border: none;
    color: var(--primary);
  }

  .icon {
    height: 2rem;
    width: 2rem;
  }

  @media (max-width: 600px) {
    right: 1.5rem;
    top: 1.5rem;

    .icon {
      height: 1.75rem;
      width: 1.75rem;
    }
  }
}

.nav-btn {
  bottom: 2rem;
  right: 2rem;

  @media (max-width: 1199px) {
    bottom: 1.5rem;
    left: 50%;
    margin-left: -1.5rem;
    right: auto;
  }

  &:disabled {
    opacity: 0.25;
    pointer-events: none;
  }
}

/* ==========================================================================
   INSTALL SYNTAX HIGHLIGHTING
   ========================================================================== */

.install-comment {
  color: #8b949e;
}

.install-command {
  color: #ff7b72;
  font-weight: 500;
}

.install-package {
  color: #a5d6ff;
}

/* ==========================================================================
   SYNTAX HIGHLIGHTING
   ========================================================================== */
.hljs {
  background: transparent !important;
  padding: 0 !important;

  --text: #c9d1d9;
  --kw: #ff7b72;
  --type: #f0f6fc;
  --var: #79c0ff;
  --function: #d2a8ff;
  --string: #a5d6ff;
  --comment: #8b949e;
  --operator: #9aa5cb;

  color: var(--text);
}

.hljs-keyword,
.hljs-built_in,
.hljs-meta {
  color: var(--kw);
  font-weight: 500;
}

.hljs-title,
.hljs-class,
.hljs-type {
  color: var(--type);
  font-weight: 600;
}

.hljs-variable,
.hljs-attr {
  color: var(--var);
}

.hljs-function,
.hljs-title.function_ {
  color: var(--function);
}

.hljs-string,
.hljs-number,
.hljs-literal {
  color: var(--string);
}

.hljs-comment {
  color: var(--comment);
  font-style: italic;
}

.hljs-operator,
.hljs-punctuation {
  color: var(--operator);
}

@media (prefers-reduced-motion: reduce) {
  .section {
    transition: none;
  }
}
