/* Smudge The Table Cat — unique dinner-table meme aesthetic */

:root {
  --ink: #0b0718;
  --ink-2: #140c28;
  --ink-3: #1c1236;
  --royal: #2a4db8;
  --violet: #7b2fd0;
  --magenta: #c43d9a;
  --gold: #ffe14a;
  --gold-deep: #f0c020;
  --salad: #6fbf6a;
  --cream: #fff8ea;
  --fog: rgba(255, 248, 234, 0.72);
  --line: rgba(255, 225, 74, 0.18);
  --glass: rgba(20, 12, 40, 0.55);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --font-display: "Bagel Fat One", "Fredoka", system-ui, sans-serif;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  background: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Background layers */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 80% 55% at 15% 10%, rgba(42, 77, 184, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(196, 61, 154, 0.42), transparent 55%),
    radial-gradient(ellipse 60% 45% at 50% 90%, rgba(123, 47, 208, 0.35), transparent 60%),
    linear-gradient(165deg, #070412 0%, #120a24 45%, #1a0d30 100%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 225, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 225, 74, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: meshDrift 40s linear infinite;
}

#pawCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes auroraShift {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(18deg) saturate(1.15); }
}

@keyframes meshDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-72px); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(11, 7, 24, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 225, 74, 0.15), 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: logoPulse 3.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 225, 74, 0.15), 0 8px 20px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 225, 74, 0.28), 0 8px 28px rgba(196, 61, 154, 0.35); }
}

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

.nav-brand-text strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.nav-brand-text small {
  color: var(--fog);
  font-size: 0.75rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fog);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(255, 225, 74, 0.08);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: transform 0.2s, background 0.2s;
}

.nav-social:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 225, 74, 0.12);
}

.nav-social img {
  width: 16px;
  height: 16px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1200;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 225, 74, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 225, 74, 0.4);
}

.nav-cta img {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffc93a 50%, var(--gold-deep) 100%);
  color: #1a1200;
  box-shadow: 0 10px 28px rgba(255, 225, 74, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: btnShine 4.5s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(255, 225, 74, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 248, 234, 0.18);
  color: var(--cream);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 225, 74, 0.45);
  background: rgba(255, 225, 74, 0.08);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-sm img {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 28px) 22px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bleed-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.08);
  animation: bleedDrift 22s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.05);
}

@keyframes bleedDrift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero-bleed-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 4, 18, 0.92) 0%, rgba(7, 4, 18, 0.72) 38%, rgba(18, 8, 36, 0.35) 68%, rgba(42, 20, 70, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 4, 18, 0.55) 0%, transparent 28%, rgba(7, 4, 18, 0.35) 70%, rgba(7, 4, 18, 0.92) 100%),
    radial-gradient(ellipse 50% 40% at 75% 40%, rgba(196, 61, 154, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  right: -8%;
  top: 18%;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 225, 74, 0.16) 0%, rgba(123, 47, 208, 0.1) 40%, transparent 70%);
  filter: blur(10px);
  animation: glowBreathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-orbit {
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  right: 4%;
  top: 22%;
  z-index: 1;
  pointer-events: none;
  animation: orbitSpin 28s linear infinite;
}

.orbit-paw {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 50%;
  top: 50%;
  background: var(--gold);
  mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  opacity: 0.55;
  transform:
    rotate(calc(var(--i) * 60deg))
    translateY(calc(min(250px, 34vw) * -1))
    rotate(calc(var(--i) * -60deg));
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.hero-stage {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fog);
}

.kicker-icon {
  width: 18px;
  height: 14px;
}

.hero-title {
  margin: 0;
  line-height: 0.95;
}

.title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 10%, #ffe9a8 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
  filter: drop-shadow(0 6px 0 rgba(20, 8, 40, 0.45));
  animation: titlePop 1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.title-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--gold);
  letter-spacing: 0.03em;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
}

@keyframes titlePop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-symbol {
  margin: 16px 0 10px;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1200;
  background: linear-gradient(135deg, var(--gold), #fff1a0);
  box-shadow: 0 8px 20px rgba(255, 225, 74, 0.25);
  animation: symbolBob 2.8s ease-in-out infinite;
}

@keyframes symbolBob {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg) translateY(-3px); }
}

.hero-tagline {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--fog);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contract-strip {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.contract-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.contract-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.contract-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--fog);
}

.btn-copy {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 225, 74, 0.15);
  border: 1px solid rgba(255, 225, 74, 0.35);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  transition: background 0.2s, transform 0.2s;
}

.btn-copy:hover {
  background: rgba(255, 225, 74, 0.28);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: rgba(111, 191, 106, 0.25);
  border-color: rgba(111, 191, 106, 0.5);
  color: #b8f0b4;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border-radius: 16px;
  border: 2px solid rgba(255, 248, 234, 0.28);
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* Sections */
.section {
  position: relative;
  padding: 100px 22px;
}

.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(42, 77, 184, 0.08) 30%, rgba(196, 61, 154, 0.08) 70%, transparent);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--fog);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.paw-dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  animation: pawTwinkle 1.8s ease-in-out infinite;
}

@keyframes pawTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.2) rotate(-12deg); opacity: 1; }
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.accent {
  color: var(--gold);
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
}

.section-lead,
.section-sub {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--fog);
  font-size: 1.08rem;
  font-weight: 600;
}

.section-lead {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: #ffe9b0;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-copy p {
  color: var(--fog);
  font-size: 1.05rem;
}

.about-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0;
}

.about-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 700;
}

.about-pills img {
  width: 18px;
  height: 14px;
}

.paw-inline {
  width: 16px !important;
  height: 16px !important;
  color: var(--gold);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-visual {
  position: relative;
}

.about-plate {
  position: relative;
  border-radius: 36px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(42, 77, 184, 0.35), rgba(196, 61, 154, 0.28));
  border: 1px solid rgba(255, 225, 74, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}

.about-plate:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-plate-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 225, 74, 0.22), transparent 55%);
  animation: plateGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes plateGlow {
  0%, 100% { opacity: 0.5; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(8%, -6%); }
}

.about-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid rgba(255, 248, 234, 0.15);
}

.about-caption {
  position: relative;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: #ffe9b0;
}

.caption-paw {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--salad);
  mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/svg/paw.svg") center / contain no-repeat;
}

/* Steps */
.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.step {
  position: relative;
  padding: 28px 22px 26px;
  border-radius: 28px;
  background: rgba(11, 7, 24, 0.55);
  border: 1px solid rgba(255, 248, 234, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 225, 74, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 225, 74, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.step:hover::before {
  opacity: 1;
}

.step-badge {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  transition: transform 0.35s;
}

.step:hover .step-icon {
  transform: rotate(-8deg) scale(1.08);
}

.step-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.step-icon-x img {
  width: 22px;
  height: 22px;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--fog);
  font-size: 0.98rem;
}

.marquee {
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 74, 0.2);
  background: linear-gradient(90deg, rgba(42, 77, 184, 0.25), rgba(196, 61, 154, 0.25));
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  animation: marquee 28s linear infinite;
}

.marquee-paw {
  width: 14px;
  height: 14px;
  background: var(--gold);
  mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/svg/paw.svg") center / contain no-repeat;
  flex-shrink: 0;
}

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

/* Chart */
.chart-shell {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 234, 0.12);
  background: rgba(8, 5, 18, 0.7);
  box-shadow: var(--shadow);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 248, 234, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.chart-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--fog);
}

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--salad);
  box-shadow: 0 0 0 0 rgba(111, 191, 106, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 191, 106, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(111, 191, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 191, 106, 0); }
}

.chart-frame {
  position: relative;
  min-height: 480px;
  background: #0d1117;
}

.chart-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
  color: var(--fog);
}

.chart-placeholder img {
  width: 56px;
  height: 42px;
  opacity: 0.85;
  animation: placeholderFloat 4s ease-in-out infinite;
}

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

.chart-placeholder code {
  color: var(--gold);
}

/* Join */
.section-join {
  padding-bottom: 80px;
}

.join-panel {
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 74, 0.22);
  background:
    linear-gradient(160deg, rgba(42, 77, 184, 0.28), rgba(123, 47, 208, 0.22) 50%, rgba(196, 61, 154, 0.28));
  box-shadow: var(--shadow);
}

.join-banner-wrap {
  position: relative;
  overflow: hidden;
}

.join-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.join-panel:hover .join-banner {
  transform: scale(1.06);
}

.join-banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 65%);
  transform: translateX(-100%);
  animation: bannerShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bannerShine {
  0%, 40% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

.join-body {
  padding: 36px 32px 40px;
}

.join-body h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: 0.02em;
}

.join-body > p {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--fog);
  font-size: 1.05rem;
  font-weight: 600;
}

.join-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.join-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(11, 7, 24, 0.45);
  border: 1px solid rgba(255, 248, 234, 0.12);
  font-family: var(--font-head);
  font-weight: 700;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.join-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 225, 74, 0.4);
  background: rgba(255, 225, 74, 0.1);
}

.join-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.footer {
  padding: 36px 22px 48px;
  border-top: 1px solid rgba(255, 248, 234, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 225, 74, 0.5);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-head);
}

.footer-brand span,
.footer-note {
  color: var(--fog);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.2s, background 0.2s;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 225, 74, 0.12);
}

.footer-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 980px) {
  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    justify-content: center;
  }

  .hero-bleed-shade {
    background:
      linear-gradient(180deg, rgba(7, 4, 18, 0.7) 0%, rgba(7, 4, 18, 0.55) 40%, rgba(7, 4, 18, 0.88) 100%),
      radial-gradient(ellipse 70% 50% at 50% 30%, rgba(196, 61, 154, 0.2), transparent 70%);
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero-tagline,
  .section-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .about-actions,
  .about-pills,
  .join-actions {
    justify-content: center;
  }

  .hero-orbit {
    right: 50%;
    top: 28%;
    transform: translateX(50%);
    opacity: 0.45;
  }

  .steps-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-plate {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 68px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    padding: 14px;
    border-radius: 20px;
    background: rgba(11, 7, 24, 0.95);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  .nav.open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(var(--nav-h) + 220px);
    left: 12px;
    right: 12px;
    justify-content: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(11, 7, 24, 0.95);
    border: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

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

  .chart-frame {
    min-height: 380px;
  }

  .chart-frame iframe {
    height: 420px;
  }

  .chart-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .join-body {
    padding: 28px 20px 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

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

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