:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-background: #f4efe6;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #17211d;
  --ink-soft: #5f6863;
  --line: #d8d3c9;
  --accent: #10a37f;
  --accent-dark: #08785e;
  --accent-light: #d7f7ed;
  --yellow: #ffd75a;
  --red: #ff6b5e;
  --blue: #5c7cfa;
  --purple: #8d68e8;
  --shadow: 0 30px 80px rgba(49, 44, 35, 0.14);
  --parallax-far-y: 0px;
  --parallax-near-y: 0px;
  --pointer-x: 50vw;
  --pointer-y: 40vh;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--page-background);
}

body {
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 215, 90, 0.38), transparent 28rem),
    radial-gradient(circle at 86% 80%, rgba(16, 163, 127, 0.26), transparent 32rem),
    linear-gradient(145deg, rgba(141, 104, 232, 0.09), transparent 42%, rgba(255, 107, 94, 0.08)),
    var(--page-background);
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: page-drift 10s ease-in-out infinite alternate;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: -12vh -8vw;
  background-image:
    linear-gradient(rgba(23, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.035) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(circle at center, #000000 12%, transparent 78%);
  opacity: 0.62;
  transform: rotate(-2deg);
  transition: transform 80ms linear, opacity 600ms ease;
}

.ambient-orb {
  position: absolute;
  width: clamp(18rem, 34vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 42% 58% 64% 36%;
  filter: blur(1px);
  opacity: 0.42;
  mix-blend-mode: multiply;
  transition: opacity 600ms ease, filter 600ms ease;
}

.ambient-orb-yellow {
  top: -16rem;
  left: -10rem;
  background: radial-gradient(circle at 65% 65%, rgba(255, 215, 90, 0.68), transparent 64%);
  animation: ambient-yellow-drift 18s ease-in-out infinite alternate;
}

.ambient-orb-green {
  right: -12rem;
  bottom: -13rem;
  background: radial-gradient(circle at 35% 35%, rgba(16, 163, 127, 0.52), transparent 66%);
  animation: ambient-green-drift 21s ease-in-out infinite alternate;
}

.ambient-orb-red {
  top: 48%;
  left: 44%;
  width: clamp(10rem, 18vw, 18rem);
  background: radial-gradient(circle at center, rgba(255, 107, 94, 0.38), transparent 68%);
  animation: ambient-red-drift 14s ease-in-out infinite alternate;
}

body.has-results .ambient-grid {
  opacity: 0.76;
}

body.has-results .ambient-orb-red {
  filter: blur(1px) saturate(1.35);
  opacity: 0.6;
}

body.is-animating .ambient-grid {
  opacity: 0.42;
}

body.is-animating .ambient-orb-yellow {
  filter: blur(4px) saturate(1.18);
  opacity: 0.28;
}

body.is-animating .ambient-orb-green {
  filter: blur(2px) saturate(1.3);
  opacity: 0.5;
}

body.is-animating .ambient-orb-red {
  filter: blur(3px) saturate(1.38);
  opacity: 0.54;
}

.pointer-glow {
  position: absolute;
  top: var(--pointer-y);
  left: var(--pointer-x);
  width: 18rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 215, 90, 0.12) 36%, transparent 70%);
  border-radius: 50%;
  opacity: 0.28;
  transform: translate(-50%, -50%);
  transition: top 180ms ease-out, left 180ms ease-out, opacity 220ms ease;
}

.pointer-glow.is-active {
  opacity: 0.76;
}

button,
textarea,
input {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.generator-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(0.75rem, 2.5vh, 1.4rem) 1.5rem;
  overflow: hidden;
}

.background-word {
  position: fixed;
  z-index: -1;
  color: transparent;
  font-size: clamp(9rem, 24vw, 25rem);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.1em;
  -webkit-text-stroke: 1px rgba(23, 33, 29, 0.08);
  user-select: none;
}

.background-word-left {
  top: 8%;
  left: -5%;
  animation: background-left-float 8s ease-in-out infinite alternate;
}

.background-word-right {
  right: 2%;
  bottom: 7%;
  animation: background-right-float 9s ease-in-out infinite alternate;
}

.generator-card {
  position: relative;
  width: min(60rem, 100%);
  max-height: 100%;
  margin: 0 auto;
}

.hero-block {
  position: relative;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  transition: margin-bottom 420ms ease, transform 520ms cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-sticker {
  position: absolute;
  z-index: 2;
  width: max-content;
  padding: 0.48rem 0.72rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0.55rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-sticker-left {
  top: 6.6rem;
  left: -6rem;
  transform: rotate(-10deg);
  animation: sticker-left-bob 3.2s ease-in-out infinite alternate;
}

.hero-sticker-top {
  top: -1.8rem;
  right: 2rem;
  color: #ffffff;
  background: var(--red);
  transform: rotate(-3deg);
  animation: sticker-top-bob 2.7s ease-in-out infinite alternate;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-block > h1,
.animation-copy h1 {
  max-width: 50rem;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: -0.075em;
  transition: font-size 520ms cubic-bezier(0.2, 1, 0.3, 1), line-height 420ms ease;
}

.hero-block > h1 span {
  position: relative;
  display: inline-block;
  color: var(--accent-dark);
}

.hero-block > h1 span::after {
  position: absolute;
  right: -0.02em;
  bottom: -0.08em;
  left: 0.04em;
  z-index: -1;
  height: 0.2em;
  content: "";
  background: var(--yellow);
  border-radius: 999px;
  transform-origin: left center;
  animation: highlight-wiggle 2.8s ease-in-out infinite alternate;
}

.link-form {
  position: relative;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  overflow: clip;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 255, 255, 0.74)),
    rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.18);
  transition: padding 520ms cubic-bezier(0.2, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.link-form:focus-within {
  border-color: rgba(16, 163, 127, 0.46);
  box-shadow: 0 32px 90px rgba(49, 44, 35, 0.16), 0 0 0 5px rgba(16, 163, 127, 0.09);
  transform: translateY(-0.18rem);
}

.link-form::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 15rem;
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(92, 124, 250, 0.16), transparent 66%);
  border-radius: 50%;
  animation: form-accent-drift 8s ease-in-out infinite alternate;
}

.link-form > :not(.visually-hidden) {
  position: relative;
  z-index: 1;
}

.form-assurance {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(8, 120, 94, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgba(16, 163, 127, 0.07);
  animation: assurance-float 3.2s ease-in-out infinite;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.form-assurance:hover {
  color: #ffffff;
  background: var(--accent);
  transform: rotate(-8deg) scale(1.08);
}

.form-assurance svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.message-field {
  position: relative;
}

.message-field::before {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 2;
  color: rgba(16, 163, 127, 0.09);
  font-size: clamp(5.5rem, 12vw, 8rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  content: "?";
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: question-cue-breathe 2.8s ease-in-out infinite;
  transition: opacity 220ms ease, scale 260ms cubic-bezier(0.2, 1.3, 0.4, 1);
}

.link-form.has-content .message-field::before {
  opacity: 0;
  scale: 0.72;
}

.message-field textarea {
  display: block;
  width: 100%;
  height: clamp(7rem, 22vh, 10.5rem);
  min-height: 0;
  padding: 1.1rem 4rem 2.3rem 1.1rem;
  resize: none;
  color: var(--ink);
  line-height: 1.55;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.92)),
    var(--surface-strong);
  border: 2px solid var(--line);
  border-radius: 1rem;
  outline: none;
  transition: height 520ms cubic-bezier(0.2, 1, 0.3, 1), padding 420ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.message-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.14);
  transform: scale(1.005);
}

.character-count {
  position: absolute;
  right: 0.9rem;
  bottom: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease, transform 180ms ease;
}

.link-form.has-content .character-count {
  color: var(--accent-dark);
  font-weight: 800;
  transform: translateY(-0.08rem);
}

.generate-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(110deg, var(--ink), #21382f 55%, var(--accent-dark));
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.2);
  transition: min-height 420ms ease, padding 420ms ease, margin-top 420ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.generate-button::before {
  position: absolute;
  top: -120%;
  left: -20%;
  width: 14%;
  height: 340%;
  content: "";
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(22deg);
  animation: button-sweep 3.4s ease-in-out infinite;
}

.generate-button > span {
  z-index: 1;
}

.generate-button:hover {
  background: linear-gradient(110deg, var(--accent-dark), var(--accent), #0d6f59);
  box-shadow: 0 16px 34px rgba(8, 120, 94, 0.26);
  transform: translateY(-3px) scale(1.005);
}

.generate-button:active {
  transform: translateY(0);
}

.generate-button.is-activated {
  animation: action-confirm 520ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.button-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  min-height: 0;
  padding: 0 4rem;
}

.button-copy strong {
  display: block;
}

.button-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--ink);
  font-size: 1.25rem;
  background: var(--yellow);
  border-radius: 50%;
  animation: arrow-nag 1.8s ease-in-out infinite;
}

.form-error {
  margin: 0.8rem 0 0;
  color: #a92e25;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-error:not([hidden]) {
  animation: error-arrival 420ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

.generated-links {
  margin-top: clamp(0.65rem, 1.7vh, 1rem);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(245, 249, 247, 0.84)),
    var(--surface);
  border: 1px solid rgba(16, 163, 127, 0.18);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.18);
}

.link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  background: linear-gradient(145deg, rgba(245, 243, 238, 0.96), rgba(255, 255, 255, 0.84));
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.link-card:hover {
  border-color: rgba(16, 163, 127, 0.42);
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.12);
  transform: translateY(-5px) rotate(-0.25deg) scale(1.006);
}

.link-card-animated {
  background: linear-gradient(145deg, rgba(215, 247, 237, 0.94), rgba(255, 253, 248, 0.88));
  border-color: rgba(8, 120, 94, 0.24);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 3px 3px 0 rgba(23, 33, 29, 0.14);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.link-card:hover .link-icon {
  color: #ffffff;
  background: var(--accent);
  transform: rotate(12deg) scale(1.08);
}

.link-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 1.5rem;
  padding: 0.2rem 0.46rem;
  color: var(--accent-dark);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 120, 94, 0.2);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.link-card:hover .link-card-label {
  color: #ffffff;
  background: var(--accent-dark);
  transform: translateX(0.15rem);
}

.link-content h3 {
  margin: 0.45rem 0 0.8rem;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
}

.link-actions button,
.link-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(23, 33, 29, 0.28);
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.link-actions button:hover,
.link-actions a:hover {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.link-actions button.is-copied {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  animation: copy-confirm 520ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

.has-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.8rem, 0) scale(0.985);
  transition: opacity 620ms ease, transform 720ms cubic-bezier(0.2, 1, 0.3, 1);
}

.has-motion [data-reveal].is-in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.has-motion .hero-block.is-in-view > h1 {
  animation: reveal-child 620ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.has-motion .hero-block.is-in-view > h1 {
  animation-delay: 80ms;
}

body.has-results .hero-block {
  margin-bottom: 0.65rem;
}

body.has-results .hero-stickers {
  opacity: 0;
  transform: scale(0.72);
}

body.has-results .hero-block > h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 0.9;
}

body.has-results .link-form {
  padding: clamp(0.75rem, 1.8vh, 1rem);
}

body.has-results .message-field textarea {
  height: clamp(5.5rem, 13vh, 7rem);
  padding-top: 0.85rem;
  padding-bottom: 1.9rem;
}

body.has-results .character-count {
  bottom: 0.4rem;
}

body.has-results .generate-button {
  min-height: 3.25rem;
  margin-top: 0.55rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

body.has-results .generated-links {
  padding: clamp(0.75rem, 1.8vh, 1rem);
}

body.has-results .link-card {
  padding: 0.8rem;
}

body.has-results .link-content h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.55rem;
}

body.has-results .link-actions button,
body.has-results .link-actions a {
  min-height: 2.1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.animation-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(86rem, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 2rem;
  overflow: hidden;
}

.animation-screen::before,
.animation-screen::after {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(16, 163, 127, 0.15);
  border-radius: 42% 58% 64% 36%;
}

.animation-screen::before {
  top: -12rem;
  left: -8rem;
  animation: ambient-orbit 16s linear infinite;
}

.animation-screen::after {
  right: -10rem;
  bottom: -13rem;
  animation: ambient-orbit 19s linear infinite reverse;
}

.animation-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.58rem 0.75rem;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(49, 44, 35, 0.06);
  backdrop-filter: blur(14px) saturate(1.2);
  animation: header-arrival 520ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 850;
}

.mini-brand-mark {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
  animation: brand-pulse 2.4s ease-in-out infinite;
}

.skip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.skip-link:hover {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.animation-copy {
  margin: clamp(2rem, 5vh, 3.6rem) auto 1.2rem;
  text-align: center;
  animation: animation-copy-arrival 640ms 80ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.animation-copy .eyebrow {
  color: transparent;
  background: linear-gradient(90deg, var(--accent-dark), var(--purple), var(--red), var(--accent-dark));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: recipient-label-shift 5s ease-in-out infinite;
}

.animation-copy h1 {
  max-width: 54rem;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.animation-status {
  min-height: 1.5em;
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.phase-timeline {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(42rem, 92%);
  margin: 0 auto 1rem;
  padding: 0.35rem;
  background: rgba(255, 253, 248, 0.56);
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  animation: timeline-arrival 640ms 160ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.phase-timeline > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 2rem;
  padding: 0.32rem 0.48rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 850;
  border-radius: 999px;
  transition: color 260ms ease, background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.phase-timeline b {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.48rem;
  background: rgba(23, 33, 29, 0.08);
  border-radius: 50%;
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}

.phase-timeline > span.is-active {
  color: #ffffff;
  background: linear-gradient(110deg, var(--accent-dark), var(--accent));
  box-shadow: 0 7px 18px rgba(8, 120, 94, 0.2);
  transform: scale(1.04);
}

.phase-timeline > span.is-active b {
  color: var(--ink);
  background: var(--yellow);
  transform: rotate(10deg) scale(1.08);
}

.phase-timeline > span.is-complete {
  color: var(--accent-dark);
  background: rgba(215, 247, 237, 0.7);
}

.phase-timeline > span.is-complete b {
  color: #ffffff;
  background: var(--accent);
}

.animation-stage {
  --phase-rgb: 16, 163, 127;
  position: relative;
  width: min(66rem, 100%);
  aspect-ratio: 16 / 8.5;
  min-height: 22rem;
  margin: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(var(--phase-rgb), 0.18), transparent 30%),
    radial-gradient(circle at 24% 82%, rgba(var(--phase-rgb), 0.12), transparent 34%),
    #252525;
  border: 1px solid rgba(var(--phase-rgb), 0.5);
  border-radius: clamp(1rem, 3vw, 1.6rem);
  box-shadow:
    0 32px 80px rgba(23, 33, 29, 0.26),
    -1rem 1rem 3rem rgba(var(--phase-rgb), 0.14),
    1rem -1rem 3rem rgba(var(--phase-rgb), 0.1);
  transition: border-color 420ms ease, box-shadow 420ms ease;
  animation: stage-arrival 720ms 220ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.animation-stage::before {
  position: absolute;
  inset: -48%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: conic-gradient(
    from 90deg,
    transparent,
    rgba(var(--phase-rgb), 0.16),
    transparent 32%,
    rgba(var(--phase-rgb), 0.1),
    transparent 72%
  );
  opacity: 0.72;
  animation: phase-aura-orbit 18s linear infinite;
}

.animation-stage[data-phase="wrong-turn"],
.animation-stage[data-phase="voice-mistake"] {
  --phase-rgb: 255, 107, 94;
}

.animation-stage[data-phase="judging"] {
  --phase-rgb: 141, 104, 232;
}

.animation-stage[data-phase="typing"] {
  --phase-rgb: 92, 124, 250;
}

.animation-stage[data-phase="sending"],
.animation-stage[data-phase="approval"] {
  --phase-rgb: 255, 215, 90;
}

.animation-stage[data-phase="complete"] {
  --phase-rgb: 95, 213, 183;
}

.animation-stage.is-celebrating {
  animation: stage-celebration 720ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.stage-ribbon {
  position: absolute;
  top: 4.6rem;
  right: -3.8rem;
  z-index: 7;
  width: 18rem;
  padding: 0.42rem 0;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  background: var(--yellow);
  border: 1px solid var(--ink);
  transform: rotate(38deg);
  animation: ribbon-breathe 3.4s ease-in-out infinite;
}

.scanline {
  position: absolute;
  inset: 3.1rem 0 auto;
  z-index: 6;
  height: 12%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(95, 213, 183, 0.08), transparent);
  opacity: 0.8;
  animation: scanline-pass 4.2s linear infinite;
}

.browser-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5.5rem 1fr 5.5rem;
  align-items: center;
  height: 3.1rem;
  padding: 0 1rem;
  background: linear-gradient(90deg, #e9e7e2, #f6f4ef 48%, #e8f5f0);
  border-bottom: 1px solid #c7c3bc;
}

.window-dots {
  display: flex;
  gap: 0.42rem;
}

.window-dots span {
  width: 0.7rem;
  height: 0.7rem;
  background: #ff6158;
  border-radius: 50%;
  animation: window-dot-breathe 2.2s ease-in-out infinite;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
  animation-delay: -0.7s;
}

.window-dots span:nth-child(3) {
  background: #28c840;
  animation-delay: -1.4s;
}

.address-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 1.9rem;
  color: #646966;
  font-size: 0.72rem;
  background: linear-gradient(100deg, #ffffff 35%, #eefaf6 50%, #ffffff 65%);
  background-size: 220% 100%;
  border: 1px solid #d6d3cc;
  border-radius: 0.55rem;
  animation: address-shine 5s ease-in-out infinite;
}

.lock-symbol {
  color: var(--accent);
  font-size: 0.45rem;
}

.fake-chatgpt {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(7rem, 21%) 1fr;
  height: calc(100% - 3.1rem);
  transition: filter 420ms ease, opacity 420ms ease;
}

.animation-stage[data-phase="complete"] .fake-chatgpt {
  filter: blur(2px) brightness(0.42);
  opacity: 0.72;
}

.animation-stage[data-phase="approval"] .fake-chatgpt {
  filter: blur(1px) brightness(0.42);
  opacity: 0.4;
}

.fake-sidebar {
  padding: 1.2rem;
  background: #171717;
  border-right: 1px solid #333333;
}

.fake-sidebar-logo {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
  background: var(--accent);
  border-radius: 0.55rem;
}

.fake-sidebar-logo.is-prodded,
.fake-orb.is-prodded {
  animation: wrong-target 520ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.fake-sidebar-line {
  width: 72%;
  height: 0.55rem;
  margin-bottom: 1rem;
  background: #393939;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #393939, #4a4a4a, #393939);
  background-size: 220% 100%;
  animation: skeleton-shimmer 3.4s ease-in-out infinite;
}

.fake-sidebar-line:nth-child(3) {
  animation-delay: -0.8s;
}

.fake-sidebar-line:nth-child(4) {
  animation-delay: -1.6s;
}

.fake-sidebar-line:nth-child(5) {
  animation-delay: -2.4s;
}

.fake-sidebar-line-wide {
  width: 95%;
}

.fake-sidebar-line-short {
  width: 48%;
}

.fake-chat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 50% 25%, rgba(16, 163, 127, 0.08), transparent 16rem),
    #212121;
}

.fake-chat-heading {
  display: grid;
  place-items: center;
  margin-bottom: clamp(1.4rem, 5vw, 2.6rem);
  color: #f3f3f3;
}

.fake-chat-heading p {
  margin: 0.7rem 0 0;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 700;
  animation: heading-question-breathe 3.2s ease-in-out infinite;
}

.fake-orb {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #ffffff;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent), #5fd5b7);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(16, 163, 127, 0.24);
}

.fake-orb.is-judging {
  animation: orb-judgment 620ms ease-in-out infinite alternate;
}

.fake-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: min(40rem, 100%);
  min-height: 4rem;
  padding: 0.8rem;
  color: #ececec;
  background: #303030;
  border: 1px solid #474747;
  border-radius: 1.5rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.fake-composer.is-focused {
  border-color: rgba(95, 213, 183, 0.85);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.18), 0 14px 40px rgba(0, 0, 0, 0.22);
  animation: composer-attention 1.4s ease-in-out infinite alternate;
}

.fake-message {
  max-height: 7rem;
  min-height: 1.5rem;
  padding: 0.35rem 0.45rem;
  overflow: hidden auto;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.fake-message.is-typing::after {
  display: inline-block;
  width: 0.1em;
  height: 1em;
  margin-left: 0.1em;
  vertical-align: -0.12em;
  content: "";
  background: #ffffff;
  animation: caret-blink 640ms step-end infinite;
}

.fake-composer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fake-voice-button,
.fake-send-button {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #8b8b8b;
  font-weight: 900;
  background: #4a4a4a;
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.fake-voice-button {
  color: #b6b6b6;
  font-size: 0.55rem;
  background: #3d3d3d;
}

.fake-voice-button.is-mistake {
  color: #ffffff;
  background: var(--red);
  animation: voice-mistake 480ms ease;
}

.fake-send-button.is-ready {
  color: #12201b;
  background: #ffffff;
}

.fake-send-button.is-pressed {
  color: #ffffff;
  background: var(--accent);
  transform: scale(0.82);
}

.effort-meter {
  position: absolute;
  top: 4rem;
  left: 1rem;
  z-index: 7;
  width: min(14rem, 34%);
  padding: 0.58rem 0.7rem;
  color: #ffffff;
  background: rgba(23, 23, 23, 0.84);
  border: 1px solid rgba(var(--phase-rgb), 0.62);
  border-radius: 0.7rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 1.4rem rgba(var(--phase-rgb), 0.12);
  backdrop-filter: blur(8px);
  transition: border-color 360ms ease, box-shadow 360ms ease, opacity 360ms ease, transform 360ms ease;
}

.recipient-diagnostic {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.42rem;
  padding-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.recipient-diagnostic > span {
  width: 0.44rem;
  height: 0.44rem;
  background: rgb(var(--phase-rgb));
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(var(--phase-rgb), 0.5);
  animation: diagnostic-scan 1.8s ease-in-out infinite;
}

.animation-stage[data-phase="judging"] .effort-meter {
  animation: diagnostic-verdict 560ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.animation-stage[data-phase="complete"] .effort-meter {
  opacity: 0.62;
  transform: rotate(-1deg) scale(0.97);
}

.effort-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.58rem;
  font-weight: 850;
}

.effort-meter strong {
  color: rgb(var(--phase-rgb));
  font-variant-numeric: tabular-nums;
  transition: color 360ms ease;
}

.effort-meter-track {
  height: 0.28rem;
  margin-top: 0.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.effort-meter-track span {
  display: block;
  width: 7%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), rgb(var(--phase-rgb)));
  border-radius: inherit;
  transition: width 420ms ease;
}

.judgment-bubble {
  position: absolute;
  top: 29%;
  left: 59%;
  z-index: 9;
  width: max-content;
  max-width: 15rem;
  padding: 0.58rem 0.75rem;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 1rem 1rem 1rem 0.2rem;
  box-shadow: 4px 4px 0 var(--yellow);
  opacity: 0;
  transform: translateY(0.7rem) rotate(3deg) scale(0.7);
}

.judgment-bubble.is-visible {
  animation: judgment-in 420ms cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}

.delegation-approval {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 10;
  display: grid;
  width: min(28rem, 82%);
  padding: 1.15rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.98);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  box-shadow: 10px 10px 0 rgba(255, 215, 90, 0.9), 0 24px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, -44%) rotate(-2deg) scale(0.72);
  transition: transform 360ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

.delegation-approval.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-2deg) scale(1);
}

.delegation-approval-kicker {
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.delegation-approval strong {
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  line-height: 1.15;
}

.delegation-approval p {
  margin: 0.5rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.delegation-confirm-button {
  justify-self: start;
  padding: 0.58rem 0.75rem;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  background: var(--ink);
  border-radius: 0.6rem;
  transition: background 180ms ease, transform 180ms ease;
}

.delegation-confirm-button.is-confirmed {
  background: var(--accent);
  animation: approval-confirm 480ms ease;
}

.stage-toast {
  position: absolute;
  top: 4.15rem;
  left: 50%;
  z-index: 9;
  display: grid;
  min-width: min(22rem, 76%);
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  box-shadow: 5px 5px 0 rgba(23, 33, 29, 0.32);
  opacity: 0;
  transform: translate(-50%, -1rem) rotate(-1deg);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-1deg);
}

.stage-toast strong {
  color: var(--accent-dark);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-toast span {
  margin-top: 0.18rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.key-confetti {
  position: absolute;
  inset: 3.1rem 0 0 21%;
  z-index: 5;
  pointer-events: none;
}

.key-confetti span {
  position: absolute;
  bottom: 20%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 0.35rem;
  box-shadow: 3px 3px 0 var(--accent);
  opacity: 0;
}

.key-confetti.is-active span {
  animation: key-flight 1.65s ease-in-out infinite;
}

.key-confetti span:nth-child(2) { animation-delay: -0.25s; --key-x: -11rem; --key-rotation: -38deg; }
.key-confetti span:nth-child(3) { animation-delay: -0.52s; --key-x: -5.5rem; --key-rotation: 26deg; }
.key-confetti span:nth-child(4) { animation-delay: -0.78s; --key-x: 4rem; --key-rotation: -24deg; }
.key-confetti span:nth-child(5) { animation-delay: -1.04s; --key-x: 8.5rem; --key-rotation: 42deg; }
.key-confetti span:nth-child(6) { animation-delay: -1.3s; --key-x: 12rem; --key-rotation: -18deg; }

.fake-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 12;
  width: 2.6rem;
  height: 3.2rem;
  pointer-events: none;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.38));
  transform: translate3d(-5rem, -5rem, 0);
  transform-origin: 0 0;
  transition: opacity 180ms ease;
}

.animation-stage[data-phase="complete"] .fake-pointer {
  opacity: 0;
}

.pointer-trail {
  position: absolute;
  top: 0.75rem;
  left: 0.3rem;
  z-index: -1;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: pointer-trail 1.1s ease-out infinite;
}

.pointer-trail-two {
  animation-delay: -0.35s;
}

.pointer-trail-three {
  animation-delay: -0.7s;
}

.fake-pointer svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fake-pointer path {
  fill: #ffffff;
  stroke: #101613;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.fake-pointer.is-clicking svg {
  animation: pointer-click 220ms ease;
}

.pointer-label {
  position: absolute;
  top: 2.5rem;
  left: 2.1rem;
  width: max-content;
  padding: 0.38rem 0.55rem;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  transform: rotate(-3deg);
  transition: opacity 120ms ease, transform 180ms ease;
}

.fake-pointer.is-near-right .pointer-label {
  right: 2.1rem;
  left: auto;
  transform: rotate(3deg);
}

.fake-pointer.is-moving .pointer-label {
  opacity: 0;
}

.success-stamp {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: 80%;
  padding: 0.8rem 1.2rem;
  color: #ffffff;
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 950;
  text-align: center;
  background: var(--red);
  border: 4px solid #ffffff;
  border-radius: 0.8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(2.4);
}

.success-stamp.is-visible {
  animation: stamp-in 540ms cubic-bezier(0.16, 1.4, 0.3, 1) forwards;
}

.redirect-countdown {
  position: absolute;
  top: calc(51% + 4rem);
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: 82%;
  padding: 0.46rem 0.75rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  background: rgba(23, 33, 29, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(-50%);
}

.redirect-countdown.is-visible {
  opacity: 1;
}

.redirect-countdown.is-ticking {
  animation: countdown-pop 420ms ease;
}

.achievement-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  display: grid;
  max-width: min(20rem, 50%);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  box-shadow: 5px 5px 0 var(--red);
  opacity: 0;
  transform: translateX(-130%) rotate(-6deg);
}

.achievement-card.is-visible {
  animation: achievement-in 620ms 180ms cubic-bezier(0.18, 1.45, 0.35, 1) forwards;
}

.achievement-card span {
  color: #9a261f;
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.achievement-card strong {
  margin-top: 0.18rem;
  font-size: 0.76rem;
  line-height: 1.2;
}

.achievement-card small {
  margin-top: 0.25rem;
  color: rgba(23, 33, 29, 0.7);
  font-size: 0.58rem;
}

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

.final-confetti span {
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 0.7rem;
  height: 1.2rem;
  background: var(--yellow);
  opacity: 0;
}

.final-confetti.is-active span {
  animation: confetti-fall 1.8s ease-in forwards;
}

.final-confetti span:nth-child(2n) { background: var(--accent); }
.final-confetti span:nth-child(3n) { background: var(--red); }
.final-confetti span:nth-child(1) { left: 9%; animation-delay: 0.1s; --confetti-turn: 260deg; }
.final-confetti span:nth-child(2) { left: 17%; animation-delay: 0.35s; --confetti-turn: -320deg; }
.final-confetti span:nth-child(3) { left: 28%; animation-delay: 0.05s; --confetti-turn: 420deg; }
.final-confetti span:nth-child(4) { left: 37%; animation-delay: 0.5s; --confetti-turn: -280deg; }
.final-confetti span:nth-child(5) { left: 45%; animation-delay: 0.22s; --confetti-turn: 360deg; }
.final-confetti span:nth-child(6) { left: 54%; animation-delay: 0.42s; --confetti-turn: -400deg; }
.final-confetti span:nth-child(7) { left: 61%; animation-delay: 0.12s; --confetti-turn: 310deg; }
.final-confetti span:nth-child(8) { left: 69%; animation-delay: 0.55s; --confetti-turn: -380deg; }
.final-confetti span:nth-child(9) { left: 76%; animation-delay: 0.28s; --confetti-turn: 440deg; }
.final-confetti span:nth-child(10) { left: 84%; animation-delay: 0.08s; --confetti-turn: -300deg; }
.final-confetti span:nth-child(11) { left: 91%; animation-delay: 0.46s; --confetti-turn: 390deg; }
.final-confetti span:nth-child(12) { left: 96%; animation-delay: 0.2s; --confetti-turn: -430deg; }

@keyframes reveal-child {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes page-drift {
  to {
    background-position: 2rem -1rem, -2rem 1.5rem, 1rem 0.5rem, 0 0;
  }
}

@keyframes ambient-yellow-drift {
  from { transform: translate3d(0, var(--parallax-far-y), 0) rotate(0deg); }
  to { transform: translate3d(2rem, calc(var(--parallax-far-y) + 1rem), 0) rotate(18deg); }
}

@keyframes ambient-green-drift {
  from { transform: translate3d(0, var(--parallax-near-y), 0) rotate(0deg); }
  to { transform: translate3d(-2.4rem, calc(var(--parallax-near-y) - 1rem), 0) rotate(-22deg); }
}

@keyframes ambient-red-drift {
  from { transform: translate3d(-1rem, var(--parallax-far-y), 0) rotate(-8deg) scale(0.9); }
  to { transform: translate3d(2rem, calc(var(--parallax-far-y) + 2rem), 0) rotate(16deg) scale(1.08); }
}

@keyframes background-left-float {
  from { transform: translate3d(0, var(--parallax-near-y), 0) rotate(-9deg); }
  to { transform: translate3d(1.4rem, calc(var(--parallax-near-y) - 1.2rem), 0) rotate(-6deg); }
}

@keyframes background-right-float {
  from { transform: translate3d(0, var(--parallax-far-y), 0) rotate(7deg); }
  to { transform: translate3d(-1.2rem, calc(var(--parallax-far-y) + 1rem), 0) rotate(10deg); }
}

@keyframes sticker-left-bob {
  to { transform: translateY(-0.7rem) rotate(-7deg); }
}

@keyframes sticker-top-bob {
  to { transform: translateY(-0.45rem) rotate(1deg) scale(1.04); }
}

@keyframes form-accent-drift {
  to { transform: translate3d(-2rem, -1rem, 0) scale(1.15); }
}

@keyframes assurance-float {
  0%, 72%, 100% { transform: translateY(0) rotate(0deg); }
  84% { transform: translateY(-0.14rem) rotate(6deg); }
}

@keyframes question-cue-breathe {
  50% {
    color: rgba(92, 124, 250, 0.14);
    text-shadow: 0 0 1.4rem rgba(92, 124, 250, 0.12);
  }
}

@keyframes highlight-wiggle {
  from { transform: rotate(-1deg) scaleX(0.94); }
  to { transform: rotate(1deg) scaleX(1.02); }
}

@keyframes arrow-nag {
  0%, 65%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  74% { transform: translate3d(0.14rem, -0.14rem, 0) rotate(6deg); }
  84% { transform: translate3d(-0.04rem, 0.04rem, 0) rotate(-2deg); }
}

@keyframes button-sweep {
  0%, 58% { transform: translateX(-7rem) rotate(22deg); }
  82%, 100% { transform: translateX(66rem) rotate(22deg); }
}

@keyframes action-confirm {
  32% { transform: translateY(0) scale(0.975); }
  68% { transform: translateY(-0.2rem) scale(1.012); }
}

@keyframes error-arrival {
  0% { opacity: 0; transform: translateX(-0.7rem); }
  35% { transform: translateX(0.4rem); }
  70% { transform: translateX(-0.18rem); }
}

@keyframes copy-confirm {
  40% { transform: translateY(-0.2rem) rotate(-2deg) scale(1.08); }
}

@keyframes header-arrival {
  from { opacity: 0; transform: translateY(-1rem); }
}

@keyframes animation-copy-arrival {
  from { opacity: 0; transform: translateY(1.2rem); }
}

@keyframes recipient-label-shift {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes timeline-arrival {
  from { opacity: 0; transform: translateY(0.8rem) scale(0.96); }
}

@keyframes stage-arrival {
  from { opacity: 0; transform: translateY(1.2rem) scale(0.975); }
}

@keyframes ribbon-breathe {
  50% { filter: saturate(1.2); transform: rotate(38deg) translateX(0.35rem); }
}

@keyframes window-dot-breathe {
  50% { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35); transform: scale(0.82); }
}

@keyframes address-shine {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0 0; }
}

@keyframes skeleton-shimmer {
  0%, 45% { background-position: 100% 0; }
  85%, 100% { background-position: 0 0; }
}

@keyframes heading-question-breathe {
  50% { color: #ffffff; letter-spacing: 0.012em; transform: translateY(-0.08rem); }
}

@keyframes ambient-orbit {
  to { transform: rotate(360deg); }
}

@keyframes phase-aura-orbit {
  to { transform: rotate(360deg) scale(1.04); }
}

@keyframes diagnostic-scan {
  50% {
    box-shadow: 0 0 0 0.34rem rgba(var(--phase-rgb), 0.08);
    transform: scale(1.18);
  }
}

@keyframes diagnostic-verdict {
  32% { transform: translateX(-0.24rem) rotate(-1deg); }
  64% { transform: translateX(0.18rem) rotate(0.8deg); }
}

@keyframes brand-pulse {
  50% {
    box-shadow: 0 0 0 0.45rem rgba(16, 163, 127, 0.12);
    transform: rotate(18deg) scale(1.08);
  }
}

@keyframes stage-celebration {
  20% { transform: rotate(-0.7deg) scale(1.01); }
  45% { transform: rotate(0.8deg) scale(1.02); }
  70% { transform: rotate(-0.35deg) scale(1.01); }
}

@keyframes scanline-pass {
  from { transform: translateY(-6rem); }
  to { transform: translateY(31rem); }
}

@keyframes wrong-target {
  35% { color: var(--ink); background: var(--yellow); transform: rotate(-12deg) scale(1.28); }
  70% { transform: rotate(8deg) scale(0.92); }
}

@keyframes orb-judgment {
  from { transform: translateX(-0.22rem) rotate(-6deg) scale(0.94); }
  to { transform: translateX(0.22rem) rotate(6deg) scale(1.08); box-shadow: 0 0 0 0.45rem rgba(255, 107, 94, 0.18); }
}

@keyframes judgment-in {
  to {
    opacity: 1;
    transform: translateY(0) rotate(3deg) scale(1);
  }
}

@keyframes composer-attention {
  to {
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.12), 0 18px 48px rgba(0, 0, 0, 0.28);
  }
}

@keyframes voice-mistake {
  20% { transform: translateX(-0.3rem) rotate(-8deg); }
  45% { transform: translateX(0.3rem) rotate(8deg); }
  70% { transform: translateX(-0.15rem) rotate(-4deg); }
}

@keyframes approval-confirm {
  35% { transform: scale(0.86) rotate(-2deg); }
  70% { transform: scale(1.08) rotate(1deg); }
}

@keyframes key-flight {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.5);
  }
  20% { opacity: 0.95; }
  75% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate3d(var(--key-x, -8rem), -11rem, 0) rotate(var(--key-rotation, 32deg)) scale(1.1);
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@keyframes pointer-click {
  50% {
    transform: scale(0.78);
  }
}

@keyframes pointer-trail {
  from {
    opacity: 0.75;
    transform: translate3d(0, 0, 0) scale(0.75);
  }
  to {
    opacity: 0;
    transform: translate3d(-2.4rem, -1.4rem, 0) scale(0.1);
  }
}

@keyframes stamp-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

@keyframes countdown-pop {
  50% { transform: translateX(-50%) scale(1.35) rotate(-4deg); }
}

@keyframes achievement-in {
  to {
    opacity: 1;
    transform: translateX(0) rotate(-2deg);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, -2rem, 0) rotate(0deg);
  }
  100% {
    opacity: 0.9;
    transform: translate3d(2rem, 34rem, 0) rotate(var(--confetti-turn));
  }
}

@media (max-height: 820px) and (min-width: 681px) {
  .animation-screen {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .animation-header {
    min-height: 2.65rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }

  .animation-copy {
    margin-top: 0.9rem;
    margin-bottom: 0.65rem;
  }

  .animation-copy .eyebrow {
    margin-bottom: 0.42rem;
    font-size: 0.66rem;
  }

  .animation-copy h1 {
    max-width: 50rem;
    font-size: clamp(1.8rem, 4vw, 3.3rem);
  }

  .animation-status {
    margin-top: 0.48rem;
    font-size: 0.88rem;
  }

  .phase-timeline {
    margin-bottom: 0.55rem;
  }

  .phase-timeline > span {
    min-height: 1.8rem;
    padding-top: 0.24rem;
    padding-bottom: 0.24rem;
  }

  .animation-stage {
    width: min(54rem, 100%);
    min-height: 21rem;
    aspect-ratio: 16 / 7;
  }

}

@media (max-width: 680px) {
  .generator-screen {
    align-items: center;
    padding: clamp(0.55rem, 2vh, 1rem) 1rem;
  }

  .generator-card {
    margin-top: 0;
  }

  .hero-block > h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .hero-stickers {
    display: none;
  }

  .link-card-grid {
    grid-template-columns: 1fr;
  }

  .animation-header {
    align-items: center;
  }

  .mini-brand span:last-child {
    display: none;
  }

  .animation-stage {
    aspect-ratio: auto;
    min-height: 23rem;
  }

  .phase-timeline {
    width: 100%;
    padding: 0.25rem;
  }

  .phase-timeline > span {
    min-height: 1.8rem;
    padding: 0.25rem 0.18rem;
    font-size: 0.5rem;
  }

  .phase-timeline b {
    display: none;
  }

  .browser-toolbar {
    grid-template-columns: 4rem 1fr 4rem;
  }

  .fake-chatgpt {
    grid-template-columns: 1fr;
  }

  .fake-sidebar {
    display: none;
  }

  .fake-chat-main {
    height: 100%;
    padding: 1.25rem;
  }

  .pointer-label {
    display: none;
  }

  .key-confetti {
    left: 0;
  }

  .stage-ribbon {
    right: -5rem;
  }

  .effort-meter {
    top: 3.7rem;
    left: 0.65rem;
    width: 10rem;
  }

  .effort-summary {
    font-size: 0.5rem;
  }

  .recipient-diagnostic {
    font-size: 0.42rem;
    letter-spacing: 0.06em;
  }

  .judgment-bubble {
    top: 30%;
    left: 48%;
    max-width: 11rem;
  }

  .delegation-approval {
    width: 88%;
  }

  .achievement-card {
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: 68%;
  }

}

@media (hover: none) {
  .pointer-glow {
    display: none;
  }
}

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