/* ============================================
   GlomaxGPT Developer Platform - Global Styles
   ============================================ */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-input: #1a1a1a;
  --border: #2a2a2a;
  --border-light: #333333;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #10a37f;
  --accent-hover: #0d8f6e;
  --accent-light: #1ac49a;
  --accent-dim: rgba(16, 163, 127, 0.1);
  --accent-dim2: rgba(16, 163, 127, 0.2);
  --blue: #4b9eff;
  --purple: #9b59b6;
  --orange: #f39c12;
  --red: #e74c3c;
  --yellow: #f1c40f;
  --sidebar-width: 260px;
  --topbar-height: 60px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --transition: all 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============ TYPOGRAPHY ============ */
h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }
p { color: var(--text-secondary); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-card); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; color: var(--accent-light); }
pre { background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-x: auto; }
pre code { background: none; border: none; padding: 0; font-size: 0.88rem; color: #e2e8f0; }
ul, ol { padding-left: 1.4em; color: var(--text-secondary); }
li { margin: 6px 0; }
strong { color: var(--text-primary); font-weight: 600; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo svg { width: 28px; height: 28px; fill: var(--text-primary); }

.navbar-logo span.badge {
  font-size: 0.65rem;
  background: var(--accent);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: #e0e0e0;
  color: var(--bg-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 8px;
}

/* ============ SIDEBAR LAYOUT ============ */
.layout {
  display: flex;
  padding-top: var(--topbar-height);
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 20px 0;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 20px 4px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}

.sidebar-nav a svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-nav a.active svg { opacity: 1; }

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--topbar-height));
  padding: 48px 56px;
  max-width: 960px;
}

.main-content.full-width {
  max-width: none;
  margin-left: 0;
  padding: 0;
}

/* ============ HERO ============ */
.hero {
  padding: 100px 80px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(16,163,127,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 3.8rem;
  max-width: 800px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ SECTION ============ */
.section {
  padding: 80px;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-link {
  cursor: pointer;
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card-icon.green { background: rgba(16,163,127,0.15); color: var(--accent); }
.card-icon.blue { background: rgba(75,158,255,0.15); color: var(--blue); }
.card-icon.purple { background: rgba(155,89,182,0.15); color: var(--purple); }
.card-icon.orange { background: rgba(243,156,18,0.15); color: var(--orange); }
.card-icon.red { background: rgba(231,76,60,0.15); color: var(--red); }
.card-icon.yellow { background: rgba(241,196,15,0.15); color: var(--yellow); }

.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card h4 { margin-bottom: 8px; }
.card p { font-size: 0.875rem; }

.card-arrow {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}
.card:hover .card-arrow { color: var(--accent); transform: translateY(-50%) translateX(3px); }

/* ============ MODEL CARDS ============ */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.model-card.astra::before { background: linear-gradient(90deg, #6e40c9, #4b9eff); }
.model-card.sol::before { background: linear-gradient(90deg, #f39c12, #e74c3c); }
.model-card.terra::before { background: linear-gradient(90deg, #10a37f, #4b9eff); }
.model-card.luna::before { background: linear-gradient(90deg, #9b59b6, #3498db); }

.model-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.model-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.model-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.tag-flagship { background: rgba(110,64,201,0.2); color: #9b7dd4; }
.tag-fast { background: rgba(243,156,18,0.2); color: #f3a829; }
.tag-balanced { background: rgba(16,163,127,0.2); color: var(--accent); }
.tag-efficient { background: rgba(155,89,182,0.2); color: #b07dd4; }

.model-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.model-pricing .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-pricing .price-label { color: var(--text-muted); }
.model-pricing .price-value { color: var(--text-primary); font-weight: 600; font-family: var(--font-mono); }

.model-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.model-meta span { display: flex; align-items: center; gap: 6px; }

/* ============ CODE BLOCK ============ */
.code-block {
  position: relative;
  margin: 20px 0;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 10px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.code-lang {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

.code-block pre {
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: none;
  margin: 0;
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background: var(--bg-card-hover); color: var(--text-primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ TABLE ============ */
.table-wrap { overflow-x: auto; margin: 20px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card); }
td.highlight { color: var(--text-primary); font-weight: 500; }
td .check { color: var(--accent); font-size: 1rem; }
td .cross { color: var(--text-muted); }

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-green { background: rgba(16,163,127,0.15); color: var(--accent); }
.badge-blue { background: rgba(75,158,255,0.15); color: var(--blue); }
.badge-orange { background: rgba(243,156,18,0.15); color: var(--orange); }
.badge-purple { background: rgba(155,89,182,0.15); color: var(--purple); }
.badge-red { background: rgba(231,76,60,0.15); color: var(--red); }
.badge-gray { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }

/* ============ CALLOUT ============ */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border-left: 3px solid;
}

.callout-info { background: rgba(75,158,255,0.08); border-color: var(--blue); }
.callout-success { background: rgba(16,163,127,0.08); border-color: var(--accent); }
.callout-warning { background: rgba(243,156,18,0.08); border-color: var(--orange); }
.callout-danger { background: rgba(231,76,60,0.08); border-color: var(--red); }

.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.callout-body h5 { margin-bottom: 4px; }
.callout-body p { font-size: 0.875rem; margin: 0; }

/* ============ FEATURE LIST ============ */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-list li::before {
  content: '';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ STEP LIST ============ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: '';
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--border);
}

.step:last-child::before { display: none; }

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.step-content h4 { margin-bottom: 6px; }
.step-content p { font-size: 0.875rem; }

/* ============ STAT ROW ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
}

.stat-item {
  background: var(--bg-card);
  padding: 28px 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value span { color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ============ SEARCH BAR ============ */
.search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto 40px;
}

.search-bar input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px 12px 44px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 80px 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 { font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; max-width: 260px; }

.footer-col h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin: 8px 0; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ PAGE HEADER ============ */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-header .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.page-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-header p { font-size: 1rem; max-width: 640px; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* ============ TOGGLE / ACCORDION ============ */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 16px 0; }

.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
  user-select: none;
}

.accordion-header:hover { background: var(--bg-card-hover); }

.accordion-icon {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  font-size: 1rem;
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 16px 20px;
  background: var(--bg-secondary);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.accordion-item.open .accordion-body { display: block; }

/* ============ PILL TAGS ============ */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

.pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.pill:hover, .pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ HIGHLIGHT BOX ============ */
.highlight-box {
  background: linear-gradient(135deg, rgba(16,163,127,0.1) 0%, rgba(75,158,255,0.05) 100%);
  border: 1px solid rgba(16,163,127,0.3);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
}

.highlight-box h2 { margin-bottom: 12px; }
.highlight-box p { max-width: 500px; margin: 0 auto 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .section { padding: 60px 40px; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 32px 24px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 24px 48px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 48px 24px; }
  .footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .navbar-nav { display: none; }
  .card-grid, .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ============ UTILITIES ============ */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.w-full { width: 100%; }

/* ============ SYNTAX HIGHLIGHT ============ */
.token-keyword { color: #c792ea; }
.token-string { color: #c3e88d; }
.token-comment { color: #546e7a; font-style: italic; }
.token-number { color: #f78c6c; }
.token-function { color: #82aaff; }
.token-operator { color: #89ddff; }
.token-variable { color: #f07178; }
.token-property { color: #80cbc4; }