/* ============================================
   FACE4663 — Green Theme + Logo Background + Round Coins
   ============================================ */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
  --green: #4caf50;
  --green-bright: #66bb6a;
  --green-dark: #2e7d32;
  --green-bg: #1b5e20;
  --green-glow: rgba(76, 175, 80, 0.3);

  --bg: #0a1f0a;
  --bg-card: rgba(10, 30, 10, 0.85);
  --bg-card-hover: rgba(15, 40, 15, 0.9);
  --border: rgba(76, 175, 80, 0.2);

  --text: #e8f5e9;
  --text-dim: #a5d6a7;
  --text-muted: rgba(165, 214, 167, 0.5);

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--green-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* --- Full Background Logo — CLEARLY VISIBLE --- */
.bg-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.bg-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.25;
}

@media (max-width: 768px) {
  .bg-logo-img {
    object-fit: contain;
    width: 120%;
    height: auto;
    min-height: 100%;
    opacity: 0.20;
  }
}

/* --- Coin Rain Canvas --- */
#coinCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 31, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green-bright); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--green-bright); }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title .accent {
  color: var(--green-bright);
  text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(76,175,80,0.15);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* --- Contract Card --- */
.contract-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 2rem;
  backdrop-filter: blur(15px);
  transition: border-color 0.3s;
}

.contract-card:hover { border-color: var(--green); }

.contract-card .label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.contract-card code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
}

.contract-card .copy-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.contract-card .copy-btn:hover {
  background: var(--green-bright);
  box-shadow: 0 0 24px var(--green-glow);
}

.contract-card .copy-btn:disabled { opacity: 0.25; cursor: not-allowed; }

/* --- Buttons --- */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #000;
  border: 1px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 30px var(--green-glow);
  color: #000;
}

.btn-secondary {
  background: rgba(10, 31, 10, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: #fff;
}

.btn:disabled { opacity: 0.25; cursor: not-allowed; pointer-events: none; }

/* --- Stats --- */
.stats-row {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-bright);
  text-shadow: 0 0 20px var(--green-glow);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { margin-bottom: 3rem; }

.section-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

/* --- Chart --- */
.chart-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 480px;
  position: relative;
  backdrop-filter: blur(15px);
}

.chart-shell iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- About --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split-section p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* --- Links --- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  backdrop-filter: blur(15px);
  transition: all 0.2s;
}

.link-card:hover {
  border-color: var(--green);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.link-card .link-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.link-card .link-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-bright);
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(10, 31, 10, 0.8);
  backdrop-filter: blur(15px);
}

footer .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 12px;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { padding: 1rem; }
  .nav-links { gap: 1rem; font-size: 0.65rem; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .stats-row { gap: 1.5rem; flex-wrap: wrap; }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .contract-card { flex-direction: column; text-align: center; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
