:root {
  --ink: #17130f;
  --paper: #fff8ec;
  --cream: #fffdf7;
  --coral: #ff684f;
  --sun: #ffd447;
  --blue: #2367ff;
  --mint: #22c58b;
  --pink: #ff89b7;
  --line: rgba(23, 19, 15, 0.18);
  --heavy-line: rgba(23, 19, 15, 0.92);
  --shadow: 0 28px 80px rgba(32, 22, 14, 0.18);
  --glass: rgba(255, 253, 247, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 212, 71, 0.34), transparent 30%),
    linear-gradient(300deg, rgba(34, 197, 139, 0.22), transparent 34%),
    var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button {
  color: inherit;
}

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

#motionCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.56;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.topbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 58px;
}

.mini-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 12px 14px;
  border: 2px solid var(--heavy-line);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0;
}

.mini-brand span:last-child {
  color: var(--coral);
}

.language-switch {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border: 2px solid var(--heavy-line);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
}

.lang-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
}

.lang-button.active {
  background: var(--ink);
  color: var(--paper);
}

.lang-button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.ticker {
  overflow: hidden;
  border: 2px solid var(--heavy-line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 12px 18px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  animation: scrollTicker 26s linear infinite;
}

.ticker-track span {
  position: relative;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "/";
  position: absolute;
  right: -22px;
  color: var(--sun);
}

.hero {
  display: grid;
  justify-items: center;
  min-height: calc(100svh - 112px);
  padding: 54px 0 38px;
  text-align: center;
}

.wordmark {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: clamp(2px, 0.8vw, 10px);
  margin-top: 10px;
  perspective: 900px;
}

.wordmark span {
  display: inline-grid;
  place-items: center;
  width: clamp(38px, 9vw, 128px);
  aspect-ratio: 0.78;
  border: 3px solid var(--heavy-line);
  border-radius: 24px;
  background: var(--cream);
  box-shadow:
    0 10px 0 var(--ink),
    0 22px 38px rgba(23, 19, 15, 0.14);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 10vw, 8.7rem);
  font-weight: 900;
  line-height: 0.8;
  animation: letterDance 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.16s);
}

.wordmark span:nth-child(2n) {
  background: var(--sun);
}

.wordmark span:nth-child(3n) {
  background: var(--mint);
}

.wordmark span:nth-child(4n) {
  background: var(--pink);
}

.eyebrow {
  margin: 42px 0 12px;
  padding: 9px 13px;
  border: 2px solid var(--heavy-line);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
}

h1 {
  max-width: 990px;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(3rem, 8vw, 7.8rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(23, 19, 15, 0.76);
  text-wrap: balance;
  font-size: clamp(1.18rem, 2.1vw, 1.58rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  max-width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--heavy-line);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 950;
  line-height: 1.05;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease;
}

.primary-button {
  background: var(--coral);
  color: #fff;
}

.secondary-button {
  background: var(--cream);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 8px 8px 0 var(--ink);
  filter: saturate(1.08);
}

.primary-button:active,
.secondary-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.close-button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.idea-card {
  width: min(760px, 100%);
  min-height: 72px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 2px solid var(--heavy-line);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  font-weight: 850;
  line-height: 1.35;
}

.idea-card.pop {
  animation: ideaPop 420ms ease both;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.signal-card {
  min-height: 240px;
  padding: 22px;
  border: 2px solid var(--heavy-line);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--ink);
}

.tilt-one {
  transform: rotate(-1.5deg);
}

.tilt-two {
  background: var(--sun);
  transform: rotate(1deg);
}

.tilt-three {
  background: var(--mint);
  transform: rotate(-0.6deg);
}

.signal-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--heavy-line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 950;
}

.signal-card h2,
.use-machine h2,
.offer-form h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.signal-card p {
  margin: 0;
  color: rgba(23, 19, 15, 0.78);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.45;
}

.play-zone {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 30px;
}

.quote-stage,
.use-machine {
  border: 2px solid var(--heavy-line);
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 rgba(23, 19, 15, 0.35);
}

.quote-stage {
  min-height: 310px;
  padding: clamp(24px, 5vw, 46px);
}

.stage-label {
  margin: 0 0 18px;
  color: var(--sun);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 950;
}

blockquote {
  margin: 0;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
}

blockquote.swap {
  animation: quoteSwap 520ms ease both;
}

.use-machine {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 104, 79, 0.34), transparent 42%),
    var(--blue);
}

.use-machine h2 {
  margin-top: 0;
}

.future-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.future-list span {
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: fit-content;
  max-width: 100%;
  margin: 34px auto 0;
  padding: 13px 18px;
  border: 2px solid var(--heavy-line);
  border-radius: 999px;
  background: var(--glass);
  color: rgba(23, 19, 15, 0.86);
  text-align: center;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.offer-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.offer-dialog::backdrop {
  background: rgba(23, 19, 15, 0.58);
  backdrop-filter: blur(6px);
}

.offer-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 3px solid var(--heavy-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 212, 71, 0.54), transparent 44%),
    var(--cream);
  box-shadow: 10px 10px 0 var(--ink);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--heavy-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-weight: 950;
}

.dialog-kicker {
  margin: 0;
  color: var(--coral);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 950;
}

.offer-form h2 {
  margin: 0;
  max-width: 440px;
}

.offer-form label {
  font-weight: 950;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--heavy-line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

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

.evaluation {
  min-height: 54px;
  margin: 0;
  padding: 14px;
  border: 2px dashed rgba(23, 19, 15, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 850;
  line-height: 1.35;
}

.form-sink {
  display: none;
}

@keyframes scrollTicker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes letterDance {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateZ(-1deg);
  }

  50% {
    transform: translateY(-16px) rotateX(7deg) rotateZ(1.5deg);
  }
}

@keyframes ideaPop {
  0% {
    transform: scale(0.98) rotate(-0.5deg);
  }

  55% {
    transform: scale(1.03) rotate(0.7deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes quoteSwap {
  0% {
    opacity: 0;
    transform: translateY(14px) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 24px, 720px);
  }

  .topbar,
  .play-zone {
    grid-template-columns: 1fr;
  }

  .ticker {
    order: -1;
  }

  .language-switch {
    width: fit-content;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-card,
  .tilt-one,
  .tilt-two,
  .tilt-three {
    min-height: 0;
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 20px, 520px);
    padding-top: 14px;
  }

  .topbar {
    gap: 12px;
  }

  .mini-brand,
  .ticker {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 28px;
  }

  .wordmark span {
    border-radius: 14px;
    border-width: 2px;
    box-shadow:
      0 6px 0 var(--ink),
      0 14px 28px rgba(23, 19, 15, 0.14);
  }

  .eyebrow {
    margin-top: 32px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .offer-form {
    padding: 24px 18px 18px;
  }
}

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

  #motionCanvas {
    display: none;
  }
}
