/* ─────────────────────────────────────────────────────────────
   Redirect — Shared Article Stylesheet
   Used by all pages inside /articles/
   ───────────────────────────────────────────────────────────── */

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

:root {
  --pink:    #EC4176;
  --purple:  #7659E1;
  --mixed:   #C14BAB;
  --bg:      #FFFFFF;
  --surface: #F2F2F2;
  --sunken:  #E8E8E8;
  --text:    #111111;
  --text2:   #555555;
  --text3:   #AAAAAA;
  --neutral: #DDDDDD;
  --font:    'Oxygen', sans-serif;
  --pixel:   'Press Start 2P', monospace;
  --ease:    cubic-bezier(0.32, 0.72, 0, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Reading Progress Bar ───────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  z-index: 200;
  transition: width 60ms linear;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 20px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  white-space: nowrap;
}

.navbar-logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
  margin-right: 8px;
}

.navbar-logo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  margin-left: 3px;
  vertical-align: middle;
  margin-bottom: 2px;
}

.navbar-links { display: flex; align-items: center; gap: 2px; }

.navbar-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 100px;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}

.navbar-link:hover { background: var(--surface); color: var(--text); }
.navbar-link.active { background: var(--text); color: #fff; }

/* ── Article Header ─────────────────────────────────────────── */
.article-header {
  padding: 152px 7vw 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 300ms var(--ease), gap 300ms var(--ease);
}

.back-link:hover { color: var(--text); gap: 12px; }

.back-arrow {
  font-size: 16px;
  transition: transform 300ms var(--ease);
}

.back-link:hover .back-arrow { transform: translateX(-3px); }

.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(236,65,118,0.08);
  border: 1px solid rgba(236,65,118,0.15);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.article-cat-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pink);
}

.article-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text3);
  font-size: 13px;
  font-weight: 700;
}

.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--neutral);
}

/* ── Article Body ───────────────────────────────────────────── */
.article-body {
  padding: 0 7vw 40px;
}

.prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text2);
  max-width: 680px;
}

.prose p { margin-bottom: 28px; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text);
  margin: 56px 0 20px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 40px 0 16px;
}

.prose strong {
  font-weight: 700;
  color: var(--text);
}

.prose em { font-style: italic; }

.prose a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms var(--ease);
}

.prose a:hover { color: var(--pink); }

/* ── Pull Quote ─────────────────────────────────────────────── */
.pull-quote-outer {
  background: var(--surface);
  border: 1px solid var(--sunken);
  border-radius: 24px;
  padding: 5px;
  margin: 48px 0;
  max-width: 680px;
}

.pull-quote-inner {
  background: var(--bg);
  border-radius: 19px;
  padding: 32px 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  border-left: 3px solid var(--purple);
}

.pull-quote-text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--text);
}

.pull-quote-source {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Stat Callout ───────────────────────────────────────────── */
.stat-callout {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 40px 0;
}

.stat-number {
  font-family: var(--pixel);
  font-size: 32px;
  color: var(--purple);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.stat-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text2);
}

/* ── Divider ────────────────────────────────────────────────── */
.article-divider {
  height: 1px;
  background: var(--sunken);
  margin: 48px 7vw;
}

/* ── CTA Section ────────────────────────────────────────────── */
.article-cta-outer {
  background: var(--surface);
  border: 1px solid var(--sunken);
  border-radius: 28px;
  padding: 6px;
  margin: 0 7vw;
}

.article-cta-inner {
  background: var(--text);
  border-radius: 22px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.article-cta-inner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,89,225,0.3) 0%, transparent 65%);
  top: -150px; right: -100px;
  pointer-events: none;
}

.article-cta-inner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,65,118,0.25) 0%, transparent 65%);
  bottom: -120px; left: 10%;
  pointer-events: none;
}

.cta-text { position: relative; z-index: 1; max-width: 420px; }

.cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.cta-headline {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.cta-form { position: relative; z-index: 1; flex-shrink: 0; }

.cta-input-shell {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 5px;
  display: flex;
  gap: 5px;
  min-width: 320px;
}

.cta-input-shell input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: #fff;
  outline: none;
}

.cta-input-shell input::placeholder { color: rgba(255,255,255,0.3); }

.cta-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 14px 11px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}

.cta-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(236,65,118,0.4);
}

.cta-submit:active { transform: scale(0.97); }

.cta-btn-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform 400ms var(--ease);
}

.cta-submit:hover .cta-btn-arrow { transform: translate(2px, -2px); }

.cta-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(118,89,225,0.15);
  border: 1px solid rgba(118,89,225,0.25);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #A78BFA;
}

.cta-success.visible { display: flex; }

/* ── Related Articles ───────────────────────────────────────── */
.related-section {
  padding: 72px 7vw 120px;
}

.related-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-label-line {
  flex: 1;
  height: 1px;
  background: var(--sunken);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-outer {
  background: var(--surface);
  border: 1px solid var(--sunken);
  border-radius: 24px;
  padding: 5px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 500ms var(--ease);
}

.related-outer:hover { transform: translateY(-2px); }
.related-outer:active { transform: scale(0.99); }

.related-inner {
  background: var(--bg);
  border-radius: 19px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}

.related-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--text);
}

.related-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  margin-top: 4px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--sunken);
  padding: 32px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { font-weight: 700; font-size: 14px; color: var(--text); }

.footer-logo span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  margin-left: 3px;
  vertical-align: middle;
  margin-bottom: 2px;
}

.footer-note { font-size: 13px; color: var(--text3); }

.footer-social { display: flex; align-items: center; gap: 8px; }

.footer-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease), border-color 300ms var(--ease);
}

.footer-icon:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-2px);
}

.footer-icon svg { display: block; }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { top: 12px; padding: 5px 5px 5px 16px; }
  .navbar-logo { font-size: 13px; }
  .navbar-link { font-size: 12px; padding: 6px 10px; }

  .article-header { padding: 100px 20px 48px; }
  .article-body { padding: 0 20px 32px; }
  .prose { font-size: 16px; }
  .article-title { letter-spacing: -1px; }
  .article-divider { margin: 40px 20px; }

  .article-cta-outer { margin: 0 20px; }
  .article-cta-inner { flex-direction: column; padding: 36px 28px; }
  .cta-input-shell { min-width: unset; width: 100%; }
  .cta-form { width: 100%; }

  .related-section { padding: 56px 20px 80px; }
  .related-grid { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 12px; text-align: center; }
  .footer-social { justify-content: center; }
}
