/* ============================================================
   FrontFrame Blueprint: Exceptional Sales Synergy
   main.css — Global styles
   Theme: Warm professional — trusted advisor, not tech product
   ============================================================ */

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

:root {
  /* Backgrounds */
  --bg:          #F5F3EF;   /* warm off-white, like good paper */
  --bg-2:        #FFFFFF;   /* card surfaces */
  --bg-3:        #EDE9E3;   /* nested / inset surfaces */

  /* Borders */
  --border:      #DEDAD4;   /* warm light gray */
  --border-hi:   #C4BFB8;   /* slightly stronger */

  /* Text */
  --text-primary:   #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted:     #7A7570;

  /* Accent — deep trustworthy green */
  --accent:      #2E6B3E;
  --accent-dim:  #235230;

  /* Secondary path colors — muted, not neon */
  --cold:        #2B5C8A;
  --inbound:     #7A4F1E;

  /* Typography */
  --font-body:    Georgia, 'Times New Roman', 'Book Antiqua', serif;
  --font-heading: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Layout */
  --nav-h:       48px;
  --max-w:       900px;
  --gutter:      24px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Utility --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Labels — small caps style, no monospace */
.label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Tags — plain text, no colored pills */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 1px;
}

.tag--accent  { color: var(--accent); border-color: var(--accent); }
.tag--cold    { color: var(--cold);   border-color: var(--cold); }
.tag--inbound { color: var(--inbound); border-color: var(--inbound); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #2C2C2C;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav__wordmark {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #F5F3EF;
}

.nav__sub {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: #8a8a8a;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav__links a {
  display: block;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 400;
  color: #b0aca6;
  border-radius: 3px;
  transition: color 0.12s;
}

.nav__links a:hover { color: #F5F3EF; }
.nav__links a.active { color: #F5F3EF; font-weight: 500; }

.nav__links li.nav__sep {
  width: 1px;
  height: 14px;
  background: #444;
  margin: 0 4px;
}

.nav__links a.nav__admin {
  color: #8a8a8a;
  border: 1px solid #444;
  border-radius: 3px;
}
.nav__links a.nav__admin:hover { border-color: #666; color: #b0aca6; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero__eyebrow-line {
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero__heading em {
  font-style: normal;
  color: var(--accent);
}

.hero__body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero__stats {
  display: flex;
  gap: 28px;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.hero__stat-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* Entry point cards in hero sidebar */
.entry-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.entry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.entry-card--cold::before   { background: var(--cold); }
.entry-card--inbound::before { background: var(--inbound); }

.entry-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.entry-card__title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.entry-card__body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.entry-card__trigger {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.entry-card__trigger strong {
  font-weight: 600;
}

.entry-card--cold   .entry-card__trigger strong { color: var(--cold); }
.entry-card--inbound .entry-card__trigger strong { color: var(--inbound); }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.section__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
}

.section__meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   FLOW DIAGRAM
   ============================================================ */
.flow-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.flow-section__header {
  margin-bottom: 28px;
}

.flow-diagram {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.flow-diagram svg {
  display: block;
  min-width: 720px;
  width: 100%;
}

/* ============================================================
   PROPERTIES PANEL
   ============================================================ */
.properties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.property-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 22px;
  position: relative;
}

.property-card::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 17px;
  background: var(--border-hi);
}

.property-card:last-child::after { display: none; }

.property-card__label {
  margin-bottom: 6px;
}

.property-card__url {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.property-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.property-card__tags {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* OS convergence block */
.os-convergence {
  margin-top: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.os-convergence__icon {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.os-convergence__icon svg { display: block; }

.os-convergence__text h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.os-convergence__text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   BLUEPRINT SECTIONS INDEX
   ============================================================ */
.blueprint-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.blueprint-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
  cursor: default;
  transition: border-color 0.12s;
}

.blueprint-card:hover { border-color: var(--border-hi); }

.blueprint-card__num {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blueprint-card__title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.blueprint-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blueprint-card__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent);
}

.blueprint-card:hover .blueprint-card__link { color: var(--accent-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer__left {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer__right {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   PRESENTATION FRAME — splash overlay
   ============================================================ */
.pres-frame {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  transition: opacity 0.5s, visibility 0.5s;
  border-bottom: 1px solid var(--border);
}

.pres-frame--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pres-frame__wordmark {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 48px;
  text-transform: uppercase;
}

.pres-frame__divider {
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 36px;
}

.pres-frame__quote {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto 16px;
}

.pres-frame__attr {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.pres-frame__btn {
  display: inline-block;
  padding: 11px 28px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.12s, color 0.12s;
}

.pres-frame__btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   NEXT SECTION NAV
   ============================================================ */
.next-section {
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}

.next-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.next-section__position {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.next-section__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.12s;
  text-decoration: none;
}

.next-section__link:hover { color: var(--accent); }

.next-section__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1px;
}

.next-section__name {
  color: var(--text-primary);
  font-weight: 500;
}

.next-section__arrow {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ============================================================
   BOT BUBBLE — opening message above trigger
   ============================================================ */
.bot-bubble {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 91;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  max-width: 248px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  animation: bubble-in 0.25s ease both;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bot-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.bot-bubble--hidden {
  display: none;
}

.bot-bubble__text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.bot-bubble__dismiss {
  display: block;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: var(--text-muted);
  cursor: pointer;
}

.bot-bubble__dismiss:hover { color: var(--text-secondary); }

/* Admin panel opening message */
.bot-opening {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
}

.bot-opening__dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.bot-opening__dismiss:hover { color: var(--text-secondary); }

/* ============================================================
   BOT TRIGGER — floating widget placeholder
   ============================================================ */
.bot-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 14px 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: border-color 0.12s;
  max-width: 210px;
}

.bot-trigger:hover { border-color: var(--accent); }

.bot-trigger__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.bot-trigger__text { flex: 1; }

.bot-trigger__context {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.bot-trigger__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero__grid          { grid-template-columns: 1fr; }
  .entry-cards         { flex-direction: row; }
  .blueprint-index     { grid-template-columns: 1fr 1fr; }
  .properties          { grid-template-columns: 1fr; }
  .property-card::after { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero__stats         { flex-wrap: wrap; gap: 20px; }
  .entry-cards         { flex-direction: column; }
  .blueprint-index     { grid-template-columns: 1fr; }
  .nav__links li:not(.nav__admin-item):not(.nav__sep) { display: none; }
}
