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

:root {
  --bg: #08080c;
  --surface: #101018;
  --surface-2: #16161f;
  --surface-3: #1c1c28;
  --border: #232334;
  --border-light: #2e2e42;
  --text: #eaeaf2;
  --text-2: #c0c0d0;
  --text-muted: #70708a;
  --accent: #7c6cf0;
  --accent-bright: #9d8fff;
  --accent-dim: rgba(124, 108, 240, 0.12);
  --red: #ff6b6b;
  --green: #51cf66;
  --teal: #20c997;
  --amber: #fcc419;
  --blue: #339af0;
  --pink: #f06595;
  --font: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Newsreader', Georgia, serif;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

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

.logo-mark { color: var(--accent-bright); flex-shrink: 0; }

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-link:hover { color: var(--text-2); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--accent-dim); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.subscribe-btn {
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-bright);
  font-family: var(--font);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.subscribe-btn:hover {
  background: var(--accent);
  color: white;
}

/* ---- Hero ---- */
.hero { padding: 32px 0 0; }

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.edition-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-dim);
}

.date-stamp {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.hero-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-media {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d1a, #1a1030);
}

.abstract-art { position: absolute; inset: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(124, 108, 240, 0.4);
  top: 20%;
  left: 15%;
  animation: float-1 8s ease-in-out infinite;
}

.orb-2 {
  width: 160px;
  height: 160px;
  background: rgba(32, 201, 151, 0.3);
  top: 40%;
  right: 20%;
  animation: float-2 10s ease-in-out infinite;
}

.orb-3 {
  width: 120px;
  height: 120px;
  background: rgba(240, 101, 149, 0.25);
  bottom: 10%;
  left: 40%;
  animation: float-3 7s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 20px) scale(1.15); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.mesh-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mesh-line {
  position: absolute;
  height: 1px;
  width: 140%;
  left: -20%;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 108, 240, 0.2) 30%, rgba(32, 201, 151, 0.15) 70%, transparent 100%);
}

.ml-1 { top: 20%; transform: rotate(-5deg); }
.ml-2 { top: 40%; transform: rotate(3deg); }
.ml-3 { top: 55%; transform: rotate(-2deg); }
.ml-4 { top: 72%; transform: rotate(4deg); }
.ml-5 { top: 88%; transform: rotate(-3deg); }

.hero-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }

.hero-labels { display: flex; gap: 8px; margin-bottom: 14px; }

.label {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--r-xs);
}

.label-exclusive { background: rgba(252, 196, 25, 0.12); color: var(--amber); border: 1px solid rgba(252, 196, 25, 0.25); }
.label-breaking { background: rgba(255, 107, 107, 0.12); color: var(--red); border: 1px solid rgba(255, 107, 107, 0.25); }
.label-research { background: rgba(124, 108, 240, 0.12); color: var(--accent-bright); border: 1px solid rgba(124, 108, 240, 0.25); }
.label-industry { background: rgba(32, 201, 151, 0.12); color: var(--teal); border: 1px solid rgba(32, 201, 151, 0.25); }
.label-policy { background: rgba(240, 101, 149, 0.12); color: var(--pink); border: 1px solid rgba(240, 101, 149, 0.25); }
.label-analysis { background: rgba(51, 154, 240, 0.12); color: var(--blue); border: 1px solid rgba(51, 154, 240, 0.25); }
.label-time { background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border); }

.hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-excerpt {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: auto;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-chip.small { gap: 8px; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-chip.small .avatar { width: 28px; height: 28px; font-size: 0.55rem; }

.av-1 { background: linear-gradient(135deg, var(--accent), var(--teal)); color: white; }
.av-2 { background: linear-gradient(135deg, var(--blue), var(--accent)); color: white; }
.av-3 { background: linear-gradient(135deg, var(--teal), var(--green)); color: white; }
.av-4 { background: linear-gradient(135deg, var(--pink), var(--red)); color: white; }
.av-5 { background: linear-gradient(135deg, var(--amber), var(--pink)); color: white; }
.av-6 { background: linear-gradient(135deg, var(--green), var(--blue)); color: white; }

.author-info { display: flex; flex-direction: column; }

.author-name { font-size: 0.85rem; font-weight: 600; }
.author-role { font-size: 0.7rem; color: var(--text-muted); }

.read-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Side Cards */
.hero-side { display: flex; flex-direction: column; gap: 12px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  cursor: pointer;
}

.side-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.side-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.side-card h3 a:hover { color: var(--accent-bright); }

.side-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ---- Live Feed ---- */
.live-feed {
  padding: 32px 0;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.feed-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-scroll {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  transition: background 0.15s;
}

.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--surface-2); }

.fi-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 42px;
}

.fi-text { flex: 1; color: var(--text-2); }
.fi-hot .fi-text { color: var(--text); font-weight: 500; }

.fi-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fi-tag.hot { background: rgba(255, 107, 107, 0.15); color: var(--red); }

/* ---- Content Grid ---- */
.content { padding: 40px 0 60px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.column-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.filter-chips { display: flex; gap: 6px; }

.chip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--border-light); color: var(--text-2); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-bright); }

/* ---- Story Cards ---- */
.story-card {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.story-card:first-of-type { padding-top: 0; }

.story-card:hover .story-title { color: var(--accent-bright); }

.story-number {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--surface-3);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  transition: color 0.2s;
}

.story-card:hover .story-number { color: var(--accent-dim); }

.story-labels { display: flex; gap: 6px; margin-bottom: 8px; }

.story-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.story-excerpt {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.story-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.story-footer .author-name {
  font-size: 0.8rem;
  color: var(--text-2);
}

.story-date, .story-read {
  font-family: var(--mono);
  font-size: 0.7rem;
}

/* ---- Sidebar Widgets ---- */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

/* Pulse Chart */
.pulse-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: 14px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: var(--surface-3);
  border-radius: 4px 4px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.2s;
}

.chart-bar span {
  position: absolute;
  bottom: -20px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chart-bar.active {
  background: linear-gradient(to top, var(--accent), var(--accent-bright));
  box-shadow: 0 0 16px rgba(124, 108, 240, 0.3);
}

.pulse-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.pulse-note strong { color: var(--accent-bright); }

/* Numbers */
.number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.number-row:last-child { border-bottom: none; padding-bottom: 0; }
.number-row:first-child { padding-top: 0; }

.number-val {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.number-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

/* Most Read */
.reads-list {
  list-style: none;
  counter-reset: reads;
}

.reads-list li {
  counter-increment: reads;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.reads-list li:last-child { border-bottom: none; }

.reads-list li::before {
  content: counter(reads);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 18px;
  padding-top: 2px;
}

.reads-list a { flex: 1; transition: color 0.15s; }
.reads-list a:hover { color: var(--accent-bright); }

.reads-count {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 3px;
}

/* Newsletter Widget */
.widget-newsletter {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  text-align: center;
}

.nl-icon { color: var(--accent-bright); margin-bottom: 12px; }

.nl-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.5;
}

.nl-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.nl-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.825rem;
  outline: none;
  transition: border-color 0.2s;
}

.nl-form input:focus { border-color: var(--accent); }

.nl-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.nl-form button:hover { background: var(--accent-bright); }

.nl-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---- Explore Topics ---- */
.explore { padding: 20px 0 60px; }

.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.topic-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-2);
}

.topic-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.tp-icon {
  display: flex;
  color: var(--accent-bright);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--surface);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand { max-width: 280px; }

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-nav { display: flex; gap: 56px; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-tech { font-family: var(--mono); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .content-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topic-strip { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}

@media (max-width: 640px) {
  .hero-side { flex-direction: column; }
  .hero-title { font-size: 1.4rem; }
  .hero-body { padding: 24px; }
  .story-number { display: none; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .header-right { gap: 10px; }
  .subscribe-btn { display: none; }
}
