/* ============================================================
   $MITTENS — The Dog Turtle
   Pure CSS. Tokens, motion, layout, a11y.
   ============================================================ */

:root {
  --yellow: #f3ba2f;
  --gold: #ffcc33;
  --amber: #c88914;
  --black: #090909;
  --black-2: #0d0d0d;
  --surface: #121212;
  --surface-2: #181818;
  --text: #f6f1e4;
  --muted: #b7b7b7;
  --line: rgba(243, 186, 47, 0.22);
  --glow: rgba(243, 186, 47, 0.42);
  --glass: rgba(12, 12, 12, 0.55);
  --radius: 18px;
  --nav-h: 78px;

  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --mx: 50%;
  --my: 40%;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.55;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(243, 186, 47, 0.18);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

code,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10000;
  background: var(--yellow);
  color: #111;
  padding: 10px 14px;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- ambient layers ---------- */

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px circle at var(--mx) var(--my), rgba(243, 186, 47, 0.1), transparent 42%),
    radial-gradient(900px circle at 80% 10%, rgba(243, 186, 47, 0.08), transparent 45%),
    radial-gradient(700px circle at 10% 80%, rgba(243, 186, 47, 0.05), transparent 50%);
}

.shell-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(243, 186, 47, 0.35) 0.8px, transparent 1.2px),
    repeating-linear-gradient(30deg, transparent 0 34px, rgba(243, 186, 47, 0.06) 34px 35px),
    repeating-linear-gradient(-30deg, transparent 0 34px, rgba(243, 186, 47, 0.06) 34px 35px);
  background-size: 28px 28px, auto, auto;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

main,
.nav,
.footer,
.mobile-menu,
.marquee,
.cta {
  position: relative;
  z-index: 2;
}

/* ---------- custom cursor ---------- */

.cursor-dot,
.cursor-halo {
  display: none;
}

body.has-cursor {
  cursor: none;
}

body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-halo {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.cursor-halo {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(243, 186, 47, 0.55);
  background: rgba(243, 186, 47, 0.08);
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s;
}

body.cursor-grow .cursor-halo {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(243, 186, 47, 0.16);
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s, background 0.28s, color 0.28s, border-color 0.28s;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.28s ease;
}

.btn:hover .arrow {
  transform: translate(3px, -3px);
}

.btn-primary {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 30px var(--glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.4) 48%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 40px var(--glow);
}

.btn-primary:hover::before {
  transform: translateX(130%);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(243, 186, 47, 0.05);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 0 24px rgba(243, 186, 47, 0.2);
}

.btn-dark {
  background: #111;
  color: var(--yellow);
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-outline-dark {
  background: transparent;
  color: #111;
  border: 1.5px solid rgba(9, 9, 9, 0.35);
}

.btn-outline-dark:hover {
  transform: translateY(-3px);
  background: rgba(9, 9, 9, 0.08);
}

.btn-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}

.btn-x:hover {
  color: var(--yellow);
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.92rem;
}

.text-link:hover .arrow {
  display: inline-block;
  transform: translate(3px, -3px);
}

/* ---------- navbar ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(243, 186, 47, 0.12);
}

.nav.menu-open {
  background: rgba(9, 9, 9, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(243, 186, 47, 0.45);
  box-shadow: 0 0 18px rgba(243, 186, 47, 0.25);
  flex-shrink: 0;
}

.brand-mark img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  object-position: 50% 42%;
  margin: -18% 0 0 -25%;
}

.brand-mark.sm {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-ticker {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--yellow);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 11px 18px;
  font-size: 0.75rem;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.hamburger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 90px 28px 40px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(243, 186, 47, 0.12);
}

.mobile-nav a span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
}

.mobile-nav .btn {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 18px) 0 40px;
  display: grid;
  align-items: center;
}

.hero-paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse fill='%23f3ba2f' cx='16' cy='21' rx='6' ry='5' opacity='.35'/%3E%3Ccircle fill='%23f3ba2f' cx='8' cy='13' r='2.4' opacity='.35'/%3E%3Ccircle fill='%23f3ba2f' cx='13' cy='9' r='2.4' opacity='.35'/%3E%3Ccircle fill='%23f3ba2f' cx='19' cy='9' r='2.4' opacity='.35'/%3E%3Ccircle fill='%23f3ba2f' cx='24' cy='13' r='2.4' opacity='.35'/%3E%3C/svg%3E");
  background-size: 52px 52px;
  opacity: 0.07;
  mask-image: linear-gradient(to right, #000 0%, transparent 55%);
  animation: paw-drift 28s linear infinite;
}

@keyframes paw-drift {
  from { background-position: 0 40px; }
  to { background-position: 120px -80px; }
}

.hero-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.status-badge,
.species-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(243, 186, 47, 0.06);
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff8a;
  box-shadow: 0 0 10px #3dff8a;
  animation: led-pulse 1.8s ease-in-out infinite;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8.4vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
}

.hero-title .line {
  display: block;
}

.hero-title .accent,
.gold {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(243, 186, 47, 0.28);
}

.hero-ticker {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.18em;
  color: var(--gold);
}

.hero-lead {
  margin-top: 14px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.ca-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.ca-value {
  font-size: 0.86rem;
  color: var(--text);
  user-select: all;
}

.copy-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}

.copy-btn:hover {
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #3dff8a;
}

.copy-dark {
  background: #111;
  color: var(--yellow);
}

.ca-on-yellow {
  background: rgba(9, 9, 9, 0.12);
  border-color: rgba(9, 9, 9, 0.2);
}

.ca-on-yellow .ca-label,
.ca-on-yellow .ca-value {
  color: #111;
}

.ca-inline {
  margin-top: 14px;
}

/* mascot */

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  transform: translate3d(0, var(--parallax, 0px), 0);
}

.mascot-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 186, 47, 0.42) 0%, rgba(243, 186, 47, 0.08) 42%, transparent 70%);
  filter: blur(8px);
  animation: glow-breathe 4.5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

.mascot-orbit {
  position: absolute;
  inset: 8%;
  pointer-events: none;
}

.orbit-hex,
.orbit-paw {
  position: absolute;
  border: 1px solid rgba(243, 186, 47, 0.35);
}

.orbit-hex {
  width: 22px;
  height: 22px;
  background: rgba(243, 186, 47, 0.15);
  transform: rotate(45deg);
  top: 12%;
  right: 18%;
  animation: float-y 6s ease-in-out infinite;
}

.orbit-hex.delay {
  top: auto;
  bottom: 22%;
  right: auto;
  left: 10%;
  animation-delay: -2s;
}

.orbit-paw {
  width: 28px;
  height: 28px;
  border: 0;
  left: 16%;
  top: 28%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse fill='%23f3ba2f' cx='16' cy='21' rx='6' ry='5'/%3E%3Ccircle fill='%23f3ba2f' cx='8' cy='13' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='13' cy='9' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='19' cy='9' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='24' cy='13' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
  animation: float-y 5s ease-in-out infinite reverse;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-14px) rotate(45deg); }
}

.orbit-paw {
  animation-name: float-paw;
}

@keyframes float-paw {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

.mascot-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.35s ease-out;
}

.mascot-img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  animation: turtle-bob 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes turtle-bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(1.4deg); }
}

.mascot-shadow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 46%;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(10px);
  transform: translateX(-50%);
  animation: shadow-breathe 5.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes shadow-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
  50% { transform: translateX(-50%) scale(0.82); opacity: 0.32; }
}

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.chip-wag {
  top: 14%;
  left: 2%;
  animation: chip-float 4.8s ease-in-out infinite;
}

.chip-shell {
  bottom: 18%;
  right: 4%;
  color: var(--yellow);
  animation: chip-float 5.4s ease-in-out infinite reverse;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--yellow);
  color: #111;
  border-block: 2px solid #111;
  transform: rotate(-0.4deg) scale(1.02);
  z-index: 3;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  flex-shrink: 0;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding: 0 8px;
}

.marquee-group i {
  width: 10px;
  height: 10px;
  background: #111;
  transform: rotate(45deg);
  flex-shrink: 0;
}

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

/* ---------- sections ---------- */

section[id],
#top {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section {
  padding: 110px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.center {
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.eyebrow.dark {
  color: #111;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.story {
  position: relative;
  overflow: hidden;
}

.story::before {
  content: "$MITTENS";
  position: absolute;
  right: -4%;
  top: 8%;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 16rem);
  color: rgba(243, 186, 47, 0.05);
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
}

.story-copy {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.story .story-copy:last-of-type {
  margin-bottom: 48px;
}

/* dog tags */

.trait-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dog-tag {
  position: relative;
  padding: 28px 20px 24px;
  background:
    linear-gradient(180deg, #2a2418 0%, #161410 100%);
  border: 1px solid rgba(243, 186, 47, 0.28);
  border-radius: 42px 42px 22px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.dog-tag:hover {
  transform: translateY(-8px) rotate(-1deg);
  border-color: var(--yellow);
}

.tag-ring {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 16px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #090909, 0 0 0 5px rgba(243, 186, 47, 0.4);
}

.dog-tag h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.tag-emoji {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.dog-tag p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- split ---------- */

.split {
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(243, 186, 47, 0.08), transparent 60%),
    linear-gradient(180deg, #0b0b0b, #090909);
}

.split-stage {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 48px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px;
  min-height: 360px;
}

.panel-left {
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.panel-right {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(243, 186, 47, 0.08), transparent 40%),
    var(--surface);
}

.panel-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 8px;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.spec-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(243, 186, 47, 0.1);
  font-weight: 600;
}

.spec-list span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
}

.spec-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.split-mascot {
  position: relative;
  z-index: 2;
}

.split-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 186, 47, 0.35), transparent 65%);
  filter: blur(12px);
}

.split-mascot img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.meter {
  margin-top: 22px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--yellow);
}

.meter-track {
  height: 12px;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  overflow: hidden;
}

.meter-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--yellow), var(--gold));
  box-shadow: 0 0 16px var(--glow);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter.run .meter-fill {
  width: 100%;
}

/* terminal */

.terminal {
  margin-top: 40px;
  background: #070707;
  border: 1px solid rgba(243, 186, 47, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #141414;
  border-bottom: 1px solid rgba(243, 186, 47, 0.12);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.amber { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.terminal-body {
  min-height: 210px;
  padding: 18px 20px 24px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--yellow);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 22px,
    rgba(243, 186, 47, 0.035) 22px 23px
  );
}

.terminal-body .dim {
  color: var(--muted);
}

.terminal-body .ok {
  color: #3dff8a;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--yellow);
  margin-left: 4px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- tiktok ---------- */

.tiktok {
  background:
    radial-gradient(500px 280px at 20% 50%, rgba(243, 186, 47, 0.08), transparent 60%),
    #0c0c0c;
  overflow: hidden;
}

.tiktok-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.phone {
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(180deg, #2a2a2a, #111);
  border-radius: 36px;
  border: 1px solid rgba(243, 186, 47, 0.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(243, 186, 47, 0.12);
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}

.phone:hover {
  transform: rotate(0deg) translateY(-6px);
}

.phone-notch {
  width: 92px;
  height: 10px;
  margin: 4px auto 10px;
  background: #000;
  border-radius: 999px;
}

.phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.phone-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.phone-handle {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
}

.phone-caption {
  color: #fff;
  font-size: 0.82rem;
}

.paw-walk {
  display: flex;
  gap: 14px;
  margin: 22px 0 18px;
  min-height: 28px;
}

.paw-walk .paw {
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse fill='%23f3ba2f' cx='16' cy='21' rx='6' ry='5'/%3E%3Ccircle fill='%23f3ba2f' cx='8' cy='13' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='13' cy='9' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='19' cy='9' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='24' cy='13' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.2;
  animation: paw-step 2.4s ease-in-out infinite;
}

.paw-walk .paw:nth-child(1) { animation-delay: 0s; }
.paw-walk .paw:nth-child(2) { animation-delay: 0.2s; }
.paw-walk .paw:nth-child(3) { animation-delay: 0.4s; }
.paw-walk .paw:nth-child(4) { animation-delay: 0.6s; }
.paw-walk .paw:nth-child(5) { animation-delay: 0.8s; }

@keyframes paw-step {
  0%, 100% { opacity: 0.15; transform: translateY(6px) rotate(-8deg); }
  50% { opacity: 1; transform: translateY(-4px) rotate(8deg); }
}

.btn-tiktok {
  max-width: 100%;
}

/* ---------- philosophy ---------- */

.philosophy {
  padding-top: 90px;
}

.mega-line {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.install-flow {
  margin: 48px auto 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.install-node {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.install-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--muted);
}

.install-emoji {
  font-size: 2rem;
}

.node-final {
  border-color: var(--yellow);
  box-shadow: 0 0 30px rgba(243, 186, 47, 0.18);
}

.node-final .install-label {
  color: var(--yellow);
}

.install-arrow {
  color: var(--yellow);
  font-size: 1.4rem;
}

.install-bar-wrap {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: #070707;
  border: 1px dashed rgba(243, 186, 47, 0.35);
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 10px;
}

.prompt {
  color: var(--muted);
  margin-right: 6px;
}

.install-bar {
  height: 10px;
  background: #151515;
  border-radius: 999px;
  overflow: hidden;
}

.install-fill {
  width: 0;
  height: 100%;
  background: var(--yellow);
  transition: width 1.6s ease;
}

.install-flow.run .install-fill {
  width: 100%;
}

/* ---------- how to buy ---------- */

.buy-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
  position: relative;
}

.buy-path::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 0;
  border-top: 2px dashed rgba(243, 186, 47, 0.28);
  pointer-events: none;
}

.buy-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px 24px;
  overflow: hidden;
}

.buy-step::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 90px;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse fill='%23f3ba2f' cx='16' cy='21' rx='6' ry='5'/%3E%3Ccircle fill='%23f3ba2f' cx='8' cy='13' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='13' cy='9' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='19' cy='9' r='2.4'/%3E%3Ccircle fill='%23f3ba2f' cx='24' cy='13' r='2.4'/%3E%3C/svg%3E") center / 70% no-repeat;
  opacity: 0.08;
}

.step-hex {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #111;
  background: var(--yellow);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  box-shadow: 0 0 20px var(--glow);
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--muted);
}

.buy-cta {
  margin-top: 42px;
}

/* ---------- cta ---------- */

.cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--yellow), var(--gold) 55%, #e0a51f);
  color: #111;
  padding: 90px 20px;
  text-align: center;
}

.cta-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.9;
}

.cta-sub {
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.cta-ticker {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.16em;
}

.cta .ca-pill {
  margin-top: 8px;
}

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

/* ---------- footer ---------- */

.footer {
  padding: 48px 0 28px;
  border-top: 1px solid rgba(243, 186, 47, 0.12);
  background: #070707;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-ticker {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

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

.footer-note {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: #111;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

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

/* ---------- reveals ---------- */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.92) translateY(16px); }

.reveal.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .mascot-wrap,
  .mascot-img,
  .mascot-glow,
  .mascot-shadow,
  .orbit-hex,
  .orbit-paw,
  .float-chip,
  .hero-paws,
  .marquee-track,
  .led,
  .paw-walk .paw,
  .caret,
  .phone {
    animation: none !important;
  }

  .mascot-wrap,
  .hero-visual,
  .phone {
    transform: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .meter-fill,
  .install-fill {
    transition: none;
  }

  .page-glow {
    background: radial-gradient(800px circle at 70% 20%, rgba(243, 186, 47, 0.08), transparent 50%);
  }

  .marquee {
    transform: none;
  }

  .marquee-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-group:last-child {
    display: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .trait-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split-mascot {
    grid-column: 1 / -1;
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .panel-left,
  .panel-right {
    clip-path: none;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
  }

  .mascot-wrap {
    width: min(100%, 420px);
  }

  .hero {
    padding-top: calc(var(--nav-h) + 8px);
  }

  .tiktok-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .phone-col {
    order: -1;
  }

  .phone {
    transform: rotate(-2deg);
  }
}

@media (max-width: 760px) {
  .story::before {
    display: none;
  }

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

  .buy-path::before {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-x {
    width: 100%;
    justify-content: center;
    padding: 8px 0;
  }

  .cta-actions .btn {
    width: min(100%, 320px);
  }

  .section {
    padding: 80px 0;
  }

  .tiktok-copy .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .trait-row {
    grid-template-columns: 1fr;
  }

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

  .panel {
    min-height: 0;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .ca-pill {
    width: 100%;
    justify-content: space-between;
  }

  .nav-inner {
    width: calc(100% - 20px);
  }

  .section-inner,
  .hero-grid {
    width: calc(100% - 24px);
  }

  .chip-wag,
  .chip-shell {
    font-size: 0.6rem;
  }

  .phone {
    transform: none;
  }

  .phone:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .brand-sub {
    display: none;
  }

  .status-badge,
  .species-badge {
    font-size: 0.62rem;
  }
}
