/* ============================================================
   jeffdyment.com — Main Stylesheet
   Dark + Electric Blue modern/tech theme
   ============================================================ */

:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0f1526;
  --bg-card:       #141c2e;
  --bg-card-hover: #1a2540;
  --accent:        #0066ff;
  --accent-bright: #3385ff;
  --accent-glow:   rgba(0, 102, 255, 0.18);
  --accent-soft:   rgba(0, 102, 255, 0.08);
  --text-primary:  #e8edf7;
  --text-secondary:#8fa3c4;
  --text-muted:    #4d6080;
  --border:        #1e2d4a;
  --border-bright: #0066ff44;
  --gold:          #f0b942;
  --green:         #00d4aa;
  --red:           #ff4466;
  --font-sans:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-accent: 0 4px 32px rgba(0, 102, 255, 0.2);
  --transition:    0.22s cubic-bezier(0.4,0,0.2,1);
  --nav-height:    68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── TYPOGRAPHY ────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-secondary); }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* ── LAYOUT ────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 120px 0; }

/* ── NAVIGATION ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--text-primary);
  letter-spacing: -0.03em;
}
.nav__logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px var(--accent); }
  50%      { box-shadow: 0 0 18px var(--accent); }
}
.nav__links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav__links a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.nav__links a:hover, .nav__links a.active {
  background: var(--accent-soft); color: var(--text-primary);
}
.nav__links a.active { color: var(--accent-bright); }
.nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px !important; border-radius: var(--radius) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-accent);
}
.nav__cta:hover { background: var(--accent-bright) !important; color: #fff !important; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all var(--transition);
}

/* ── PAGE OFFSET (for fixed nav) ───────────────────── */
.page-content { padding-top: var(--nav-height); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,102,255,0.08) 0%, transparent 70%),
              var(--bg-primary);
}
.hero__grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--border-bright);
  border-radius: 100px; padding: 6px 14px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent-bright); margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--accent-bright); }
.hero__subtitle {
  font-size: 1.15rem; max-width: 580px;
  color: var(--text-secondary); margin-bottom: 40px; line-height: 1.75;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap;
}
.hero__stat-number {
  font-size: 2rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.04em;
}
.hero__stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: none; text-decoration: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-bright); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 40px rgba(0,102,255,0.35);
}
.btn--outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  background: var(--bg-card); color: var(--text-primary);
  border-color: var(--accent); transform: translateY(-1px);
}
.btn--ghost {
  background: transparent; color: var(--accent-bright);
  padding: 8px 0;
}
.btn--ghost:hover { color: #fff; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.card__tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 14px;
}

/* Topic tag colors */
.tag--usde     { background: rgba(0,102,255,0.15); color: #4da3ff; }
.tag--stablecoin { background: rgba(0,212,170,0.12); color: #00d4aa; }
.tag--btc      { background: rgba(240,185,66,0.12); color: #f0b942; }
.tag--dao      { background: rgba(160,80,255,0.12); color: #b37fff; }
.tag--commodity { background: rgba(255,100,60,0.12); color: #ff8060; }
.tag--minerals  { background: rgba(80,200,120,0.12); color: #50c878; }
.tag--islamic   { background: rgba(255,200,80,0.12); color: #ffc850; }
.tag--abt       { background: rgba(255,60,100,0.12); color: #ff6080; }
.tag--dmx       { background: rgba(0,180,220,0.12); color: #00b4dc; }
.tag--other     { background: rgba(140,140,160,0.12); color: #8c8ca0; }

/* ── SECTION HEADERS ───────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { font-size: 1.05rem; max-width: 560px; }

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

/* ── TOPIC CARDS ───────────────────────────────────── */
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  cursor: pointer; text-decoration: none; display: block;
}
.topic-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}
.topic-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.topic-card__count {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 600; margin-top: 14px;
}

/* ── RESEARCH LIBRARY ──────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
  align-items: center;
}
.filter-btn {
  padding: 7px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-soft);
  border-color: var(--border-bright);
  color: var(--accent-bright);
}
.search-box {
  flex: 1; max-width: 320px;
  display: flex; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 14px; gap: 10px;
}
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-family: var(--font-sans);
  font-size: 0.88rem; padding: 10px 0; width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.doc-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--transition);
  cursor: pointer;
}
.doc-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,102,255,0.12);
}
.doc-card__icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright); flex-shrink: 0;
}
.doc-card__title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; flex: 1;
}
.doc-card__meta {
  display: flex; align-items: center; justify-content: space-between;
}
.doc-card__size { font-size: 0.75rem; color: var(--text-muted); }
.doc-card__dl {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent-soft); border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright); transition: all var(--transition);
}
.doc-card:hover .doc-card__dl {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.doc-card--hidden { display: none; }

/* ── VIDEOS ────────────────────────────────────────── */
.video-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.video-card:hover {
  border-color: var(--border-bright); transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.video-card__thumb {
  aspect-ratio: 16/9; background: var(--bg-secondary);
  position: relative; overflow: hidden;
}
.video-card__thumb iframe { width: 100%; height: 100%; border: none; }
.video-card__body { padding: 18px 20px; }
.video-card__title {
  font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px; line-height: 1.4;
}
.video-card__meta { font-size: 0.78rem; color: var(--text-muted); }

/* ── STAT BAR ──────────────────────────────────────── */
.stat-bar {
  background: var(--bg-card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stat-bar__inner {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.stat-item { text-align: center; }
.stat-item__number {
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-bright), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item__label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── FEATURED PAPERS TICKER ────────────────────────── */
.ticker-wrap {
  overflow: hidden; background: var(--accent-soft);
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  padding: 10px 0;
}
.ticker-track {
  display: flex; gap: 64px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--text-secondary);
  flex-shrink: 0;
}
.ticker-item::before {
  content: '●'; color: var(--accent); font-size: 0.5rem;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── ABOUT ─────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px;
  align-items: start;
}
.about-avatar {
  width: 100%; aspect-ratio: 1;
  max-width: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-card));
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}
.about-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.about-tag {
  background: var(--accent-soft); border: 1px solid var(--border-bright);
  color: var(--accent-bright); padding: 5px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
}

/* ── CONTACT ───────────────────────────────────────── */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; max-width: 600px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.9rem;
  padding: 11px 14px; outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer__brand p {
  font-size: 0.88rem; color: var(--text-muted); margin-top: 12px;
  max-width: 280px; line-height: 1.7;
}
.footer__col h5 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a {
  font-size: 0.88rem; color: var(--text-muted);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── DIVIDER ───────────────────────────────────────── */
.divider {
  height: 1px; background: var(--border); margin: 48px 0;
}
.accent-line {
  width: 48px; height: 3px; background: var(--accent);
  border-radius: 2px; margin-bottom: 20px;
}

/* ── TOAST / ALERT ─────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 0.88rem; color: var(--text-primary);
  box-shadow: var(--shadow); transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── PAGE HERO (inner pages) ───────────────────────── */
.page-hero {
  padding: 64px 0 48px;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(0,102,255,0.06) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 12px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent-bright); }
.breadcrumb span { color: var(--text-muted); }

/* ── GLOW EFFECT ───────────────────────────────────── */
.glow-accent {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── MOBILE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 28px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .filter-bar { gap: 8px; }
  .container { padding: 0 16px; }
}
.nav__mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(10,14,26,0.97); flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-size: 1.4rem; font-weight: 700; color: var(--text-primary);
  padding: 10px 0;
}
.nav__mobile-menu a:hover { color: var(--accent-bright); }
.nav__mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--text-primary);
  font-size: 1.5rem; cursor: pointer;
}
