/* ============================================================
   DOLIPULSE LANDING SITE - Modern Stylesheet
   ============================================================ */

:root {
  --primary: #667eea;
  --primary-light: #8b9eee;
  --primary-dark: #5a6fd6;
  --secondary: #764ba2;
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-section: #f8f9fc;
  --text: #1a1a2e;
  --text-secondary: #6c757d;
  --text-light: #e8e8f0;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
code { font-family: 'SF Mono', 'Consolas', 'Monaco', monospace; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.navbar-brand .brand-icon-text {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.lang-switch button {
  background: none;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.5);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  text-transform: uppercase;
}

.lang-switch button:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
}

.lang-switch button.active {
  color: #fff;
  border-color: var(--primary);
  background: rgba(102,126,234,0.15);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a1a 0%, #111827 40%, #0f1a30 70%, #0a0a1a 100%);
  overflow: hidden;
  padding: 120px 24px 80px;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(102,126,234,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(118,75,162,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(102,126,234,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-image {
  flex: 0 0 auto;
  max-width: 650px;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.4);
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 500px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.badge-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
  text-align: left;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(102,126,234,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(102,126,234,0.45);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   GRID & CARDS
   ============================================================ */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-center {
  text-align: center;
  padding: 32px 20px;
}

.card-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-center .card-icon {
  margin: 0 auto 18px;
}

.card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.card-row h4 { margin-bottom: 4px; }
.card-row p { margin-bottom: 0; }

.feature-list {
  list-style: none;
  margin-top: 14px;
}

.feature-list li {
  padding: 5px 0 5px 22px;
  font-size: 13px;
  color: var(--text);
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   STATS BANNER
   ============================================================ */

.stats-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 56px 0;
}

.stat-item {
  text-align: center;
  color: #fff;
  padding: 8px;
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============================================================
   QUICK START STEPS
   ============================================================ */

.step-card {
  position: relative;
  padding-top: 44px;
}

.step-number {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}

.cta-bar {
  text-align: center;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0f0f1a;
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer p {
  margin-bottom: 6px;
  font-size: 14px;
}

.site-footer .footer-copy {
  font-size: 12px;
  opacity: 0.6;
}

/* ============================================================
   PAGE HEADER (for doc pages)
   ============================================================ */

.page-header {
  padding: 100px 24px 48px;
  background: linear-gradient(135deg, #0a0a1a, #111827);
}

.page-header-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header-image {
  flex: 0 0 auto;
  max-width: 900px;
  width: 75%;
}

.page-header-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.page-header-content {
  flex: 1;
  max-width: 560px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-align: left;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 550px;
  margin: 0;
  text-align: left;
  line-height: 1.7;
}

/* ============================================================
   DOCUMENTATION PAGE STYLES
   ============================================================ */

.doc-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.doc-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}

.doc-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 14px;
}

.doc-code {
  background: #1a1a2e;
  color: #cdd6f4;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 12px 0;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.doc-code .comment { color: #6c7086; }
.doc-code .keyword { color: #cba6f7; }
.doc-code .string { color: #a6e3a1; }
.doc-code .var { color: #89b4fa; }
.doc-code .func { color: #fab387; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.doc-table th {
  background: #f0f0f0;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.doc-table td {
  padding: 8px 14px;
  border: 1px solid var(--border);
}

.doc-table tr:hover td {
  background: #f8f9fa;
}

.method-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  font-family: 'SF Mono', monospace;
}

.method-GET { background: #d3f0fe; color: #0550ae; }
.method-POST { background: #dafbe1; color: #116329; }
.method-PUT { background: #fef0d2; color: #7d4e00; }
.method-DELETE { background: #ffe0e0; color: #a0111f; }

.error-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.error-item {
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #e74c3c;
  font-size: 13px;
}

.error-code {
  font-weight: 700;
  color: #e74c3c;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   SEARCH BAR
   ============================================================ */

.search-bar {
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 18px;
  pointer-events: none;
}

.search-bar input::placeholder {
  color: #adb5bd;
}

.search-results-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 20px;
}

#searchNoResults {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============================================================
   GETTING STARTED STEPS
   ============================================================ */

.gs-step {
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.gs-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.gs-step p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   CODE EXAMPLES
   ============================================================ */

.code-example {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.code-example h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.code-example > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.code-tab-header {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
}

.code-tab-header code {
  color: var(--primary);
  font-size: 12px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: #eef0f5;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 18px 14px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   WEBHOOK INFO BOX
   ============================================================ */

.info-box {
  background: #f0f4ff;
  border: 1px solid #d0d9ff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 12px 0;
}

.info-box p {
  font-size: 14px;
  color: #2c3e50;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   DOC LAYOUT - Gitbook style sticky sidebar
   ============================================================ */

.doc-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc-sidebar {
  width: 300px;
  min-width: 300px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
  border-radius: var(--radius);
  padding: 18px 0 22px;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 50;
  align-self: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.doc-sidebar::-webkit-scrollbar { width: 5px; }
.doc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.doc-sidebar-nav { padding: 0; }

.doc-sidebar-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.3px;
}
.doc-sidebar-header small { display:block; font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.doc-sidebar-search {
  position: relative;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 10px;
}
.doc-sidebar-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}
.doc-sidebar-search input::placeholder { color: rgba(255,255,255,0.4); }
.doc-sidebar-search input:focus { background: rgba(255,255,255,0.1); border-color: var(--primary); }
.doc-sidebar-search .sidebar-search-icon {
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  pointer-events: none;
  line-height: 1;
}

.doc-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-sidebar-list > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  word-break: break-word;
}
.doc-sidebar-list > li > a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left-color: var(--primary);
}
.doc-sidebar-list > li > a.active {
  background: rgba(102,126,234,0.18);
  color: #fff;
  border-left-color: var(--primary);
}

/* Gitbook-style collapsible groups */
.docs-sidebar-group { margin: 0; }
.docs-sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.docs-sidebar-group-title:hover { color: rgba(255,255,255,0.85); }
.docs-sidebar-group-title .gb-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.docs-sidebar-group.collapsed .gb-caret { transform: rotate(-90deg); }
.docs-sidebar-group.collapsed .gb-children { display: none; }

.gb-children { display: block; }

.docs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px 6px 26px;
  color: rgba(255,255,255,0.7);
  font-size: 12.5px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  word-break: break-word;
}
.docs-sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.docs-sidebar-link.active {
  background: rgba(102,126,234,0.18);
  color: #fff;
  border-left-color: var(--primary);
}
.docs-sidebar-link.gb-sub {
  padding-left: 32px;
  font-size: 12px;
}
.docs-sidebar-link.gb-sub2 {
  padding-left: 44px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-family: 'SF Mono', 'Consolas', monospace;
}
.docs-sidebar-link.gb-sub2:hover { color: #fff; }

.mb {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 9.5px;
  text-align: center;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.mb-get { background: #d3f0fe; color: #0550ae; }
.mb-post { background: #dafbe1; color: #116329; }
.mb-put { background: #fef0d2; color: #7d4e00; }
.mb-delete { background: #ffe0e0; color: #a0111f; }
.mb-multiple { background: #e8daff; color: #5b21b6; }

.doc-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 40px;
}

/* Endpoint row anchors - for scrollspy */
.endpoint-anchor {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
}

/* ============================================================
   ENDPOINT CARDS (Agent Routines, etc.)
   ============================================================ */

.endpoint-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 4px;
  transition: all var(--transition);
}
.endpoint-card:hover {
  border-color: var(--primary);
  background: rgba(102,126,234,0.06);
}
.endpoint-card .method {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.endpoint-card .method-get { background: #d3f0fe; color: #0550ae; }
.endpoint-card .method-post { background: #dafbe1; color: #116329; }
.endpoint-card .method-put { background: #fef0d2; color: #7d4e00; }
.endpoint-card .method-delete { background: #ffe0e0; color: #a0111f; }
.endpoint-card .path {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-light);
  word-break: break-all;
}
.endpoint-card .desc {
  width: 100%;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-top: 2px;
}

/* ============================================================
   AGENT ROUTINES SECTION - Special Emphasis
   ============================================================ */

.agent-routines-section {
  border: 2px solid #a855f7 !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(135deg, rgba(168,85,247,0.04) 0%, rgba(102,126,234,0.04) 100%) !important;
  box-shadow: 0 0 30px rgba(168,85,247,0.10), inset 0 0 40px rgba(168,85,247,0.03);
  position: relative;
}

.agent-routines-section::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #667eea, #a855f7);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.agent-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.agent-routines-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom-color: #a855f7 !important;
}

.agent-routines-section .endpoint-card {
  background: rgba(168,85,247,0.03);
  border-color: rgba(168,85,247,0.15);
}

.agent-routines-section .endpoint-card:hover {
  border-color: #a855f7;
  background: rgba(168,85,247,0.08);
}

.agent-routines-section .doc-code {
  border-left: 3px solid #a855f7;
}

/* ============================================================
   TABLES WIDE
   ============================================================ */

.doc-table code {
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

h3 + .doc-table {
  margin-top: 4px;
}

/* ============================================================
   SECTION TRANSITIONS
   ============================================================ */

.doc-section-wrap {
  transition: opacity 0.2s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(15,15,26,0.98);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-toggle { display: block; }
  .lang-switch { border-left: none; margin-left: 0; padding-left: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero-layout { flex-direction: column; gap: 24px; text-align: center; }
  .hero-image { max-width: 420px; }
  .hero-content { max-width: 100%; }
  .hero-title, .hero-subtitle, .hero-actions { text-align: center; }
  .hero-actions { justify-content: center; }
  .section { padding: 48px 0; }
  .doc-section { padding: 20px; }
  .page-header-layout { flex-direction: column; gap: 24px; text-align: center; }
  .page-header-image { max-width: 340px; }
  .page-header h1, .page-header p { text-align: center; }
  .page-header p { margin: 0 auto; }
  .doc-layout { flex-direction: column; padding: 0 16px; }
  .doc-sidebar { width: 100%; min-width: 0; position: relative; top: 0; max-height: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .btn { padding: 11px 22px; font-size: 14px; }
}
