:root {
  --paper: #f4f0e7;
  --paper-2: #ebe5d9;
  --ink: #173c29;
  --ink-soft: #2c5940;
  --line: rgba(23, 60, 41, 0.18);
  --white: #fffdf7;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

button, a { font: inherit; }

.hero {
  min-height: 100svh;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(18px, 4vw, 72px);
}

.copy-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-lockup { margin-bottom: clamp(32px, 5vw, 64px); }

.ticker {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-size: clamp(72px, 10vw, 164px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, 100%);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.action {
  min-height: 68px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.action:hover,
.action:focus-visible {
  background: var(--ink);
  color: var(--white);
  outline: none;
}

.action:active { transform: scale(0.985); }

.action-primary {
  background: var(--ink);
  color: var(--white);
}

.action-primary:hover,
.action-primary:focus-visible {
  background: var(--ink-soft);
}

.action svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action[aria-disabled="true"] {
  cursor: default;
}

.character-panel {
  position: relative;
  min-height: min(820px, 86svh);
  display: grid;
  place-items: end center;
}

.character-stage {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1.03;
  display: grid;
  place-items: end center;
}

.character-stage::before {
  content: "";
  position: absolute;
  inset: 17% 4% 3%;
  border-radius: 50% 50% 18% 18%;
  background: var(--paper-2);
}

.hooddog {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(30, 49, 34, 0.16));
  transform-origin: 50% 100%;
  animation: settle 5s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  transform: translate(-50%, 18px);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes settle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 920px) {
  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    padding: 28px 20px max(24px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .copy-panel { padding-top: 3svh; }
  .brand-lockup { margin-bottom: 24px; }

  h1 {
    font-size: clamp(64px, 21vw, 112px);
    line-height: 0.86;
  }

  .ticker { font-size: 16px; }
  .actions { width: 100%; }
  .action { min-height: 60px; padding: 0 16px; }

  .character-panel {
    min-height: 0;
    align-items: end;
    overflow: hidden;
  }

  .character-stage {
    width: min(118vw, 650px);
    margin-top: 6px;
    margin-bottom: -5vw;
  }

  .character-stage::before { inset: 20% 7% 5%; }
}

@media (max-width: 520px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .action { min-height: 56px; font-size: 14px; }
  .character-stage { width: 112vw; }
}

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