/* POSBY — Character-first website */
/* Dark theme, mobile-first, fast */

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #c4a882;
  --accent-light: #d4bc9a;
  --border: #222;
  --border-light: #2a2a2a;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { font-size: 16px; }
}

/* ---- SECTIONS ---- */
section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 56px;
  gap: 0;
}

.hero-image-wrap {
  width: 100%;
  max-width: 420px;
  margin-bottom: 32px;
  position: relative;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
  animation: hero-float 6s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(32px, 7vw, 60px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero .pose-label {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ---- ABOUT ---- */
.about h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--accent);
}

.about .trait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.trait-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.trait-card:hover { border-color: var(--border-light); }

.trait-card .trait-icon {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--accent);
  opacity: 0.6;
  font-weight: 300;
}

.trait-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.trait-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.about .description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about .description strong {
  color: var(--text);
}

/* ---- POSE ---- */
.pose-section {
  text-align: center;
}

.pose-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.pose-section .pose-description {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.pose-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 380px;
  margin: 0 auto;
}

.pose-image {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.pose-visual .pose-text {
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
}

/* ---- ORIGIN ---- */
.origin h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--accent);
}

.origin .story {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.origin .story strong {
  color: var(--text);
}

/* ---- FEATURED MEME ---- */
.gallery h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--accent);
  text-align: center;
}

.featured-meme {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.featured-meme:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.featured-meme-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.featured-meme-text {
  padding: 24px 20px;
  text-align: center;
}

.featured-meme-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.featured-meme-caption {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- COMMUNITY ---- */
.community {
  text-align: center;
}

.community h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.community .community-text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.community-card:hover { border-color: var(--border-light); }

.community-card .card-icon {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
  opacity: 0.5;
}

.community-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.community-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- SOCIAL LINKS ---- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--text);
}

.social-platform {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-handle {
  color: var(--accent);
}

/* ---- TOKEN ---- */
.token {
  text-align: center;
}

.token h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--accent);
}

.token-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color 0.2s;
}

.token-card:hover {
  border-color: var(--border-light);
}

.token-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.token-address-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.token-address {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.token-copy {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.token-copy:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.token-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.token-link:hover {
  color: var(--accent-light);
}

.token-verify {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

footer .copyright {
  font-size: 12px;
  color: var(--text-dim);
}

footer .disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 12px auto 0;
  line-height: 1.5;
}

/* ---- DIVIDER ---- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* ---- GAME CTA ---- */
.game-cta-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  transition: border-color 0.2s;
}

.game-cta-card:hover { border-color: var(--border-light); }

.game-cta-img {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.game-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.game-cta-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.game-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.game-cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 640px) {
  .game-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .game-cta-img {
    width: 80px;
  }

  .game-cta-title {
    font-size: 18px;
  }
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---- SELECTION ---- */
::selection { background: var(--accent); color: var(--bg); }

/* ---- RESPONSIVE: HERO IMAGE ---- */
@media (max-width: 640px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-image-wrap {
    max-width: 280px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .pose-visual {
    padding: 24px 20px 20px;
  }

  .pose-image {
    max-width: 200px;
  }

  .featured-meme {
    margin: 0 8px;
  }

  .featured-meme-title {
    font-size: 18px;
  }

  .token-card {
    margin: 0 8px;
    padding: 24px 16px;
  }

  .token-address-row {
    flex-direction: column;
    gap: 10px;
  }

  .token-address {
    font-size: 11px;
    padding: 8px 10px;
    text-align: center;
  }

  .social-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-image-wrap {
    max-width: 340px;
  }
}
