/* ============================================================
   ECONOMIA CENTAURULUI — centaureconomy.com
   Design: editorial, alb, tipografie puternica, accent teal.
   Lizibilitate: body >=16px, text secundar >=13px, gri >= #5B6470.
   ============================================================ */

:root {
  --ink: #101418;
  --gray: #5b6470;          /* gri minim pentru text secundar (AA pe alb) */
  --gray-soft: #8a93a0;     /* doar pentru elemente decorative, nu text */
  --accent: #1fa9b8;
  --accent-dark: #0e7c86;   /* pentru text mic pe alb */
  --accent-soft: #e6f6f8;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --border: #e5e8eb;
  --danger: #c0392b;
  --danger-soft: #fdf0ee;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(16, 20, 24, 0.08);
  --font-head: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.nav .logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav .logo img { height: 40px; width: auto; }
.nav .logo span {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  line-height: 1.1; color: var(--ink); max-width: 120px;
}
.nav a.nav-link {
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.nav a.nav-link:hover { color: var(--accent-dark); text-decoration: none; }
.nav a.nav-link.active { color: var(--accent-dark); font-weight: 600; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: none; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: var(--gray); padding: 7px 10px;
}
.lang-switch button + button { border-left: 1px solid var(--border); }
.lang-switch button:hover { color: var(--accent-dark); }
.lang-switch button.active { background: var(--ink); color: #fff; }

.ro-note {
  font-size: 13px; color: var(--gray);
  background: var(--bg-alt); border-radius: 8px;
  padding: 10px 14px; margin-top: 16px; display: inline-block;
}
.ro-note[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 11px 22px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Kicker / section labels ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 68px); font-weight: 700;
  margin: 0 0 18px;
}
.hero .subtitle {
  font-family: var(--font-head); font-size: 21px; font-weight: 600;
  margin-bottom: 14px;
}
.hero .lead { color: var(--gray); font-size: 17px; max-width: 46ch; margin-bottom: 28px; }
.hero .meta { font-size: 14px; color: var(--gray); margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-img img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-head .sub { color: var(--gray); margin-top: 10px; max-width: 62ch; }
.section-head .more { float: right; font-size: 15px; font-weight: 600; }

/* Paradox statement */
.paradox {
  text-align: center; max-width: 780px; margin: 0 auto;
  font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500; line-height: 1.5;
}
.paradox strong { font-weight: 700; }

/* ---------- Five futures ---------- */
.futures-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.future-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; background: #fff;
  transition: all 0.15s ease;
}
.future-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.future-card h3 { color: var(--ink); }
.future-card .num {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  color: var(--accent-dark); margin-bottom: 8px;
}
.future-card h3 { font-size: 17px; margin-bottom: 6px; }
.future-card p { font-size: 14px; color: var(--gray); line-height: 1.5; }
.future-card.f1 { background: var(--accent-soft); border-color: #bde6ea; }
.future-card.f5 { background: var(--danger-soft); border-color: #f2cfc9; }
.future-card.f5 .num { color: var(--danger); }

.futures-cta {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: var(--bg-alt); border-radius: var(--radius);
  padding: 18px 24px; flex-wrap: wrap;
}
.futures-cta p { font-weight: 600; font-size: 16px; }

/* ---------- Quote ---------- */
.quote-block {
  display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center;
}
.quote-block blockquote {
  font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px);
  font-weight: 600; line-height: 1.4;
}
.quote-block cite {
  display: block; margin-top: 18px; font-style: normal;
  font-size: 15px; color: var(--gray);
}
.quote-block img { border-radius: var(--radius); }

/* ---------- Semnale list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; font-family: var(--font-body);
}
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.signal-list { display: flex; flex-direction: column; }
.signal {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px;
  align-items: baseline; padding: 22px 18px;
  border-bottom: 1px solid var(--border);
}
.signal:nth-child(even) { background: var(--bg-alt); }
.signal .idx {
  font-size: 13px; font-weight: 600; color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.signal h3 { font-size: 17px; font-weight: 600; font-family: var(--font-body); line-height: 1.45; }
.signal .src { font-size: 13px; color: var(--gray); margin-top: 5px; }
.signal .cap {
  font-size: 13px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
  white-space: nowrap;
}
.signal .cap:hover { text-decoration: none; background: #d3eef1; }

/* ---------- Live Book articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-card {
  display: block; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; background: #fff; color: var(--ink);
  transition: all 0.15s ease;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.article-card .meta { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.article-card h3 { font-size: 20px; margin-bottom: 10px; }
.article-card .deck { font-size: 15px; color: var(--gray); line-height: 1.55; margin-bottom: 16px; }
.article-card .row { display: flex; align-items: center; justify-content: space-between; }
.article-card .cap {
  font-size: 13px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
}
.article-card .read { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
@media (max-width: 760px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Stats row (Cartea in cifre) ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px;
}
.stat {
  text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px 12px; background: #fff;
}
.stat strong {
  display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700;
  color: var(--accent-dark); margin-bottom: 4px;
}
.stat span { font-size: 14px; color: var(--gray); }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Podcast ---------- */
.pod-featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 40px; align-items: center; margin-bottom: 36px;
}
.pod-featured .kicker { color: var(--accent); }
.pod-featured h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.pod-featured p { color: #b9c2cc; font-size: 15px; margin-bottom: 24px; }
.pod-featured .thumb {
  border-radius: 10px; overflow: hidden; position: relative;
  aspect-ratio: 16/9; background: #222;
}
.pod-featured .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play-badge span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 22px;
  padding-left: 4px;
}
.pod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pod-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: all 0.15s ease;
}
.pod-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pod-card .thumb { aspect-ratio: 16/9; background: var(--bg-alt); position: relative; }
.pod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pod-card .body { padding: 18px 20px 22px; }
.pod-card .ep { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 6px; }
.pod-card h3 { font-size: 16px; font-family: var(--font-body); font-weight: 600; line-height: 1.45; margin-bottom: 12px; }
.pod-card .links { display: flex; gap: 10px; flex-wrap: wrap; }
.pod-card .links span, .pod-card .links a {
  font-size: 13px; font-weight: 600; color: var(--gray);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
}
.badge-soon {
  display: inline-block; font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------- Book page ---------- */
.book-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.book-hero img { width: 100%; }
.book-hero h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 14px; }
.book-hero .subtitle { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.book-hero .lead { color: var(--gray); margin-bottom: 26px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.buy-note { font-size: 13px; color: var(--gray); }

.parts { display: flex; flex-direction: column; gap: 14px; }
.part {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; overflow: hidden;
}
.part summary {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 26px; cursor: pointer; list-style: none;
}
.part summary::-webkit-details-marker { display: none; }
.part summary .part-label { font-size: 13px; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.part summary h3 { font-size: 20px; }
.part summary .hint { margin-left: auto; color: var(--gray-soft); font-size: 20px; transition: transform 0.2s; }
.part[open] summary .hint { transform: rotate(45deg); }
.part .chapters { border-top: 1px solid var(--border); }
.part .chapters a {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 26px; border-bottom: 1px solid var(--border);
  color: var(--ink); font-size: 16px;
}
.part .chapters a:last-child { border-bottom: none; }
.part .chapters a:hover { background: var(--accent-soft); text-decoration: none; }
.part .chapters .ch-num { font-size: 13px; font-weight: 600; color: var(--gray); white-space: nowrap; min-width: 84px; }

.pull-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pull-quote {
  border-left: 3px solid var(--accent); background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px;
  font-family: var(--font-head); font-size: 17px; font-weight: 500; line-height: 1.5;
}
.pull-quote .who { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 13px; color: var(--gray); font-weight: 500; }

.editions { display: flex; flex-wrap: wrap; gap: 12px; }
.edition {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 22px; font-size: 15px; background: #fff;
}
.edition strong { display: block; font-size: 16px; }
.edition span { font-size: 13px; color: var(--gray); }

/* ---------- Chapter page ---------- */
.chapter-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.chapter-hero h1 { font-size: clamp(32px, 4.6vw, 50px); max-width: 22ch; margin-bottom: 20px; }
.chapter-hero .teaser { font-size: 18px; color: var(--gray); max-width: 62ch; font-weight: 500; }
.chapter-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.chapter-cols h2 { font-size: 15px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.mini-signal { padding: 14px 0; border-bottom: 1px solid var(--border); }
.mini-signal h4 { font-size: 15px; font-weight: 600; font-family: var(--font-body); }
.mini-signal .src { font-size: 13px; color: var(--gray); margin-top: 3px; }
.chapter-nav { display: flex; justify-content: space-between; padding: 26px 0 64px; font-weight: 600; font-size: 15px; }

.ask-inline {
  background: var(--bg-alt); border-radius: var(--radius); padding: 28px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin: 0 0 48px;
}
.ask-inline p { font-weight: 600; flex: 1; min-width: 240px; }

/* ---------- Ask the Book AI ---------- */
.chat-shell {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  height: min(64vh, 620px);
}
.chat-dots { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.chat-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 72%; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--bg-alt); }
.msg.bot { align-self: flex-start; background: var(--accent-soft); }
.msg.bot.typing { color: var(--gray); font-style: italic; }
.msg.bot p + p { margin-top: 8px; }
.chat-input-row { display: flex; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 12px 20px; font-size: 15px; font-family: var(--font-body);
  outline: none;
}
.chat-input-row input:focus { border-color: var(--accent); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.suggestions button {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; font-family: var(--font-body);
  color: var(--ink);
}
.suggestions button:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.author-grid img { border-radius: var(--radius); }
.author-grid h2 { font-size: 32px; margin-bottom: 6px; }
.author-grid .creds { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
.author-grid p { margin-bottom: 14px; }
.author-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter .kicker { margin-bottom: 10px; }
.newsletter h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.newsletter p { color: var(--gray); margin-bottom: 26px; }
.newsletter form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.newsletter input {
  width: min(360px, 100%); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 13px 22px; font-size: 15px; font-family: var(--font-body); outline: none;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter .ok-msg { color: var(--accent-dark); font-weight: 600; margin-top: 14px; }

/* ---------- Prolog page ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 10px; }
.prose .kicker { text-align: left; }
.prose p { margin-bottom: 18px; font-size: 17px; line-height: 1.75; }
.prose .end-cta {
  margin-top: 48px; background: var(--bg-alt); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.prose .end-cta p { margin-bottom: 18px; font-weight: 600; }

/* ---------- Bibliografie ---------- */
.biblio-cat {
  font-size: 20px; margin: 40px 0 14px;
}
ul.biblio { list-style: none; padding: 0; margin: 0; }
ul.biblio li {
  padding: 10px 0 10px 18px; border-left: 2px solid var(--border);
  margin-bottom: 6px; font-size: 15.5px; line-height: 1.6; color: var(--ink);
}
ul.biblio li:hover { border-left-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); padding: 28px 0;
  font-size: 13px; color: var(--gray);
}
.site-footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer .row .left { margin-right: auto; }
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .futures-grid { grid-template-columns: repeat(2, 1fr); }
  .pod-grid { grid-template-columns: 1fr; }
  .pull-quotes { grid-template-columns: 1fr; }
  .hero-grid, .book-hero, .quote-block, .author-grid, .pod-featured, .chapter-cols {
    grid-template-columns: 1fr; gap: 32px;
  }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
}
@media (max-width: 760px) {
  .nav .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 18px 24px; gap: 16px;
  }
  .nav .nav-links.open { display: flex; }
  .burger { display: block; }
  .futures-grid { grid-template-columns: 1fr; }
  .signal { grid-template-columns: 1fr; gap: 6px; }
  .signal .idx { display: none; }
  .msg { max-width: 88%; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
