:root {
  color-scheme: light;
  --ink: #151515;
  --paper: #fffef0;
  --yellow: #fff476;
  --peach: #ffb278;
  --pink: #ff6f93;
  --hot-pink: #f47bd1;
  --green: #77ec87;
  --mint: #71eadf;
  --line: #151515;
  --muted: #39342f;
  --shadow: 0 10px 0 var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 111, 147, 0.98) 0 14rem, transparent 23rem),
    linear-gradient(115deg, #ff7091 0%, var(--peach) 42%, var(--yellow) 72%, #fff98e 100%);
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.pill,
.button,
.floating-nav,
.faq-button {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brand,
.header-contact,
.hero-actions,
.footer-links,
.floating-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  padding: 0.48rem 1rem 0.48rem 0.55rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.header-contact {
  padding: 0.72rem 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem max(1rem, 4vw) 7rem;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 2px solid var(--line);
  background: var(--hot-pink);
}

.hero::before {
  top: -7rem;
  right: -4rem;
  width: 11rem;
  height: 22rem;
  transform: rotate(-5deg);
}

.hero::after {
  bottom: -5rem;
  left: 43%;
  width: 22rem;
  height: 10rem;
  background: var(--mint);
  transform: rotate(18deg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
  padding: 0.5rem 1.2rem;
  font-weight: 950;
}

.mini-badge {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 0.75rem;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.eyebrow {
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin: 0 auto 1.25rem;
  font-size: clamp(4.2rem, 12vw, 12.8rem);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  font-weight: 1000;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 1000;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 62rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 650;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button-ghost {
  background: var(--paper);
}

.button:hover,
.pill:hover,
.faq-button:hover,
.floating-nav a:hover {
  transform: translateY(-2px);
}

.hero-sticker {
  position: absolute;
  right: max(1rem, 9vw);
  bottom: 8rem;
  display: grid;
  gap: 0.2rem;
  width: 8.2rem;
  min-height: 7rem;
  place-items: center;
  padding: 1rem;
  background: var(--hot-pink);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 0 var(--ink);
  transform: rotate(8deg);
}

.hero-sticker span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-sticker strong {
  font-size: 3.2rem;
  line-height: 0.8;
}

.meaning-section,
.stack-section,
.report-section,
.philosophy-section,
.project-section,
.feedback-section,
.timeline-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.meaning-section,
.report-section,
.project-section,
.feedback-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.section-copy p,
.project-section p,
.report-copy p,
.philosophy-grid p,
.feedback-form p,
.question-list p,
.timeline p,
.site-footer p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 650;
}

.tilt-stack {
  position: relative;
  min-height: 38rem;
}

.tilt-card {
  position: absolute;
  width: min(34rem, 92%);
  min-height: 19rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 10px 10px 0 var(--ink);
}

.tilt-card:nth-child(1) {
  top: 0;
  right: 0;
  transform: rotate(-6deg);
}

.tilt-card:nth-child(2) {
  top: 10.5rem;
  left: 0;
  transform: rotate(5deg);
}

.tilt-card:nth-child(3) {
  right: 3rem;
  bottom: 0;
  transform: rotate(-2deg);
}

.card-green {
  background: linear-gradient(135deg, var(--mint), var(--green));
}

.card-pink {
  background: linear-gradient(135deg, #ffa0a6, var(--hot-pink));
}

.card-yellow {
  background: linear-gradient(135deg, var(--paper), var(--yellow));
}

.card-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 2.5rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 1000;
}

.stack-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.stack-copy {
  position: sticky;
  top: 8rem;
}

.sticky-cards {
  display: grid;
  gap: 2rem;
}

.stack-card {
  position: sticky;
  top: 8rem;
  min-height: 22rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--ink);
}

.stack-card:nth-child(1) {
  background: var(--green);
}

.stack-card:nth-child(2) {
  top: 9.5rem;
  background: var(--hot-pink);
}

.stack-card:nth-child(3) {
  top: 11rem;
  background: var(--yellow);
}

.stack-card span {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 3rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 1000;
}

.report-section {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.report-preview {
  padding: 1rem;
  color: #edf4ed;
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-2deg);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  color: #b9c4b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
}

.preview-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 1.1rem 0 0 var(--green), 2.2rem 0 0 var(--yellow);
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.score-row > div,
.finding,
.mini-log {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.score-row > div {
  min-height: 6.5rem;
  padding: 0.85rem;
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 1000;
  line-height: 1;
}

.metric-label {
  margin-top: 0.55rem;
  color: #bcc9bd;
  font-size: 0.82rem;
}

.finding {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.7rem;
  padding: 0.95rem;
}

.finding-warn {
  border-color: rgba(255, 244, 118, 0.72);
}

.mini-log {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.9rem;
}

.mini-log span {
  padding: 0.35rem 0.5rem;
  color: var(--ink);
  background: var(--green);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 900;
}

.philosophy-section {
  text-align: center;
}

.philosophy-section h2 {
  max-width: 12ch;
  margin-inline: auto;
}

.philosophy-grid,
.feedback-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.philosophy-grid p,
.question-list p,
.feedback-form,
.timeline article {
  margin: 0;
  padding: 1.2rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
}

.question-list {
  display: grid;
  gap: 0.8rem;
}

.feedback-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.feedback-form {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.feedback-form label {
  font-weight: 1000;
  text-transform: uppercase;
}

.feedback-form textarea {
  width: 100%;
  resize: vertical;
  padding: 0.9rem;
  color: var(--ink);
  background: #fffef8;
  border: 2px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.feedback-form .button {
  width: fit-content;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.timeline article {
  min-height: 13rem;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 1000;
}

.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 40;
  gap: clamp(0.7rem, 2vw, 1.7rem);
  padding: 0.75rem 1.35rem;
  transform: translateX(-50%);
}

.floating-nav a {
  color: var(--ink);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 1000;
  text-decoration: none;
  white-space: nowrap;
}

.faq-button {
  position: fixed;
  left: 1.3rem;
  bottom: 1.6rem;
  z-index: 41;
  display: grid;
  min-width: 8.8rem;
  min-height: 4.2rem;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  font-size: 1.3rem;
  font-weight: 1000;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem) 7rem;
  background: var(--ink);
  color: var(--paper);
}

.footer-links {
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(3rem) rotate(var(--card-rotate, 0deg));
  transition:
    opacity 600ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
}

.tilt-card:nth-child(1).is-visible {
  transform: rotate(-6deg) translateY(0);
}

.tilt-card:nth-child(2).is-visible {
  transform: rotate(5deg) translateY(0);
}

.tilt-card:nth-child(3).is-visible {
  transform: rotate(-2deg) translateY(0);
}

.report-preview.is-visible {
  transform: rotate(-2deg) translateY(0);
}

.crawler-page {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0;
}

.crawler-page h1 {
  text-align: left;
  margin-inline: 0;
}

.crawler-panel {
  margin-top: 1rem;
  padding: 1.2rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
}

.crawler-panel h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.token-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.2rem;
}

.token-list code,
.signal-list code {
  word-break: break-word;
}

.signal-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.signal-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--line);
}

.signal-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.signal-list dt {
  color: var(--muted);
  font-weight: 1000;
}

.signal-list dd {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .header-contact {
    display: none;
  }

  .meaning-section,
  .stack-section,
  .report-section,
  .project-section,
  .feedback-section {
    grid-template-columns: 1fr;
  }

  .stack-copy {
    position: relative;
    top: auto;
  }

  .tilt-stack {
    min-height: 44rem;
  }

  .philosophy-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
  }

  .hero {
    padding-top: 7rem;
    text-align: left;
    place-items: start;
  }

  .hero-badge,
  .hero-subtitle,
  h1 {
    margin-left: 0;
    margin-right: 0;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.8rem);
  }

  h2 {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-sticker {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1.5rem;
  }

  .tilt-stack {
    display: grid;
    min-height: auto;
    gap: 1rem;
  }

  .tilt-card {
    position: relative;
    inset: auto !important;
    width: 100%;
    min-height: auto;
    transform: none !important;
  }

  .stack-card {
    position: relative;
    top: auto !important;
    min-height: auto;
  }

  .score-row,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .floating-nav {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    justify-content: space-between;
    overflow-x: auto;
    transform: none;
  }

  .faq-button {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
