/* ============================================
   Asteroid Cat — $MAOMAO on Solana
   Dreamy night-sky · moon · soft blue
   ============================================ */

:root {
  --bg: #0B1A3D;          /* deep midnight blue */
  --bg-2: #0E2148;        /* slightly lighter */
  --bg-3: #142C5C;        /* softer panel */
  --fg: #F5F1E6;          /* warm moon cream */
  --fg-dim: #BCC9E5;      /* soft blue-grey */
  --fg-dim-2: #6E80A8;
  --line: #1A2C5C;
  --line-2: #2A3F75;
  --accent: #BFD4FF;      /* moon glow */
  --accent-hover: #FFFFFF;
  --accent-soft: rgba(191, 212, 255, 0.18);
  --moon: #FFF8E0;
  --serif: "Caveat", "Brush Script MT", cursive;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 70% -10%, rgba(255, 248, 224, 0.20), transparent 55%),
    linear-gradient(180deg, #0E2148 0%, #0B1A3D 50%, #08132E 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mobile: kill background-attachment fixed (scroll jank on iOS/Android) */
@media (max-width: 768px) {
  html, body { background-attachment: scroll; }
}

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

/* Starfield */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

main, header, footer, .ticker-banner { position: relative; z-index: 1; }

/* ============ TICKER BANNER ============ */
.ticker-banner {
  background: var(--accent);
  color: #0B1A3D;
  overflow: hidden;
  height: calc(36px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (max-width: 700px) {
  .ticker-banner {
    background: rgba(11, 26, 61, 0.85);
    color: var(--accent);
    border-bottom: 1px solid var(--line-2);
    height: calc(30px + env(safe-area-inset-top, 0px));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .ticker-item { font-size: 11px; letter-spacing: 3px; }
}

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

.ticker-item {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ticker-dot {
  font-size: 8px;
  opacity: 0.5;
}

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

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(100svh - 36px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* Fallback for browsers without svh */
@supports not (height: 100svh) {
  .hero { min-height: calc(100vh - 36px); }
}

/* Mobile: center content vertically so title sits above the moon, not crushed onto the cat */
@media (max-width: 700px) {
  .hero {
    align-items: center;
    padding: 18vh 18px 60px;
    min-height: calc(100svh - 30px);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('moon.png') center bottom / cover no-repeat;
  z-index: -2;
}

/* Soft fade so image bleeds into page bg seamlessly */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 26, 61, 1) 0%,
    rgba(11, 26, 61, 0.85) 8%,
    rgba(11, 26, 61, 0.25) 16%,
    rgba(11, 26, 61, 0.10) 28%,
    rgba(11, 26, 61, 0.15) 42%,
    rgba(11, 26, 61, 0.65) 72%,
    rgba(11, 26, 61, 0.95) 92%,
    rgba(11, 26, 61, 1) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
}

.hero-script {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  color: var(--moon);
  text-shadow: 0 0 40px rgba(255, 248, 224, 0.5);
  margin-bottom: 4px;
  transform: rotate(-2deg);
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  color: var(--fg);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lede {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* CTAs */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-row-primary { margin-bottom: 12px; }
.cta-row-secondary { margin-bottom: 24px; }

.btn-primary, .btn-ghost {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 13px 26px;
  border: 1px solid var(--line-2);
  background: rgba(11, 26, 61, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg);
  border-radius: 999px;
  transition: all .15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1A3D;
  min-width: 220px;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

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

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile: full-width primary, compact 3-button secondary row */
@media (max-width: 500px) {
  .cta-row-primary .btn-primary {
    width: 100%;
    min-width: 0;
    padding: 15px 20px;
    font-size: 15px;
  }
  .cta-row-secondary { gap: 8px; flex-wrap: nowrap; }
  .cta-row-secondary .btn-ghost {
    flex: 1;
    padding: 12px 8px;
    font-size: 12px;
    letter-spacing: 0.5px;
    min-width: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* CA block */
.ca-block {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin: 0 auto;
  max-width: min(600px, 100%);
  min-width: 0;
  background: rgba(11, 26, 61, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.ca-block code {
  font-family: var(--mono);
  font-size: 12px;
  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: 1px solid var(--line-2);
  border-radius: 0;
  padding: 0 22px;
  background: transparent;
  color: var(--accent);
  text-transform: lowercase;
}

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 20px;
  margin-bottom: 44px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 32px;
  }
}

.section-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0;
  margin: 0;
  color: var(--fg);
}

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

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

.stat {
  padding: 28px 24px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(20, 44, 92, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
  transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--accent); }

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--fg-dim-2);
  margin-bottom: 14px;
}

.stat-value {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--fg);
}

.stat-unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
}


/* ============ SUPPORT FUND ============ */
.fund {
  padding: 100px 24px 80px;
  position: relative;
}

.fund-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.fund-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 14px;
}

.fund-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--moon);
  text-shadow: 0 0 40px rgba(255, 248, 224, 0.35);
}

.fund-sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 480px;
  margin: 0 auto 50px;
}

.fund-counter {
  position: relative;
  padding: 60px 30px;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at center, rgba(191, 212, 255, 0.10), transparent 70%),
    rgba(11, 26, 61, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 28px;
  overflow: hidden;
}

.fund-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 224, 0.30), rgba(191, 212, 255, 0.10) 50%, transparent 75%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  pointer-events: none;
  animation: fund-pulse 5s ease-in-out infinite;
}

@keyframes fund-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1.0; transform: translateX(-50%) scale(1.08); }
}

.fund-usd {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 112px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--moon);
  text-shadow: 0 0 30px rgba(255, 248, 224, 0.35);
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.fund-currency-usd {
  font-weight: 500;
  font-size: 0.5em;
  margin-right: 0.06em;
  vertical-align: 0.18em;
  color: var(--accent);
}

/* Pre-launch state: dim, smaller, less dominant */
.fund--pending .fund-usd {
  font-size: clamp(36px, 8vw, 64px);
  color: var(--fg-dim);
  text-shadow: none;
  opacity: 0.7;
}
.fund--pending .fund-glow { opacity: 0.4; }
.fund--pending .fund-amount { display: none; }
.fund--pending .fund-currency-usd { color: var(--fg-dim); }

.fund-amount {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--fg-dim);
  margin-top: 18px;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.fund-currency {
  color: var(--accent);
  margin-right: 4px;
}

.fund-amount-unit {
  margin-left: 4px;
  color: var(--fg-dim-2);
  font-size: 0.85em;
}

.fund-unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--fg-dim);
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.fund-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(20, 44, 92, 0.3);
  overflow: hidden;
}

.fund-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--line-2);
}
.fund-row:last-child { border-bottom: none; }
.fund-row span:first-child { color: var(--fg-dim-2); text-transform: uppercase; }
.fund-row span:last-child { color: var(--accent); }

@media (max-width: 700px) {
  .fund { padding: 60px 20px; }
  .fund-counter { padding: 40px 20px; }
  .fund-row { padding: 12px 16px; font-size: 11px; }
}

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

.lore-inner {
  max-width: 700px;
  margin: 0 auto;
}

.lore-tagline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--moon);
  text-align: center;
  margin: 0 0 28px;
  text-shadow: 0 0 30px rgba(255, 248, 224, 0.25);
}

.lore-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 36px;
  text-align: center;
}

.tweet-frame {
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 22px;
  background: rgba(20, 44, 92, 0.3);
}

.tweet-frame-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg-dim-2);
  margin-bottom: 14px;
  padding-left: 4px;
}

.tweet-card {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 18px;
  padding: 22px 24px 18px;
  text-align: left;
  color: #0F1419;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  box-shadow: 0 0 60px rgba(191, 212, 255, 0.15);
}

.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; }

/* ============ LAUNCH SEQUENCE ============ */
.sequence {
  padding: 80px 24px 100px;
}

.seq-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
  border-top: 1px solid var(--line-2);
}

.seq-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}

.seq-t {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.seq-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--fg);
}

.seq-body p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 640px;
}

.seq-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}

@media (max-width: 700px) {
  .seq-list li { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 28px 36px;
  background: rgba(8, 19, 46, 0.6);
  border-top: 1px solid var(--line-2);
}

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

@media (max-width: 700px) {
  .mission, .sequence { padding: 60px 20px; }
  .lore { padding: 60px 16px; }
  .fund { padding: 60px 16px; }
  .footer { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }

  /* Backdrop-filter: kill on mobile (GPU cost) */
  .stat, .ca-block, .fund-counter { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Tweet card breathing room */
  .tweet-frame { padding: 14px; border-radius: 18px; }
  .tweet-card { padding: 18px 16px 14px; border-radius: 14px; }
  .tweet-foot { flex-wrap: wrap; row-gap: 4px; font-size: 13px; }

  /* Fund counter compact + glow contained */
  .fund-counter { padding: 36px 18px; border-radius: 22px; }
  .fund-usd { text-shadow: 0 0 20px rgba(255,248,224,0.35); }

  /* Launch sequence: T-marker as inline pill, stronger hierarchy */
  .seq-list li { display: block; padding: 24px 0; }
  .seq-t {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 4px 10px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    color: var(--accent);
  }
  .seq-body h3 { font-size: 26px; }
  .seq-status { margin-top: 8px; }

  .footer-inner { letter-spacing: 1px; font-size: 10px; }
}

/* Even tighter for very small phones */
@media (max-width: 380px) {
  .lede { font-size: 11px; letter-spacing: 2.5px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .footer-inner { font-size: 9px; letter-spacing: 0.5px; }
}
