@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800;900&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

/* ---------- Tennessee Vols theme: orange & white ---------- */
:root {
  --orange: #FF8200;          /* UT orange */
  --orange-dark: #B85C00;     /* darker orange for small text on white */
  --orange-deep: #8A4400;     /* darkest accent */
  --white: #FFFFFF;
  --ink: #212121;             /* body text */
  --muted: rgba(33, 33, 33, 0.66);
  --line: rgba(0, 0, 0, 0.12);
  --panel-dark: #1F1F1F;      /* footer + diagram panels */
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.tag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.08em;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
header.hero {
  background: var(--orange);
  color: var(--on-dark);
  padding: 72px 0 0;
}

header.hero .wrap { padding-bottom: 56px; }

.hero .name {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 10px 0 6px;
  color: var(--on-dark);
}

.hero .role {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.93);
  max-width: 52ch;
  margin: 14px 0 28px;
  font-weight: 500;
}

.hero .role strong { color: var(--on-dark); font-weight: 700; }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--orange);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--orange);
}
.cta-btn:hover { filter: brightness(1.08); }

/* Buttons sitting on the orange hero: white with orange text */
.hero .cta-btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--orange-deep);
}
.hero .cta-btn:hover { filter: none; background: #FFF3E6; border-color: #FFF3E6; }
.hero .cta-btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--on-dark);
}
.hero .cta-btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }

.contact-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--on-dark);
}
.hero .contact-row a { color: var(--on-dark); text-decoration: none; }
.hero .contact-row a:hover { text-decoration: underline; }
.hero .contact-row .loc { color: rgba(255, 255, 255, 0.8); }

/* ---------- Sections ---------- */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }

.section-head { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin-bottom: 32px;
}
.section-sub strong { color: var(--ink); }

.inline-link { color: var(--orange-dark); }
.inline-link:hover { text-decoration: underline; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.card:hover { border-color: rgba(255, 130, 0, 0.55); }

.card-price {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--orange-dark);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.card-price .price-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }

.card p { color: var(--muted); font-size: 0.93rem; }

.card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- Case studies ---------- */
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.case-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.case-head h3 { font-size: 1.25rem; color: var(--ink); }

.badge {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--on-dark);
  background: var(--orange);
  border-radius: 3px;
  padding: 3px 8px;
  font-weight: 600;
}
.badge.sm { font-size: 0.6rem; padding: 2px 6px; }

.case-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin-bottom: 4px;
}

.diagram-frame {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 20px;
  margin: 24px 0 8px;
  overflow-x: auto;
}
.diagram-frame svg { width: 100%; height: auto; display: block; min-width: 520px; }

.diagram-caption {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 10px;
}

.steps { margin-top: 28px; }

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step:first-of-type { border-top: none; }

.step-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--orange-dark);
  font-size: 0.85rem;
  padding-top: 2px;
}

.step-body h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.step-body p { color: var(--muted); font-size: 0.93rem; }

.goals { margin-top: 8px; }
.goals-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 24px 0 4px;
}

.result-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 16px;
}
.result-item .num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
}
.result-item .label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
  max-width: 22ch;
}

.honesty-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin: 4px 0 40px;
  max-width: 60ch;
}

.sub-head {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

/* ---------- Other builds ---------- */
.builds { display: grid; }

.build-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.build-row:first-of-type { border-top: none; }
.build-row .b-title {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
}
.build-row .b-desc { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.build-row .b-stack {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--orange-dark);
  margin-top: 6px;
}

/* ---------- About ---------- */
.about-text {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.about-text strong { color: var(--ink); }

.stack-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.stack-chip {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--orange-dark);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
  background: var(--white);
}

/* ---------- Footer ---------- */
footer {
  background: var(--panel-dark);
  color: var(--on-dark);
}

footer .wrap { padding-top: 56px; padding-bottom: 64px; }

footer .cta { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; color: var(--on-dark); }

footer .foot-sub {
  color: var(--on-dark-muted);
  max-width: 52ch;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

footer .contact-row a { color: var(--orange); text-decoration: none; }
footer .contact-row a:hover { text-decoration: underline; }
footer .contact-row.dim { margin-top: 12px; color: var(--on-dark-muted); font-size: 0.75rem; }

.fine {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Demo chatbot ---------- */
#chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}
#chat-toggle:hover { filter: brightness(1.08); }

#chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 340px;
  max-width: calc(100vw - 44px);
  height: 440px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}
#chat-panel.open { display: flex; }

#chat-head {
  background: var(--orange);
  color: var(--white);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-title { display: flex; flex-direction: column; line-height: 1.3; }
.chat-title strong { font-size: 0.95rem; }
.chat-title span { font-size: 0.7rem; opacity: 0.88; }
#chat-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

#chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFF9F4;
}
.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-msg.bot {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.chat-msg.bot a { color: var(--orange-dark); }
.chat-msg.user {
  background: var(--orange);
  color: var(--white);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

#chat-input-row {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--white);
}
#chat-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  min-width: 0;
}
#chat-send {
  border: none;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 18px;
  cursor: pointer;
}
#chat-send:hover { filter: brightness(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero .name { font-size: 1.9rem; }
  header.hero { padding: 48px 0 0; }
  header.hero .wrap { padding-bottom: 40px; }
  section { padding: 40px 0; }
  .wrap { padding: 0 18px; }
  .card { padding: 20px 18px; }
  .case { padding: 20px 16px; }
  .cta-btn { width: 100%; text-align: center; }
  .contact-row { gap: 12px; font-size: 0.78rem; }
  .diagram-frame { -webkit-overflow-scrolling: touch; padding: 20px 12px; }
  .result-strip { gap: 20px; }
  #chat-toggle { right: 16px; bottom: 16px; }
  #chat-panel { right: 16px; bottom: 16px; }
}
