:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252331;
  background: #fcfbf8;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid #9e90fb; outline-offset: 6px; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 5; transform: translateY(-180%); padding: 12px; background: #fff; }
.skip-link:focus { transform: none; }
.home-header, .home-main { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.home-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 108px; }
.home-brand { display: inline-flex; align-items: center; width: 280px; max-width: 55%; min-width: 0; }
.home-logo { display: block; width: 100%; height: auto; }
.home-login { display: inline-flex; flex-shrink: 0; align-items: center; gap: 18px; padding-block: 12px; font-size: 13px; font-weight: 600; }
.home-login:hover { color: #5943e9; }
.home-login span { font-size: 20px; }
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.home-hero { padding: 50px 0 76px; text-align: center; }
.home-hero.has-animation { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; text-align: left; }
.home-hero.has-animation .hero-description { margin-inline: 0; }
.home-animation { width: 100%; max-width: 500px; justify-self: center; text-align: center; }
#home-animation { width: 100%; aspect-ratio: 1; }
#home-animation svg { display: block; width: 100%; height: 100%; }
.home-animation-toggle { padding: 10px 12px; margin-top: 4px; border: 0; border-radius: 6px; background: transparent; color: #76717f; font: inherit; font-size: 11px; cursor: pointer; touch-action: manipulation; }
.home-animation-toggle:hover { background: #f0edfb; color: #5943e9; }
h1 { margin: 0; font-size: clamp(40px, 4.5vw, 62px); font-weight: 650; line-height: 1.1; letter-spacing: -3px; }
h1 > span { color: #5943e9; }
.hero-description { max-width: 385px; margin: 25px auto 30px; color: #6f6b79; font-size: 16px; line-height: 1.8; }
.home-primary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; padding: 14px 22px; border-radius: 8px; background: #5943e9; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 5px 12px #5943e91a; }
.home-primary:hover { background: #4732cf; }
.home-primary > span { font-size: 21px; line-height: 1; }
.hero-note { margin: 16px 0 0; font-size: 11px; line-height: 1.6; color: #76717f; }
.home-credit { padding: 4px 24px 18px; }
.raccoon-track { --mascot-width: 236px; --mascot-duration: 26s; position: relative; height: 112px; }
.raccoon-walker { position: absolute; left: 0; bottom: 0; width: var(--mascot-width); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 5px; border: 0; border-radius: 10px; background: transparent; color: #655d7a; font: inherit; cursor: pointer; touch-action: manipulation; animation: raccoon-stroll var(--mascot-duration) linear infinite; }
.raccoon-bubble { position: relative; padding: 9px 12px; border: 1px solid #e6e0f2; border-radius: 12px; background: #fff; font-size: 11px; line-height: 1.4; white-space: nowrap; box-shadow: 0 3px 10px #30274405; }
.raccoon-bubble::after { content: ""; position: absolute; bottom: -5px; left: calc(50% - 4px); width: 8px; height: 8px; border-right: 1px solid #e6e0f2; border-bottom: 1px solid #e6e0f2; background: #fff; transform: rotate(45deg); }
.raccoon-sprite { display: block; width: 112px; animation: raccoon-turn var(--mascot-duration) steps(1, end) infinite; }
.raccoon-sprite img, .raccoon-sprite canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.raccoon-walker.is-paused, .raccoon-walker.is-paused .raccoon-sprite { animation-play-state: paused; }
@keyframes raccoon-stroll {
  0%, 100% { left: 0; }
  50% { left: calc(100% - var(--mascot-width)); }
}
@keyframes raccoon-turn {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) {
  .raccoon-walker, .raccoon-sprite { animation: none; }
  .raccoon-walker { left: calc(50% - var(--mascot-width) / 2); }
}
@media (max-width: 960px) {
  .home-header, .home-main { width: calc(100% - 48px); }
  .home-hero.has-animation { gap: 24px; }
  h1 { font-size: 44px; letter-spacing: -2px; }
}
@media (max-width: 700px) {
  .home-header { min-height: 84px; gap: 12px; }
  .home-brand { width: 210px; }
  .home-login { gap: 8px; font-size: 11px; }
  .home-hero { padding: 36px 0 48px; }
  .home-hero.has-animation { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: center; }
  .home-hero.has-animation .hero-description { margin-inline: auto; }
  .home-animation { max-width: 380px; }
  h1 { font-size: clamp(34px, 7.8vw, 50px); letter-spacing: -1.7px; }
  .hero-description { font-size: 15px; margin: 22px auto 26px; }
  .home-credit { padding-inline: 16px; }
  .raccoon-track { --mascot-width: 208px; --mascot-duration: 16s; }
  .raccoon-bubble { font-size: 10px; }
}
