/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050a14;
  --bg2: #0a1628;
  --bg3: #0f1e38;
  --card: #0d1b30;
  --card-hover: #122240;
  --border: #1a3050;
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --accent4: #f59e0b;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --white: #ffffff;
  --white-muted: rgba(255,255,255,0.9);
  --white-dim: rgba(255,255,255,0.7);
  --code-bg: #020810;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 212, 255, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 212, 255, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--white); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white-muted); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--white-dim); }
h4 { font-size: 1.1rem; color: var(--white-muted); }
p { color: var(--text2); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
code { font-family: var(--mono); font-size: 0.875em; }

/* ===== BACKGROUND GRID ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { background: rgba(0,212,255,0.06); top: -200px; right: -100px; }
.bg-glow-2 { background: rgba(124,58,237,0.05); bottom: -200px; left: -100px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(5, 10, 20, 0.97); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(0,212,255,0.08);
}
.nav-links a.active { color: var(--accent); }

.nav-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.nav-right {
  display: flex; align-items: center; gap: 0.75rem;
}

.btn-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { color: var(--white); opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== MAIN CONTENT ===== */
main { position: relative; z-index: 1; padding-top: 64px; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title { margin-bottom: 1rem; }
.section-title span { color: var(--accent); }
.section-desc { color: var(--text2); font-size: 1.1rem; max-width: 600px; margin-bottom: 3rem; }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: 4rem 0;
  position: relative;
}
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc { font-size: 1.15rem; color: var(--text2); margin-bottom: 2.5rem; line-height: 1.7; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,212,255,0.5); }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s;
}
.btn-secondary:hover { color: var(--white); border-color: var(--accent); background: rgba(0,212,255,0.06); }

.hero-stats {
  display: flex; gap: 2rem;
}
.stat-item { }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }

/* Hero Code Window */
.hero-visual { position: relative; }
.code-window {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.1);
  animation: float 6s ease-in-out infinite;
}
.code-window-bar {
  background: var(--bg3);
  padding: 0.875rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.window-dots .dot-red { background: #ff5f57; }
.window-dots .dot-yellow { background: #ffbd2e; }
.window-dots .dot-green { background: #28c840; }
.window-title { font-size: 0.8rem; color: var(--text3); font-family: var(--mono); margin-left: 0.5rem; }
.code-body { padding: 1.5rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.8; overflow-x: auto; }

/* Syntax highlighting */
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.cl { color: #ffcb6b; }
.st { color: #c3e88d; }
.cm { color: var(--text3); font-style: italic; }
.nm { color: var(--accent); }
.op { color: #89ddff; }
.nu { color: #f78c6c; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { background: var(--card-hover); border-color: rgba(0,212,255,0.3); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card-icon.cyan { background: rgba(0,212,255,0.1); }
.card-icon.purple { background: rgba(124,58,237,0.1); }
.card-icon.green { background: rgba(16,185,129,0.1); }
.card-icon.amber { background: rgba(245,158,11,0.1); }
.card-icon.blue { background: rgba(59,130,246,0.1); }
.card-icon.red { background: rgba(239,68,68,0.1); }
.card-icon.pink { background: rgba(236,72,153,0.1); }
.card-icon.teal { background: rgba(20,184,166,0.1); }

.card h4 { color: var(--white); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; line-height: 1.6; }

.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--mono);
}
.tag.purple { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); color: #a78bfa; }
.tag.green { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); color: #34d399; }
.tag.amber { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #fbbf24; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ===== FEATURE TABLE ===== */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.feature-table th {
  background: var(--bg3);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.feature-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(26,48,80,0.5);
  vertical-align: top;
}
.feature-table tr:hover td { background: rgba(0,212,255,0.03); }
.feature-table td:first-child { color: var(--accent); font-weight: 600; white-space: nowrap; }
.feature-table td:last-child { color: var(--text2); }
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ===== CODE BLOCKS ===== */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1rem 0;
}
.code-header {
  background: var(--bg3);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.code-lang {
  font-size: 0.72rem;
  color: var(--text3);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 0.3rem;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: #e2e8f0;
}

/* ===== INSTALL TABS ===== */
.install-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  background: var(--bg3);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; padding: 1.25rem; }
.tab-content.active { display: block; }

/* ===== ACCORDION ===== */
.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.accordion-item.open { border-color: rgba(0,212,255,0.3); }
.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--card-hover); }
.accordion-title { font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 0.75rem; }
.accordion-title .icon { color: var(--accent); font-size: 1.1rem; }
.accordion-arrow { color: var(--text3); transition: transform 0.3s; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-content { padding: 0 1.5rem 1.5rem; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.badge-new { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-updated { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-fixed { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ===== TIMELINE ===== */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
}
.timeline-item { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; position: relative; }
.timeline-dot {
  width: 34px; height: 34px;
  background: var(--bg2);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
}
.timeline-content { flex: 1; padding-top: 4px; }
.timeline-version { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 0.25rem; }
.timeline-date { font-size: 0.8rem; color: var(--text3); margin-bottom: 1rem; }

/* ===== HERO PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.page-banner-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1rem;
}
.page-banner h1 { margin-bottom: 0.75rem; }
.page-banner p { font-size: 1.1rem; max-width: 600px; }

/* ===== SEARCH ===== */
.search-box {
  position: relative;
  max-width: 500px;
  margin-bottom: 2rem;
}
.search-box input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font);
}
.search-box input::placeholder { color: var(--text3); }
.search-box input:focus { border-color: var(--accent); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text3); }

/* ===== SIDEBAR LAYOUT ===== */
.api-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.api-sidebar {
  position: sticky; top: 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sidebar-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-dim); margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--text2);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.sidebar-nav li a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.sidebar-nav li a.active { color: var(--accent); background: rgba(0,212,255,0.08); }
.sidebar-group { margin-bottom: 1.25rem; }

/* ===== API SECTIONS ===== */
.api-section { margin-bottom: 4rem; scroll-margin-top: 80px; }
.api-section-title {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
}
.api-method { margin-bottom: 2rem; }
.api-method-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.api-method-title code { color: var(--accent); font-size: 0.9rem; }
.api-params table { width: 100%; font-size: 0.85rem; }
.api-params th { background: var(--bg3); padding: 0.6rem 1rem; text-align: left; color: var(--white-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.api-params td { padding: 0.6rem 1rem; border-bottom: 1px solid rgba(26,48,80,0.5); }
.api-params td:first-child { font-family: var(--mono); color: #82aaff; }
.api-params td:nth-child(2) { color: var(--accent3); font-family: var(--mono); }
.api-params td:last-child { color: var(--text2); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .nav-brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text3); line-height: 1.7; max-width: 280px; }
.footer-col h5 { color: var(--white-dim); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: var(--text3); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text3); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-right { animation: fadeInRight 0.6s ease forwards; }

[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  animation: fadeInUp 0.3s ease;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.highlight-box.warning { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.2); border-left-color: var(--accent4); }
.highlight-box.success { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.2); border-left-color: var(--accent3); }

/* ===== STAT COUNTER SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-card { text-align: center; }
.stat-big { font-size: 2.5rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 0.5rem; }
.stat-big span { color: var(--accent); }
.stat-desc { font-size: 0.85rem; color: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .api-layout { grid-template-columns: 1fr; }
  .api-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-right .btn-nav { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); background: rgba(0,212,255,0.05); }

/* ===== TYPEWRITER ===== */
.typewriter { display: inline-block; }
.typewriter::after {
  content: '|';
  animation: blink 0.8s infinite;
  color: var(--accent);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== PARTICLE CANVAS ===== */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; }

/* ===== GRADIENT BORDER CARD ===== */
.gradient-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.gradient-card-inner {
  background: var(--card);
  border-radius: calc(var(--radius) - 1px);
  padding: 1.75rem;
  height: 100%;
}

/* ===== PROGRESS BAR ===== */
.progress-bar { background: var(--bg3); border-radius: 100px; height: 6px; overflow: hidden; margin-top: 0.5rem; }
.progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1.5s ease; width: 0; }

/* ===== EXAMPLE TABS ===== */
.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 768px) { .example-grid { grid-template-columns: 1fr; } }

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.example-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }
.example-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
}
.example-num {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.example-card-body { padding: 1.25rem; }
.example-card-body p { font-size: 0.875rem; }

/* ===== INSTALL STEP ===== */
.install-steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.5rem; }
.install-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.install-step::before {
  counter-increment: step;
  content: counter(step);
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: var(--white);
  flex-shrink: 0; margin-top: 2px;
}
.install-step-content h4 { color: var(--white); margin-bottom: 0.5rem; }
.install-step-content p { font-size: 0.9rem; margin-bottom: 0.75rem; }
