/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Limited to 5 total colors */
  --primary: #0066ff;
  --accent: #ff6b35;
  --wlf-gold: #E7AC08;
  --wlf-blue: #1C1917;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #1a1a1a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;

  /* Typography - 2 font families max */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Header */
.header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: white;
}

.wlf-logo {
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IiMxQzE5MTciLz4KICA8IS0tIEVhZ2xlIHdpbmdzIC0tPgogIDxwYXRoIGQ9Ik0xNiAxMEM4IDEwIDQgMTQgNiAxOEM4IDE2IDEyIDE0IDE2IDEwWiIgZmlsbD0iI0U3QUMwOCIvPgogIDxwYXRoIGQ9Ik0xNiAxMEMyNCA1IDI4IDEwIDI2IDE4QzI0IDE2IDIwIDE0IDE2IDEwWiIgZmlsbD0iI0U3QUMwOCIvPgogIDwhLS0gRWFnbGUgYm9keSAtLT4KICA8cGF0aCBkPSJNMTYgMTBMMTggMTZMMTYgMjJMMTQgMTZMMTYgMTBaIiBmaWxsPSIjRTdBQzA4Ii8+CiAgPCEtLSBFYWdsZSBoZWFkIC0tPgogIDxjaXJjbGUgY3g9IjE2IiBjeT0iMTAiIHI9IjIiIGZpbGw9IiNFN0FDMDI4Ii8+Cjwvc3ZnPg==') center/contain no-repeat !important;
  background-color: transparent !important;
  border-radius: var(--radius-md);
}

.wlf-logo::after {
  content: "";
  display: none;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-primary.large,
.btn-secondary.large {
  padding: var(--space-lg) var(--space-xl);
  font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crypto-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 280px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-weight: 500;
}

.card-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
}

.card-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.card-change {
  font-weight: 600;
  font-size: 1.125rem;
}

.card-change.positive {
  color: var(--success);
}

/* Stats Section */
.stats {
  padding: var(--space-2xl) 0;
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features Section */
.features {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.security {
  background: linear-gradient(135deg, #10b981, #059669);
}

.feature-icon.yield {
  background: linear-gradient(135deg, var(--primary), #0052cc);
}

.feature-icon.governance {
  background: linear-gradient(135deg, var(--accent), #e55527);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: var(--space-2xl) 0;
  background: var(--surface);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Footer */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

/* Eligibility Page Styles */
.eligibility-section {
  padding: var(--space-2xl) 0;
  min-height: 80vh;
}

.eligibility-container {
  max-width: 600px;
  margin: 0 auto;
}

.eligibility-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.step.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
}

.eligibility-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.eligibility-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Form Styles */
.eligibility-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.input-wrapper {
  position: relative;
  display: flex;
  gap: var(--space-sm);
}

.wallet-input {
  flex: 1;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-mono);
  transition: border-color 0.2s ease;
}

.wallet-input:focus {
  outline: none;
  border-color: var(--primary);
}

.paste-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.paste-btn:hover {
  background: var(--border);
}

.input-help {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Button Loading State */
.btn-primary .btn-text {
  transition: opacity 0.2s ease;
}

.btn-primary.loading .btn-text {
  opacity: 0;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary.loading .btn-loader {
  opacity: 1;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Results */
.eligibility-result {
  margin-bottom: var(--space-xl);
}

.result-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.result-card.ineligible {
  border-color: var(--error);
  background: #fef2f2;
}

.result-icon {
  margin: 0 auto var(--space-md);
  color: var(--error);
}

.result-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--error);
}

.result-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.result-details {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.detail-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.status-ineligible {
  color: var(--error);
  font-weight: 600;
}

.result-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Support Section */
.support-section {
  padding: var(--space-xl) 0;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.support-icon {
  margin: 0 auto var(--space-md);
  color: var(--primary);
}

.support-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .nav-links {
    display: none;
  }

  .result-actions {
    flex-direction: column;
  }

  .input-wrapper {
    flex-direction: column;
  }
}
