:root {
  --bg: #fbf7ef;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #c25a1a;
  --brand2: #7c3aed;
  --border: rgba(31, 41, 55, .12);
  --shadow: 0 10px 30px rgba(31, 41, 55, .08);
  --radius: 18px;
  --max: 1100px;
  --pad: 18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 30% -10%, rgba(194, 90, 26, .14), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(124, 58, 237, .12), transparent 55%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 239, .76);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* -----------------------------
   BRAND / LOGO (single source)
   Desktop: show full logo only
   Mobile: show icon only
------------------------------ */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: auto;
  width: auto;
  display: block;
}

.brand .logo-full {
  display: block;
  height: 38px;
  width: auto;
}

.brand .logo-icon {
  display: none;
  height: 38px;
  width: auto;
}

/* Optional legacy support if you use a separate wordmark image */
.brand .wordmark {
  height: 28px;
  width: auto;
}

@media (max-width: 768px) {
  .brand .logo-full {
    display: none;
  }

  .brand .logo-icon {
    display: block;
  }
}

/* ----------------------------- */

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  opacity: .9;
  padding: 10px 10px;
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(31, 41, 55, .06)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), #f59e0b);
  border-color: transparent;
  color: #111827;
}

.btn.ghost {
  background: transparent;
  box-shadow: none;
}

.hero {
  padding: 56px 0 26px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 22px
}

.kicker {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px
}

h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 10px 0 12px
}

h2 {
  font-size: 28px;
  margin: 0 0 10px
}

p {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px
}

.badge {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .7);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px
}

.section {
  padding: 34px 0
}

.section .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.svc {
  padding: 18px;
}

.svc h3 {
  margin: 0 0 8px;
  font-size: 18px
}

.svc ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55
}

.svc .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  opacity: .85
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Long-key fields (API tokens) */
.secret-field {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;

  /* Make it behave like a 1-line input, but scrollable */
  height: 46px;
  line-height: 22px;
  resize: none;
  overflow: auto;
  white-space: nowrap;
  word-break: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.secret-field:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
  border-color: rgba(124, 58, 237, .4);
}

footer {
  padding: 34px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px
}

.small {
  font-size: 13px;
  color: var(--muted)
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 14px 0
}

/* Mobile */
.burger {
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .8)
}

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

  h1 {
    font-size: 36px
  }

  .cards {
    grid-template-columns: 1fr
  }

  .split {
    grid-template-columns: 1fr
  }

  .nav-links {
    display: none
  }

  .burger {
    display: inline-flex
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: rgba(251, 247, 239, .96);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--pad);
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Chat widget */
.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand2), #22c55e);
  border: none;
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 50;
  width: min(380px, calc(100vw - 36px));
  height: 520px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
  flex-direction: column;
}

.chat-top {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chat-top strong {
  display: flex;
  gap: 10px;
  align-items: center
}

.chat-top img {
  height: 22px
}

.chat-log {
  padding: 12px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border)
}

.msg.user {
  align-self: flex-end;
  background: rgba(124, 58, 237, .08)
}

.msg.bot {
  align-self: flex-start;
  background: rgba(194, 90, 26, .08)
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border)
}

.chat-input input {
  flex: 1;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  font-size: 14px
}

.chat-input button {
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: #111827;
  color: white;
  font-weight: 800;
  cursor: pointer
}


/* Logo swap: desktop = full logo only, mobile = icon only */
.brand .logo-full {
  display: block !important;
  height: 38px;
  width: auto;
}

.brand .logo-icon {
  display: none !important;
  height: 38px;
  width: auto;
}

@media (max-width: 768px) {
  .brand .logo-full {
    display: none !important;
  }

  .brand .logo-icon {
    display: block !important;
  }
}

/* --- FORCE logo swap (desktop: full only, mobile: icon only) --- */
header.site .brand .logo-full {
  display: inline-block !important;
  height: 38px !important;
  width: auto !important;
}

header.site .brand .logo-icon {
  display: none !important;
  height: 38px !important;
  width: auto !important;
}

@media (max-width: 768px) {
  header.site .brand .logo-full {
    display: none !important;
  }

  header.site .brand .logo-icon {
    display: inline-block !important;
  }
}

/* --- END force logo swap --- */

/* Coming soon: full-width "How we help" section */
.how-we-help {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

/* 4-up on desktop so the 4th tile doesn't fall to a new line */
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Tablet */
@media (max-width: 1100px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 900px) {
  .cards-4 {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   Voice Tech Quiz Styles
   ----------------------------- */
.quiz-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-height: 600px;
  align-items: center;
}

.quiz-left {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-right {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.quiz-progress {
  font-size: 14px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.quiz-question-text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--brand);
  background: rgba(194, 90, 26, 0.05);
  transform: translateX(4px);
}

.quiz-option.selected {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.radar-wrapper {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  position: relative;
}

/* Result Card */
.result-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .quiz-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .quiz-left {
    order: 2;
  }
  
  .quiz-right {
    order: 1;
    min-height: 300px;
  }
}

/* ==========================================================================
   SOLUTIONS & TECHNICAL CASE STUDIES SYSTEM
   ========================================================================== */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

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

.solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.12);
  border-color: rgba(194, 90, 26, 0.35);
}

.read-pill {
  display: inline-block;
  background: rgba(31, 41, 55, 0.06);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tech Stack Badge Row */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(194, 90, 26, 0.09);
  color: var(--brand);
  border: 1px solid rgba(194, 90, 26, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Technical Article Content Styling */
.solution-content-body {
  font-size: 17px;
  line-height: 1.7;
  color: #27272a;
}

.solution-content-body h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.solution-content-body h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--ink);
}

.solution-content-body p {
  margin: 0 0 18px;
}

.solution-content-body ul, 
.solution-content-body ol {
  margin: 0 0 22px 24px;
  padding: 0;
}

.solution-content-body li {
  margin-bottom: 8px;
}

/* Executive Summary / Key Takeaways Box */
.solution-takeaways {
  background: #f8fafc;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  padding: 24px;
  margin: 28px 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.solution-takeaways h4 {
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 800;
}

/* Monospace Network Diagrams & Architecture Flowcharts */
.solution-diagram {
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
}

.solution-diagram .diagram-title {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

/* Callout & Gotcha Boxes */
.solution-callout {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}

.solution-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.solution-callout-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--brand2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution-callout.warning .solution-callout-title {
  color: #b45309;
}

/* Code Snippets */
.solution-content-body pre {
  background: #18181b;
  color: #fafafa;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  margin: 20px 0;
}

.solution-content-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(31, 41, 55, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.solution-content-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}