:root {
  --ink: #171716;
  --paper: #f3f0e8;
  --blue: #4d64ff;
  --orange: #ff7448;
  --lime: #c9ed67;
  --line: rgba(23, 23, 22, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  display: flex;
  flex-direction: column;
}

button, a { -webkit-tap-highlight-color: transparent; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.site-header, footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { padding: 30px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 500 12px/1 "DM Mono", monospace;
  transition: transform .3s ease, background .3s ease;
}

.brand:hover .brand-mark { transform: rotate(-12deg); background: var(--lime); }

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 400 12px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5ea74a;
  box-shadow: 0 0 0 5px rgba(94, 167, 74, .13);
  animation: pulse 2.4s infinite;
}

main { flex: 1; display: grid; place-items: center; }

.hero {
  width: min(1240px, calc(100% - 64px));
  margin: 40px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
}

.eyebrow {
  margin: 0 0 26px;
  font: 500 12px/1.4 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow::before { content: "↳"; margin-right: 10px; color: var(--blue); }

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.5rem, 7.1vw, 7.2rem);
  line-height: .94;
  letter-spacing: -.075em;
  font-weight: 600;
}

.accent-word { position: relative; display: inline-block; z-index: 0; }
.accent-word::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3%; right: -5%; bottom: 2%; height: 25%;
  background: var(--lime);
  border-radius: 60% 45% 50% 35%;
  transform: rotate(-1.5deg);
}

.intro {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(23, 23, 22, .68);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.72;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.primary-button, .copy-button {
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 23px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: 600 14px/1 "Manrope", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button { color: white; background: var(--ink); }
.primary-button:hover, .copy-button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--blue); }
.copy-button:hover { background: white; }
.primary-button svg, .copy-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-outer { inset: 5%; animation: spin 28s linear infinite; }
.orbit-outer::before { content: ""; position: absolute; width: 13px; height: 13px; background: var(--ink); border-radius: 50%; top: 11%; left: 12%; }
.orbit-inner { inset: 22%; border-style: dashed; animation: spin 20s linear infinite reverse; }

.shape { position: absolute; filter: saturate(.95); }
.shape-blue { inset: 16% 23% 21% 16%; background: var(--blue); border-radius: 62% 38% 52% 48% / 45% 53% 47% 55%; transform: rotate(-12deg); animation: morph 8s ease-in-out infinite; }
.shape-orange { width: 35%; height: 35%; right: 2%; top: 7%; background: var(--orange); border-radius: 50% 50% 8% 50%; transform: rotate(18deg); animation: float 5s ease-in-out infinite; }
.shape-lime { width: 24%; height: 24%; bottom: 4%; left: 4%; background: var(--lime); border-radius: 20% 50% 50% 50%; transform: rotate(-26deg); animation: float 6s 1s ease-in-out infinite reverse; }

.code-card, .note-card { position: absolute; box-shadow: 7px 8px 0 rgba(23, 23, 22, .16); }
.code-card { top: 35%; left: 2%; padding: 17px 19px 20px; border: 1.5px solid var(--ink); border-radius: 9px; background: #fffdf8; transform: rotate(-5deg); animation: float 5.5s .5s ease-in-out infinite; }
.card-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .25; }
.code-card code { white-space: nowrap; font: 500 clamp(10px, 1.5vw, 13px)/1 "DM Mono", monospace; }
.code-card code span { color: var(--blue); }
.code-card code em { color: #c54c26; font-style: normal; }
.note-card { right: 1%; bottom: 18%; padding: 18px 22px; background: #fff4a8; border: 1.5px solid var(--ink); font: 400 clamp(13px, 1.5vw, 16px)/1.15 "DM Mono", monospace; transform: rotate(7deg); }
.note-card strong { font-weight: 500; }
.spark { position: absolute; font-size: 29px; }
.spark-one { top: 10%; left: 8%; color: var(--blue); animation: twinkle 2s ease-in-out infinite; }
.spark-two { right: 9%; bottom: 6%; font-size: 18px; animation: twinkle 2s 1s ease-in-out infinite; }

footer { padding: 23px 0 27px; border-top: 1px solid var(--line); color: rgba(23, 23, 22, .55); font: 400 11px/1.5 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; padding: 12px 18px; color: white; background: var(--ink); border-radius: 999px; font-size: 13px; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .75s cubic-bezier(.22, 1, .36, 1) forwards; }
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
.reveal-delay-3 { animation-delay: .24s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(94, 167, 74, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-11px) rotate(4deg); } }
@keyframes morph { 50% { border-radius: 43% 57% 35% 65% / 62% 38% 62% 38%; transform: rotate(-5deg) scale(1.025); } }
@keyframes twinkle { 50% { transform: rotate(25deg) scale(.7); opacity: .4; } }

@media (max-width: 820px) {
  .site-header, .hero, footer { width: min(100% - 36px, 640px); }
  .hero { grid-template-columns: 1fr; margin-top: 55px; gap: 55px; }
  .hero-copy { text-align: center; }
  .eyebrow { font-size: 10px; }
  .intro { margin-inline: auto; }
  .actions { justify-content: center; }
  .visual { width: min(100%, 420px); }
}

@media (max-width: 520px) {
  .site-header { padding-top: 20px; }
  .availability span:last-child { display: none; }
  .status-dot { width: 11px; height: 11px; }
  .hero { margin-top: 36px; margin-bottom: 45px; }
  h1 { font-size: clamp(3.15rem, 15.5vw, 4.6rem); }
  .intro { font-size: .98rem; }
  .primary-button, .copy-button { flex: 1 1 auto; }
  footer { align-items: flex-start; gap: 15px; }
  .footer-note { max-width: 190px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
