:root {
  /* Color system inspired by PRD (trust blues/greens) */
  --safe: #00DC82;
  --primary: #0A84FF;
  --danger: #FF6B6B;
  --gold: #FFD700;
  --bg: #0A0F1C;
  --bg-soft: #0d1326;
  --text: #E6ECF8;
  --text-dim: #A8B3CF;
  --card: #0f1731;
  --divider: #1a2342;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 50% -20%, #0f1731 0%, var(--bg) 50%, var(--bg) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(10,15,28,0.8), rgba(10,15,28,0.2));
  border-bottom: 1px solid var(--divider);
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .logo { width: 22px; height: 22px; display: block; }
.brand .name { letter-spacing: 0.2px; }

.daily-number { display: flex; align-items: baseline; gap: 8px; color: var(--text-dim); }
.daily-number .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.daily-number .value { font-size: 16px; font-weight: 700; color: var(--safe); }

.section { margin: 24px 0; }
.section.subtle { color: var(--text-dim); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid var(--divider);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero { text-align: center; padding: 24px; }
.hero-title { color: var(--text-dim); font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.hero-yield { font-size: 56px; font-weight: 800; letter-spacing: -0.8px; }
.hero-detail { font-size: 18px; color: var(--text-dim); margin-top: 6px; }
.hero-tvl { font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.hero-actions { margin-top: 16px; }
/* Alerts UI removed */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: #0f1731;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.06s ease, background 0.2s ease;
}
.btn.primary { background: linear-gradient(90deg, #0A84FF, #00DC82); border: none; color: #071222; font-weight: 700; }
.btn:active { transform: translateY(1px) scale(0.99); }

.ladder { display: block; }
.ladder-title { font-size: 14px; color: var(--text-dim); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.6px; }
.ladder-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; }
.ladder-item { display: grid; grid-template-columns: 1.2fr auto auto auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.ladder-item:last-child { border-bottom: none; }
.ladder-protocol { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.ladder-badge { font-size: 16px; }
.ladder-token { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ladder-apy { font-weight: 800; }
.ladder-apy.safe { color: var(--safe); }
.ladder-apy.moderate { color: var(--gold); }
.ladder-apy.risky { color: var(--danger); }
.ladder-go { justify-self: end; }

.status { font-size: 13px; color: var(--text-dim); }

.site-footer { margin: 48px 0 24px; color: var(--text-dim); text-align: center; }

/* Thumb-friendly targets on mobile */
@media (max-width: 480px) {
  .hero-yield { font-size: 44px; }
  .ladder-item { grid-template-columns: 1fr auto auto; }
  .ladder-token { display: none; }
}

/* Delight: small shimmer on hero when refreshing */
.loading-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01), rgba(255,255,255,0.06));
  background-size: 300% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

main h2 { margin: 12px 0 6px; font-size: 18px; }
main h3 { margin: 8px 0 4px; font-size: 16px; color: var(--text-dim); }
main p, main li { color: var(--text-dim); line-height: 1.6; }
main ul { margin: 8px 0 0 18px; }

/* SEO internal links styling */
.seo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.seo-links a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 1px; }
.seo-links a:hover { border-bottom-color: rgba(255,255,255,0.5); }

/* FAQ layout */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.faq-item { border: 1px solid var(--divider); border-radius: 12px; padding: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.faq-item p { margin: 0; color: var(--text-dim); }
@media (max-width: 680px) { .faq-grid { grid-template-columns: 1fr; } }


