/* === Theme Variables === */
:root {
  --bg-main: #0a0a0f;
  --bg-card: rgba(15, 15, 25, 0.9);
  --bg-card-hover: rgba(139, 92, 246, 0.06);
  --bg-input: rgba(255,255,255,0.04);
  --bg-input-focus: rgba(255,255,255,0.06);
  --bg-code: #0d1117;
  --bg-tabs: rgba(10,10,20,0.5);
  --bg-tabs-sub: rgba(10,10,20,0.3);
  --bg-model-item: rgba(255,255,255,0.03);
  --bg-btn-glass: rgba(255,255,255,0.06);
  --bg-btn-glass-hover: rgba(255,255,255,0.1);
  --bg-btn-outline-hover: rgba(139,92,246,0.1);
  --bg-badge: rgba(99,102,241,0.12);
  --bg-endpoint: rgba(15,15,25,0.9);
  --bg-nav-mobile: rgba(10,10,15,0.97);
  --bg-header: rgba(10, 10, 15, 0.75);
  --bg-file-upload: rgba(255,255,255,0.02);
  --bg-file-upload-hover: rgba(139,92,246,0.04);
  --bg-copy-btn: rgba(255,255,255,0.05);
  --bg-ticket-item: rgba(255,255,255,0.03);
  --bg-ticket-answer: rgba(34,197,94,0.06);
  --bg-tg-feature: rgba(255,255,255,0.03);
  --bg-lang-btn: rgba(99,102,241,0.15);
  --bg-grid-line: rgba(99,102,241,0.04);
  --bg-orb-opacity: 0.35;

  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-code: #e2e8f0;
  --text-code-accent: #c4b5fd;
  --text-badge: #a78bfa;
  --text-endpoint: #a78bfa;
  --text-endpoint-code: #c4b5fd;
  --text-nav-link: #94a3b8;
  --text-nav-link-hover: #f1f5f9;
  --text-tab: #64748b;
  --text-tab-hover: #94a3b8;
  --text-tab-active: #c4b5fd;
  --text-sub-tab-active: #a5b4fc;
  --text-copy-btn: #94a3b8;
  --text-copy-hover: #c4b5fd;
  --text-footer-link: #64748b;
  --text-footer-link-hover: #c4b5fd;
  --text-lang-btn: #a78bfa;

  --border-main: rgba(99,102,241,0.12);
  --border-header: rgba(99,102,241,0.08);
  --border-card-hover: rgba(139, 92, 246, 0.4);
  --border-input: rgba(99,102,241,0.15);
  --border-input-focus: rgba(139,92,246,0.5);
  --border-code: rgba(99,102,241,0.1);
  --border-code-left: rgba(139,92,246,0.4);
  --border-model-item: rgba(255,255,255,0.05);
  --border-model-item-hover: rgba(139,92,246,0.15);
  --border-btn-glass: rgba(255,255,255,0.12);
  --border-btn-glass-hover: rgba(255,255,255,0.2);
  --border-btn-outline: rgba(139,92,246,0.4);
  --border-btn-outline-hover: rgba(139,92,246,0.7);
  --border-badge: rgba(99,102,241,0.2);
  --border-endpoint: rgba(99,102,241,0.15);
  --border-endpoint-hover: rgba(139,92,246,0.35);
  --border-tab: transparent;
  --border-tab-active: #8b5cf6;
  --border-sub-tab-active: #6366f1;
  --border-section-divider: linear-gradient(90deg, transparent, rgba(99,102,241,0.2) 30%, rgba(139,92,246,0.2) 70%, transparent);
  --border-footer: rgba(99,102,241,0.08);
  --border-footer-bottom: rgba(99,102,241,0.06);
  --border-nav-mobile: rgba(99,102,241,0.1);
  --border-file-upload: rgba(99,102,241,0.2);
  --border-copy-btn: rgba(255,255,255,0.08);
  --border-tg-feature: rgba(255,255,255,0.05);
  --border-lang-btn: rgba(99,102,241,0.3);
  --border-card-header: rgba(99,102,241,0.08);
  --border-tabs: rgba(99,102,241,0.1);
  --border-tabs-sub: rgba(99,102,241,0.06);
  --border-code-header: rgba(99,102,241,0.08);

  --shadow-card-hover: 0 0 30px rgba(139, 92, 246, 0.1), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-btn-primary: 0 4px 24px rgba(99,102,241,0.4), 0 0 60px rgba(139,92,246,0.15);
  --shadow-btn-primary-hover: 0 6px 32px rgba(99,102,241,0.55), 0 0 80px rgba(139,92,246,0.2);
  --shadow-icon: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-tg-icon: 0 8px 32px rgba(99,102,241,0.3);
  --shadow-endpoint-hover: 0 0 20px rgba(139,92,246,0.08);
  --shadow-input-focus: 0 0 0 3px rgba(139,92,246,0.1);
  --shadow-step-num: 0 2px 10px rgba(99,102,241,0.3);
  --shadow-btn-outline-hover: 0 0 20px rgba(139,92,246,0.15);

  --glass-card-top-line: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
  --gradient-text: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --gradient-hero-title: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a855f7 70%, #c084fc 100%);
  --gradient-orb1: radial-gradient(circle, #6366f1, transparent 70%);
  --gradient-orb2: radial-gradient(circle, #8b5cf6, transparent 70%);
  --gradient-orb3: radial-gradient(circle, #a855f7, transparent 70%);
  --gradient-hero-glow: radial-gradient(ellipse, rgba(139,92,246,0.2), rgba(99,102,241,0.1), transparent 70%);
  --gradient-tg-icon: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-stat: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-step-num: linear-gradient(135deg, #6366f1, #8b5cf6);

  --icon-google-bg: #fff;
  --icon-mistral-bg: #fff;
  --scrollbar-thumb: rgba(139,92,246,0.3);
}

/* === Light Theme === */
[data-theme="light"] {
  --bg-main: #f8f9fc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(99, 102, 241, 0.04);
  --bg-input: rgba(0,0,0,0.03);
  --bg-input-focus: rgba(0,0,0,0.05);
  --bg-code: #f6f8fa;
  --bg-tabs: rgba(245,245,250,0.8);
  --bg-tabs-sub: rgba(245,245,250,0.5);
  --bg-model-item: rgba(0,0,0,0.02);
  --bg-btn-glass: rgba(0,0,0,0.04);
  --bg-btn-glass-hover: rgba(0,0,0,0.08);
  --bg-btn-outline-hover: rgba(99,102,241,0.08);
  --bg-badge: rgba(99,102,241,0.08);
  --bg-endpoint: rgba(255,255,255,0.95);
  --bg-nav-mobile: rgba(255,255,255,0.98);
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-file-upload: rgba(0,0,0,0.02);
  --bg-file-upload-hover: rgba(99,102,241,0.04);
  --bg-copy-btn: rgba(0,0,0,0.04);
  --bg-ticket-item: rgba(0,0,0,0.02);
  --bg-ticket-answer: rgba(34,197,94,0.06);
  --bg-tg-feature: rgba(0,0,0,0.02);
  --bg-lang-btn: rgba(99,102,241,0.1);
  --bg-grid-line: rgba(99,102,241,0.03);
  --bg-orb-opacity: 0.12;

  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-code: #1e293b;
  --text-code-accent: #6366f1;
  --text-badge: #6366f1;
  --text-endpoint: #6366f1;
  --text-endpoint-code: #7c3aed;
  --text-nav-link: #475569;
  --text-nav-link-hover: #1e293b;
  --text-tab: #64748b;
  --text-tab-hover: #475569;
  --text-tab-active: #6366f1;
  --text-sub-tab-active: #4f46e5;
  --text-copy-btn: #64748b;
  --text-copy-hover: #6366f1;
  --text-footer-link: #64748b;
  --text-footer-link-hover: #6366f1;
  --text-lang-btn: #6366f1;

  --border-main: rgba(99,102,241,0.15);
  --border-header: rgba(99,102,241,0.1);
  --border-card-hover: rgba(99, 102, 241, 0.35);
  --border-input: rgba(99,102,241,0.2);
  --border-input-focus: rgba(99,102,241,0.5);
  --border-code: rgba(99,102,241,0.12);
  --border-code-left: rgba(99,102,241,0.4);
  --border-model-item: rgba(0,0,0,0.06);
  --border-model-item-hover: rgba(99,102,241,0.2);
  --border-btn-glass: rgba(0,0,0,0.1);
  --border-btn-glass-hover: rgba(0,0,0,0.15);
  --border-btn-outline: rgba(99,102,241,0.4);
  --border-btn-outline-hover: rgba(99,102,241,0.6);
  --border-badge: rgba(99,102,241,0.2);
  --border-endpoint: rgba(99,102,241,0.15);
  --border-endpoint-hover: rgba(99,102,241,0.3);
  --border-tab: transparent;
  --border-tab-active: #6366f1;
  --border-sub-tab-active: #4f46e5;
  --border-section-divider: linear-gradient(90deg, transparent, rgba(99,102,241,0.15) 30%, rgba(139,92,246,0.15) 70%, transparent);
  --border-footer: rgba(99,102,241,0.1);
  --border-footer-bottom: rgba(99,102,241,0.08);
  --border-nav-mobile: rgba(99,102,241,0.1);
  --border-file-upload: rgba(99,102,241,0.2);
  --border-copy-btn: rgba(0,0,0,0.08);
  --border-tg-feature: rgba(0,0,0,0.06);
  --border-lang-btn: rgba(99,102,241,0.3);
  --border-card-header: rgba(99,102,241,0.1);
  --border-tabs: rgba(99,102,241,0.1);
  --border-tabs-sub: rgba(99,102,241,0.06);
  --border-code-header: rgba(99,102,241,0.08);

  --shadow-card-hover: 0 4px 20px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-btn-primary: 0 4px 16px rgba(99,102,241,0.25);
  --shadow-btn-primary-hover: 0 6px 24px rgba(99,102,241,0.35);
  --shadow-icon: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-tg-icon: 0 4px 16px rgba(99,102,241,0.2);
  --shadow-endpoint-hover: 0 0 12px rgba(99,102,241,0.06);
  --shadow-input-focus: 0 0 0 3px rgba(99,102,241,0.1);
  --shadow-step-num: 0 2px 8px rgba(99,102,241,0.2);
  --shadow-btn-outline-hover: 0 0 12px rgba(99,102,241,0.1);

  --glass-card-top-line: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
  --gradient-text: linear-gradient(135deg, #4f46e5, #7c3aed, #9333ea);
  --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed, #9333ea);
  --gradient-hero-title: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #9333ea 70%, #a855f7 100%);
  --gradient-orb1: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  --gradient-orb2: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  --gradient-orb3: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%);
  --gradient-hero-glow: radial-gradient(ellipse, rgba(99,102,241,0.1), rgba(139,92,246,0.05), transparent 70%);
  --gradient-tg-icon: linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-stat: linear-gradient(135deg, #4f46e5, #9333ea);
  --gradient-step-num: linear-gradient(135deg, #4f46e5, #7c3aed);

  --icon-google-bg: #fff;
  --icon-mistral-bg: #fff;
  --scrollbar-thumb: rgba(99,102,241,0.3);
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', monospace; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* === Grid Background Pattern (Linear.app style) === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* === Background Orbs (more visible) === */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: var(--bg-orb-opacity); }
.orb-1 {
  width: 650px; height: 650px; top: -12%; left: -10%;
  background: var(--gradient-orb1);
  animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
  width: 550px; height: 550px; top: 38%; right: -8%;
  background: var(--gradient-orb2);
  animation: orbFloat2 22s ease-in-out infinite;
}
.orb-3 {
  width: 500px; height: 500px; bottom: -5%; left: 28%;
  background: var(--gradient-orb3);
  animation: orbFloat3 20s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.05); }
  66% { transform: translate(50px, 40px) scale(0.9); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -50px) scale(1.08); }
}

/* === Gradient Text === */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-header);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo-icon {
  color: #8b5cf6; font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(139,92,246,0.5));
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-nav-link); transition: color 0.2s; }
.nav-link:hover { color: var(--text-nav-link-hover); }
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-main); border-radius: 2px; transition: 0.3s;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 600; border: none; cursor: pointer;
  border-radius: 10px; transition: all 0.3s ease; font-size: 0.9rem;
  text-decoration: none; flex-shrink: 0; position: relative;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn-primary);
}
.btn-primary:hover {
  box-shadow: var(--shadow-btn-primary-hover);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--text-code-accent);
  border: 1px solid var(--border-btn-outline);
}
.btn-outline:hover {
  background: var(--bg-btn-outline-hover);
  border-color: var(--border-btn-outline-hover);
  box-shadow: var(--shadow-btn-outline-hover);
}
.btn-glass {
  background: var(--bg-btn-glass); color: var(--text-main);
  border: 1px solid var(--border-btn-glass);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--bg-btn-glass-hover);
  border-color: var(--border-btn-glass-hover);
}

/* === Hero === */
.hero {
  position: relative; z-index: 1;
  padding: 170px 0 80px;
  text-align: center;
}
.hero-inner {
  width: 100%; max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 500px; height: 300px;
  background: var(--gradient-hero-glow);
  filter: blur(60px);
  pointer-events: none; z-index: -1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px;
  background: var(--bg-badge); color: var(--text-badge);
  border: 1px solid var(--border-badge); margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,0.6);
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50% { box-shadow: 0 0 0 6px rgba(99,102,241,0.08); }
}
.hero-title {
  font-size: 4.5rem; font-weight: 900; line-height: 1.05;
  margin-bottom: 22px; letter-spacing: -2px;
}
.hero-title .gradient-text {
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 44px;
}
.hero-endpoint {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 28px; border-radius: 12px;
  background: var(--bg-endpoint);
  border: 1px solid var(--border-endpoint);
  font-size: 0.9rem; color: var(--text-endpoint);
  transition: all 0.3s ease;
}
.hero-endpoint:hover {
  border-color: var(--border-endpoint-hover);
  box-shadow: var(--shadow-endpoint-hover);
}
.hero-endpoint code { font-size: 0.88rem; color: var(--text-endpoint-code); }


/* === Sections === */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* === Section Divider (gradient line) === */
.section-divider {
  width: 100%; height: 1px; border: none; margin: 0;
  background: var(--border-section-divider);
  position: relative; z-index: 1;
}

/* === Glass Card (VISIBLE) === */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--glass-card-top-line);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.glass-card:hover::before { opacity: 1; }

/* === Models Grid === */
.models-stats-row {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  margin-bottom: 40px;
}
.models-stat { text-align: center; }
.models-stat .stat-value {
  display: block; font-size: 2rem; font-weight: 800;
  background: var(--gradient-stat);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.models-stat .stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.models-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%;
}
.model-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-card-header);
}
.model-card-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-icon); }
.model-card-icon.icon-google { width: 44px; height: 44px; object-fit: contain; background: var(--icon-google-bg); padding: 8px; border-radius: 12px; }
.model-card-icon.icon-mistral { width: 44px; height: 44px; object-fit: contain; background: var(--icon-mistral-bg); padding: 2px; border-radius: 12px; }
.model-card-icon.anthropic { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.model-card-icon.openai { background: linear-gradient(135deg, #10b981, #34d399); color: #fff; }
.model-card-title { font-size: 1.2rem; font-weight: 700; }
.model-list { display: flex; flex-direction: column; gap: 8px; }
.model-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  border-radius: 10px;
  background: var(--bg-model-item);
  border: 1px solid var(--border-model-item);
  font-size: 0.88rem; transition: all 0.25s ease;
  border-left: 3px solid transparent;
}
.model-item.anthropic-item { border-left-color: rgba(245,158,11,0.4); }
.model-item.openai-item { border-left-color: rgba(52,211,153,0.4); }
.model-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-model-item-hover);
  transform: translateX(4px);
}
.model-item:hover.anthropic-item { border-left-color: rgba(245,158,11,0.7); }
.model-item:hover.openai-item { border-left-color: rgba(52,211,153,0.7); }
.model-item code {
  color: var(--text-code-accent); font-size: 0.85rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.model-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.model-dot.anthropic { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.6); }
.model-dot.openai { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.6); }

/* === Guides === */
.guides-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  overflow: hidden; width: 100%;
}
.tabs-bar {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border-tabs);
  overflow-x: auto; padding: 0 8px;
  background: var(--bg-tabs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.tabs-bar::-webkit-scrollbar { height: 3px; }
.tabs-bar::-webkit-scrollbar-track { background: transparent; }
.tabs-bar::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
.tab-btn {
  padding: 14px 22px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-tab); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid var(--border-tab); transition: all 0.2s;
  white-space: nowrap; font-family: 'Inter', sans-serif; flex-shrink: 0;
}
.tab-btn:hover { color: var(--text-tab-hover); }
.tab-btn.active { color: var(--text-tab-active); border-bottom-color: var(--border-tab-active); }
.sub-tabs-bar {
  display: flex; gap: 0; padding: 0 16px;
  border-bottom: 1px solid var(--border-tabs-sub);
  background: var(--bg-tabs-sub);
  overflow-x: auto;
}
.sub-tabs-bar:empty { display: none; }
.sub-tab-btn {
  padding: 10px 18px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-tab); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid var(--border-tab); transition: all 0.2s;
  font-family: 'Inter', sans-serif; white-space: nowrap; flex-shrink: 0;
}
.sub-tab-btn:hover { color: var(--text-tab-hover); }
.sub-tab-btn.active { color: var(--text-sub-tab-active); border-bottom-color: var(--border-sub-tab-active); }
.guide-content { padding: 28px; min-width: 0; overflow: hidden; }

/* === Code Blocks (GitHub dark style) === */
.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border-code);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-left: 3px solid var(--border-code-left);
}
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: rgba(99,102,241,0.05);
  border-bottom: 1px solid var(--border-code-header);
}
.code-block-label {
  font-size: 0.75rem; color: #8b5cf6; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.copy-btn {
  padding: 4px 14px; font-size: 0.75rem; font-weight: 500;
  color: var(--text-copy-btn); background: var(--bg-copy-btn);
  border: 1px solid var(--border-copy-btn); border-radius: 6px;
  cursor: pointer; transition: 0.2s; font-family: 'Inter', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.copy-btn:hover { background: rgba(139,92,246,0.15); color: var(--text-copy-hover); border-color: rgba(139,92,246,0.3); }
.copy-btn.copied { background: rgba(34,197,94,0.15); color: #22c55e; border-color: rgba(34,197,94,0.3); }
.code-block pre {
  padding: 18px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-code);
  white-space: pre;
  word-break: normal;
  -webkit-overflow-scrolling: touch;
}
.guide-step { margin-bottom: 24px; }
.guide-step-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text-code);
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.guide-step-num {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--gradient-step-num);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
  box-shadow: var(--shadow-step-num);
}
.guide-description {
  font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 6px;
  word-wrap: break-word; overflow-wrap: break-word;
}

/* === Support Section === */
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-bottom: 28px;
}
.support-grid-single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.support-form-card { display: flex; flex-direction: column; }
.support-card-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 24px;
  color: var(--text-main);
}
.support-form { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }
.form-input {
  padding: 12px 16px; border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: all 0.2s; outline: none;
}
.form-input:focus {
  border-color: var(--border-input-focus);
  box-shadow: var(--shadow-input-focus);
  background: var(--bg-input-focus);
}
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* File Upload */
.file-upload {
  position: relative; border-radius: 10px;
  border: 2px dashed var(--border-file-upload);
  background: var(--bg-file-upload);
  transition: all 0.2s; cursor: pointer;
  overflow: hidden;
}
.file-upload:hover {
  border-color: rgba(139,92,246,0.4);
  background: var(--bg-file-upload-hover);
}
.file-upload.has-file {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.04);
}
.file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.file-upload-content {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px; gap: 6px;
}
.file-upload-icon {
  font-size: 1.8rem; color: #6366f1; font-weight: 300; line-height: 1;
}
.file-upload-text { font-size: 0.85rem; color: var(--text-secondary); }
.file-upload-hint { font-size: 0.75rem; color: var(--text-dim); }

.support-submit { width: 100%; margin-top: auto; }
.support-status {
  font-size: 0.88rem; text-align: center; min-height: 24px;
  transition: all 0.3s;
}
.support-status.success { color: #22c55e; }
.support-status.error { color: #ef4444; }
.support-status.loading { color: #a78bfa; }

/* Telegram Card */
.support-tg-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; justify-content: center;
}
.tg-icon-wrap {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--gradient-tg-icon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-tg-icon);
}
.tg-icon { width: 44px; height: 44px; color: #fff; }
.tg-description {
  font-size: 0.95rem; color: var(--text-secondary); max-width: 320px;
  margin-bottom: 28px; line-height: 1.6;
}
.tg-btn { margin-bottom: 28px; }
.tg-features { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.tg-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
  padding: 10px 16px; border-radius: 10px;
  background: var(--bg-tg-feature);
  border: 1px solid var(--border-tg-feature);
}
.tg-feat-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.6);
}

/* Tickets */
.support-tickets-card { margin-top: 0; }
.tickets-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 20px; border-radius: 12px;
  background: var(--bg-ticket-item);
  border: 1px solid var(--border-model-item);
  gap: 16px;
}
.ticket-question {
  font-size: 0.9rem; color: var(--text-code); flex: 1;
  word-break: break-word;
}
.ticket-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.ticket-status {
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.ticket-status.accepted { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.ticket-status.in_progress { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ticket-status.answered { background: rgba(34,197,94,0.15); color: #22c55e; }
.ticket-status.closed { background: rgba(100,116,139,0.15); color: #94a3b8; }
.ticket-date { font-size: 0.75rem; color: var(--text-dim); }
.ticket-answer {
  margin-top: 10px; padding: 12px 16px; border-radius: 10px;
  background: var(--bg-ticket-answer);
  border-left: 3px solid rgba(34,197,94,0.4);
  font-size: 0.88rem; color: var(--text-secondary);
}

/* === Footer === */
.footer {
  position: relative; z-index: 1; padding: 60px 0 30px;
  border-top: 1px solid var(--border-footer);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-heading {
  font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.footer-links a {
  font-size: 0.88rem; color: var(--text-footer-link); transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-footer-link-hover); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-footer-bottom);
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-dim); }

/* === Responsive === */
@media (max-width: 1024px) {
  .models-grid { gap: 20px; }
  .hero-title { font-size: 3.5rem; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-glow { width: 300px; height: 200px; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-nav-mobile);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--border-nav-mobile);
    z-index: 99;
  }
  .mobile-toggle { display: flex; }
  .hero { padding: 130px 0 60px; }
  .section { padding: 70px 0; }
  .section-title { font-size: 2rem; }
  .tab-btn { padding: 12px 14px; font-size: 0.82rem; }
  .guide-content { padding: 20px 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .glass-card { padding: 24px; }
  .code-block pre { font-size: 0.78rem; padding: 14px; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-inner { gap: 24px; }
  .stat-divider { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-endpoint { font-size: 0.8rem; padding: 10px 16px; }
  .hero-endpoint code { font-size: 0.78rem; }
  .section-title { font-size: 1.6rem; }
  .tab-btn { padding: 10px 10px; font-size: 0.78rem; }
  .sub-tab-btn { padding: 8px 12px; font-size: 0.78rem; }
  .guide-content { padding: 16px 12px; }
  .glass-card { padding: 20px 16px; }
  .container { padding: 0 16px; }
  .code-block pre { font-size: 0.72rem; padding: 10px; }
  .stats-inner { flex-direction: column; gap: 16px; }
}

/* === Language Toggle Button === */
.lang-btn {
  padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  background: var(--bg-lang-btn); color: var(--text-lang-btn); border: 1px solid var(--border-lang-btn);
  cursor: pointer; transition: 0.2s; font-family: 'Inter', sans-serif; margin-left: -12px;
}
.lang-btn:hover { background: rgba(99,102,241,0.3); }

/* === Theme Toggle Button === */
.theme-btn {
  padding: 4px 12px; border-radius: 6px; font-size: 0.9rem; font-weight: 600;
  background: var(--bg-lang-btn); color: var(--text-lang-btn); border: 1px solid var(--border-lang-btn);
  cursor: pointer; transition: 0.2s; font-family: 'Inter', sans-serif; margin-left: -12px;
  line-height: 1;
}
.theme-btn:hover { background: rgba(99,102,241,0.3); }
