/* ============================================================
   OASIS Studio — Landing Page Design System
   Tokens taken from oasis-studio/frontend/styles.css brief
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette – Light */
  --bg-page:     #f4f6f9;
  --bg-surface:  #ffffff;
  --bg-surface2: #f0f2f6;
  --text:        #1f2633;
  --text-2:      #5f6b7d;
  --text-3:      #8a95a7;
  --accent:      #1f4e8c;
  --accent-h:    #2b6cb0;
  --accent-soft: #e8eff8;
  --ok:          #2e7d4f;
  --ok-soft:     #e6f5ec;
  --warn:        #b7791f;
  --warn-soft:   #fef7e6;
  --err:         #c53030;
  --border:      #d6dbe4;
  --border-2:    #e5e9f0;
  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 14px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.09);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs:  .75rem;
  --fs-sm:  .8125rem;
  --fs-base: .875rem;
  --fs-md:  1rem;
  --fs-lg:  1.25rem;
  --fs-xl:  1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;

  /* Spacing */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w: 1140px;
  --header-h: 64px;
}

/* ---------- Dark theme ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page:     #0f1218;
    --bg-surface:  #161b24;
    --bg-surface2: #1c2230;
    --text:        #e2e6ed;
    --text-2:      #9aa3b4;
    --text-3:      #6b7588;
    --accent:      #5a9ae6;
    --accent-h:    #7ab4f5;
    --accent-soft: #1a2a42;
    --ok:          #4caf73;
    --ok-soft:     #162e20;
    --warn:        #d4a437;
    --warn-soft:   #2e2614;
    --err:         #e85555;
    --border:      #2a3040;
    --border-2:    #232938;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.25);
    --shadow-md:   0 4px 14px rgba(0,0,0,.3);
    --shadow-lg:   0 8px 30px rgba(0,0,0,.35);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-20) 0; }
.section:nth-child(even) { background: var(--bg-surface); }
.section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  letter-spacing: -.02em;
}
.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: var(--sp-12);
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-lg {
  font-size: var(--fs-md);
  padding: var(--sp-4) var(--sp-8);
  border-radius: 8px;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.85);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(22,27,36,.88); }
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--text);
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: .06em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-2);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 900px) {
  .nav-links, .header-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open, .header-cta.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-surface);
    padding: var(--sp-6);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .header-cta.open { top: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: var(--sp-24) 0 var(--sp-20);
  background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-page) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-6);
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: var(--sp-8);
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-img-wrap img {
  width: 100%;
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: rgba(22,27,36,.8);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--fs-3xl); }
  .hero { padding: var(--sp-16) 0 var(--sp-12); }
}

/* ============================================================
   THREE MODES
   ============================================================ */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.mode-card { text-align: left; }
.mode-card h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-2);
}
.mode-card p { color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 700px) {
  .modes-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORKFLOW (5 Steps)
   ============================================================ */
.steps-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-6);
  position: relative;
}
.steps-list::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  margin: 0 auto var(--sp-5);
  box-shadow: 0 0 0 6px var(--bg-page);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step-item:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--bg-page), 0 4px 16px rgba(31,78,140,.25);
}
.step-item h3 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-2);
}
.step-item p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 900px) {
  .steps-list {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .steps-list::before { display: none; }
  .step-item { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); text-align: left; align-items: start; }
  .step-num { margin: 0; }
}

/* ============================================================
   USE CASES
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.case-card { position: relative; overflow: hidden; }
.case-tag {
  margin-bottom: var(--sp-4);
}
.case-card h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-3);
}
.case-question {
  font-style: italic;
  color: var(--text-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
}
.case-metric {
  padding: var(--sp-4);
  background: var(--bg-surface2);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.5;
}
.case-metric strong { color: var(--text); }
@media (max-width: 700px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.method-card { display: block; }
.method-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-2);
}
.method-card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.formula {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  background: var(--bg-surface2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  word-break: break-all;
}
@media (max-width: 700px) {
  .method-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LIMITS
   ============================================================ */
.limits-box {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  max-width: 800px;
  margin: 0 auto;
}
.limits-box h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.limits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.limits-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.limit-bullet {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--warn-soft);
  color: var(--warn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  max-width: 820px;
  margin: 0 auto;
}
.pricing-card { text-align: center; }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  padding: var(--sp-1) var(--sp-4);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pricing-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}
.pricing-price {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.pricing-price span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--text-2);
}
.pricing-desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-6);
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pricing-features li {
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-2);
}
.pricing-features li::before {
  content: '—';
  flex-shrink: 0;
  width: 14px;
  color: var(--accent);
  font-weight: var(--fw-semi);
}
.pricing-features li.disabled {
  color: var(--text-3);
  text-decoration: line-through;
}
.pricing-features li.disabled::before {
  content: '—';
  color: var(--text-3);
}
.pricing-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: var(--sp-4);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.faq-q:hover { background: var(--bg-surface2); }
.faq-q::after {
  content: '+';
  font-size: var(--fs-xl);
  font-weight: var(--fw-normal);
  color: var(--text-3);
  transition: transform .3s ease;
  flex-shrink: 0;
  margin-left: var(--sp-4);
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 var(--sp-6) var(--sp-6);
}
.faq-a p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.7;
}
.faq-a a { font-weight: var(--fw-medium); }

/* ============================================================
   CTA BANNER (before footer)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-h) 100%);
  padding: var(--sp-16) 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-4);
}
.cta-banner p {
  font-size: var(--fs-md);
  opacity: .85;
  margin-bottom: var(--sp-8);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.cta-banner .btn-primary:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.cta-banner .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.cta-banner .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-10) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.footer-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .40s; }

/* ============================================================
   ASSISTED FLOW (Pregunta y simula) section
   ============================================================ */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.flow-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  counter-reset: flow;
}
.flow-step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  counter-increment: flow;
}
.flow-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--accent);
}
.flow-step h4 {
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-1);
  font-size: var(--fs-base);
}
.flow-step p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.flow-mockup {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.7;
}
.flow-mockup .prompt-line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  color: var(--text-3);
  font-style: italic;
}
.flow-mockup .scenario-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.flow-mockup .scenario-preview h5 {
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  color: var(--text);
}
.flow-mockup .preview-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-2);
  font-size: var(--fs-xs);
}
.flow-mockup .preview-row:last-child { border-bottom: none; }
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTROL ROOM REALISTIC MOCKUP
   ============================================================ */
.cr-window {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  text-align: left;
}
.cr-topbar {
  background: var(--bg-surface2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.cr-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cr-dot.red { background: #ff5f56; }
.cr-dot.yellow { background: #ffbd2e; }
.cr-dot.green { background: #27c93f; }
.cr-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cr-status-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ok-soft);
  color: var(--ok);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: var(--fw-semi);
}
.cr-live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: cr-pulse 1.8s infinite;
}
@keyframes cr-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(46, 125, 79, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 79, 0); }
}
.cr-tags {
  display: flex;
  gap: var(--sp-2);
}
.cr-tag-pill {
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}
.cr-body-grid {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  min-height: 380px;
  background: var(--bg-surface);
}
@media (max-width: 1024px) {
  .cr-body-grid { grid-template-columns: 1fr; }
  .cr-pane { border-right: none !important; border-bottom: 1px solid var(--border-2); }
}
.cr-pane {
  padding: var(--sp-4);
  border-right: 1px solid var(--border-2);
}
.cr-pane:last-child {
  border-right: none;
}
.cr-pane-title {
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cr-metric-card {
  background: var(--bg-surface2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.cr-metric-lbl {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.cr-metric-val {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cr-metric-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: var(--fw-semi);
}
.cr-badge-alert { background: var(--warn-soft); color: var(--warn); }
.cr-badge-ok { background: var(--ok-soft); color: var(--ok); }
.cr-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.cr-post {
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--sp-3);
  transition: border-color .2s;
}
.cr-post:hover {
  border-color: var(--accent);
}
.cr-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-1);
}
.cr-agent-info {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cr-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: #fff;
}
.cr-avatar.c1 { background: #1f4e8c; }
.cr-avatar.c2 { background: #b7791f; }
.cr-avatar.c3 { background: #2e7d4f; }
.cr-agent-name {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text);
}
.cr-agent-role {
  font-size: 10px;
  color: var(--text-3);
}
.cr-post-time {
  font-size: 10px;
  color: var(--text-3);
}
.cr-post-body {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.cr-post-meta {
  display: flex;
  gap: var(--sp-4);
  font-size: 11px;
  color: var(--text-3);
}
.cr-graph-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cr-graph-svg {
  width: 100%;
  height: 220px;
  background: var(--bg-surface2);
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  overflow: visible;
}
.cr-metric-card {
  background: var(--bg-surface2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
  transition: border-color .3s, box-shadow .3s;
}
.cr-metric-card.pulse-update {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(31, 78, 140, 0.22);
}
@keyframes postEnter {
  0% { opacity: 0; transform: translateY(-20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cr-post.entering {
  animation: postEnter 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes statBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: var(--accent); font-weight: 700; }
  100% { transform: scale(1); }
}
.stat-bump {
  display: inline-block;
  animation: statBump 0.4s ease-out;
}
@keyframes radarWave {
  0% { r: 8px; opacity: 0.9; stroke-width: 2px; }
  100% { r: 24px; opacity: 0; stroke-width: 0.5px; }
}
.cr-radar-circle {
  animation: radarWave 2.2s cubic-bezier(0.1, 0.4, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes edgeFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
.cr-edge-flow {
  stroke-dasharray: 4, 4;
  animation: edgeFlow 1s linear infinite;
}
@keyframes nodeHoverFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.8px, -2px); }
}
@keyframes nodeHoverFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 1.8px); }
}
.cr-node-float1 { animation: nodeHoverFloat1 3.6s ease-in-out infinite; }
.cr-node-float2 { animation: nodeHoverFloat2 4.4s ease-in-out infinite; }
.cr-graph-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--sp-3);
  font-size: 11px;
  color: var(--text-2);
  width: 100%;
}
.cr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cr-bottombar {
  background: var(--bg-surface2);
  padding: var(--sp-2) var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.cr-controls {
  display: flex;
  gap: var(--sp-2);
}
.cr-btn-tiny {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-weight: var(--fw-medium);
  transition: all .15s;
}
.cr-btn-tiny:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

