/* MEON Airdrop - Main Styles */

:root {
  --g1: #00e5a0;
  --g2: #a855f7;
  --g3: #3b5bdb;
  --bg: #000;
  --surface: #0a0a0a;
  --text: #e8e8f0;
  --dim: #4a4a5a;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: clamp(12px, 3vw, 20px) clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo-text {
  font-weight: 800;
  font-size: clamp(16px, 4vw, 22px);
  letter-spacing: clamp(4px, 1.5vw, 7px);
  background: linear-gradient(90deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(100px, 15vh, 120px) clamp(16px, 4vw, 20px) clamp(60px, 10vh, 80px);
  position: relative;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: clamp(12px, 3vw, 16px);
  letter-spacing: clamp(-1px, -0.2vw, -2px);
}

.hero-sub {
  font-size: clamp(11px, 2.5vw, 14px);
  letter-spacing: clamp(2px, 0.8vw, 3px);
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: clamp(32px, 6vw, 48px);
}

/* Buttons */
.wallet-btn {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: clamp(12px, 2.5vw, 15px);
  font-weight: 700;
  letter-spacing: clamp(1px, 0.5vw, 3px);
  padding: clamp(14px, 3vw, 20px) clamp(24px, 6vw, 64px);
  border-radius: 100px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
  white-space: nowrap;
}

.wallet-btn:hover {
  box-shadow: 0 6px 36px rgba(0,229,160,0.25);
  transform: translateY(-3px);
}

.wallet-btn:active {
  transform: translateY(-1px);
}

.wallet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sections */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 20px);
}

.section.compact {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 20px);
}

.section-title {
  font-weight: 800;
  font-size: clamp(24px, 5vw, 42px);
  margin-bottom: clamp(32px, 6vw, 48px);
  line-height: 1.1;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress Bar */
.progress-bar {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: clamp(12px, 3vw, 20px);
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: clamp(32px, 6vw, 48px);
}

.progress-fill {
  height: clamp(6px, 1.5vw, 8px);
  background: linear-gradient(90deg, var(--g1), var(--g2));
  border-radius: 10px;
  transition: width 0.5s;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(12px, 2vw, 16px);
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 2vw, 12px);
  color: var(--dim);
}

/* Task Grid */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2vw, 16px);
  margin-bottom: clamp(32px, 6vw, 48px);
}

.task-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: clamp(16px, 3vw, 20px);
  padding: clamp(20px, 4vw, 32px);
  transition: all 0.3s;
}

.task-card:hover {
  border-color: rgba(168,85,247,0.2);
  transform: translateY(-4px);
}

.task-check {
  width: clamp(20px, 4vw, 24px);
  height: clamp(20px, 4vw, 24px);
  border: 2px solid var(--dim);
  border-radius: 6px;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  flex-shrink: 0;
}

.task-check.checked {
  background: var(--g1);
  border-color: var(--g1);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 16px);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: clamp(12px, 2vw, 16px);
  padding: clamp(20px, 4vw, 32px);
  text-align: center;
}

.stat-value {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: clamp(9px, 1.8vw, 11px);
  letter-spacing: clamp(1px, 0.3vw, 2px);
  color: var(--dim);
  text-transform: uppercase;
}

/* Referral Box */
.referral-box {
  background: var(--surface);
  border: 1px solid rgba(0,229,160,0.15);
  border-radius: clamp(16px, 3vw, 20px);
  padding: clamp(20px, 4vw, 32px);
  margin: clamp(32px, 6vw, 48px) 0;
}

.ref-link {
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: clamp(12px, 2vw, 16px);
  font-family: 'DM Mono', monospace;
  font-size: clamp(11px, 2vw, 13px);
  color: var(--g1);
  word-break: break-all;
  margin: 16px 0;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: clamp(10px, 2vw, 12px) clamp(18px, 3vw, 24px);
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 700;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.06);
}

/* Reward Calculator */
.reward-calc {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: clamp(16px, 3vw, 20px);
  padding: clamp(20px, 4vw, 32px);
}

.reward-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 2vw, 16px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: clamp(13px, 2.5vw, 15px);
}

.reward-total {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: clamp(16px, 3vw, 24px);
}

/* Tablet optimizations */
@media (min-width: 481px) and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile optimizations */
@media (max-width: 480px) {
  nav {
    padding: 12px 16px;
  }
  .logo-text {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .wallet-btn {
    font-size: 11px;
    letter-spacing: 1px;
    padding: 12px 20px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .section {
    padding: 40px 16px;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .progress-bar {
    padding: 16px;
    border-radius: 12px;
  }
  .progress-info {
    font-size: 10px;
  }
  .task-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .task-card {
    padding: 20px;
    border-radius: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 9px;
  }
  .referral-box {
    padding: 20px;
    border-radius: 16px;
  }
  .ref-link {
    font-size: 11px;
    padding: 12px;
  }
  .reward-calc {
    padding: 20px;
    border-radius: 16px;
  }
  .reward-item {
    font-size: 13px;
    padding: 12px 0;
  }
  .reward-total {
    font-size: 24px;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: clamp(16px, 3vw, 24px);
  margin: clamp(60px, 10vh, 100px) auto;
  padding: clamp(32px, 6vw, 48px);
  max-width: 540px;
  width: calc(100% - 32px);
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: clamp(12px, 2vw, 16px);
  right: clamp(12px, 2vw, 16px);
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: clamp(28px, 5vw, 36px);
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 20px);
}

.task-item {
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: clamp(12px, 2vw, 16px);
  padding: clamp(16px, 3vw, 20px);
  transition: all 0.3s;
}

.task-item:hover {
  border-color: rgba(0,229,160,0.2);
}

.task-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.task-checkbox {
  width: clamp(20px, 4vw, 24px);
  height: clamp(20px, 4vw, 24px);
  border: 2px solid var(--dim);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s;
  flex-shrink: 0;
  position: relative;
}

.task-checkbox:checked {
  background: var(--g1);
  border-color: var(--g1);
}

.task-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: 800;
  font-size: clamp(12px, 2.5vw, 14px);
}

.task-title {
  font-weight: 700;
  font-size: clamp(13px, 2.5vw, 15px);
  flex: 1;
}

.task-link {
  color: var(--g1);
  text-decoration: none;
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
}

.task-link:hover {
  color: var(--g2);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .wallet-btn:hover,
  .task-card:hover,
  .copy-btn:hover {
    transform: none;
  }
  .wallet-btn:active {
    transform: scale(0.98);
  }
  .task-check {
    width: 28px;
    height: 28px;
  }
  .task-checkbox {
    width: 28px;
    height: 28px;
  }
}

/* Wallet option buttons */
.wallet-option-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 32px);
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 600;
  transition: all 0.3s;
  margin: 0 8px;
}

.wallet-option-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--g1);
}
