/* ==========================================
   APPZENTIC HOME — style.css
   ========================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Design Tokens */
:root {
  --bg:           #ffffff;
  --surface:      #f7f7f5;
  --surface-alt:  #f0f0ed;
  --border:       #e5e5e0;
  --border-dark:  #d0d0ca;
  --green:        #3b7de8;
  --green-hover:  #2d6fd4;
  --green-light:  #dbeafe;
  --text:         #111111;
  --text-muted:   #888888;
  --text-light:   #bbbbbb;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1120px;
  --section-gap:  96px;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-gap) 0; }

/* Typography */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.7; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--green-hover); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--surface); }

/* Labels */
.label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.label-green { background: var(--green-light); color: var(--green); }
.label-gray  { background: var(--surface-alt); color: var(--text-muted); }

/* Section header utility */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* ==========================================
   NAV
   ========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-right: 16px;
}
.nav-logo img { width: 26px; height: 26px; flex-shrink: 0; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.open > .nav-link { background: var(--surface); }
.nav-caret { font-size: 0.65rem; opacity: 0.45; transition: transform 0.2s; }
.nav-item.open .nav-caret { transform: rotate(180deg); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Dropdowns */
.nav-item { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
}
.nav-item.open > .dropdown { display: block; }

/* Wide two-column dropdown for Marketplace */
.dropdown-wide {
  min-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px;
}
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--surface); }
.dropdown-item-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.dropdown-item-title { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.dropdown-item-desc  { font-size: 0.8rem; color: var(--text-muted); margin-top: 1px; }

/* Marketplace two-column */
.dropdown-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.dropdown-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 8px 8px;
}
.dropdown-item-sm {
  display: block;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dropdown-item-sm:hover { background: var(--surface); }
.dropdown-footer { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.dropdown-see-all {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dropdown-see-all:hover { background: var(--green-light); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding-top: calc(60px + 80px);
  padding-bottom: 80px;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.hero-title {
  color: var(--text);
  margin-bottom: 16px;
  transition: opacity 0.55s ease;
  /* Reset h1 defaults — typography on child spans */
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  /* Two-line layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.title-main {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
}
.title-sub {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  color: #555555;
  letter-spacing: 0;
  line-height: 1.5;
  white-space: nowrap;
}
.hero-sub { font-size: 1.1rem; max-width: 540px; margin: 0 auto; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-caption { font-size: 0.85rem; color: var(--text-light); }

/* ==========================================
   CHAT WINDOW
   ========================================== */
.chat-window {
  width: 100%;
  max-width: 800px;
  height: 720px;          /* fixed — messages scroll inside */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  display: flex;
  flex-direction: row;
  text-align: left;
}

/* Sidebar */
.chat-sidebar {
  width: 148px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-sidebar-header {
  padding: 12px 12px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.chat-sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 0 4px;
  transition: background 0.15s;
}
.chat-sidebar-item:hover { background: var(--surface-alt); }
.chat-sidebar-item.active {
  background: var(--green-light);
}
.sidebar-item-icon { font-size: 0.85rem; flex-shrink: 0; }
.sidebar-item-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-sidebar-item.active .sidebar-item-name { color: var(--green); font-weight: 600; }
.chat-sidebar-new {
  margin: 6px 8px 10px;
  padding: 6px 0;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.chat-sidebar-new:hover { border-color: var(--green); color: var(--green); }

/* Main chat area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.chat-menu-btn {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  flex-shrink: 0;
}
.chat-menu-btn:hover { background: var(--border); }
.chat-tool-select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.chat-tool-select:focus { outline: none; border-color: var(--green); }
.chat-session-title {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-open-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--green);
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.chat-open-btn:hover { background: var(--green-light); }

.chat-messages {
  flex: 1;           /* fill remaining height between titlebar and footer */
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* User bubble — right-aligned, matches console .msg-wrap.user */
.msg-user {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
}
.msg-user .msg-bubble {
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  max-width: 78%;
  line-height: 1.55;
  font-size: 0.875rem;
}
.msg-avatar-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 2px;
  border: 1px solid var(--border);
}

/* AI bubble — left-aligned with Claude icon */
.msg-ai { display: flex; align-items: flex-start; gap: 8px; }
.msg-ai .msg-avatar-icon {
  background: #2d2d3d;
  border-color: #2d2d3d;
  margin-top: 2px;
  padding: 3px;
}
.ai-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px;
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-text { color: var(--text); font-size: 0.875rem; line-height: 1.55; }
.ai-step { color: var(--green); font-size: 0.82rem; line-height: 1.4; font-family: var(--font-mono); }

/* Result card */
.result-card {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.result-header {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
/* Two QR codes side by side */
.result-qr-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.result-qr-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border-right: 1px solid var(--border);
}
.result-qr-item:last-child { border-right: none; }
.qr-placeholder {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border: 2px solid var(--text);
  border-radius: 4px;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, var(--border) 3px, var(--border) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, var(--border) 3px, var(--border) 4px);
}
.result-qr-label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.result-qr-sub   { font-size: 0.7rem;  color: var(--text-muted); }
/* iOS-only: single centered QR */
.result-qr-row.single { justify-content: center; }
.result-qr-row.single .result-qr-item { max-width: 160px; border-right: none; }
.result-actions { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; }
.result-btn {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  transition: background 0.15s;
  text-align: left;
  font-family: var(--font-mono);
}
.result-btn:hover { background: var(--surface); }
.result-btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.result-btn.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }

/* Chat input row — styled like console input area */
.chat-footer {
  display: flex;
  align-items: stretch; /* button stretches to match textarea height */
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--green); background: var(--bg); }
.chat-send-btn {
  padding: 8px 18px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--green-hover); }

/* ==========================================
   DIFFERENTIATOR
   ========================================== */
.section-diff { background: var(--surface); }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.diff-card {
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.diff-card-good { border-color: var(--green); }
.diff-label { margin-bottom: 20px; }
.diff-list { display: flex; flex-direction: column; gap: 12px; }
.diff-list li { font-size: 0.9rem; font-weight: 500; padding-left: 4px; }
.diff-card-bad  .diff-list li { color: var(--text-muted); }
.diff-card-good .diff-list li { color: var(--text); }

/* ==========================================
   AI BUILDS YOUR OWN
   ========================================== */
.section-own { background: var(--bg); }
.own-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.own-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.2s;
}
.own-card:hover { box-shadow: var(--shadow-md); }
.own-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}
.own-card h3 { margin-bottom: 10px; }
.own-card p  { font-size: 0.9rem; }
.own-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 28px;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  font-style: italic;
}

/* ==========================================
   THREE PRODUCTS
   ========================================== */
.section-products { background: var(--surface); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-icon { font-size: 1.6rem; margin-bottom: 4px; }
.product-card h3 { font-size: 1.1rem; }
.product-tag { font-size: 0.8rem; font-weight: 600; color: var(--green); font-family: var(--font-mono); }
.product-card > p { font-size: 0.9rem; flex: 1; }
.product-link { font-size: 0.85rem; font-weight: 600; color: var(--green); margin-top: 4px; }
.product-link:hover { color: var(--green-hover); }

/* ==========================================
   MARKETPLACE TEASER
   ========================================== */
.section-marketplace { background: var(--bg); }
.marketplace-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.marketplace-card h2 { margin: 0; }
.marketplace-card p  { max-width: 420px; font-size: 0.95rem; }

/* ==========================================
   BOTTOM CTA
   ========================================== */
.section-cta { background: var(--surface); }
.section-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta-input-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.cta-input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.cta-input:focus { border-color: var(--green); }
.cta-input::placeholder { color: var(--text-light); }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--surface-alt); border-top: 1px solid var(--border); }
.footer-inner { display: flex; gap: 64px; padding: 64px 24px 48px; }
.footer-brand { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand p { font-size: 0.85rem; font-family: var(--font-mono); color: var(--text-muted); }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer-social a:hover { background: var(--border); color: var(--text); border-color: var(--border-dark); }
.footer-social svg { width: 15px; height: 15px; }
.footer-links { display: flex; gap: 48px; flex: 1; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

/* ==========================================
   LEGAL PAGES
   ========================================== */
.legal-page { padding-top: calc(60px + 64px); padding-bottom: 96px; }
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal-inner h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal-meta { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 48px; font-family: var(--font-mono); }
.legal-body { display: flex; flex-direction: column; gap: 24px; }
.legal-body h2 {
  font-size: 1.2rem;
  margin-top: 8px;
  margin-bottom: -8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-body h3 { font-size: 1rem; }
.legal-body p  { font-size: 0.95rem; }
.legal-body ul { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal-body ul li { font-size: 0.95rem; color: var(--text-muted); }
.legal-body a { color: var(--green); }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); font-weight: 600; }

/* ==========================================
   DOCS & FAQs
   ========================================== */
.docs-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.docs-sidebar { position: sticky; top: 80px; }
.docs-sidebar-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.docs-sidebar-link {
  display: block;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.docs-sidebar-link:hover { background: var(--surface-alt); color: var(--text); }
.docs-sidebar-link.active { background: var(--green-light); color: var(--green); font-weight: 600; }

.docs-section { margin-bottom: 56px; }
.docs-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.faq-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-a { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.faq-a strong { color: var(--text); font-weight: 600; }
.faq-a code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text);
}

/* ==========================================
   GLOSSARY
   ========================================== */
.glossary-section { margin-bottom: 56px; }
.glossary-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--green);
}
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.glossary-term { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; font-family: var(--font-mono); }
.glossary-def  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.glossary-def strong { color: var(--text); font-weight: 600; }

/* ==========================================
   PAGE HERO (About / Pricing / Enterprise / Contact)
   ========================================== */
.page-hero {
  padding-top: calc(60px + 64px);
  padding-bottom: 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p  { font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.page-hero em { font-style: normal; font-weight: 700; color: var(--text); }
.page-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green-light);
  color: var(--green);
  margin-bottom: 16px;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-value-block {
  display: flex;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.about-value-block:last-child { border-bottom: none; }
.about-value-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 6px;
  min-width: 48px;
}
.about-value-block h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 16px; }
.about-value-block p  { font-size: 1rem; line-height: 1.8; margin-bottom: 12px; }
.about-value-block p:last-child { margin-bottom: 0; }
.about-value-block em { font-style: normal; font-weight: 600; color: var(--text); }

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.about-team-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-team-human { border-color: var(--green); }
.about-team-ai    { border-style: dashed; }
.about-team-header { display: flex; align-items: center; gap: 14px; }
.team-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.team-avatar-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.team-avatar-dark {
  background: #2d2d3d;
  border-color: #2d2d3d;
  padding: 6px;
}
.about-team-ai .team-avatar,
.ai-avatar-sm {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.team-name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.team-role { font-size: 0.78rem; font-weight: 600; color: var(--green); font-family: var(--font-mono); margin-top: 2px; }
.about-team-ai .team-role { color: var(--text-muted); }
.team-bio  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.about-hiring-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.about-hiring-note a { color: var(--green); font-weight: 600; }
.about-hiring-note a:hover { text-decoration: underline; }

/* ==========================================
   PRICING PAGE
   ========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.pricing-card.featured { border-color: var(--green); border-width: 2px; }
.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-price sup { font-size: 1rem; vertical-align: top; margin-top: 6px; display: inline-block; }
.pricing-price sub { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-top: -8px; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pricing-features li .check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li strong { color: var(--text); font-weight: 600; }
.feat-note {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 2px;
  font-weight: 400;
}
/* Tooltip — ? icon with hover popup */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.55;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: normal;
  text-align: left;
}
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  pointer-events: none;
}
.tip:hover::after,
.tip:hover::before { opacity: 1; }
.pricing-cta {
  display: block;
  padding: 10px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.pricing-cta:hover { background: var(--surface); }
.pricing-cta.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pricing-cta.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }

.pricing-infra-note {
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.pricing-infra-note .note-icon { font-size: 1.6rem; flex-shrink: 0; }
.pricing-infra-note h3 { margin-bottom: 6px; font-size: 1rem; }
.pricing-infra-note p  { font-size: 0.9rem; }

/* ==========================================
   ENTERPRISE PAGE
   ========================================== */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.enterprise-card {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enterprise-icon { font-size: 2rem; margin-bottom: 4px; }
.enterprise-card h3 { font-size: 1.2rem; }
.enterprise-card p  { font-size: 0.9rem; line-height: 1.7; }
.enterprise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.enterprise-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}
.enterprise-list li::before { content: "—"; color: var(--green); flex-shrink: 0; }
.enterprise-cta-box {
  margin-top: 64px;
  padding: 56px 40px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.enterprise-cta-box h2 { margin-bottom: 12px; }
.enterprise-cta-box p  { max-width: 480px; margin: 0 auto 24px; }

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-icon { font-size: 1.5rem; margin-bottom: 4px; }
.contact-card h3 { font-size: 1rem; }
.contact-card p  { font-size: 0.875rem; line-height: 1.6; }
.contact-card a  { font-size: 0.875rem; font-weight: 600; color: var(--green); margin-top: 4px; }
.contact-card a:hover { text-decoration: underline; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-menu.open .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    display: none;
    min-width: unset;
    transform: none;
  }
  .nav-menu.open .nav-item.open > .dropdown { display: block; }
  .dropdown-cols { grid-template-columns: 1fr; }

  .hero { padding-top: calc(60px + 48px); padding-bottom: 48px; }
  .hero-sub br { display: none; }
  .diff-grid, .own-grid, .products-grid { grid-template-columns: 1fr; }
  .about-products-grid, .values-grid, .enterprise-grid, .contact-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .glossary-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .about-team-grid { grid-template-columns: 1fr; }
  .about-value-block { flex-direction: column; gap: 16px; }
  .about-value-num { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .cta-input-row { flex-direction: column; }
  .chat-window { border-radius: var(--radius); }
  .chat-sidebar { display: none; }
  .marketplace-card { padding: 36px 24px; }
  .legal-inner h1 { font-size: 1.8rem; }
  .diff-card { padding: 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-infra-note { flex-direction: column; }
  .enterprise-cta-box { padding: 36px 24px; }
}
