/* ─── RESET & TOKENS ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 64px; }
section[id] { scroll-margin-top: 64px; }

:root {
  --bg:        #0B0B16;
  --bg2:       #0F0F1F;
  --bg3:       #141428;
  --surface:   #181830;
  --surface2:  #1E1E3C;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --blue:      #0176D3;
  --blue-glow: rgba(1,118,211,0.35);
  --blue-light:#2196F3;
  --cyan:      #00C8E0;
  --green:     #3DDB84;
  --amber:     #FFB400;
  --text:      #E8E8F0;
  --text-muted:#8888A8;
  --text-dim:  #555570;
  --mono:      'JetBrains Mono', monospace;
  --sans:      'Syne', sans-serif;
  --r:         12px;
  --r2:        20px;
  --transition: 0.3s cubic-bezier(0.25,0.8,0.25,1);
}

[data-theme="light"] {
  --bg:        #F4F4FA;
  --bg2:       #EAEAF4;
  --bg3:       #E2E2EE;
  --surface:   #FFFFFF;
  --surface2:  #F0F0FA;
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.14);
  --text:      #1A1A2E;
  --text-muted:#5A5A7A;
  --text-dim:  #9999BB;
}

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

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

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

/* ─── SELECTION ───────────────────────────────────────────────── */
::selection { background: rgba(1,118,211,0.4); color: #fff; }

/* ─── NOISE OVERLAY ───────────────────────────────────────────── */
body::before {
  content:'';
  position:fixed; inset:0; pointer-events:none; z-index:999;
  opacity:.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px 150px;
}

/* ─── CODE BG MOTIF ───────────────────────────────────────────── */
.code-bg {
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
  opacity:.04;
  font-family: var(--mono);
  font-size:11px;
  line-height:1.7;
  color: var(--blue-light);
  white-space:pre;
  padding:2rem;
  user-select:none;
}

/* ─── NAV ─────────────────────────────────────────────────────── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 2.5rem;
  height:64px;
  background: rgba(11,11,22,0.8);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="light"] nav { background: rgba(244,244,250,0.85); }
[data-theme="light"] .nav-links a { color: #2a2a4a; }
[data-theme="light"] .nav-links a:hover { color: #0176D3; }

.nav-logo {
  display:flex; align-items:center; gap:.65rem;
  text-decoration:none; color:var(--text);
}
.nav-logo-icon {
  width:36px; height:36px;
  background: #1a1f2e;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.nav-logo-text {
  font-size:.85rem; font-weight:700;
  letter-spacing:.08em;
  line-height:1;
}
.logo-sf { color: var(--text); }
.logo-pg { color: var(--cyan); }

.nav-links {
  display:flex; align-items:center; gap:2rem;
  list-style:none;
}
.nav-links a {
  text-decoration:none; color:var(--text-muted); font-size:.875rem;
  font-weight:500; letter-spacing:.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color:var(--text); }

.nav-actions { display:flex; align-items:center; gap:1rem; }

.btn-theme {
  width:36px; height:36px; border-radius:8px;
  background: var(--surface); border: 1px solid var(--border2);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: var(--transition); font-size:15px;
}
.btn-theme:hover { background:var(--surface2); border-color:var(--blue); }

.btn-cta-sm {
  padding:.5rem 1.25rem; border-radius:8px;
  background: var(--blue); color:#fff; text-decoration:none;
  font-size:.82rem; font-weight:700; letter-spacing:.04em;
  border:none; cursor:pointer;
  transition: var(--transition);
  white-space:nowrap;
}
.btn-cta-sm:hover { background:#0186F0; box-shadow: 0 0 24px var(--blue-glow); }

.nav-hamburger { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-hamburger span {
  display:block; width:22px; height:2px;
  background:var(--text); border-radius:2px; margin:4px 0;
  transition: var(--transition);
}

@media(max-width:768px){
  .nav-links { display:none; }
  .nav-hamburger { display:block; }
  .btn-cta-sm { font-size:.78rem; padding:.45rem 1rem; }
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
section { position:relative; }

.container { max-width:1180px; margin:0 auto; padding:0 2rem; }

/* ─── HERO ────────────────────────────────────────────────────── */
#hero {
  min-height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding:8rem 2rem 5rem;
  overflow:hidden;
}

.hero-glow {
  position:absolute; top:10%; left:50%; transform:translateX(-50%);
  width:700px; height:700px; pointer-events:none;
  background: radial-gradient(ellipse at center, rgba(1,118,211,0.18) 0%, transparent 70%);
  filter:blur(40px);
}
.hero-glow2 {
  position:absolute; bottom:-10%; right:-5%;
  width:400px; height:400px; pointer-events:none;
  background: radial-gradient(ellipse, rgba(0,200,224,0.1) 0%, transparent 70%);
  filter:blur(60px);
}

.hero-badge {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.35rem 1rem; border-radius:100px;
  background: rgba(1,118,211,0.12); border:1px solid rgba(1,118,211,0.3);
  font-family:var(--mono); font-size:.72rem; font-weight:500;
  color:var(--blue-light); letter-spacing:.08em; text-transform:uppercase;
  margin-bottom:2rem;
}
.hero-badge::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--cyan); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.hero-headline {
  font-size:clamp(2.8rem,6vw,5.2rem);
  font-weight:800; line-height:1.06; letter-spacing:-.03em;
  max-width:820px; margin:0 auto 1.5rem;
}
.hero-headline .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

.hero-sub {
  font-size:clamp(1rem,2vw,1.2rem); color:var(--text-muted);
  max-width:560px; margin:0 auto 2.5rem; line-height:1.7; font-weight:400;
}

.btn-hero {
  display:inline-flex; align-items:center; gap:.75rem;
  padding:1rem 2.25rem; border-radius:12px;
  background: linear-gradient(135deg, var(--blue) 0%, #0199FF 100%);
  color:#fff; text-decoration:none; font-size:1.05rem; font-weight:700;
  letter-spacing:.01em; border:none; cursor:pointer;
  box-shadow: 0 8px 40px rgba(1,118,211,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transition: var(--transition);
  position:relative; overflow:hidden;
}
.btn-hero::before {
  content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform:translateX(-100%) rotate(30deg);
  transition: transform .6s ease;
}
.btn-hero:hover::before { transform:translateX(100%) rotate(30deg); }
.btn-hero:hover { transform:translateY(-2px); box-shadow:0 12px 50px rgba(1,118,211,0.5); }

.btn-hero svg { width:20px; height:20px; }

.hero-meta {
  display:flex; align-items:center; gap:1.5rem; margin-top:1.25rem;
  justify-content:center; color:var(--text-dim); font-size:.82rem;
  font-family:var(--mono);
}
.hero-meta span { display:flex; align-items:center; gap:.4rem; }

/* IDE MOCKUP */
.hero-mockup {
  margin-top:4.5rem; width:100%; max-width:900px;
  border-radius:16px; overflow:hidden;
  border:1px solid var(--border2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position:relative;
  background: var(--bg3);
}
.mockup-titlebar {
  height:40px; background:#0D0D20;
  display:flex; align-items:center; padding:0 1rem; gap:.75rem;
  border-bottom:1px solid var(--border);
}
.mockup-dots { display:flex; gap:6px; }
.mockup-dots span {
  width:12px; height:12px; border-radius:50%;
}
.mockup-dots span:nth-child(1){ background:#FF5F57; }
.mockup-dots span:nth-child(2){ background:#FEBC2E; }
.mockup-dots span:nth-child(3){ background:#28C840; }
.mockup-title { font-family:var(--mono); font-size:.72rem; color:var(--text-dim); margin-left:auto; margin-right:auto; }

.mockup-body {
  display:grid; grid-template-columns:200px 1fr;
  height:360px; font-family:var(--mono); font-size:.75rem;
}
@media(max-width:600px){ .mockup-body { grid-template-columns:1fr; height:auto; } }

.mockup-sidebar {
  background:#0A0A18; border-right:1px solid var(--border);
  padding:.75rem;
  overflow:hidden;
}
.sidebar-section { margin-bottom:1rem; }
.sidebar-label {
  font-size:.6rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-dim); margin-bottom:.4rem; padding:.2rem .25rem;
}
.sidebar-item {
  display:flex; align-items:center; gap:.5rem; padding:.3rem .4rem;
  border-radius:5px; color:var(--text-muted); cursor:pointer;
  font-size:.7rem; transition:var(--transition);
}
.sidebar-item:hover, .sidebar-item.active { background:rgba(1,118,211,0.15); color:var(--text); }
.sidebar-item.active { color:var(--blue-light); }
.sidebar-icon { font-size:.8rem; width:14px; text-align:center; }

.mockup-editor { display:flex; flex-direction:column; }
.editor-tabs {
  display:flex; background:#0C0C1E; border-bottom:1px solid var(--border);
  overflow-x:auto; flex-shrink:0;
}
.editor-tab {
  padding:.45rem 1rem; font-size:.68rem; color:var(--text-dim); white-space:nowrap;
  border-right:1px solid var(--border); cursor:pointer; transition:var(--transition);
  display:flex; align-items:center; gap:.4rem;
}
.editor-tab.active { color:var(--text); background:var(--bg3); border-bottom:2px solid var(--blue); }
.editor-tab:hover:not(.active) { color:var(--text-muted); background:rgba(255,255,255,0.03); }
.tab-dot { width:6px;height:6px;border-radius:50%; }

.code-area {
  flex:1; overflow:hidden; padding:.75rem 0; position:relative;
  background: var(--bg3);
}
.code-line {
  display:flex; align-items:flex-start; padding:.05rem 0;
  animation: fadeInLine .4s ease both;
}
@keyframes fadeInLine { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:none} }
.ln { 
  width:36px; text-align:right; padding-right:.75rem;
  color:var(--text-dim); font-size:.65rem; line-height:1.7; flex-shrink:0; user-select:none;
}
.code-content { font-size:.72rem; line-height:1.7; flex:1; padding-right:.5rem; }
.kw { color:#C792EA; } .fn { color:#82AAFF; } .str { color:#C3E88D; }
.cm { color:#546E7A; font-style:italic; } .num { color:#F78C6C; }
.cls { color:#FFCB6B; } .op { color:#89DDFF; } .tx { color:var(--text); }
.hl { background:rgba(1,118,211,0.12); display:block; width:100%; margin:0 -4px; padding:0 4px; }

.editor-status {
  height:24px; background:#060611; border-top:1px solid var(--border);
  display:flex; align-items:center; padding:0 .75rem; gap:1rem;
  font-size:.6rem; color:var(--text-dim); flex-shrink:0;
}
.status-pill {
  padding:.1rem .45rem; border-radius:3px; font-size:.58rem;
  background:rgba(61,219,132,0.15); color:var(--green); letter-spacing:.06em;
}
.status-pill.blue { background:rgba(1,118,211,0.15); color:var(--blue-light); }

/* ─── FEATURES ────────────────────────────────────────────────── */
#features {
  padding:7rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.section-label {
  font-family:var(--mono); font-size:.72rem; letter-spacing:.15em; text-transform:uppercase;
  color:var(--blue); margin-bottom:.75rem; display:flex; align-items:center; gap:.5rem;
}
.section-label::before { content:'//'; color:var(--text-dim); }

.section-title {
  font-size:clamp(2rem,4vw,3rem); font-weight:800; letter-spacing:-.03em;
  line-height:1.1; margin-bottom:1rem;
}
.section-sub {
  color:var(--text-muted); font-size:1.05rem; max-width:520px; line-height:1.7;
}

.features-grid {
  margin-top:4rem;
  display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:1.25rem;
}

.feature-card {
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r2);
  padding:2rem;
  position:relative; overflow:hidden;
  transition: var(--transition);
  cursor:default;
}
.feature-card::before {
  content:''; position:absolute; inset:0; border-radius:var(--r2);
  background: radial-gradient(ellipse at top left, rgba(1,118,211,0.08) 0%, transparent 60%);
  opacity:0; transition: opacity var(--transition);
}
.feature-card:hover { transform:translateY(-3px); border-color:rgba(1,118,211,0.3); box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity:1; }

.feature-icon {
  width:48px; height:48px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
  margin-bottom:1.25rem;
  position:relative; z-index:1;
}
.feature-title { font-size:1.05rem; font-weight:700; margin-bottom:.5rem; position:relative; z-index:1; }
.feature-desc { font-size:.875rem; color:var(--text-muted); line-height:1.65; position:relative; z-index:1; }

.fi-blue  { background:rgba(1,118,211,0.15); }
.fi-cyan  { background:rgba(0,200,224,0.12); }
.fi-green { background:rgba(61,219,132,0.12); }
.fi-amber { background:rgba(255,180,0,0.12); }

/* ─── HOW IT WORKS ────────────────────────────────────────────── */
#how {
  padding:7rem 0;
  overflow:hidden;
}

.steps {
  display:grid; grid-template-columns:repeat(3,1fr); gap:2.5rem;
  margin-top:4rem; position:relative;
}
.steps::before {
  content:''; position:absolute; top:40px; left:calc(16.666% + 20px); right:calc(16.666% + 20px);
  height:1px; background:linear-gradient(90deg, transparent, var(--border2), transparent);
  z-index:0;
}

.step {
  text-align:center; position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center;
}
.step-num {
  width:80px; height:80px; border-radius:50%;
  background: var(--surface);
  border:1px solid var(--border2);
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; margin-bottom:1.5rem;
  position:relative;
  box-shadow: 0 0 0 8px var(--bg);
  transition: var(--transition);
}
.step:hover .step-num {
  border-color:var(--blue);
  box-shadow: 0 0 0 8px var(--bg), 0 0 30px var(--blue-glow);
}
.step-counter {
  position:absolute; top:-4px; right:-4px;
  width:22px; height:22px; border-radius:50%;
  background: var(--blue); color:#fff;
  font-family:var(--mono); font-size:.65rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.step-title { font-size:1.05rem; font-weight:700; margin-bottom:.5rem; }
.step-desc { font-size:.875rem; color:var(--text-muted); line-height:1.65; }

@media(max-width:680px){
  .steps { grid-template-columns:1fr; gap:2rem; }
  .steps::before { display:none; }
}

/* ─── METADATA TYPES ─────────────────────────────────────────── */
#metadata {
  padding:7rem 0;
  background: var(--bg2);
}

.meta-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
  gap:.75rem; margin-top:3.5rem;
}

.meta-chip {
  display:flex; align-items:center; gap:.6rem;
  padding:.75rem 1rem; border-radius:10px;
  background: var(--surface); border:1px solid var(--border);
  font-size:.82rem; font-family:var(--mono); color:var(--text-muted);
  transition: var(--transition);
  cursor:default;
}
.meta-chip:hover { border-color:var(--blue); color:var(--text); background:rgba(1,118,211,0.07); transform:scale(1.03); }
.meta-chip-dot { width:8px; height:8px; border-radius:50%; background:var(--blue); flex-shrink:0; }
.meta-chip:nth-child(2n) .meta-chip-dot { background:var(--cyan); }
.meta-chip:nth-child(3n) .meta-chip-dot { background:var(--green); }
.meta-chip:nth-child(5n) .meta-chip-dot { background:var(--amber); }

/* ─── SCREENSHOTS ─────────────────────────────────────────────── */
#screenshots {
  padding:7rem 0;
}

.screenshots-tabs {
  display:flex; gap:.5rem; margin-top:3rem; margin-bottom:2rem;
}
.stab {
  padding:.5rem 1.25rem; border-radius:8px; border:1px solid var(--border);
  background:transparent; color:var(--text-muted); font-family:var(--sans);
  font-size:.82rem; font-weight:600; cursor:pointer; transition:var(--transition);
}
.stab.active, .stab:hover { background:var(--blue); border-color:var(--blue); color:#fff; }

.screenshot-frame {
  border-radius:var(--r2); overflow:hidden;
  border:1px solid var(--border2);
  background: var(--surface);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  min-height:380px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}

.screenshot-panel {
  display:none; width:100%; height:100%; min-height:380px;
  align-items:stretch;
}
.screenshot-panel.active { display:flex; }

/* SOQL Panel */
.soql-wrap {
  width:100%; padding:1.5rem; font-family:var(--mono); display:flex; flex-direction:column; gap:1rem;
}
.soql-builder-header {
  font-size:.65rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dim);
  border-bottom:1px solid var(--border); padding-bottom:.5rem;
  display:flex; align-items:center; gap:.5rem;
}
.soql-row {
  display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; font-size:.75rem;
}
.soql-kw { color:var(--cyan); font-weight:600; }
.soql-field {
  background:rgba(1,118,211,0.12); border:1px solid rgba(1,118,211,0.25);
  color:var(--blue-light); padding:.2rem .5rem; border-radius:5px; font-size:.7rem;
}
.soql-obj { color:var(--amber); }
.soql-table {
  border:1px solid var(--border); border-radius:8px; overflow:hidden; font-size:.68rem;
}
.soql-table-head {
  display:grid; grid-template-columns:2fr 2fr 1.5fr 1.5fr;
  background:#0A0A18; border-bottom:1px solid var(--border); padding:.4rem .75rem;
  color:var(--text-dim); letter-spacing:.06em; text-transform:uppercase;
}
.soql-table-row {
  display:grid; grid-template-columns:2fr 2fr 1.5fr 1.5fr;
  padding:.4rem .75rem; border-bottom:1px solid var(--border); color:var(--text-muted);
  transition:var(--transition);
}
.soql-table-row:hover { background:rgba(1,118,211,0.05); }
.soql-table-row:last-child { border:none; }
.soql-export { display:flex; gap:.5rem; justify-content:flex-end; }
.export-btn {
  padding:.25rem .6rem; border-radius:5px; border:1px solid var(--border2);
  background:var(--surface2); color:var(--text-muted); font-family:var(--mono);
  font-size:.62rem; cursor:pointer; transition:var(--transition);
}
.export-btn:hover { border-color:var(--green); color:var(--green); }

/* DIFF Panel */
.diff-wrap {
  width:100%; display:grid; grid-template-columns:1fr 1fr; font-family:var(--mono); font-size:.68rem;
}
.diff-panel { display:flex; flex-direction:column; }
.diff-header {
  background:#0A0A18; padding:.5rem 1rem;
  font-size:.62rem; color:var(--text-dim); letter-spacing:.06em;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:.5rem;
}
.diff-panel:first-child .diff-header { border-right:1px solid var(--border); }
.diff-header .tag { padding:.1rem .4rem; border-radius:4px; font-size:.58rem; }
.diff-header .tag.old { background:rgba(255,80,80,0.15); color:#FF8080; }
.diff-header .tag.new { background:rgba(61,219,132,0.15); color:var(--green); }
.diff-lines { flex:1; padding:.5rem 0; }
.diff-line {
  display:flex; gap:.5rem; padding:.1rem .75rem; line-height:1.65;
}
.diff-line.del { background:rgba(255,80,80,0.08); }
.diff-line.add { background:rgba(61,219,132,0.08); }
.diff-ln { width:28px; text-align:right; color:var(--text-dim); flex-shrink:0; }
.diff-sig { width:12px; flex-shrink:0; }
.diff-line.del .diff-sig { color:#FF8080; }
.diff-line.add .diff-sig { color:var(--green); }
.diff-line.del .diff-code { color:#FF8080; }
.diff-line.add .diff-code { color:var(--green); }
.diff-panel:first-child .diff-lines { border-right:1px solid var(--border); }
.diff-code { flex:1; }

/* REST Panel */
.rest-wrap { width:100%; padding:1.5rem; font-family:var(--mono); display:flex; flex-direction:column; gap:1rem; }
.rest-url-bar {
  display:flex; align-items:center; gap:.5rem;
  background:#0A0A18; border:1px solid var(--border2);
  border-radius:8px; padding:.5rem .75rem; overflow:hidden;
}
.rest-method {
  padding:.2rem .5rem; border-radius:4px; font-size:.7rem; font-weight:700;
  background:rgba(61,219,132,0.15); color:var(--green); flex-shrink:0;
}
.rest-url { font-size:.72rem; color:var(--cyan); flex:1; }
.rest-send {
  padding:.25rem .75rem; border-radius:5px;
  background:var(--blue); color:#fff; border:none;
  font-family:var(--mono); font-size:.68rem; cursor:pointer;
}
.rest-body {
  background:#0A0A18; border:1px solid var(--border);
  border-radius:8px; padding:1rem; font-size:.7rem; flex:1;
}
.rest-response {
  background:#060611; border:1px solid rgba(61,219,132,0.2);
  border-radius:8px; padding:1rem; font-size:.7rem;
}
.rest-response .str { color:var(--green); }
.rest-response .kw { color:var(--cyan); }
.rest-response .num { color:var(--amber); }

/* ─── FAQ ─────────────────────────────────────────────────────── */
#faq {
  padding:7rem 0;
  background: var(--bg2);
}

.faq-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:1.5rem;
  margin-top:3.5rem;
}
@media(max-width:680px){ .faq-grid { grid-template-columns:1fr; } }

.faq-item {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r2); padding:1.75rem;
  transition: var(--transition);
}
.faq-item:hover { border-color:rgba(1,118,211,0.3); }
.faq-q {
  display:flex; align-items:flex-start; gap:.75rem;
  font-size:.95rem; font-weight:700; margin-bottom:.85rem; line-height:1.4;
}
.faq-q-icon {
  width:28px; height:28px; border-radius:7px;
  background:rgba(1,118,211,0.15); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:.85rem; font-weight:700;
  flex-shrink:0; margin-top:.05rem;
}
.faq-a { font-size:.875rem; color:var(--text-muted); line-height:1.7; padding-left:calc(28px + .75rem); }

/* ─── CTA BAND ────────────────────────────────────────────────── */
#cta {
  padding:7rem 0;
  text-align:center;
  position:relative; overflow:hidden;
}
#cta .hero-glow { top:-20%; opacity:.7; }

.cta-inner {
  position:relative; z-index:1;
  background: var(--surface);
  border:1px solid var(--border2);
  border-radius:28px; padding:5rem 3rem;
  overflow:hidden;
}
.cta-inner::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(1,118,211,0.15) 0%, transparent 65%);
}
.cta-title { font-size:clamp(2rem,4vw,3.2rem); font-weight:800; letter-spacing:-.03em; position:relative; z-index:1; }
.cta-sub { color:var(--text-muted); margin:.75rem 0 2.5rem; font-size:1.05rem; position:relative; z-index:1; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer {
  padding:3rem 0;
  border-top:1px solid var(--border);
}
.footer-inner {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1.5rem;
}
.footer-brand { display:flex; align-items:center; gap:.6rem; }
.footer-brand-text { font-size:.875rem; }
.footer-brand-text strong { display:block; font-weight:700; font-size:.95rem; }
.footer-brand-text small { color:var(--text-dim); font-size:.78rem; }

.footer-links { display:flex; align-items:center; gap:2rem; }
.footer-links a {
  color:var(--text-muted); text-decoration:none; font-size:.82rem;
  transition:color var(--transition); display:flex; align-items:center; gap:.35rem;
}
.footer-links a:hover { color:var(--text); }

/* ─── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity:0; transform:translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.stagger-1 { transition-delay:.1s; }
.reveal.stagger-2 { transition-delay:.2s; }
.reveal.stagger-3 { transition-delay:.3s; }
.reveal.stagger-4 { transition-delay:.4s; }
.reveal.stagger-5 { transition-delay:.5s; }
.reveal.stagger-6 { transition-delay:.6s; }
.reveal.stagger-7 { transition-delay:.7s; }
.reveal.revealed { opacity:1; transform:none; }

/* ─── MISC ────────────────────────────────────────────────────── */
.text-center { text-align:center; }
.mx-auto { margin-left:auto; margin-right:auto; }

/* ─── LIGHT MODE OVERRIDES ────────────────────────────────────── */
[data-theme="light"] .code-bg { opacity:.06; color:#0176D3; }
[data-theme="light"] .hero-glow { opacity:.6; }
[data-theme="light"] .mockup-titlebar { background:#EAEAF4; }
[data-theme="light"] .mockup-sidebar { background:#F0F0FA; }
[data-theme="light"] .mockup-dots span:nth-child(1){ background:#FF5F57; }
[data-theme="light"] .code-area { background:#F4F4FA; }
[data-theme="light"] .kw { color:#8250DF; }
[data-theme="light"] .fn { color:#0550AE; }
[data-theme="light"] .str { color:#1A7F37; }
[data-theme="light"] .cm { color:#6E7781; }
[data-theme="light"] .cls { color:#953800; }
[data-theme="light"] .soql-wrap,
[data-theme="light"] .rest-wrap { background:var(--surface); }
[data-theme="light"] .rest-url-bar,
[data-theme="light"] .rest-body,
[data-theme="light"] .rest-response { background:var(--bg2); }
[data-theme="light"] .diff-header,
[data-theme="light"] .soql-builder-header { background:var(--bg2); }
[data-theme="light"] .soql-table-head { background:var(--bg3); }