/* Nova Home polish — Prime Operator presentation */

.nova-home .grid-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.1rem 3.2rem;
}

.nova-home .grid-col-12 > h2,
.nova-home .content-section > h2,
.nova-home .nova-chat-section > h2 {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 1.52rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.nova-home .grid-col-12 > p,
.nova-home .content-section > p,
.nova-home .nova-chat-section > p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(216, 224, 229, 0.82);
}

.nova-home .grid-col-12,
.nova-home .content-section,
.nova-home .nova-chat-section {
  margin-bottom: 1.05rem;
}

.nova-home .nova-note {
  font-size: 0.86rem;
  opacity: 0.72;
  margin: 0 0 0.65rem;
}

/* Hero image framing + overlay */
.nova-home .mini-hero {
  min-height: clamp(300px, 43vw, 430px);
  margin-top: 85px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #071019;
}

.nova-home .mini-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(7, 16, 25, 0.82) 0%,
    rgba(7, 16, 25, 0.6) 32%,
    rgba(7, 16, 25, 0.28) 62%,
    rgba(7, 16, 25, 0.1) 86%
  );
}

.nova-home .mini-hero-img {
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.09);
  transform-origin: 70% center;
  filter: contrast(1.07) saturate(1.04);
  image-rendering: -webkit-optimize-contrast;
}

.nova-home .mini-hero-content-wrapper {
  z-index: 3;
  max-width: 1180px;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  padding: 3.4rem 1.25rem;
}

.nova-home .mini-hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.3rem);
  margin-bottom: 0.5rem;
}

.nova-home .mini-hero .subtitle {
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 0.4rem;
}

.nova-home .nova-hero-cta {
  margin-top: 1.1rem;
  gap: 0.75rem;
  justify-content: flex-start;
  opacity: 1;
  transform: none;
}

.nova-home .nova-hero-cta .glass-button {
  box-shadow: 0 10px 24px rgba(7, 16, 25, 0.32);
}

.nova-home .nova-hero-cta .glass-button:first-child {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(59, 130, 246, 0.26));
  border-color: rgba(167, 139, 250, 0.55);
  color: #efe9ff;
}

.nova-home .nova-hero-cta .glass-button:first-child:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(59, 130, 246, 0.3));
  border-color: rgba(196, 181, 253, 0.7);
}

/* Operator tools cards */
.nova-home .operator-tools-header {
  margin-top: 1.2rem;
}

.nova-home .operator-tool-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  padding: 1.1rem 1.1rem 1.2rem;
  min-height: 200px;
}

.nova-home .operator-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.36);
  box-shadow: 0 10px 28px rgba(21, 30, 48, 0.36);
}

.nova-home .operator-tool-icon {
  width: 36px;
  height: 36px;
  color: #b4a0fb;
  margin-bottom: 0.65rem;
}

.nova-home .operator-tool-card .card-content {
  padding: 0;
  gap: 0.55rem;
}

.nova-home .operator-tool-card .card-content h3 {
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: #e6edf5;
}

.nova-home .operator-tool-card .card-content p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(216, 224, 229, 0.78);
}

.nova-home .operator-tool-card .card-content a {
  margin-top: 0.35rem;
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 600;
}

.nova-home .operator-tool-card .card-content a:hover {
  color: #ddd6fe;
}

.nova-home .nova-agent-status {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nova-home .cf-icon--section {
  width: 1.04em;
  height: 1.04em;
  color: #b4a0fb;
  vertical-align: middle;
  margin-right: 0;
  display: inline-block;
  flex: 0 0 auto;
}

.nova-home #nova-dream-log .nova-brief-text {
  display: block;
}

.nova-home #nova-dream-log .nova-brief-title {
  display: block;
  margin-bottom: 0.42rem;
}

.nova-home #nova-dream-log .nova-brief-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.08rem 0;
}

.nova-home #nova-dream-log .nova-brief-label {
  opacity: 0.9;
  flex: 0 0 auto;
}

.nova-home #nova-dream-log .nova-brief-value {
  font-weight: 600;
  text-align: right;
  min-width: 0;
}

.nova-home #nova-dream-log .nova-brief-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nova-home #nova-dream-log .nova-brief-chip.is-operational {
  color: #7bf1c8;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.36);
}

.nova-home #nova-dream-log .nova-brief-chip.is-degraded {
  color: #ffd59d;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.38);
}

.nova-home #nova-dream-log .nova-brief-row--meta {
  margin-top: 0.12rem;
  opacity: 0.78;
  font-size: 0.86em;
}

body[data-theme="light"].nova-home #nova-dream-log .nova-brief-chip.is-operational {
  color: #065f46;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(5, 150, 105, 0.36);
}

body[data-theme="light"].nova-home #nova-dream-log .nova-brief-chip.is-degraded {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(217, 119, 6, 0.36);
}

.nova-home .cf-icon svg,
.nova-home .cf-icon--section svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke-width: 1.8;
}

/* Light theme alignment */
body[data-theme="light"].nova-home .grid-col-12 > p,
body[data-theme="light"].nova-home .content-section > p,
body[data-theme="light"].nova-home .nova-chat-section > p {
  color: #475569;
}

body[data-theme="light"].nova-home .mini-hero {
  background: #dbe5f0;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"].nova-home .mini-hero::before {
  background: linear-gradient(
    to right,
    rgba(237, 238, 241, 0.88) 0%,
    rgba(237, 238, 241, 0.66) 33%,
    rgba(237, 238, 241, 0.34) 64%,
    rgba(237, 238, 241, 0.12) 86%
  );
}

body[data-theme="light"].nova-home .nova-hero-cta .glass-button:first-child {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.16));
  border-color: rgba(124, 58, 237, 0.36);
  color: #5b21b6;
}

body[data-theme="light"].nova-home .nova-hero-cta .glass-button:first-child:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(59, 130, 246, 0.2));
  color: #4c1d95;
}

body[data-theme="light"].nova-home .mini-hero h1,
body[data-theme="light"].nova-home .mini-hero .subtitle {
  color: #1a2a44 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45) !important;
}

body[data-theme="light"].nova-home .operator-tool-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 253, 0.9));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"].nova-home .operator-tool-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"].nova-home .operator-tool-icon,
body[data-theme="light"].nova-home .cf-icon--section {
  color: #7c3aed;
}

body[data-theme="light"].nova-home .operator-tool-card .card-content h3 {
  color: #1a2a44;
}

body[data-theme="light"].nova-home .operator-tool-card .card-content p {
  color: #475569;
}

body[data-theme="light"].nova-home .operator-tool-card .card-content a {
  color: #6d28d9;
}

body[data-theme="light"].nova-home .operator-tool-card .card-content a:hover {
  color: #5b21b6;
}

@media (max-width: 900px) {
  .nova-home .mini-hero-content-wrapper {
    align-items: center;
    text-align: center;
  }

  .nova-home .nova-hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nova-home .mini-hero {
    min-height: 260px;
  }

  .nova-home .mini-hero-img {
    transform: none;
    object-fit: cover;
    object-position: center;
  }

  .nova-home .mini-hero::before {
    background: linear-gradient(to bottom, rgba(7, 16, 25, 0.72), rgba(7, 16, 25, 0.34));
  }

  body[data-theme="light"].nova-home .mini-hero::before {
    background: linear-gradient(to bottom, rgba(237, 238, 241, 0.74), rgba(237, 238, 241, 0.38));
  }

  .nova-home .operator-tool-card {
    min-height: 188px;
  }
}

/* ── Agent Roster Preview ── */
.ar-preview { margin-top: 1.5rem; }
.ar-preview h2 { margin-bottom: 0.25rem; }
.ar-preview .ar-sub { font-size: 0.85rem; color: var(--nv-text-secondary); margin: 0 0 1rem; }
.ar-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.ar-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--nv-border);
  background: var(--nv-card-bg);
  transition: border-color 0.2s, transform 0.15s;
}
.ar-card:hover { border-color: var(--ar-color, rgba(167,139,250,0.25)); transform: translateY(-1px); }
.ar-card-ico {
  flex-shrink: 0; font-size: 1.1rem; margin-top: 2px;
  color: var(--ar-color, rgba(167,139,250,0.5));
  opacity: 0.7;
}
.ar-card-body { min-width: 0; }
.ar-card-name { font-size: 0.88rem; font-weight: 600; color: var(--nv-text); margin: 0; line-height: 1.3; }
.ar-card-role { font-size: 0.72rem; color: var(--nv-text-secondary); display: block; margin-bottom: 5px; }
.ar-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ar-tier {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(148,163,184,0.08); color: rgba(148,163,184,0.55);
  font-weight: 500;
}
.ar-status {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 1px 7px; border-radius: 99px; font-weight: 500;
}
.ar-status--monitoring { background: rgba(148,163,184,0.1); color: rgba(148,163,184,0.6); }
.ar-status--active { background: rgba(167,139,250,0.12); color: rgba(167,139,250,0.75); }
.ar-status--building { background: rgba(96,165,250,0.12); color: rgba(96,165,250,0.75); }
.ar-status--reviewing { background: rgba(251,191,36,0.12); color: rgba(251,191,36,0.75); }
.ar-status--supporting { background: rgba(148,163,184,0.07); color: rgba(148,163,184,0.45); }
.ar-card-link {
  display: inline-block; font-size: 0.7rem; color: var(--ar-color, rgba(167,139,250,0.55));
  margin-top: 6px; transition: color 0.2s;
}
.ar-card-link:hover { color: var(--ar-color, rgba(167,139,250,0.9)); filter: brightness(1.3); }
.ar-cta {
  text-align: center; margin-top: 1.25rem;
  padding-top: 1rem; border-top: 1px solid var(--nv-border);
}
.ar-cta-text { font-size: 0.8rem; color: var(--nv-text-tertiary); margin: 0 0 0.75rem; }
.ar-cta-buttons { display: flex; justify-content: center; gap: 10px; }

/* Agent brand colors */
.ar-card--nova { --ar-color: #8A2BE2; }
.ar-card--forge { --ar-color: #FF8C00; }
.ar-card--pixel { --ar-color: #FF6B9D; }
.ar-card--cipher { --ar-color: #00C896; }
.ar-card--echo { --ar-color: #4ECDC4; }
.ar-card--scribe { --ar-color: #7ECFC0; }
.ar-card--scout { --ar-color: #E87CBB; }
.ar-card--quill { --ar-color: #5BB8A6; }

@media (max-width: 600px) {
  .ar-grid { grid-template-columns: 1fr; }
}

/* ── Operator Tool Card Colors ── */
.nova-home .operator-tool-card {
  --ot-accent: #b4a0fb;
  border-left: 3px solid var(--ot-accent);
}
.nova-home .operator-tool-card:hover {
  border-left-color: var(--ot-accent);
  box-shadow: 0 10px 28px rgba(21, 30, 48, 0.36), inset 3px 0 0 var(--ot-accent);
}
.nova-home .ot-card--console { --ot-accent: #8A2BE2; }
.nova-home .ot-card--activity { --ot-accent: #4ECDC4; }
.nova-home .ot-card--memory { --ot-accent: #60a5fa; }
.nova-home .ot-card--log { --ot-accent: #34d399; }

.nova-home .operator-tool-card .ot-icon {
  font-size: 1.4rem;
  color: var(--ot-accent, #b4a0fb);
  margin-bottom: 0.65rem;
  opacity: 0.8;
}
body[data-theme="light"].nova-home .operator-tool-card .ot-icon {
  color: var(--ot-accent, #7c3aed);
  opacity: 0.9;
}
body[data-theme="light"].nova-home .operator-tool-card {
  border-left: 3px solid var(--ot-accent);
}

/* ── Section Header Icon Tinting ── */
.nova-home .section-icon--brief { color: #4ECDC4 !important; }
.nova-home .section-icon--tools { color: #60a5fa !important; }
.nova-home .section-icon--roster { color: #FF6B9D !important; }

/* ── Nova Surfaces — FA icon version ── */
.nv-surfaces-grid .nv-pill i {
  font-size: 0.82rem;
  opacity: 0.5;
}
.nv-surfaces-grid .nv-pill--active i {
  opacity: 0.8;
}
