/* ============================================
   THE FCK CLUB — Static Site Stylesheet
   Theme: Cyberpunk Matrix (black + neon green)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --radius: 0.25rem;
  --background: #000000;
  --foreground: #cdeed4;       /* verde neon claro */
  --card: #1a1a1a;
  --card-translucent: rgba(255, 255, 255, 0.03);
  --primary: #23e879;          /* verde neon vibrante */
  --primary-rgb: 35, 232, 121;
  --primary-foreground: #000000;
  --secondary: #1f7a3f;        /* verde escuro matrix */
  --muted-foreground: #8fd4a8; /* cinza esverdeado */
  --destructive: #ff2255;
  --border: rgba(35, 232, 121, 0.2);
  --border-strong: rgba(35, 232, 121, 0.5);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'IBM Plex Mono', 'Share Tech Mono', monospace;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* CRT scanline overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(35, 232, 121, 0.03) 0px,
    transparent 1px,
    transparent 2px,
    rgba(35, 232, 121, 0.03) 3px
  );
  pointer-events: none;
  z-index: 9999;
}

a, button, [role="button"], select, input[type="checkbox"], input[type="radio"] {
  cursor: pointer;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4ff08f; }

::selection {
  background: var(--primary);
  color: #000000;
}

/* ============ Layout helpers ============ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; max-width: 1280px; }
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
}

.section-inner { max-width: 56rem; margin: 0 auto; width: 100%; }
.section-inner-wide { max-width: 80rem; margin: 0 auto; width: 100%; }

.section-header { margin-bottom: 3rem; text-align: center; }
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}
.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin: 0;
}
.section-header .divider {
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}
@media (min-width: 768px) {
  .section-header h2 { font-size: 3rem; }
}

.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

/* ============ Card ============ */
.card {
  background: var(--card-translucent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.1);
}
.card-highlight {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}
@media (min-width: 768px) {
  .card-highlight { transform: scale(1.05); }
}

/* ============ Buttons ============ */
.btn {
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1.1rem 2rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  transition: all 0.3s;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: #4ff08f;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.3);
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

/* ============ Effects ============ */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.glitch { animation: glitch 0.3s infinite; }
.hover-glitch:hover { animation: glitch 0.3s ease-in-out; }
.flicker { animation: flicker 2s infinite; }
.fade-in { animation: fadeIn 1s ease-out; }
.text-glow { text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary); }
.box-glow { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3); }

/* ============ Matrix rain canvas ============ */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
  mix-blend-mode: screen;
}

/* ============ Navigation ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-logo img {
  width: 2rem;
  height: 2rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.navbar-logo:hover img { opacity: 1; }
.navbar-logo span {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.navbar-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.navbar-menu.mobile-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--border-strong);
  padding: 0.5rem 1rem 1rem 1rem;
  gap: 0.5rem;
}
.navbar-menu.mobile-open .nav-item-cta {
  margin-left: 0;
}
.navbar-menu.mobile-open .wallet-widget {
  margin-left: 0;
  width: 100%;
}
.navbar-menu.mobile-open .wallet-btn {
  width: 100%;
  text-align: left;
}
@media (min-width: 768px) {
  .navbar-menu { display: flex; }
  .navbar-mobile-btn { display: none; }
}
.nav-item {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  color: var(--muted-foreground);
  transition: all 0.3s;
}
.nav-item:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}
.nav-item.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.2);
}
.nav-item-cta {
  color: var(--primary-foreground);
  background: var(--primary);
  font-weight: 700;
  margin-left: 0.5rem;
}
.nav-item-cta:hover {
  background: #4ff08f;
  color: var(--primary-foreground);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.4);
}
.navbar-mobile-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.875rem;
}
.navbar-bottom-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--primary-rgb), 0.5), transparent);
}

/* ============ Hero ============ */
.hero-terminal {
  background: var(--card-translucent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.terminal-dots { display: flex; gap: 0.5rem; }
.terminal-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.terminal-dot.red { background: var(--destructive); }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: var(--primary); }
.terminal-title { color: var(--muted-foreground); font-size: 0.875rem; }
.terminal-body {
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--primary);
  min-height: 220px;
}
.terminal-cursor { animation: blink 1s step-end infinite; }

.hero-content { text-align: center; opacity: 0; }
.hero-content.visible { opacity: 1; animation: fadeIn 1s ease-out; }
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
}
@media (min-width: 768px) {
  .hero-title { font-size: 6rem; }
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.hero-subtitle p { margin: 0.5rem 0; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
.scroll-indicator {
  margin-top: 3rem;
  color: var(--primary);
  font-size: 0.875rem;
}

/* ============ Manifesto ============ */
.manifesto-box {
  padding: 2rem;
}
@media (min-width: 768px) {
  .manifesto-box { padding: 3rem; }
}
.manifesto-box p {
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
}
.manifesto-box .muted-italic { color: var(--muted-foreground); font-style: italic; }
.manifesto-box .primary-bold { color: var(--primary); font-weight: 700; }
.manifesto-box .center-strong {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}
.manifesto-box hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.principle-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .principle-grid { grid-template-columns: 1fr 1fr; }
}
.principle-card { padding: 1.5rem; }
.principle-card h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 0.75rem 0;
}
.principle-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

/* ============ Grid cards (Tools / How it works / Whitepaper) ============ */
/* Expansion Card - 9º Card especial */
.expansion-card {
  border: 1px dashed var(--primary) !important;
  background: rgba(0, 20, 10, 0.4) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
}

.expansion-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.expansion-circle {
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.expansion-plus {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: bold;
  line-height: 1;
}

.expansion-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.1em;
  margin: 0;
}

.expansion-desc {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
}

.expansion-cta {
  color: var(--primary);
  font-size: 0.85rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Hover effect */
.expansion-card:hover {
  border-color: var(--primary) !important;
  background: rgba(0, 255, 102, 0.05) !important;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.1) !important;
}

.expansion-card:hover .expansion-circle {
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.grid-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-cards.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-cards.cols-3-lg { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cols-5-lg { grid-template-columns: repeat(5, 1fr); }
}

.tool-card, .step-card { padding: 1.5rem; }
.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-card-head h3 { color: var(--primary); font-size: 1.25rem; font-weight: 700; margin: 0; }
.tool-card-head .type { color: var(--muted-foreground); font-size: 0.875rem; margin: 0.25rem 0 0 0; }
.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-active { color: var(--primary); }
.status-coming { color: var(--muted-foreground); }
.status-beta { color: #eab308; }
.status-progress { color: var(--muted-foreground); opacity: 0.85; }
.tool-desc { font-size: 0.875rem; color: rgba(205, 238, 212, 0.8); line-height: 1.6; margin: 0; }

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.card-footer .dot { color: var(--primary); }

.step-number { color: var(--primary); font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.step-card h3 { color: var(--primary); font-size: 1.125rem; font-weight: 700; margin: 0 0 0.75rem 0; }
.step-card p { font-size: 0.875rem; color: rgba(205, 238, 212, 0.8); line-height: 1.6; margin: 0; }

.info-box {
  margin-top: 4rem;
  padding: 2rem;
}
.info-box p { font-size: 0.875rem; margin: 0 0 1rem 0; }
.info-box p:last-child { margin-bottom: 0; }
.info-box .label { color: var(--muted-foreground); }
.info-box .value { color: rgba(205, 238, 212, 0.8); }

.bottom-note { margin-top: 3rem; text-align: center; }
.bottom-note p { color: var(--muted-foreground); font-size: 0.875rem; margin: 0; }

/* ============ Tokenomics ============ */
.tk-card { padding: 2rem; }
.tk-card h3 { color: var(--primary); font-size: 1.25rem; font-weight: 700; margin: 0 0 1.5rem 0; }
.tk-block { margin-bottom: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tk-block:first-child { padding-top: 0; border-top: none; }
.tk-block .lbl { color: var(--muted-foreground); font-size: 0.875rem; margin: 0 0 0.5rem 0; }
.tk-block .val { color: rgba(205, 238, 212, 0.8); font-size: 0.875rem; margin: 0.25rem 0; }

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.flow-grid .arrow { color: var(--primary); }
.flow-grid .flow-title { color: var(--primary); font-weight: 700; margin: 0 0 0.5rem 0; }
.flow-grid .flow-sub { color: var(--muted-foreground); font-size: 0.75rem; margin: 0; }
@media (max-width: 640px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid .arrow { transform: rotate(90deg); }
}

/* ============ Stack / Tiers ============ */
.tier-card { padding: 2rem; }
.tier-code { color: var(--muted-foreground); font-size: 0.875rem; margin: 0 0 0.25rem 0; }
.tier-name { color: var(--primary); font-size: 1.5rem; font-weight: 700; margin: 0; }
.tier-details { margin: 1.5rem 0; }
.tier-row { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.tier-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tier-row .k { font-size: 0.75rem; color: var(--muted-foreground); margin: 0 0 0.25rem 0; }
.tier-row .v { font-size: 0.875rem; color: var(--foreground); margin: 0; }
.tier-row .v.strong { font-weight: 700; }

/* ============ Whitepaper CTA ============ */
.wp-cta { padding: 2rem; }
.wp-cta h3 { color: var(--primary); font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem 0; }
.wp-cta p { font-size: 0.875rem; color: rgba(205, 238, 212, 0.8); margin: 0 0 1.5rem 0; }
.wp-cta-actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) {
  .wp-cta-actions { flex-direction: row; }
}
.wp-cta-actions a { text-align: center; }

/* ============ Footer / misc ============ */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
main { position: relative; z-index: 10; }

/* ============ Wallet Connect Widget ============ */
.wallet-widget {
  position: relative;
  margin-left: 0.5rem;
}
.wallet-btn {
  border: 1px solid var(--border-strong);
  color: var(--primary);
}
.wallet-btn.connected {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
}
.wallet-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #0a0a0a;
  border: 1px solid var(--border-strong);
  border-radius: 0.25rem;
  min-width: 160px;
  overflow: hidden;
  z-index: 100;
}
.wallet-dropdown.open {
  display: block;
}
.wallet-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.wallet-option:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}
.wallet-option:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
