:root {
  color-scheme: light;
  --page: #d6d6d3;
  --surface: #f4f4f1;
  --surface-soft: #e9e9e5;
  --ink: #080808;
  --muted: #777772;
  --line: #d0d0ca;
  --dark: #050505;
  --accent: #c76b2b;
  --accent-2: #e7a25e;
  --white: #ffffff;
  --radius: 26px;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell {
  width: min(1720px, calc(100% - 56px));
  margin: 48px auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.brand,
.nav-links,
.nav-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.brand {
  font-weight: 760;
}

.brand-glyph {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, transparent 38%, var(--ink) 38% 62%, transparent 62%),
    linear-gradient(var(--ink) 0 0);
  clip-path: polygon(50% 0, 100% 34%, 84% 100%, 16% 100%, 0 34%);
}

.nav-links {
  justify-content: center;
}

.nav-meta {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 0.75fr);
  gap: 34px;
  min-height: 680px;
  padding: 72px 34px 34px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-left: 10px;
}

.eyebrow,
.section-kicker,
.micro-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 4.5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede,
.section-copy p,
.section-split-head p,
.export-card p {
  max-width: 560px;
  margin-top: 22px;
  color: #5e5e59;
  font-size: 18px;
  line-height: 1.5;
}

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

.pill-button,
.flow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 700;
}

.pill-button.dark {
  background: var(--dark);
  color: var(--white);
}

.pill-button.light {
  background: #deded9;
  color: #9b9b94;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: #777771;
  font-size: 13px;
}

.hero-rating span:first-child {
  color: var(--accent);
}

.no-break {
  white-space: nowrap;
}

.hero-whip-card,
.hero-preview-card {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  padding: 18px;
  border-radius: 34px;
}

.hero-whip-card {
  padding: 18px;
}

.hero-preview-card {
  padding: 18px;
}

.whip-card-head,
.preview-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.whip-card-head strong,
.preview-card-head strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.round-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #dcdcd8;
  cursor: pointer;
  font-size: 20px;
}

.hero-wordmark {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 12px;
  color: rgba(0, 0, 0, 0.045);
  font-size: clamp(86px, 17vw, 250px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  white-space: nowrap;
  pointer-events: none;
}

.fixed-whip-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 54% 36%, rgba(255, 82, 64, 0.22), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 31%),
    linear-gradient(180deg, #141414, #020202);
}

.fixed-whip-stage::before,
.fixed-whip-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.fixed-whip-stage::before {
  top: 30%;
}

.fixed-whip-stage::after {
  bottom: 28%;
}

.fixed-whip-stage canvas {
  position: relative;
  z-index: 1;
  width: min(360px, 84%);
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(232, 76, 61, 0.22));
  animation: fixedWhipBreathe 2.8s ease-in-out infinite;
}

.fixed-whip-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 999px;
  background: rgba(246, 246, 243, 0.92);
  color: var(--dark);
  padding: 14px 18px;
}

.fixed-whip-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fixed-whip-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hero-status-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: #e5e5e0;
  color: #6e6e68;
  font-size: 12px;
  font-weight: 800;
}

.stage-window {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #131313, #020202);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: auto 0 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.cursor-dot {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2f2ee;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.sprite-preview {
  position: absolute;
  left: calc(50% + 12px);
  top: calc(44% - 144px);
  width: 192px;
  height: 208px;
  transform-origin: 50% 78%;
  image-rendering: pixelated;
}

.sprite-preview canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.sprite-preview.snap,
.sprite-preview.waving {
  animation: snap 1.2s steps(4, end) infinite;
}

.sprite-preview.bounce {
  animation: bounce 1s cubic-bezier(.2, .8, .2, 1) infinite;
}

.sprite-preview.shake {
  animation: shake 0.55s linear infinite;
}

.sprite-preview.pulse {
  animation: pulse 1.15s ease-in-out infinite;
}

.sprite-preview.spin {
  animation: spin 1.35s cubic-bezier(.32, .72, .2, 1) infinite;
}

.sprite-preview.swing {
  animation: swing 1.25s ease-in-out infinite;
}

.sprite-preview.pop {
  animation: pop 1s cubic-bezier(.2, 1.1, .18, 1) infinite;
}

.sprite-preview.float,
.sprite-preview.waiting {
  animation: wait 1.1s ease-in-out infinite;
}

.sprite-preview.dash {
  animation: dash 0.95s cubic-bezier(.2, .8, .2, 1) infinite;
}

.sprite-preview.jitter {
  animation: jitter 0.38s steps(2, end) infinite;
}

.sprite-preview.squash {
  animation: squash 0.9s cubic-bezier(.2, .85, .2, 1) infinite;
}

.sprite-preview.stretch {
  animation: stretch 0.92s cubic-bezier(.2, .85, .2, 1) infinite;
}

.sprite-preview.flip {
  animation: flip 1.15s cubic-bezier(.22, .75, .22, 1) infinite;
}

.sprite-preview.blink {
  animation: blink 1.05s steps(2, end) infinite;
}

.sprite-preview.zoom {
  animation: zoom 0.95s cubic-bezier(.2, .9, .25, 1) infinite;
}

.sprite-preview.drop {
  animation: drop 1.05s cubic-bezier(.2, .8, .2, 1) infinite;
}

.sprite-preview.rise {
  animation: rise 1.05s cubic-bezier(.2, .8, .2, 1) infinite;
}

.sprite-preview.orbit {
  animation: orbit 1.4s linear infinite;
}

.sprite-preview.tilt {
  animation: tilt 1s ease-in-out infinite;
}

.sprite-preview.settle,
.sprite-preview.review {
  animation: settle 1.25s ease-in-out infinite;
}

.sprite-preview.running {
  animation: run 0.48s steps(2, end) infinite;
}

.bubble-preview {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 36px));
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #090909;
  text-align: center;
  font-weight: 800;
  line-height: 1.35;
}

.swatch-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.swatch {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.swatch.active {
  outline: 3px solid var(--dark);
  outline-offset: 2px;
}

.flow-section {
  padding: 70px 34px 78px;
  text-align: center;
  background: var(--white);
}

.flow-section h2 {
  margin: 14px auto 0;
  max-width: 760px;
}

.flow-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1060px;
  margin: 56px auto 0;
}

.flow-pill {
  min-height: 104px;
  border-radius: 999px;
  background: #eeeeeb;
  color: #111;
  font-size: clamp(20px, 3vw, 44px);
}

.flow-pill.accent {
  background: linear-gradient(90deg, #c66a2a, #aa5421);
  color: #ffd8a8;
}

.flow-pill.arrow {
  background: var(--dark);
  color: var(--white);
  font-size: clamp(20px, 3vw, 44px);
}

.creator-section {
  padding: 76px 34px;
  background: var(--white);
  border-top: 1px solid #ecece8;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr);
  gap: 44px;
  align-items: start;
}

.hero-section > *,
.two-column > *,
.simulation-stack > *,
.flow-pills > *,
.section-split-head > *,
.slot-fields > * {
  min-width: 0;
}

.panel {
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f7f7f4;
  padding: 22px;
}

.drop-zone {
  display: grid;
  gap: 8px;
  min-height: 180px;
  align-content: center;
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed #b9b9b3;
  background: #efefeb;
  cursor: pointer;
}

.drop-zone input {
  display: none;
}

.drop-title {
  font-size: clamp(26px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 850;
}

.drop-hint {
  color: var(--muted);
  font-size: 15px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.simulation-stack {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.simulation-preview-card {
  align-self: stretch;
}

.simulation-preview-card .stage-window {
  min-height: 360px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6d6d1;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  padding: 13px 15px;
  outline: none;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #777 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, #777 50%, transparent 50%) right 11px center / 7px 7px no-repeat,
    #ffffff;
  padding-right: 36px;
}

textarea {
  min-height: 78px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

input[type="range"] {
  accent-color: var(--accent);
  padding: 13px 0;
}

.section-split-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  gap: 34px;
  align-items: end;
  margin-bottom: 32px;
}

.section-split-head p {
  color: var(--muted);
  line-height: 1.55;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.slot-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid #deded9;
  background: #f5f5f2;
  border-radius: 28px;
  padding: 18px;
}

.slot-card.active {
  border-color: #222;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.slot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.slot-head strong {
  display: block;
  font-size: 22px;
}

.slot-key {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.slot-color {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.slot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.slot-fields label:last-child {
  grid-column: 1 / -1;
}

.export-section {
  padding: 34px;
  background: var(--white);
}

.export-card {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 24px;
  align-items: end;
  min-height: 420px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.12), transparent 18%),
    #050505;
  color: var(--white);
  padding: 46px;
}

.export-card .section-kicker,
.export-card p {
  color: #9d9d98;
}

.export-list {
  display: grid;
  gap: 10px;
  color: #bdbdb8;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

.download-action {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  padding: 18px 26px;
  font-weight: 850;
  cursor: pointer;
}

@keyframes snap {
  0% { transform: rotate(-7deg) scale(0.95); }
  35% { transform: rotate(15deg) scale(1.08); }
  62% { transform: rotate(-18deg) scale(1.14); }
  100% { transform: rotate(4deg) scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-42px) scale(0.96, 1.06); }
  72% { transform: translateY(5px) scale(1.08, 0.92); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(-14px) rotate(-5deg); }
  36% { transform: translateX(13px) rotate(5deg); }
  54% { transform: translateX(-9px) rotate(-3deg); }
  72% { transform: translateX(8px) rotate(3deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.15); }
  58% { transform: scale(0.96); }
}

@keyframes spin {
  0% { transform: rotate(0) scale(0.94); }
  70% { transform: rotate(360deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes swing {
  0%, 100% { transform: rotate(-13deg); }
  50% { transform: rotate(13deg); }
}

@keyframes pop {
  0%, 100% { transform: scale(0.86); opacity: 0.82; }
  28% { transform: scale(1.18); opacity: 1; }
  52% { transform: scale(0.98); }
}

@keyframes wait {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

@keyframes dash {
  0%, 100% { transform: translateX(-28px) skewX(-8deg); }
  45% { transform: translateX(46px) skewX(12deg); }
  62% { transform: translateX(30px) skewX(-4deg); }
}

@keyframes jitter {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-5px, 4px) rotate(-2deg); }
  50% { transform: translate(4px, -4px) rotate(2deg); }
  75% { transform: translate(-3px, -2px) rotate(-1deg); }
  100% { transform: translate(4px, 3px) rotate(1deg); }
}

@keyframes squash {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.18, 0.72) translateY(34px); }
  68% { transform: scale(0.9, 1.16) translateY(-14px); }
}

@keyframes stretch {
  0%, 100% { transform: scale(1); }
  34% { transform: scale(0.78, 1.32) translateY(-18px); }
  66% { transform: scale(1.12, 0.86) translateY(12px); }
}

@keyframes flip {
  0%, 100% { transform: rotateY(0deg); }
  48% { transform: rotateY(180deg) scale(1.08); }
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  40% { opacity: 0.18; transform: scale(0.92); }
  55% { opacity: 1; transform: scale(1.08); }
}

@keyframes zoom {
  0%, 100% { transform: scale(0.72); filter: blur(1px); }
  48% { transform: scale(1.22); filter: blur(0); }
  72% { transform: scale(1); }
}

@keyframes drop {
  0% { transform: translateY(-76px) scale(0.96); opacity: 0.2; }
  44% { transform: translateY(10px) scale(1.05, 0.9); opacity: 1; }
  70%, 100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes rise {
  0% { transform: translateY(72px) scale(0.94); opacity: 0.2; }
  48% { transform: translateY(-10px) scale(1.05); opacity: 1; }
  72%, 100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes tilt {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35% { transform: rotate(-10deg) translateY(-4px); }
  70% { transform: rotate(8deg) translateY(2px); }
}

@keyframes run {
  0% { transform: translateX(-5px) rotate(-4deg); }
  100% { transform: translateX(6px) rotate(4deg); }
}

@keyframes settle {
  0%, 100% { transform: scale(1) rotate(0); }
  35% { transform: scale(0.9) rotate(9deg); }
  68% { transform: scale(1.03) rotate(-2deg); }
}

@keyframes fixedWhipBreathe {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  45% { transform: translateY(-10px) rotate(4deg); }
  70% { transform: translateY(3px) rotate(-1deg); }
}

@media (max-width: 1100px) {
  .site-shell {
    width: min(100% - 24px, 900px);
    margin: 12px auto;
  }

  .top-nav,
  .hero-section,
  .two-column,
  .simulation-stack,
  .section-split-head,
  .export-card {
    grid-template-columns: 1fr;
  }

  .nav-meta {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .flow-pills,
  .slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .top-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-section,
  .creator-section,
  .flow-section,
  .export-section {
    padding: 30px 8px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
    line-height: 1.05;
    line-break: anywhere;
  }

  .flow-section h2 {
    max-width: 300px;
  }

  .flow-pills,
  .slot-list,
  .control-grid,
  .slot-fields {
    grid-template-columns: 1fr;
  }

  .flow-pill {
    min-height: 76px;
  }

  .stage-window {
    min-height: 330px;
  }

  .fixed-whip-stage {
    min-height: 330px;
  }

  .hero-whip-card,
  .hero-preview-card,
  .panel {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-radius: 24px;
  }

  .fixed-whip-stage,
  .stage-window,
  .drop-zone {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
  }

  .hero-section > *,
  .creator-section > *,
  .flow-pills,
  .flow-section h2 {
    max-width: 100%;
  }

  .hero-lede,
  .section-copy p,
  .drop-hint {
    font-size: 14px;
    line-break: anywhere;
  }

  .fixed-whip-copy,
  .hero-status-row {
    grid-template-columns: 1fr;
  }

  .fixed-whip-copy {
    align-items: flex-start;
    border-radius: 22px;
    flex-direction: column;
  }

  .export-card {
    padding: 28px;
  }
}
