/* FROGAI — 中文 AI MEME 科技风落地页 · 金黑品牌色 */
:root {
  --gold: #F5C518;
  --gold-dark: #C9A006;
  --gold-light: #FFE066;
  --bg: #050505;
  --surface: #0a0a0c;
  --card: rgba(14, 14, 16, 0.82);
  --text: #f3f1ea;
  --muted: #9a9588;
  --border: rgba(245, 197, 24, 0.22);
  --border-strong: rgba(245, 197, 24, 0.45);
  --radius: 18px;
  --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', system-ui, sans-serif;
  --ca-bar-h: 42px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* —— Ambient —— */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -2;
  mask-image: radial-gradient(ellipse at 50% 15%, black 0%, transparent 72%);
}
.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(245, 197, 24, 0.015) 50%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan 10s linear infinite;
  opacity: 0.6;
}
@keyframes scan {
  0% { background-position: 0 0; }
  100% { background-position: 0 220%; }
}
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}
.orb-1 { width: 520px; height: 520px; background: var(--gold); top: -160px; right: -140px; }
.orb-2 { width: 340px; height: 340px; background: #1a4a22; bottom: 8%; left: -120px; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.gold, .gold-text { color: var(--gold); }
.gold-text { font-weight: 700; }

/* Toast */
.toast {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  letter-spacing: 0.02em;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* CA bar */
.ca-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--ca-bar-h);
  background: rgba(8, 8, 10, 0.94);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.ca-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--ca-bar-h);
  font-size: 0.88rem;
}
.ca-topbar__label {
  font-family: var(--font-display);
  color: #0a0800;
  background: var(--gold);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}
.ca-topbar__address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  word-break: break-all;
  text-align: center;
}
.ca-topbar__hint {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.8;
}
.ca-topbar:hover .ca-topbar__address { color: var(--gold-light); }

/* Nav */
.nav {
  position: fixed;
  top: var(--ca-bar-h); left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 7, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.4);
  background: #000;
}
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.02em; }
.logo-ai { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; }
.nav-right { display: none; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0800;
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.3), 0 8px 28px rgba(245, 197, 24, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.5), 0 12px 36px rgba(245, 197, 24, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 197, 24, 0.06);
}
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Hero */
.hero {
  padding: calc(var(--ca-bar-h) + var(--nav-h) + 52px) 0 88px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  font-family: var(--font-display);
}
.pulse {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-sub {
  display: block;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--gold);
  margin-top: 16px;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.hero-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 26px 0 32px;
  line-height: 1.85;
}
.hero-desc strong { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
}
.hero-stat {
  flex: 1;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:last-child { border-right: none; padding-right: 0; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.hero-stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.hero-ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(245, 197, 24, 0.1);
}
.hero-ring--dashed {
  width: 68%;
  border-style: dashed;
  border-color: rgba(245, 197, 24, 0.32);
  animation: spin 28s linear infinite;
  box-shadow: none;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-img {
  width: 72%;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.35),
    0 0 50px rgba(245, 197, 24, 0.28),
    0 28px 70px rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 2;
  object-fit: cover;
  background: #000;
  aspect-ratio: 1 / 1;
}
.floating-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 12, 0.88);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.tag-icon { width: 14px; height: 14px; color: var(--gold); }
.tag-1 { top: 16%; left: 0; animation: float 4.2s ease-in-out infinite; }
.tag-2 { bottom: 18%; right: 0; animation: float 4.2s ease-in-out infinite 0.9s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Marquee */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.03), rgba(245, 197, 24, 0.06), rgba(245, 197, 24, 0.03));
  overflow: hidden;
  padding: 14px 0;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 26px;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.88rem;
}
.marquee__item .sep { color: var(--gold); margin: 0 6px; opacity: 0.65; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 96px 0; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.section-desc {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.section-desc.left { text-align: left; max-width: 560px; }
.section-desc.lead {
  color: #d8d2c0;
  font-size: 1.08rem;
}
.section-desc.lead strong { color: var(--gold); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-frame {
  position: relative;
  width: min(340px, 78%);
  padding: 10px;
}
.about-img {
  width: 100%;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.35);
  box-shadow: 0 0 50px rgba(245, 197, 24, 0.18);
  background: #000;
  display: block;
}
.about-frame__corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}
.about-frame__corner.c1 { top: 0; left: 0; border-width: 2px 0 0 2px; }
.about-frame__corner.c2 { top: 0; right: 0; border-width: 2px 2px 0 0; }
.about-frame__corner.c3 { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.about-frame__corner.c4 { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.07);
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.tech-pill svg {
  width: 16px; height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Modern icon boxes */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(245, 197, 24, 0.14), rgba(245, 197, 24, 0.04));
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 16px;
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box--sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.icon-box--sm svg { width: 20px; height: 20px; }

/* Tokenomics */
.tokenomics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.token-card {
  padding: 28px 22px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.token-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(245, 197, 24, 0.08);
}
.token-card h3 {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.token-card-value {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.token-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* How to buy */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.howto-step {
  padding: 28px 22px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.howto-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.howto-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  opacity: 0.85;
}
.howto-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.howto-step p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* Roadmap */
.roadmap-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.roadmap-item { position: relative; }
.roadmap-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.15), 0 0 16px rgba(245, 197, 24, 0.45);
}
.roadmap-card { padding: 22px; }
.roadmap-phase {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.roadmap-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 10px 0 10px;
  font-weight: 700;
}
.roadmap-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Community */
.community-panel {
  text-align: center;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.community-panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.community-panel > *:not(.community-panel__grid) { position: relative; z-index: 1; }
.community-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-img { width: 34px; height: 34px; }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 440px;
  text-align: center;
  flex: 1;
  line-height: 1.65;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 1024px) {
  .tokenomics-cards,
  .howto-grid,
  .roadmap-line { grid-template-columns: repeat(2, 1fr); }
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 400px; margin: 0 auto; min-height: 360px; }
  .about-visual { order: -1; }
}

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .nav-right { display: flex; }
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 14px 6%;
  }
  .nav-links a::after { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px 0; }
  .hero-stat {
    flex: 0 0 33%;
    border-right: none;
    padding-right: 0;
  }
  .tokenomics-cards,
  .howto-grid,
  .roadmap-line { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .ca-topbar__hint { display: none; }
  .ca-topbar__address { font-size: 0.76rem; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .logo-text { font-size: 1.2rem; }
  .logo-img { width: 34px; height: 34px; }
  .floating-tag { font-size: 0.7rem; padding: 7px 10px; }
}
