:root {
  --bg: #08080c;
  --fg: #f7f7fb;
  --muted: #b3b3c2;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(
      80rem 40rem at 85% -10%,
      rgba(124, 92, 255, 0.22),
      transparent 40%
    ),
    radial-gradient(
      50rem 30rem at 10% 110%,
      rgba(34, 211, 238, 0.14),
      transparent 45%
    ),
    var(--bg);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

main {
  overflow-x: clip;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}

.hero-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  position: relative;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border-color: transparent;
}

.btn-secondary {
  color: var(--muted);
}

.hero-card {
  position: absolute;
  right: 0;
  bottom: -3rem;
  width: min(24rem, 42vw);
  padding: 1.4rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.03)
    );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.5rem;
}

.hero-card-title {
  font-weight: 650;
}

.hero-card-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.copy {
  width: min(72ch, calc(100vw - 4rem));
  margin-inline: auto;
  padding: 5rem 2rem;
}

.copy h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.copy code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #a5f3fc;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.unravel-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  perspective: 1500px;
}

.unravel-clone {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  height: var(--h);
  border-radius: 14px;
  border: 1px solid rgba(165, 243, 252, 0.55);
  background: rgba(8, 8, 12, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.35);
  opacity: 0.94;
  transform: translate3d(var(--x), var(--y), 0);
  transition:
    transform 0.95s cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 0.6s ease;
  will-change: transform;
}

.unravel-clone::after {
  content: "<" attr(data-tag) ">";
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  padding: 0.24rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(165, 243, 252, 0.35);
  color: #a5f3fc;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.04em;
}

.unravel-overlay.is-exploded .unravel-clone {
  transform:
    translate3d(
      calc(var(--x) + var(--tx)),
      calc(var(--y) + var(--ty)),
      var(--tz)
    )
    rotateX(var(--rx))
    rotateY(var(--ry));
  opacity: 0.98;
}

.hero.is-ghost {
  opacity: 0.12;
  filter: grayscale(1);
}

@media (max-width: 900px) {
  .hero-card {
    position: static;
    width: 100%;
    margin-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .unravel-clone {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .unravel-overlay.is-exploded .unravel-clone {
    transform: translate3d(var(--x), var(--y), 0);
  }
}
.unravel-overlay.is-exploded {
  pointer-events: auto;
  cursor: pointer;
}

.unravel-pill {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  z-index: 1000;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 243, 252, 0.55);
  background: rgba(8, 8, 12, 0.85);
  color: #a5f3fc;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.unravel-pill[hidden] {
  display: none;
}
.site-footer {
  width: min(72ch, calc(100vw - 4rem));
  margin-inline: auto;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 2px;
}