/* =========================================================
   Syntecnia — home.css
   Home-page–only styles that extend style.css
   ========================================================= */

/* ── Google Font (also referenced in style.css import)  ── */

/* =========================================================
   Shared home layout helpers
   ========================================================= */
.home-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* =========================================================
   Navigation overrides for home page
   (the base .nav styles live in style.css)
   ========================================================= */
.home-nav {
  /* remove the left padding that docs pages use for sidebar offset */
  padding: 0 1.75rem;
  gap: 0;
}

.home-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-head);
  text-decoration: none;
  flex-shrink: 0;
}

/* Override the ::before pseudo-element from style.css */
.home-nav .nav-logo::before { display: none; }

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #9f7aea);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--accent-glow);
}

.home-nav .nav-links {
  margin-left: 2rem;
  flex: 1;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a svg,
.nav-dropdown:focus-within > a svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  background: none;
}

.dropdown-menu a:hover {
  background: var(--accent-glow);
  color: var(--text-head);
}

/* Right side of nav */
.nav-right-home {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-search-home {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-search-home:hover {
  background: var(--accent-glow);
  color: var(--text-head);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.hamburger:hover { background: var(--accent-glow); }

.hamburger span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.15s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text-head); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text-head); }

/* =========================================================
   Search Modal
   ========================================================= */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-modal.open { display: flex; }

.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
  animation: slide-down 0.2s ease both;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap svg { color: var(--text-dim); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.search-input::placeholder { color: var(--text-dim); }

.search-kbd {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
}

.search-hint {
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* =========================================================
   Mobile Sidebar
   ========================================================= */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
  opacity: 1;
}

.mobile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(310px, 88vw);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.open { transform: translateX(0); }

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.sidebar-close-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  border-radius: 7px;
  color: var(--text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-close-btn:hover { background: var(--accent-glow); color: var(--text-head); }

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li { border-bottom: 1px solid var(--border); }

.mobile-nav-list a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.mobile-nav-list a:hover { color: var(--text-head); }

.mobile-nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 1rem 0.25rem 0.35rem;
  opacity: 0.6;
  border-bottom: none !important;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.35rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #7c75ff;
  box-shadow: 0 0 32px rgba(108, 99, 255, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(108, 99, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.hero-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Hero text ─────────────────────────────────────────── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.28rem 0.85rem;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.badge-version {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-head);
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-dim);
  line-height: 1.78;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.meta-dot.green  { background: #4ade80; }
.meta-dot.blue   { background: #60a5fa; }
.meta-dot.purple { background: var(--accent); }

/* ── Animation helpers ────────────────────────────────── */
.animate-fade-up {
  animation: fade-up 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.17s; }
.delay-3 { animation-delay: 0.26s; }
.delay-4 { animation-delay: 0.35s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Code Window ────────────────────────────────────── */
.code-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(108, 99, 255, 0.07),
    0 24px 72px rgba(0, 0, 0, 0.7);
  position: relative;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.window-dot.red    { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2d; }
.window-dot.green  { background: #27c93f; }

.window-filename {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.code-copy {
  font-size: 0.74rem;
  font-family: inherit;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.code-copy:hover {
  color: var(--text-head);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.code-copy.copied {
  color: var(--syn-str);
  border-color: rgba(195, 232, 141, 0.4);
}

.code-body {
  padding: 1.35rem 1.35rem 1.35rem 0;
  overflow-x: auto;
}

.code-body pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.825rem;
  line-height: 1.76;
  display: flex;
  margin: 0;
  background: none;
  border: none;
  padding: 0;
}

/* Inherit parent padding in example windows (no line numbers) */
.example-window .code-body { padding: 1.35rem 1.35rem; }
.example-window .code-body pre { display: block; }

.line-numbers {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding: 0 1rem 0 1.35rem;
  user-select: none;
  flex-shrink: 0;
}

.line-numbers span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.76;
  opacity: 0.45;
}

.code-body code {
  /* reset code inline styles from style.css */
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text);
  border-radius: 0;
  display: block;
  flex: 1;
}

/* Syntax tokens — match style.css variable names */
.kw  { color: var(--syn-kw); font-weight: 500; }
.str { color: var(--syn-str); }
.num { color: var(--syn-num); }
.cmt { color: var(--syn-cmt); font-style: italic; }
.fn  { color: var(--syn-fn); }
.op  { color: var(--syn-op); }

/* Glow behind hero code panel */
.hero-code-panel {
  position: relative;
}

.hero-code-panel::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(159, 122, 234, 0.08));
  z-index: -1;
  filter: blur(22px);
  opacity: 0.7;
}

/* =========================================================
   Section shared helpers
   ========================================================= */
.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-label-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 99px;
  padding: 0.28rem 0.9rem;
  margin-bottom: 1.1rem;
}

.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-head);
  margin-bottom: 0.85rem;
}

.section-subheading {
  font-size: 1.02rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.72;
}

/* =========================================================
   Features Section
   ========================================================= */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.65rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-tint, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}

.feature-card:hover {
  border-color: rgba(108, 99, 255, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::after { opacity: 1; }

.fc-security  { --card-tint: radial-gradient(circle at 0% 0%, rgba(248,113,113,0.05), transparent 60%); }
.fc-agents    { --card-tint: radial-gradient(circle at 0% 0%, rgba(108,99,255,0.06), transparent 60%); }
.fc-llm       { --card-tint: radial-gradient(circle at 0% 0%, rgba(251,191,36,0.05), transparent 60%); }
.fc-server    { --card-tint: radial-gradient(circle at 0% 0%, rgba(34,211,238,0.05), transparent 60%); }
.fc-human     { --card-tint: radial-gradient(circle at 0% 0%, rgba(244,114,182,0.05), transparent 60%); }
.fc-observe   { --card-tint: radial-gradient(circle at 0% 0%, rgba(94,234,212,0.05), transparent 60%); }

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  display: block;
  line-height: 1;
}

.feature-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 0.55rem;
}

.feature-desc {
  font-size: 0.865rem;
  color: var(--text-dim);
  line-height: 1.72;
}

.feature-desc code {
  /* keep inline code readable on dark card */
  font-size: 0.82em;
  padding: 0.1em 0.4em;
}

/* =========================================================
   Install Section
   ========================================================= */
.install-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.install-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.install-text .section-label-pill { margin-bottom: 0.85rem; }
.install-text .section-heading { margin-bottom: 0.7rem; }

.install-desc {
  font-size: 0.97rem;
  color: var(--text-dim);
  line-height: 1.76;
  margin-bottom: 1.35rem;
}

.install-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.req-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.28rem 0.72rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-dim);
}

.req-chip span { color: #4ade80; font-size: 0.78rem; }

/* Install commands */
.install-cmds {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.install-cmd-row {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  transition: border-color 0.18s;
}

.install-cmd-row:hover { border-color: var(--accent); }

.prompt-sym {
  color: var(--syn-str);
  user-select: none;
  flex-shrink: 0;
  font-weight: 500;
}

.install-cmd-row code {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text);
  border-radius: 0;
}

.copy-inline {
  font-family: inherit;
  font-size: 0.74rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.copy-inline:hover {
  color: var(--text-head);
  border-color: var(--border);
  background: var(--accent-glow);
}

.copy-inline.copied { color: var(--syn-str); }

.install-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
}

.install-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-note a:hover { color: #9f7aea; }

/* =========================================================
   Examples Section
   ========================================================= */
.examples-section { padding: 6rem 0; }

.examples-header { text-align: center; margin-bottom: 2.5rem; }

.examples-tabs {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.48rem 1.05rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tab-btn:hover {
  color: var(--text-head);
  border-color: rgba(108, 99, 255, 0.4);
  background: var(--accent-glow);
}

.tab-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.example-pair {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 1.5rem;
  align-items: start;
}

.example-desc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.65rem;
  height: 100%;
}

.example-desc h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 0.65rem;
}

.example-desc p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.72;
  margin-bottom: 1.1rem;
}

.example-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.example-highlights li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.845rem;
  color: var(--text-dim);
}

.example-highlights li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.example-highlights code {
  font-size: 0.8em;
  padding: 0.08em 0.4em;
}

.examples-cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================================
   CTA Banner
   ========================================================= */
.cta-banner {
  padding: 5rem 0;
  background: rgba(108, 99, 255, 0.04);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-head);
  margin-bottom: 0.75rem;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.75rem;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.footer-brand .footer-logo::before { display: none; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.72;
  margin-bottom: 1rem;
  max-width: 250px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-grid nav h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-grid nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-grid nav a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-grid nav a:hover { color: var(--text-head); }

.footer-grid nav a.external-sm::after {
  content: " ↗";
  font-size: 0.72em;
  opacity: 0.55;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.825rem;
  color: var(--text-dim);
  opacity: 0.55;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 0.825rem;
  color: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s;
  text-decoration: none;
}

.footer-bottom-links a:hover { opacity: 1; color: var(--text-head); }

/* =========================================================
   Responsive — Tablet (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* =========================================================
   Responsive — Mobile (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  .home-nav .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-section { padding: 3rem 0; min-height: auto; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-code-panel { order: -1; }

  .hero-desc { max-width: 100%; }

  .features-section { padding: 4rem 0; }
  .features-grid { grid-template-columns: 1fr; }

  .install-section { padding: 3.5rem 0; }
  .install-inner { grid-template-columns: 1fr; gap: 2.25rem; }

  .examples-section { padding: 4rem 0; }
  .example-pair { grid-template-columns: 1fr; }

  .cta-banner { padding: 3.5rem 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .code-body pre { font-size: 0.77rem; }
}
