/* ============================================
   DeFi Market Journal — design system
   ============================================ */

:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #121a29;
  --surface-2: #17203092;
  --border: #22304a;
  --text: #e9eef7;
  --text-dim: #93a4bd;
  --text-faint: #5c6b85;
  --accent: #22d3a5;
  --accent-dim: #1a9d7b;
  --accent-2: #f2b134;
  --accent-2-dim: #c8931f;
  --danger: #ef5b5b;

  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

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

/* ---------- Top bar (market ticker feel) ---------- */
.topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand span.accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04140f; box-shadow: 0 8px 24px -8px rgba(34,211,165,0.55); }
.btn-primary:hover { background: #3ee7b4; box-shadow: 0 10px 30px -8px rgba(34,211,165,0.7); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold { background: var(--accent-2); color: #241a02; box-shadow: 0 8px 24px -8px rgba(242,177,52,0.55); }
.btn-gold:hover { background: #ffc655; box-shadow: 0 10px 30px -8px rgba(242,177,52,0.7); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 165, 0.16), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(242, 177, 52, 0.13), transparent 40%),
    linear-gradient(180deg, #0a0f1a 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, black 40%, transparent 90%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Stat / snapshot card ---------- */
.stat-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.stat-card .cap {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.stat-row:first-of-type { border-top: none; }
.stat-label { font-size: 13.5px; color: var(--text-dim); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--accent); }
.stat-value.gold { color: var(--accent-2); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 165, 0.08);
  border: 1px solid rgba(34, 211, 165, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  max-width: 780px;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 620px;
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 28px; margin: 0; }
.section-head .see-all { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-sub { color: var(--text-faint); font-size: 15px; margin-top: 6px; }

/* ---------- Cards / article grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: rgba(34,211,165,0.4); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55); }
.card-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #16233a, #0e1522);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tag.gold { color: var(--accent-2); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card-meta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

/* ---------- Featured split ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.featured-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.featured-main .card-media { aspect-ratio: 16/8; }
.featured-main .card-body { padding: 28px; }
.featured-main h3 { font-size: 26px; }
.featured-list { display: flex; flex-direction: column; gap: 16px; }
.featured-list .mini {
  display: flex; gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.featured-list .mini:last-child { border-bottom: none; }
.mini-thumb {
  width: 84px; height: 64px; flex-shrink: 0;
  background: linear-gradient(135deg, #16233a, #0e1522);
  border-radius: 8px;
}
.mini h4 { font-size: 14.5px; margin: 0 0 6px; line-height: 1.35; }
.mini .card-meta { border: none; padding: 0; }

/* ---------- Pricing / packages ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card {
  transition: transform .15s, box-shadow .15s;
}
.price-card:hover {
  transform: translateY(-3px);
}
.price-card.featured-tier {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 30px 60px -24px rgba(242,177,52,0.4);
  position: relative;
  transform: scale(1.02);
}
.price-card.featured-tier::before {
  content: "MOST POPULAR";
  position: absolute; top: -12px; left: 28px;
  background: var(--accent-2); color: #241a02;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  margin: 16px 0 4px;
}
.price-card .price span { font-size: 14px; color: var(--text-faint); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.price-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--text-dim);
  margin-bottom: 12px;
}
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(34,211,165,0.1);
  border: 1px solid rgba(34,211,165,0.35);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
  margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 600;
  margin-bottom: 7px; color: var(--text-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: linear-gradient(135deg, #0e1a16, #0b1120);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.newsletter-inner h2 { font-size: 24px; margin-bottom: 6px; }
.newsletter-form { display: flex; gap: 10px; min-width: 360px; }
.newsletter-form input {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-faint); margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 20% 0%, rgba(34,211,165,0.10), transparent 50%);
}
.page-header h1 { font-size: 38px; margin-bottom: 12px; }
.page-header p { font-size: 16.5px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Network logo strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  padding: 28px 0;
}
.logo-strip img {
  height: 22px;
  width: auto;
  filter: grayscale(1) brightness(2.2);
  opacity: 0.55;
  transition: opacity .15s, filter .15s;
}
.logo-strip img:hover {
  opacity: 1;
  filter: none;
}

/* ---------- Article cover ---------- */
.article-cover {
  max-width: 900px;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: -12px 0 40px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Article body ---------- */
.article-header { max-width: 760px; }
.article-header .card-meta { border: none; padding: 0; justify-content: flex-start; gap: 18px; margin-top: 18px; }
.article-body {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
}
.article-body h2 {
  color: var(--text);
  font-size: 24px;
  margin: 40px 0 16px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); }
.article-disclaimer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- FAQ block ---------- */
.faq-block {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.faq-block:last-child { border-bottom: 1px solid var(--border); }

/* ---------- Callout box ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.callout.gold { border-left-color: var(--accent-2); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .pricing-grid, .steps, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .featured, .hero-split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .price-card.featured-tier { transform: none; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .grid-3, .grid-4, .grid-2, .pricing-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { min-width: 100%; flex-direction: column; }
}
