/* ===========================================================
   Note Now — shared styles for the Ideas hub + articles
   Matches the design language of Note Now.html / privacy.html
   =========================================================== */

:root {
  --bg: #000000;
  --bg-1: #0A0A0C;
  --bg-2: #0F1014;
  --card: #111216;
  --card-2: #15171C;
  --border: #1F2128;
  --border-2: #2A2D36;
  --text: #FFFFFF;
  --text-2: #B7B9C2;
  --text-3: #7A7D88;
  --text-4: #4B4E58;
  --primary: #10D898;
  --primary-2: #0BBF85;
  --primary-soft: rgba(16, 216, 152, 0.12);
  --primary-glow: rgba(16, 216, 152, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(16,216,152,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.brand-mark svg { width: 16px; height: 16px; fill: #04221A; }
.nav-links { display: flex; gap: 28px; color: var(--text-2); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--text); color: #000;
  font-weight: 600; font-size: 13.5px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #04221A;
  box-shadow: 0 8px 24px rgba(16,216,152,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(16,216,152,0.4), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 12px var(--primary);
}
.eyebrow.muted { color: var(--text-3); }
.eyebrow.muted::before { background: var(--text-3); box-shadow: none; }

/* ===== Breadcrumb ===== */
.crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--text); }
.crumb .sep { opacity: 0.4; }
.crumb .here { color: var(--primary); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }

/* ===========================================================
   HUB PAGE
   =========================================================== */
.hub-head {
  position: relative;
  padding: 80px 0 36px;
  overflow: hidden;
}
.hub-head::before {
  content: '';
  position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(closest-side, rgba(16,216,152,0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hub-head .inner { position: relative; z-index: 1; max-width: 820px; }
.hub-head h1 {
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.04em; line-height: 1.0;
  margin-top: 22px;
}
.hub-head h1 .accent {
  background: linear-gradient(120deg, var(--primary) 30%, #65F2C6 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-head .lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 64ch;
  margin-top: 26px;
}

.phase { padding: 40px 0 8px; }
.phase-head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.phase-head .pnum {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--primary);
  letter-spacing: 0.08em;
}
.phase-head h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.03em;
}
.phase-head p {
  color: var(--text-3); font-size: 15px;
  margin-left: auto; max-width: 42ch; line-height: 1.5;
}
@media (max-width: 720px) { .phase-head p { margin-left: 0; } }

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 16px;
}
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .art-grid { grid-template-columns: 1fr; } }

.art-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 26px 26px;
  transition: border-color 0.2s ease, transform 0.25s ease;
  position: relative; overflow: hidden;
  min-height: 260px;
}
.art-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.art-card .kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 18px;
}
.art-card .kicker .num { color: var(--primary); }
.art-card .kicker .read::before { content: '·'; margin-right: 10px; opacity: 0.5; }
.art-card h3 {
  font-size: 21px; letter-spacing: -0.02em; line-height: 1.18;
}
.art-card p {
  color: var(--text-2); font-size: 14.5px; line-height: 1.55;
  margin-top: 12px; flex: 1;
}
.art-card .go {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 14px; font-weight: 600;
}
.art-card .go svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.art-card:hover .go svg { transform: translateX(4px); }
.art-card.pillar {
  border-color: rgba(16,216,152,0.34);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(16,216,152,0.08), transparent 70%),
    var(--card);
}
.art-card .pill {
  position: absolute; top: 22px; right: 22px;
  background: var(--primary); color: #04221A;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}

/* ===========================================================
   ARTICLE PAGE
   =========================================================== */
.art-head {
  position: relative;
  padding: 72px 0 16px;
  overflow: hidden;
}
.art-head::before {
  content: '';
  position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(closest-side, rgba(16,216,152,0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.art-head .inner { position: relative; z-index: 1; max-width: 760px; }
.art-head h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.035em; line-height: 1.06;
}
.art-head .dek {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-2); line-height: 1.5;
  max-width: 60ch;
}
.art-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  color: var(--text-3); font-size: 13.5px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.art-meta .sep { opacity: 0.4; }

main.article { padding-bottom: 90px; position: relative; }

/* Key takeaways card */
.takeaways {
  background: linear-gradient(180deg, rgba(16,216,152,0.06), rgba(16,216,152,0.02));
  border: 1px solid rgba(16,216,152,0.25);
  border-radius: 22px;
  padding: 28px 32px;
  margin: 40px 0 12px;
  max-width: 760px;
}
.takeaways .label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.takeaways .label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 12px var(--primary);
}
.takeaways ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.takeaways li {
  display: flex; gap: 14px; color: var(--text-2);
  font-size: 15.5px; line-height: 1.5;
}
.takeaways li b { color: var(--text); font-weight: 600; }
.takeaways li::before {
  content: '✓'; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}

/* Prose */
.prose { max-width: 720px; margin-top: 8px; }
.prose section { padding: 34px 0 8px; }
.prose h2 {
  font-size: clamp(25px, 2.7vw, 33px);
  font-weight: 700; letter-spacing: -0.028em; line-height: 1.15;
  margin: 18px 0 18px;
}
.prose h3 {
  font-size: 19px; font-weight: 600;
  margin-top: 26px; margin-bottom: 10px; letter-spacing: -0.01em;
}
.prose p {
  color: var(--text-2); font-size: 16.5px; line-height: 1.7;
  margin-bottom: 18px; text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(16,216,152,0.4);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--primary); }
.prose ul, .prose ol {
  margin: 8px 0 22px; display: grid; gap: 11px;
  padding-left: 0; list-style: none;
}
.prose li {
  color: var(--text-2); font-size: 16.5px; line-height: 1.6;
  padding-left: 26px; position: relative;
}
.prose ul li::before {
  content: ''; position: absolute; left: 4px; top: 13px;
  width: 8px; height: 1px; background: var(--primary);
}
.prose ol { counter-reset: olnum; }
.prose ol li { counter-increment: olnum; }
.prose ol li::before {
  content: counter(olnum);
  position: absolute; left: 0; top: 2px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500;
  color: var(--primary);
  width: 18px; text-align: left;
}
.prose li b { color: var(--text); font-weight: 600; }

/* Callout */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 24px 0;
}
.callout p { margin-bottom: 0; font-size: 15.5px; color: var(--text-2); }
.callout .tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px; display: block;
}

/* Prompt block (monospace, copyable feel) */
.promptbox {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 22px 0;
  position: relative;
}
.promptbox .tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); display: block; margin-bottom: 12px;
}
.promptbox p {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px; line-height: 1.7; color: var(--text);
  margin-bottom: 0; white-space: pre-wrap;
}
.promptbox p .var { color: var(--primary); }

/* Pull quote */
.pull {
  margin: 30px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--primary);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--text);
}

/* Inline CTA card */
.cta-card {
  margin: 42px 0 8px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(16,216,152,0.10), transparent 70%),
    linear-gradient(180deg, #0D1612, #0A0F0D);
  border: 1px solid rgba(16,216,152,0.30);
  border-radius: 24px;
  padding: 40px 38px;
  max-width: 760px;
}
.cta-card .label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
}
.cta-card h3 {
  font-size: clamp(23px, 2.4vw, 30px);
  letter-spacing: -0.025em; line-height: 1.18;
  margin-top: 14px;
}
.cta-card p {
  color: var(--text-2); font-size: 15.5px; line-height: 1.55;
  margin-top: 14px; max-width: 52ch;
}
.cta-card .btn { margin-top: 26px; }

/* Related / keep reading */
.related {
  border-top: 1px solid var(--border);
  margin-top: 70px; padding-top: 48px;
}
.related .label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 24px; display: block;
}
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px 24px 22px;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.related-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.related-card .rk {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em; color: var(--primary);
}
.related-card h4 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; margin-top: 12px;
}
.related-card p { color: var(--text-3); font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-3); font-size: 13.5px;
  flex-wrap: wrap; gap: 16px;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }

/* ===== Buttons inside prose must keep button styling, not link styling ===== */
.btn.btn-primary { color: #04221A; }
.btn.btn-ghost { color: var(--text); }
.prose a.btn { text-decoration: none; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
