*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f3ee;
  --surface: #eceae4;
  --card: #ffffff;
  --border: #e0ddd6;
  --accent: #c0502a;
  --accent-light: #f5e8e3;
  --text: #1c1917;
  --muted: #8f8a84;
  --muted2: #b4afa8;
  --shadow: rgba(28, 25, 23, 1);
  --eye-fill: #fffaf1;
  --eye-ink: #11100f;
  --pupil-x: 0px;
  --pupil-y: 0px;
}

html[data-theme="dark"] {
  --bg: #151210;
  --surface: #221d19;
  --card: #1f1916;
  --border: #3b322d;
  --accent: #ff8d63;
  --accent-light: #442a22;
  --text: #f3ede6;
  --muted: #aba49d;
  --muted2: #7e746b;
  --shadow: rgba(243, 237, 230, 0.88);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Syne", "Segoe UI", sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 56px;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.brand-mascot {
  position: relative;
  width: 44px;
  height: 32px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: default;
  user-select: none;
  --mascot-x: 0px;
  --mascot-y: 0px;
  --eye-width: 17px;
  --eye-height: 13px;
  --eye-scale: 1;
  --eye-lift: 0px;
}

.brand-mascot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 22px;
  height: 10px;
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 999px 999px;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.14s ease, bottom 0.14s ease;
}

.mascot-eye {
  position: relative;
  width: var(--eye-width);
  height: var(--eye-height);
  display: grid;
  place-items: center;
  border: 2px solid var(--eye-ink);
  border-radius: 999px;
  background: var(--eye-fill);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--text) 22%, transparent);
  transition: width 0.16s ease, height 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.mascot-eye::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: -7px;
  height: 3px;
  border-radius: 999px;
  background: var(--eye-ink);
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.14s ease, transform 0.14s ease, top 0.14s ease;
}

.mascot-eye span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--eye-ink);
  transform: translate(var(--mascot-x), var(--mascot-y));
  transition: transform 0.08s linear;
}

.brand-mascot.is-watching .mascot-eye {
  transform: translateY(calc(-1px + var(--eye-lift))) scale(var(--eye-scale));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--text) 26%, transparent);
}

.brand-mascot.is-scared .mascot-eye {
  border-width: 2px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 40%, transparent);
}

.brand-mascot.is-scared .mascot-eye span {
  width: 3px;
  height: 3px;
}

html[data-theme="light"] .brand-mascot:not(.is-happy):not(.is-scared):not(.is-sad) .mascot-eye::before {
  opacity: 1;
  top: -4px;
}

html[data-theme="light"] .brand-mascot:not(.is-happy):not(.is-scared):not(.is-sad) .mascot-eye-left::before {
  transform: rotate(18deg);
}

html[data-theme="light"] .brand-mascot:not(.is-happy):not(.is-scared):not(.is-sad) .mascot-eye-right::before {
  transform: rotate(-18deg);
}

.brand-mascot.is-happy::after,
html[data-theme="dark"] .brand-mascot:not(.is-scared):not(.is-sad)::after {
  opacity: 1;
  bottom: -6px;
}

.brand-mascot.is-sad .mascot-eye {
  width: 18px;
  height: 11px;
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 20%, transparent);
}

.brand-mascot.is-sad .mascot-eye::before {
  opacity: 1;
}

.brand-mascot.is-sad .mascot-eye-left::before {
  transform: rotate(18deg);
}

.brand-mascot.is-sad .mascot-eye-right::before {
  transform: rotate(-18deg);
}

.brand-mascot.is-sad .mascot-eye span {
  transform: translate(0, 3px) scaleY(0.75);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  padding: 7px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--text);
}

main {
  min-height: calc(100vh - 64px);
}

.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 88px 56px 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.hero-left {
  flex: 1;
}

.hero-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-title {
  cursor: default;
  user-select: none;
}

.word-line {
  display: flex;
  align-items: flex-end;
  white-space: nowrap;
}

.word {
  display: inline-flex;
  align-items: flex-end;
}

.line-top {
  color: var(--text);
}

.line-bottom {
  color: var(--accent);
}

.space {
  display: inline-block;
  width: 0.28em;
}

.letter {
  position: relative;
  display: inline-block;
  min-width: 0.45em;
}

.eye-pack {
  position: absolute;
  left: 50%;
  top: 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.07em;
  opacity: 0;
  transform: translate(-50%, 0.18em) scale(0.3) rotate(-2deg);
  transition:
    opacity 0.16s ease,
    transform 0.32s cubic-bezier(0.2, 1.5, 0.25, 1);
  pointer-events: none;
  z-index: 4;
}

.letter:hover .eye-pack,
.letter.is-watching .eye-pack {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) rotate(0deg);
}

.eye {
  position: relative;
  width: 0.31em;
  height: 0.23em;
  display: grid;
  place-items: center;
  border: 0.035em solid var(--eye-ink);
  border-radius: 999px;
  background: var(--eye-fill);
  box-shadow: 0 0.045em 0 rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.eye-pack::before,
.eye-pack::after {
  pointer-events: none;
}

.pupil {
  width: 0.085em;
  height: 0.085em;
  border-radius: 50%;
  background: var(--eye-ink);
  transform: translate(
    calc(var(--pupil-x) * var(--look, 1)),
    calc(var(--pupil-y) * var(--look, 1))
  );
  transition: transform 0.08s linear;
}

.sleepy .eye {
  height: 0.18em;
}

.sleepy .eye::before {
  content: "";
  position: absolute;
  inset: -8% -4% 45%;
  background: var(--eye-fill);
  border-bottom: 0.025em solid var(--eye-ink);
  z-index: 2;
}

.nervous {
  gap: 0.05em;
  transform-origin: center;
}

.nervous::before,
.nervous::after {
  content: "";
  position: absolute;
  top: -0.06em;
  width: 0.19em;
  height: 0.025em;
  background: var(--eye-ink);
}

.nervous::before {
  left: 0.01em;
  transform: rotate(18deg);
}

.nervous::after {
  right: 0.01em;
  transform: rotate(-18deg);
}

.nervous .eye {
  width: 0.22em;
  height: 0.18em;
}

.curious .eye:first-child {
  width: 0.4em;
  height: 0.3em;
}

.curious .eye:last-child {
  width: 0.28em;
  height: 0.22em;
}

.pirate .eye:first-child {
  width: 0.31em;
  height: 0.24em;
  background: var(--eye-ink);
  border-color: var(--eye-fill);
  transform: rotate(-10deg);
}

.pirate .eye:first-child::after {
  content: "";
  position: absolute;
  width: 0.58em;
  height: 0.025em;
  background: var(--eye-ink);
  transform: rotate(22deg);
}

.pirate .eye:first-child .pupil {
  display: none;
}

.crossed .eye:first-child .pupil {
  transform: translate(0.035em, 0.01em);
}

.crossed .eye:last-child .pupil {
  transform: translate(-0.035em, 0.01em);
}

.cyclops .eye {
  width: 0.42em;
  height: 0.34em;
}

.cyclops::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.06em;
  width: 0.44em;
  height: 0.035em;
  background: var(--eye-ink);
  border-radius: 999px;
  transform: translateX(-50%) rotate(-4deg);
}

.cyclops .eye + .eye {
  display: none;
}

.mismatch .eye:first-child {
  width: 0.42em;
  height: 0.32em;
}

.mismatch .eye:last-child {
  width: 0.21em;
  height: 0.17em;
}

.sideeye .pupil {
  transform: translate(0.045em, 0);
}

.sideeye .eye {
  height: 0.2em;
}

.sideeye .eye::before {
  content: "";
  position: absolute;
  inset: 0 0 50%;
  border-bottom: 0.025em solid var(--eye-ink);
  background: var(--eye-fill);
  z-index: 2;
}

.starry .pupil {
  width: 0;
  height: 0;
  background: transparent;
}

.starry .eye::after {
  content: "*";
  color: var(--accent);
  font-size: 0.18em;
  line-height: 1;
  transform: translateY(-0.01em);
}

.starry::before,
.starry::after {
  content: "";
  position: absolute;
  bottom: -0.08em;
  width: 0.16em;
  height: 0.04em;
  border-radius: 999px;
  background: var(--accent);
}

.starry::before {
  left: 0.03em;
  transform: rotate(12deg);
}

.starry::after {
  right: 0.03em;
  transform: rotate(-12deg);
}

.tired .eye::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -0.07em;
  height: 0.035em;
  border-bottom: 0.018em solid rgba(17, 16, 15, 0.72);
  border-radius: 50%;
}

.tired::before,
.tired::after {
  content: "";
  position: absolute;
  bottom: -0.07em;
  width: 0.12em;
  height: 0.055em;
  border-bottom: 0.018em solid rgba(17, 16, 15, 0.72);
  border-radius: 50%;
}

.tired::before {
  left: 0.11em;
}

.tired::after {
  right: 0.11em;
}

.letter-s .eye-pack {
  left: 47%;
  top: 28%;
}

.letter-t .eye-pack {
  top: 19%;
}

.letter-u .eye-pack {
  top: 33%;
}

.letter-f .eye-pack,
.letter-f2 .eye-pack {
  top: 19%;
}

.letter-i .eye-pack {
  top: 18%;
}

.letter-m .eye-pack {
  top: 22%;
}

.letter-a .eye-pack,
.letter-d .eye-pack,
.letter-e .eye-pack {
  top: 28%;
}

.hero-right {
  padding-bottom: 6px;
  text-align: right;
  flex-shrink: 0;
}

.hero-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
  text-align: right;
}

.hero-tagline strong {
  color: var(--text);
  font-weight: 500;
}

.grid-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 56px 100px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px 24px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.card:hover {
  border-color: var(--text);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translate(-2px, -2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.dot-app {
  background: var(--accent);
}

.dot-ext {
  background: #3a7bd5;
}

.dot-tool {
  background: #2daa6e;
}

.card-body {
  flex: 1;
}

.card-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.type-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
}

.card-arrow {
  display: inline-flex;
  color: var(--muted2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.card-arrow svg {
  width: 14px;
  height: 14px;
}

.card:hover .card-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

.card.wide {
  grid-column: span 1;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 32px 28px;
}

.card.wide .card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.card.wide .card-icon svg {
  width: 34px;
  height: 34px;
}

.score-logo-wrap {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #ffffff;
}

.card.wide .card-body {
  flex: 1;
}

.card.wide .card-name {
  font-size: 20px;
}

.card.wide .card-foot {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  border-top: none;
  border-left: 1px solid var(--border);
  padding-top: 0;
  padding-left: 24px;
  gap: 12px;
  flex-shrink: 0;
}

.new-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: up 0.45s ease both;
}

.grid-wrap {
  animation: up 0.45s 0.1s ease both;
}

@media (max-width: 900px) {
  .site-nav,
  .hero,
  .grid-wrap,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-tagline {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .site-nav {
    gap: 8px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 10px;
  }

  .theme-toggle span {
    display: none;
  }

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

  .card.wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .card.wide .card-foot {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 12px;
    flex-direction: row;
    align-items: center;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .nav-link:first-child {
    display: none;
  }
}
