/* ============================================
   Mao Mao — $MAOMAO landing
   Cozy, warm, cute palette
   ============================================ */

:root {
  --bg: #FFF5E8;           /* warm cream */
  --bg-2: #FFEBD2;         /* deeper cream */
  --bg-card: #FFFCF6;      /* near-white warm */
  --fg: #3A2417;           /* warm dark brown */
  --fg-dim: #8A6B55;       /* soft brown */
  --fg-dim-2: #B89A82;     /* muted beige-brown */
  --line: #F2DEC3;
  --line-2: #E5C9A3;
  --accent: #E8906B;       /* warm coral / terracotta */
  --accent-hover: #D97757;
  --accent-soft: #FBD9C4;  /* soft peach */
  --pink: #F5B8B8;         /* soft pink */
  --sage: #C9D9C0;         /* sage green */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Hide starfield (legacy) */
#starfield { display: none; }

/* ============ FLOATING PAWS ============ */
.paws {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.paw {
  position: absolute;
  font-size: 28px;
  opacity: 0;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 2px rgba(58,36,23,0.15));
}

/* 10 paws with varied positions, sizes, durations, delays */
.paw-1  { left:  6%; top: 18%; font-size: 26px; animation: paw-float 14s ease-in-out infinite; animation-delay:  0s; }
.paw-2  { left: 88%; top: 12%; font-size: 34px; animation: paw-float 18s ease-in-out infinite; animation-delay: -3s; transform: rotate(18deg); }
.paw-3  { left: 14%; top: 62%; font-size: 22px; animation: paw-drift 22s ease-in-out infinite; animation-delay: -6s; }
.paw-4  { left: 82%; top: 70%; font-size: 30px; animation: paw-float 16s ease-in-out infinite; animation-delay: -2s; transform: rotate(-14deg); }
.paw-5  { left: 48%; top:  4%; font-size: 20px; animation: paw-drift 20s ease-in-out infinite; animation-delay: -9s; }
.paw-6  { left: 38%; top: 88%; font-size: 32px; animation: paw-float 15s ease-in-out infinite; animation-delay: -5s; transform: rotate(22deg); }
.paw-7  { left: 70%; top: 42%; font-size: 24px; animation: paw-drift 19s ease-in-out infinite; animation-delay: -1s; }
.paw-8  { left:  2%; top: 88%; font-size: 28px; animation: paw-float 17s ease-in-out infinite; animation-delay: -7s; transform: rotate(-20deg); }
.paw-9  { left: 94%; top: 50%; font-size: 22px; animation: paw-drift 24s ease-in-out infinite; animation-delay: -4s; }
.paw-10 { left: 24%; top: 30%; font-size: 26px; animation: paw-float 21s ease-in-out infinite; animation-delay: -8s; transform: rotate(10deg); }

@keyframes paw-float {
  0%   { transform: translate(0, 0) rotate(0deg);        opacity: 0; }
  15%  {                                                 opacity: 0.35; }
  50%  { transform: translate(20px, -30px) rotate(15deg); opacity: 0.45; }
  85%  {                                                 opacity: 0.35; }
  100% { transform: translate(0, 0) rotate(0deg);        opacity: 0; }
}

@keyframes paw-drift {
  0%   { transform: translate(0, 0) rotate(0deg);           opacity: 0; }
  20%  {                                                    opacity: 0.3; }
  50%  { transform: translate(-24px, 24px) rotate(-12deg);  opacity: 0.4; }
  80%  {                                                    opacity: 0.3; }
  100% { transform: translate(0, 0) rotate(0deg);           opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .paw { animation: none !important; opacity: 0.25; }
}

/* ============ TICKER BANNER ============ */
.ticker-banner {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 45s linear infinite;
  padding-left: 32px;
  will-change: transform;
}

.ticker-item {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 1px;
}

.ticker-paw {
  font-size: 14px;
  opacity: 0.85;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ NAV ============ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  background: var(--bg);
}

.nav-cta {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  background: var(--fg);
  color: var(--bg) !important;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .15s, background .2s;
  border: 2px solid var(--fg);
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - 38px - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
  position: relative;
}

/* cute floating paws/stars decoration */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--accent-soft);
  top: 8%; left: -120px;
}
.hero::after {
  width: 360px; height: 360px;
  background: var(--pink);
  bottom: 0; right: -100px;
}

.hero-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-image {
  margin: 0 auto 32px;
  width: min(340px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--bg-card);
  box-shadow:
    0 20px 40px -20px rgba(58, 36, 23, 0.3),
    0 0 0 1px var(--line-2);
  background: var(--bg-card);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--fg);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--accent-hover);
  margin: 0 0 40px;
}

/* CA block */
.ca-block {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 2px solid var(--line-2);
  border-radius: 999px;
  margin: 0 auto 24px;
  max-width: 580px;
  background: var(--bg-card);
  overflow: hidden;
}

.ca-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-dim);
  padding: 14px 20px;
  text-align: left;
}

.ca-block .btn-ghost {
  border: none;
  border-left: 2px solid var(--line-2);
  padding: 0 22px;
  border-radius: 0;
  background: transparent;
  color: var(--accent-hover);
  font-weight: 700;
}
.ca-block .btn-ghost:hover {
  background: var(--accent-soft);
}

/* CTAs */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary, .btn-ghost {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 13px 24px;
  border: 2px solid var(--line-2);
  background: var(--bg-card);
  color: var(--fg);
  border-radius: 999px;
  transition: all .15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============ STATS ============ */
.mission {
  padding: 20px 24px 80px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.stat {
  padding: 28px 24px;
  border: 2px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-card);
  text-align: center;
  transition: transform .2s;
}
.stat:hover { transform: translateY(-2px); }

.stat-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}

@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ============ NARRATIVE ============ */
.narrative {
  padding: 80px 24px;
  background: var(--bg-2);
  border-top: 2px dashed var(--line-2);
  border-bottom: 2px dashed var(--line-2);
}

.narrative-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-hover);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.narrative h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  color: var(--fg);
}

.narrative-body {
  text-align: left;
}

.narrative-body p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-dim);
  margin: 0 0 20px;
}

/* ============ LORE / TWEET CARD ============ */
.lore {
  padding: 80px 24px;
}

.lore-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lore h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--fg);
}

.tweet-card {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 20px;
  padding: 22px 24px 18px;
  text-align: left;
  color: #0F1419;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  box-shadow: 0 10px 30px -12px rgba(58, 36, 23, 0.18);
}

.tweet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tweet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #94B4A0, #6C8F7B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.tweet-meta { line-height: 1.25; }

.tweet-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
  color: #0F1419;
}

.tweet-verified {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tweet-handle {
  color: #536471;
  font-size: 14px;
  margin-top: 1px;
}

.tweet-body {
  font-size: 17px;
  line-height: 1.5;
  color: #0F1419;
  margin-bottom: 14px;
}

.tweet-body p {
  margin: 0 0 12px;
}
.tweet-body p:last-child { margin-bottom: 0; }

.tweet-foot {
  border-top: 1px solid #EFF3F4;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #536471;
}

.tweet-foot strong {
  color: #0F1419;
  font-weight: 700;
}

.tweet-dot { opacity: 0.7; }

/* ============ CHAPTERS ============ */
.chapters {
  padding: 80px 24px 100px;
}

.chapters-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chapter {
  padding: 32px;
  background: var(--bg-card);
  border: 2px solid var(--line-2);
  border-radius: 24px;
  transition: transform .2s, box-shadow .2s;
}
.chapter:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -14px rgba(58, 36, 23, 0.25);
}

.chapter-num {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--accent-hover);
  margin-bottom: 12px;
}

.chapter h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg);
}

.chapter p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0;
}

@media (max-width: 700px) {
  .chapters-inner { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 28px 36px;
  background: var(--bg-2);
  border-top: 2px dashed var(--line-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-dim);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 700px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 30px 20px 60px; }
  .footer { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }
  .ca-block code { font-size: 11px; padding: 12px 16px; }
  .ca-block .btn-ghost { padding: 0 16px; }
}
