/* ── THEME TOKENS ── */
[data-theme="dark"] {
  --bg:        #0d0f14;
  --bg2:       #13161e;
  --bg3:       #1a1d28;
  --card:      #151820;
  --card-h:    #1c2030;
  --ink:       #edeae3;
  --ink2:      #a8a49d;
  --ink3:      #585450;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --accent:    #00c896;
  --accent2:   #ff4d6d;
  --gold:      #d4a853;
  --num-badge: rgba(255,255,255,0.04);
  --ticker-bg: #080a0e;
  --hero-r-bg: #0a0d13;
  --strip-bg:  #13161e;
  --strip-h:   #1a1d28;
  --nl-bg:     #080a0e;
  --foot-bg:   #080a0e;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
}
[data-theme="light"] {
  --bg:        #f5f3ee;
  --bg2:       #fff;
  --bg3:       #f0ede6;
  --card:      #ffffff;
  --card-h:    #f9f8f4;
  --ink:       #0d0f14;
  --ink2:      #7a7a7a;
  --ink3:      #b0aca5;
  --border:    rgba(0,0,0,0.09);
  --border2:   rgba(0,0,0,0.16);
  --accent:    #00a37a;
  --accent2:   #d4304a;
  --gold:      #b0843a;
  --num-badge: rgba(0,0,0,0.05);
  --ticker-bg: #0d0f14;
  --hero-r-bg: #0d0f14;
  --strip-bg:  #f5f3ee;
  --strip-h:   #edeae3;
  --nl-bg:     #0d0f14;
  --foot-bg:   #f5f3ee;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  transition: background .3s, color .3s;
}
button { cursor: pointer; font-family: 'DM Sans', sans-serif; border: none; }
a { text-decoration: none; color: inherit; }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--ticker-bg);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 101;
}
.ticker-track {
  display: inline-block;
  animation: ticker 32s linear infinite;
}
.ticker-track span { margin: 0 2rem; }
.up { color: #00c896; }
.dn { color: #ff4d6d; }
[data-theme="light"] .up { color: #009970; }
[data-theme="light"] .dn { color: #d4304a; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 62px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 9px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.4); }
}
.nav-links {
  display: flex; gap: 1.8rem; list-style: none;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.nav-links a { color: var(--ink2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--ink2);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
  cursor: pointer;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--bg);
  border: none; padding: 8px 20px;
  border-radius: 50px; font-size: 12.5px; font-weight: 500;
  letter-spacing: .03em;
  transition: opacity .2s; white-space: nowrap;
}
.nav-cta:hover { opacity: .82; }

/* ── HAMBURGER ── */
.ham {
  display: none; flex-direction: column; gap: 5px;
  width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 1px solid var(--border2); border-radius: 8px;
  background: transparent; cursor: pointer;
}
.ham span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 2px; transition: all .25s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 200;
  flex-direction: column; padding: 28px 28px 40px;
  transition: opacity .25s; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mob-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.mob-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border2); background: transparent;
  color: var(--ink); font-size: 18px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mob-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mob-link {
  font-family: 'Playfair Display', serif;
  font-size: 26px; letter-spacing: -0.5px;
  color: var(--ink); padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color .2s;
}
.mob-link:hover { color: var(--accent); }
.mob-foot { display: flex; gap: 12px; padding-top: 28px; align-items: center; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink); color: var(--bg);
  border: none; padding: 13px 28px; border-radius: 50px;
  font-size: 13.5px; font-weight: 500;
  transition: transform .2s, opacity .2s;
}
.btn-primary:hover { opacity: .82; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border2);
  padding: 13px 28px; border-radius: 50px;
  font-size: 13.5px; font-weight: 500;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  min-height: 500px;
}
.hero-left {
  padding: 64px 44px 64px 40px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px;
}
.hero-eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: var(--accent); display: inline-block; flex-shrink: 0;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.12; letter-spacing: -1.5px;
  margin-bottom: 20px; color: var(--ink);
  animation: fadeUp .5s ease forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 15px; color: var(--ink2);
  max-width: 380px; margin-bottom: 32px; line-height: 1.78;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-right {
  background: var(--hero-r-bg);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.hero-right::before {
  content: ''; position: absolute; top: -70px; right: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(0,200,150,.12);
}
.hero-right::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid rgba(0,200,150,.22);
}
.chart-label {
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  color: rgba(255,255,255,.38); letter-spacing: .1em; margin-bottom: 4px;
}
.chart-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 62px);
  color: #fff; letter-spacing: -2px; line-height: 1;
}
.chart-change {
  font-family: 'DM Mono', monospace; font-size: 13px;
  color: #00c896; margin-top: 7px;
}
.mini-chart { margin: 22px 0; }
.mini-chart svg { width: 100%; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.07);
  border-radius: 10px; overflow: hidden;
}
.stat-cell { background: rgba(255,255,255,.03); padding: 14px 16px; }
.stat-cell .lbl { font-size: 10px; color: rgba(255,255,255,.32); font-family: 'DM Mono', monospace; letter-spacing: .1em; margin-bottom: 4px; }
.stat-cell .val { font-size: 17px; font-weight: 500; color: #fff; }
.stat-cell .val.green { color: #00c896; }
.stat-cell .val.red   { color: #ff4d6d; }

/* ── MARKET STRIP ── */
.market-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.mkt-cell {
  background: var(--strip-bg); padding: 18px 20px;
  cursor: pointer; transition: background .15s;
}
.mkt-cell:hover { background: var(--strip-h); }
.mkt-name  { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--ink2); margin-bottom: 5px; }
.mkt-price { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -.4px; }
.mkt-chg   { font-family: 'DM Mono', monospace; font-size: 11.5px; margin-top: 4px; }
.mkt-chg.up { color: var(--accent); }
.mkt-chg.dn { color: var(--accent2); }

/* ── SECTION HEADER ── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 36px 40px 22px; border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: 'Playfair Display', serif; font-size: 28px;
  letter-spacing: -.7px; color: var(--ink);
}
.see-all { font-size: 13px; color: var(--accent); font-weight: 500; cursor: pointer; transition: opacity .2s; }
.see-all:hover { opacity: .75; }

/* ── ARTICLE CARDS ── */
.grid-featured {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.art-card {
  background: var(--card); padding: 30px 26px;
  cursor: pointer; transition: background .2s;
}
.art-card:hover { background: var(--card-h); }
.art-card.featured { padding: 40px; }
[data-theme="light"] .art-card:hover  { background: #f9f8f4; }
[data-theme="light"] .col-card:hover  { background: #f9f8f4; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 50px;
  margin-bottom: 14px; font-weight: 500;
}
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Dark tag colours */
.t-markets  { background: rgba(0,200,150,.1);   color: #00c896; }
.t-crypto   { background: rgba(255,180,60,.1);   color: #d48a00; }
.t-policy   { background: rgba(255,77,109,.1);   color: #ff4d6d; }
.t-investing{ background: rgba(80,130,255,.1);   color: #6090ff; }
.t-analysis { background: rgba(180,100,255,.1);  color: #c070f0; }
/* Light overrides */
[data-theme="light"] .t-markets   { background: #eef9f5; color: #00a37a; }
[data-theme="light"] .t-crypto    { background: #fff4e5; color: #b06000; }
[data-theme="light"] .t-policy    { background: #ffeef2; color: #c0003b; }
[data-theme="light"] .t-investing { background: #eef3ff; color: #2d5be3; }
[data-theme="light"] .t-analysis  { background: #f4eeff; color: #6930c3; }

.art-title {
  font-family: 'Playfair Display', serif;
  font-size: 23px; line-height: 1.25; letter-spacing: -.4px;
  margin-bottom: 12px; color: var(--ink);
}
.art-card:not(.featured) .art-title { font-size: 16.5px; }
.art-excerpt { font-size: 13.5px; color: var(--ink2); line-height: 1.7; margin-bottom: 22px; }
.art-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--ink2); font-family: 'DM Mono', monospace;
  flex-wrap: wrap;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.av1 { background: #2d5be3; }
.av2 { background: #6930c3; }
.av3 { background: #00a37a; }
.av4 { background: #c0003b; }
.art-read-time { margin-left: auto; color: var(--accent); white-space: nowrap; }

/* ── 3-COLUMN ── */
.cols-three {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.col-card {
  background: var(--card); padding: 30px 26px;
  cursor: pointer; transition: background .2s;
}
.num-badge {
  font-family: 'Playfair Display', serif;
  font-size: 48px; color: var(--num-badge);
  line-height: 1; margin-bottom: 10px; display: block;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--nl-bg);
  padding: 60px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 44px; align-items: center;
  transition: background .3s;
}
.nl-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: #00c896; margin-bottom: 16px;
}
.nl-title { font-family: 'Playfair Display', serif; font-size: 36px; color: #fff; letter-spacing: -1px; line-height: 1.18; }
.nl-title em { font-style: italic; color: #d4a853; }
.nl-sub  { color: rgba(255,255,255,.45); font-size: 13.5px; margin-top: 12px; line-height: 1.7; }
.nl-form { display: flex; gap: 10px; }
.nl-input {
  flex: 1; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11); border-radius: 50px;
  padding: 13px 20px; color: #fff; font-size: 13.5px;
  font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color .2s; min-width: 0;
}
.nl-input::placeholder { color: rgba(255,255,255,.28); }
.nl-input:focus { border-color: #00c896; }
.nl-btn {
  background: #00c896; color: #0d0f14;
  border: none; padding: 13px 22px; border-radius: 50px;
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; transition: opacity .2s;
}
.nl-btn:hover { opacity: .86; }
.nl-trust { font-size: 11.5px; color: rgba(255,255,255,.28); margin-top: 12px; font-family: 'DM Mono', monospace; }

/* ── FOOTER ── */
footer {
  background: var(--foot-bg);
  padding: 44px 40px 28px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  transition: background .3s;
}
.foot-brand .logo { margin-bottom: 12px; font-size: 18px; }
.foot-brand p { font-size: 13px; color: var(--ink2); line-height: 1.75; max-width: 240px; }
.foot-col h4 { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 14px; font-family: 'DM Mono', monospace; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a  { font-size: 13px; color: var(--ink); transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding: 18px 40px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--foot-bg);
}
.foot-bottom p { font-size: 11.5px; color: var(--ink3); font-family: 'DM Mono', monospace; }
.foot-socials  { display: flex; gap: 10px; }
.soc-btn {
  width: 30px; height: 30px; border: 1px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer; color: var(--ink2);
  transition: border-color .2s, color .2s;
}
.soc-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(14px); animation: fadeUp .5s ease forwards; }
.fd2 { animation-delay: .08s; }
.fd3 { animation-delay: .16s; }
.fd4 { animation-delay: .24s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .ham       { display: flex; }
  nav        { padding: 0 20px; }

  .hero                  { grid-template-columns: 1fr; }
  .hero-left             { padding: 40px 20px 36px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-right            { padding: 28px 20px 36px; }
  .hero-title            { font-size: 32px; letter-spacing: -1px; }
  .chart-big             { font-size: 44px; }

  .market-strip                        { grid-template-columns: repeat(3, 1fr); }
  .market-strip .mkt-cell:nth-child(4),
  .market-strip .mkt-cell:nth-child(5) { display: none; }

  .section-head { padding: 28px 20px 16px; }

  .grid-featured                       { grid-template-columns: 1fr; }
  .art-card.featured                   { padding: 24px 20px; }
  .art-card                            { padding: 22px 20px; }
  .art-card:not(.featured) .art-title  { font-size: 17px; }

  .cols-three { grid-template-columns: 1fr; }
  .col-card   { padding: 24px 20px; }

  .newsletter  { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .nl-title    { font-size: 28px; }
  .nl-form     { flex-direction: column; gap: 10px; }
  .nl-btn      { width: 100%; }

  footer        { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 20px 20px; }
  .foot-brand   { grid-column: 1 / -1; }
  .foot-bottom  { padding: 16px 20px 20px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 540px) {
  .market-strip                        { grid-template-columns: 1fr 1fr; }
  .market-strip .mkt-cell:nth-child(3) { display: none; }
  .hero-stats  { grid-template-columns: 1fr 1fr; }
  footer       { grid-template-columns: 1fr; }
  .foot-brand  { grid-column: auto; }
}
