:root {
  --bg: #08101f;
  --bg-soft: rgba(13, 22, 43, 0.84);
  --panel: rgba(15, 28, 52, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f7ff;
  --muted: #9fb2d3;
  --primary: #5ce1e6;
  --primary-2: #7a8cff;
  --success: #58d68d;
  --danger: #ff7a90;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(92, 225, 230, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(122, 140, 255, 0.14), transparent 24%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.32;
  pointer-events: none;
}
.ambient-a {
  width: 360px; height: 360px;
  background: #1ac7d0;
  top: -120px; left: -120px;
}
.ambient-b {
  width: 420px; height: 420px;
  background: #6c63ff;
  bottom: -140px; right: -120px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 14px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #071019;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(92, 225, 230, 0.25);
}
.brand-title { font-size: 20px; font-weight: 800; }
.brand-subtitle { font-size: 13px; color: var(--muted); }

.main-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.main-nav a:hover { color: var(--text); }

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card, .glass-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.glass-card {
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-top: 18px;
}
.hero-copy, .hero-panel { padding: 30px; }
.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(92, 225, 230, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.hero-copy h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 16px;
}
.hero-copy h1 span {
  background: linear-gradient(135deg, #ffffff 20%, var(--primary) 55%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 26px 0 22px;
  flex-wrap: wrap;
}
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(88, 214, 141, 0.14);
}

.panel-top, .wallet-card, .module-head, .claim-meta, .stake-actions, .stake-grid, .summary-row, .plan-grid, .faq-grid, .module-grid {
  display: grid;
  gap: 16px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.panel-title { font-size: 26px; font-weight: 700; }
.status-pill, .status-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.status-outline {
  border: 1px solid var(--line);
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.stat-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.stat-card strong {
  font-size: 18px;
}

.wallet-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.wallet-address {
  font-size: 14px;
  word-break: break-all;
  color: #d9e7ff;
}

.summary-row {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}
.summary-box {
  padding: 22px;
}
.summary-box span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.summary-box strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 22px;
}
.summary-box p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.module-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}
.module, .staking {
  padding: 24px;
}
.module-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(122, 140, 255, 0.14);
  color: #c5ccff;
}
.module-head h2, .section-title h2 {
  margin: 10px 0 0;
  font-size: 28px;
}

.task-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.task-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.task-item strong { display: block; margin-bottom: 6px; }
.task-item p { margin: 0; color: var(--muted); font-size: 14px; }
.task-item span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.task-item.completed span { color: var(--success); }

.claim-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(92,225,230,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
}
.claim-meta {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}
.claim-meta span,
.yield-box span,
.info-list span {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.claim-meta strong,
.yield-box strong,
.info-list strong {
  font-size: 16px;
}

.swap-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.swap-box label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.swap-input-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}
.swap-input-wrap input,
.stake-input-row input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  outline: none;
}
.switch-btn {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 14px auto;
}
.token-select {
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(92,225,230,0.18), rgba(122,140,255,0.18));
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.token-select-alt { background: rgba(255,255,255,0.06); }
.info-list {
  margin: 18px 0;
}
.info-list div,
.yield-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-list div:last-child,
.yield-box div:last-child { border-bottom: none; }

.staking { margin-bottom: 20px; }
.plan-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}
.plan-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.plan-card.active {
  background: linear-gradient(180deg, rgba(92,225,230,0.08), rgba(255,255,255,0.03));
  border-color: rgba(92,225,230,0.32);
}
.plan-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-card strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
}
.plan-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.stake-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin: 20px 0;
}
.stake-box,
.yield-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.stake-box label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.stake-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px 0;
}
.stake-box small,
.module small {
  color: var(--muted);
  display: block;
  margin-top: 12px;
  line-height: 1.65;
}
.stake-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-title { margin: 30px 0 18px; }
.faq-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 42px;
}
.faq-card {
  padding: 22px;
}
.faq-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}
.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.outline-btn,
.tiny-btn {
  border: none;
  border-radius: 14px;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.outline-btn:hover,
.tiny-btn:hover,
.switch-btn:hover,
.token-select:hover {
  transform: translateY(-1px);
}
.primary-btn {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #06121f;
  font-weight: 800;
}
.secondary-btn {
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}
.ghost-btn {
  padding: 13px 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}
.outline-btn {
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}
.tiny-btn {
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}
.full-width { width: 100%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(5, 12, 25, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .site-header,
  .hero-grid,
  .summary-row,
  .module-grid,
  .plan-grid,
  .stake-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    justify-content: stretch;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .wallet-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .stats-grid,
  .claim-meta,
  .stake-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .hero-panel,
  .module,
  .staking,
  .faq-card,
  .summary-box {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .module-head h2,
  .section-title h2 {
    font-size: 24px;
  }

  .swap-input-wrap input,
  .stake-input-row input {
    font-size: 20px;
  }
}
