:root {
  --bg: #000000;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --border: #2a2a2a;
  --text: #FFFFFF;
  --text-dim: #888888;
  --accent: #F84600;
  --accent-2: #d63d00;
  --accent-glow: rgba(248, 70, 0, 0.10);
  --radius: 14px;
  --sidebar-w: 260px;
  --font: 'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Google Sans Mono', 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  padding: 24px 0;
  z-index: 100;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.sidebar-header { padding: 0 20px 24px; }
.logo {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  height: 22px;
  width: auto;
}

.hero-logo-wrap {
  margin-top: 0;
  margin-bottom: 12px;
}

.hero-logo {
  display: block;
  width: min(340px, 72vw);
  height: auto;
}

.sidebar-section { margin-bottom: 20px; }
.section-title {
  padding: 0 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.nav-link {
  display: block;
  padding: 7px 20px 7px 28px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glow);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-footer-icons {
  display: flex;
  gap: 10px;
}
.sidebar-footer-icons a {
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: all 0.15s;
}
.sidebar-footer-icons a:hover { color: var(--accent); background: var(--surface-2); }

/* Main Content */
.content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 48px 64px;
  max-width: 820px;
  width: 100%;
}

.content h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
}
.content p { margin-bottom: 16px; color: var(--text); }
.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.content li { margin-bottom: 6px; color: var(--text); }
.content a:not(.btn) { color: var(--accent); text-decoration: none; }
.content a:not(.btn):hover { text-decoration: underline; }

/* Never let generic link styles override buttons */
.content a.btn,
.content a.btn:visited,
.content a.btn:hover,
.content a.btn:active {
  text-decoration: none !important;
}
.content a.btn.btn-primary,
.content a.btn.btn-primary:visited,
.content a.btn.btn-primary:hover,
.content a.btn.btn-primary:active {
  color: #fff !important;
}
.content a.btn.btn-secondary,
.content a.btn.btn-secondary:visited,
.content a.btn.btn-secondary:hover,
.content a.btn.btn-secondary:active {
  color: var(--text) !important;
}
.content code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  color: #ff8a5c;
}
.content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.content pre code {
  background: none;
  padding: 0;
  font-size: 0.88em;
  color: var(--text);
}
.content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin-bottom: 20px;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}
.content blockquote p { margin-bottom: 0; }

/* Callout boxes */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.callout-tip { border-left: 3px solid #10b981; }
.callout-warning { border-left: 3px solid #f59e0b; }
.callout-info { border-left: 3px solid var(--accent); }
.callout-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Home page */
.home { max-width: 100%; }
.hero {
  text-align: center;
  padding: 60px 0 48px;
}
.hero h1 {
  font-size: 48px;
  background: linear-gradient(135deg, var(--accent), #ff6b2b, #ff8f47);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero p {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  text-decoration: none;
  transform: translateY(-2px);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}
.card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* Mobile */
.menu-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; padding: 32px 20px; padding-top: 64px; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
}

/* Table of contents (optional) */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}
.toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.toc a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 3px 0;
  text-decoration: none;
}
.toc a:hover { color: var(--accent); }

/* Numbered step */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lang-toggle a,
.lang-toggle .lang-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-toggle a:hover { color: var(--text); border-color: var(--text-dim); }
.lang-toggle a.active,
.lang-toggle .lang-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}


/* Doc pages */
.doc-page {
  max-width: 820px;
  padding: 56px 64px 96px;
}
.doc-page h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.doc-page .lead {
  color: var(--text-dim);
  font-size: 19px;
  margin-bottom: 40px;
}
.doc-page section {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.doc-page h2 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.doc-page p {
  color: var(--text-dim);
  font-size: 16px;
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}
@media (max-width: 768px) {
  .doc-page { padding: 40px 24px 72px; }
  .doc-page h1 { font-size: 34px; }
}


/* Visual 5-minute guide */
.guide-visual { max-width: 1080px; }
.guide-hero { max-width: 820px; margin-bottom: 36px; }
.eyebrow { color: var(--accent) !important; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px !important; font-weight: 700; margin-bottom: 12px !important; }
.guide-hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.05em; margin-bottom: 18px; }
.chat-demo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); gap: 24px; align-items: stretch; margin: 40px 0 28px; }
.chat-window, .guide-note, .time-card, .next-step-box { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 24px 80px rgba(0,0,0,0.28); }
.chat-window { padding: 18px; }
.chat-topbar { display: flex; gap: 7px; margin-bottom: 18px; }
.chat-topbar span { width: 10px; height: 10px; border-radius: 999px; background: var(--border); }
.message { max-width: 78%; padding: 14px 16px; border-radius: 18px; margin: 12px 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.user-msg { margin-left: auto; background: var(--accent); color: white; border-bottom-right-radius: 6px; }
.agent-msg { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.agent-msg.strong { border-color: rgba(248,70,0,0.45); background: rgba(248,70,0,0.10); }
.tool-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 14px 4px; }
.tool-row span { color: var(--accent); border: 1px solid rgba(248,70,0,0.35); background: rgba(248,70,0,0.08); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.guide-note { padding: 24px; }
.guide-note h2 { font-size: 24px; margin-bottom: 10px; }
.timeline-guide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.time-card { padding: 18px; min-height: 250px; }
.minute { display: inline-flex; color: var(--accent); border: 1px solid rgba(248,70,0,0.4); background: rgba(248,70,0,0.08); border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.time-card h2 { font-size: 19px; margin-bottom: 8px; }
.time-card p { font-size: 14px; margin-bottom: 14px; }
.time-card code { display: block; white-space: normal; color: var(--text); background: #070707; border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-family: var(--font); font-size: 13px; line-height: 1.45; }
.next-step-box { padding: 26px; margin-top: 30px; }
.next-step-box pre { white-space: pre-wrap; background: #070707; border: 1px solid var(--border); border-radius: 16px; padding: 18px; color: var(--text); font-family: var(--font); margin-top: 14px; }
@media (max-width: 1100px) { .timeline-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .guide-hero h1 { font-size: 38px; } .chat-demo { grid-template-columns: 1fr; } .timeline-guide { grid-template-columns: 1fr; } .message { max-width: 92%; } }


/* Onboarding map */
.onboarding-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0; }
.onboarding-card { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)); border: 1px solid var(--border); border-radius: 22px; padding: 22px; min-height: 245px; box-shadow: 0 20px 70px rgba(0,0,0,0.22); }
.onboarding-card.primary { border-color: rgba(248,70,0,0.45); background: linear-gradient(180deg, rgba(248,70,0,0.12), rgba(255,255,255,0.018)); }
.onboarding-card h2 { font-size: 22px; margin: 12px 0 8px; letter-spacing: -0.02em; }
.onboarding-card p { font-size: 15px; color: var(--text-dim); margin-bottom: 16px; }
.onboarding-card code { display: block; white-space: normal; background: #070707; border: 1px solid var(--border); border-radius: 14px; color: var(--text); padding: 12px; font-family: var(--font); font-size: 13px; line-height: 1.45; }
.flow-strip, .starter-prompts { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); border: 1px solid var(--border); border-radius: 22px; padding: 26px; margin-top: 26px; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.flow-steps span { color: var(--text); background: rgba(248,70,0,0.09); border: 1px solid rgba(248,70,0,0.35); border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 13px; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.prompt-grid pre { white-space: pre-wrap; background: #070707; border: 1px solid var(--border); border-radius: 16px; padding: 16px; color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
@media (max-width: 1100px) { .onboarding-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .onboarding-map, .prompt-grid { grid-template-columns: 1fr; } .onboarding-card { min-height: auto; } }


/* Landing-style guide revision */
.landing-style-guide { max-width: 1120px; }
.landing-hero-block { padding: 24px 0 16px; border-top: 0 !important; }
.landing-hero-block h1 { font-size: clamp(44px, 7vw, 82px); line-height: .95; letter-spacing: -0.065em; max-width: 920px; margin-bottom: 22px; }
.landing-hero-block .lead { max-width: 760px; font-size: 21px; line-height: 1.55; }
.connect-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.connect-strip span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 14px; color: var(--text); font-size: 13px; font-weight: 600; }
.landing-card-grid { border-top: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 28px 0 !important; }
.landing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; min-height: 300px; display: flex; flex-direction: column; }
.landing-card:nth-child(1) { background: linear-gradient(180deg, rgba(248,70,0,.16), rgba(255,255,255,.025)); border-color: rgba(248,70,0,.38); }
.landing-icon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(248,70,0,.12); border: 1px solid rgba(248,70,0,.36); color: var(--accent); font-weight: 800; margin-bottom: 18px; }
.landing-card h2 { font-size: 24px; line-height: 1.1; margin-bottom: 12px; letter-spacing: -.035em; }
.landing-card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.landing-card code { margin-top: auto; display: block; white-space: normal; background: #070707; border: 1px solid var(--border); border-radius: 14px; color: var(--text); padding: 12px; font-family: var(--font); font-size: 13px; line-height: 1.45; }
.landing-section { background: var(--surface); border: 1px solid var(--border) !important; border-radius: 24px; padding: 28px !important; margin: 18px 0 0; }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 28px; align-items: center; }
.split-section h2, .prompt-section h2 { font-size: 36px; line-height: 1.05; letter-spacing: -.045em; margin-bottom: 14px; }
.stack-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stack-box span { background: #070707; border: 1px solid var(--border); border-radius: 16px; padding: 16px; font-weight: 700; text-align: center; }
.prompt-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prompt-grid.compact pre { font-size: 15px; }
@media (max-width: 1100px) { .landing-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .landing-card-grid, .split-section, .prompt-grid.compact { grid-template-columns: 1fr; } .landing-card { min-height: auto; } .landing-section { padding: 22px !important; } }

/* SEO entity links */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.seo-entity-links{margin:48px 0 12px;padding-top:20px;border-top:1px solid #e8e8e8;color:#666;font-size:13px}.seo-entity-links a{color:#444;text-decoration:none}.seo-entity-links a:hover{color:#F84600;text-decoration:underline}
