/* ==========================================================================
   DataCicles — web comercial v3
   Design system inspired by the visual style of v0-optimus-delta.vercel.app:
   warm monochrome (near-black on off-white), Instrument Sans + Instrument
   Serif italic accents + JetBrains Mono for labels/code, thin hairline
   borders instead of shadows, fully-rounded "pill" buttons, dash-prefixed
   mono eyebrows, two-tone headings (black line + muted-gray line), numbered
   section rows, and a glass sticky nav pill.
   ========================================================================== */

:root {
  --background: 40 33% 98%;
  --background-alt: 40 18% 95%;
  --surface: 0 0% 100%;
  --foreground: 20 14% 4%;
  --muted-foreground: 25 8% 38%;
  --border: 20 14% 4%;
  --border-alpha: 0.1;
  --dark-bg: 20 14% 5%;
  --dark-fg: 40 33% 98%;
  --dark-muted: 30 6% 62%;
  --accent-green: 142 71% 40%;
  --brand: 213 100% 14%;

  --font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code, .mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  padding: 0.75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

section { position: relative; }
.section { padding: 6.5rem 0; }
.section--tight { padding: 4rem 0; }
.section--alt { background: hsl(var(--background-alt)); }
.section--dark {
  background: hsl(var(--dark-bg));
  color: hsl(var(--dark-fg));
  background-image:
    repeating-linear-gradient(135deg, hsl(var(--dark-fg) / 0.025) 0 1px, transparent 1px 26px);
}
.section--dark .muted { color: hsl(var(--dark-muted)); }
.section--dark .divider { border-color: hsl(var(--dark-fg) / 0.12); }

.muted { color: hsl(var(--muted-foreground)); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
}
.section--dark .eyebrow { color: hsl(var(--dark-muted)); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-weight: 400; }

.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.heading-xl {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  letter-spacing: -0.03em;
}
.heading-lg {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}
.two-tone span { color: hsl(var(--muted-foreground)); display: block; }
.section--dark .two-tone span { color: hsl(var(--dark-muted)); }

p { margin: 0; }
.lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
}
.section--dark .lede { color: hsl(var(--dark-muted)); }

.section-head { margin-bottom: 3.5rem; max-width: 46rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-solid:hover { background: hsl(var(--foreground) / 0.85); }
.btn-outline { background: transparent; border-color: hsl(var(--foreground) / 0.18); color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--foreground) / 0.05); }
.section--dark .btn-solid { background: hsl(var(--dark-fg)); color: hsl(var(--dark-bg)); }
.section--dark .btn-outline { border-color: hsl(var(--dark-fg) / 0.25); color: hsl(var(--dark-fg)); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Sticky glass nav ---------- */
.nav-wrap { position: fixed; top: 1.1rem; left: 0; right: 0; z-index: 100; padding: 0 1.25rem; }
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--foreground) / 0.1);
  background: hsl(var(--surface) / 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.site-nav.is-scrolled { box-shadow: 0 10px 30px hsl(var(--foreground) / 0.08); background: hsl(var(--surface) / 0.92); }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; font-size: 1.02rem; }
.brand img { height: 22px; width: 22px; object-fit: contain; border-radius: 6px; }
.brand sup { font-family: var(--font-mono); font-size: 0.55rem; color: hsl(var(--muted-foreground)); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; font-size: 0.88rem; color: hsl(var(--muted-foreground)); }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch { display: inline-flex; font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid hsl(var(--foreground) / 0.14); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 0.32rem 0.6rem; color: hsl(var(--muted-foreground)); }
.lang-switch a.is-active { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 0.4rem; }
.nav-toggle span { width: 18px; height: 1.5px; background: hsl(var(--foreground)); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav-actions .btn.btn-sm { display: none; }
  .site-nav { padding: 0.55rem 0.6rem 0.55rem 0.9rem; }
  .brand { font-size: 0.92rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 480px;
}
.hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-canvas-wrap { display: none; }
}
.hero-title { margin: 0 0 1.4rem; }
.hero-title .line-fade { color: hsl(var(--muted-foreground)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: hsl(var(--muted-foreground)); }

.stat-ticker {
  margin-top: 4.5rem;
  border-top: 1px solid hsl(var(--foreground) / var(--border-alpha));
  padding-top: 1.75rem;
  overflow: hidden;
}
.stat-ticker-track { display: flex; gap: 3.5rem; width: max-content; animation: tickerScroll 26s linear infinite; }
.stat-ticker:hover .stat-ticker-track { animation-play-state: paused; }
.stat-chip { display: flex; align-items: baseline; gap: 0.55rem; white-space: nowrap; }
.stat-chip strong { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.stat-chip span { font-family: var(--font-mono); font-size: 0.7rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.04em; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Numbered feature rows ---------- */
.numbered-list { border-top: 1px solid hsl(var(--foreground) / var(--border-alpha)); }
.numbered-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.6rem 0;
  border-bottom: 1px solid hsl(var(--foreground) / var(--border-alpha));
}
.numbered-row .num { font-family: var(--font-mono); font-size: 0.85rem; color: hsl(var(--muted-foreground)); padding-top: 0.3rem; }
.numbered-row h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.55rem; }
.numbered-row p { color: hsl(var(--muted-foreground)); max-width: 40rem; }
.numbered-icon {
  width: 64px; height: 64px; border-radius: 16px;
  border: 1px solid hsl(var(--foreground) / 0.12);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground));
}
.numbered-icon svg { width: 26px; height: 26px; }
@media (max-width: 720px) {
  .numbered-row { grid-template-columns: 2.5rem 1fr; }
  .numbered-icon { display: none; }
}

/* ---------- Stat grid (2 / 4 columns, hairline dividers) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-radius: 20px; overflow: hidden; }
.stat-cell { padding: 2.4rem 1.9rem; border-right: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-bottom: 1px solid hsl(var(--foreground) / var(--border-alpha)); }
.stat-cell:nth-child(4n) { border-right: none; }
.stat-cell .value { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; letter-spacing: -0.02em; }
.stat-cell .label { margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(4n) { border-right: 1px solid hsl(var(--foreground) / var(--border-alpha)); }
}

/* ---------- Status list (module / server-list style) ---------- */
.status-list { border: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-radius: 18px; overflow: hidden; background: hsl(var(--surface)); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid hsl(var(--foreground) / var(--border-alpha)); }
.status-row:last-child { border-bottom: none; }
.status-row .dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--accent-green)); flex: none; box-shadow: 0 0 0 3px hsl(var(--accent-green) / 0.15); }
.status-row .name { font-weight: 500; }
.status-row .sub { font-size: 0.82rem; color: hsl(var(--muted-foreground)); }
.status-row .tag { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.status-row-left { display: flex; align-items: center; gap: 0.85rem; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Badge tags ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.badge-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid hsl(var(--foreground) / 0.16);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- Bordered icon cards (security-style grid) ---------- */
.icon-card-list { display: flex; flex-direction: column; gap: 1rem; }
.icon-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 880px) { .icon-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .icon-grid-4 { grid-template-columns: 1fr; } }
.icon-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 880px) { .icon-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .icon-grid-3 { grid-template-columns: 1fr; } }
.icon-card { display: flex; gap: 1rem; border: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-radius: 16px; padding: 1.25rem 1.4rem; background: hsl(var(--surface)); }
.icon-card .ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid hsl(var(--foreground) / 0.14); display: flex; align-items: center; justify-content: center; flex: none; }
.icon-card .ic svg { width: 16px; height: 16px; }
.icon-card h4 { font-size: 1rem; font-weight: 500; margin-bottom: 0.3rem; }
.icon-card p { font-size: 0.88rem; color: hsl(var(--muted-foreground)); }

/* ---------- Module / integration grid ---------- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.module-card { border: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-radius: 14px; padding: 1.1rem 1.2rem; }
.module-card .name { font-weight: 500; font-size: 0.95rem; }
.module-card .cat { display: block; margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.72rem; color: hsl(var(--muted-foreground)); }
@media (max-width: 880px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .module-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Code / formula card ---------- */
.code-card {
  background: hsl(var(--dark-bg));
  border: 1px solid hsl(var(--dark-fg) / 0.12);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  color: hsl(var(--dark-fg));
}
.code-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid hsl(var(--dark-fg) / 0.1); font-size: 0.78rem; }
.code-tabs .dots { display: flex; gap: 6px; margin-right: 0.6rem; }
.code-tabs .dots span { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--dark-fg) / 0.18); flex: none; }
.code-tab { color: hsl(var(--dark-muted)); cursor: pointer; padding-bottom: 2px; white-space: nowrap; }
.code-tab.is-active { color: hsl(var(--dark-fg)); border-bottom: 1px solid hsl(var(--dark-fg)); }
.code-tab-name { margin-left: auto; color: hsl(var(--dark-muted)); font-size: 0.68rem; cursor: default; background: hsl(var(--dark-fg) / 0.07); border: 1px solid hsl(var(--dark-fg) / 0.12); border-radius: 999px; padding: 0.25rem 0.65rem; white-space: nowrap; }
@media (max-width: 480px) {
  .code-tabs { gap: 0.6rem 0.9rem; }
  .code-tabs .dots { display: none; }
  .code-tab-name { margin-left: 0; flex-basis: 100%; order: 3; }
}
.code-body { padding: 1.4rem; font-size: 0.86rem; line-height: 1.9; min-height: 168px; }
.code-body .ln { color: hsl(var(--dark-muted)); display: inline-block; width: 1.4rem; }
.code-body .str { color: #8fd6a8; }
.code-body .kw { color: #b9a4ec; }
.code-body .cm { color: hsl(var(--dark-muted)); }
.code-pane { display: none; }
.code-pane.is-active { display: block; }
.code-status { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.2rem; border-top: 1px solid hsl(var(--dark-fg) / 0.1); font-size: 0.75rem; color: hsl(var(--dark-muted)); }
.code-status .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--accent-green)); }

/* ---------- Plain-language variant of the code card (no code, just steps) ---------- */
.code-card.is-plain { font-family: var(--font-display); }
.code-card.is-plain .code-tabs { font-family: var(--font-mono); }
.code-card.is-plain .code-body { font-size: 0.95rem; line-height: 1.7; }
.code-card.is-plain .code-body p { margin-bottom: 1rem; }
.code-card.is-plain .code-body p:last-child { margin-bottom: 0; }
.code-card.is-plain .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; margin-right: 0.7rem;
  border: 1px solid hsl(var(--dark-fg) / 0.25); border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.7rem; color: hsl(var(--dark-muted));
  vertical-align: middle;
}

/* ---------- Phase / roadmap carousel-style cards ---------- */
.phase-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2.2rem; font-family: var(--font-mono); font-size: 0.78rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; }
.phase-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.phase-quote { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.35; }
.phase-meta { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.8rem; }
.phase-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid hsl(var(--foreground) / 0.16); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.85rem; }
.phase-meta .role { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
.phase-result { border: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-radius: 16px; padding: 1.5rem 1.7rem; }
.phase-result .tag { font-family: var(--font-mono); font-size: 0.72rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; }
.phase-result .big { margin-top: 0.6rem; font-size: 1.5rem; font-weight: 500; }
.phase-dots { display: flex; gap: 0.4rem; margin: 0.4rem 0 -11px; }
.phase-dots span { box-sizing: content-box; width: 22px; height: 3px; padding: 11px 0; background-clip: content-box; border-radius: 2px; background-color: hsl(var(--foreground) / 0.14); cursor: pointer; transition: background-color 0.2s ease; }
.phase-dots span:hover { background-color: hsl(var(--foreground) / 0.4); }
.phase-dots span.is-active { background-color: hsl(var(--foreground)); }
.phase-slide, .phase-result-slide { display: none; animation: phase-fade 0.4s ease; }
.phase-slide.is-active, .phase-result-slide.is-active { display: block; }
@keyframes phase-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) { .phase-grid { grid-template-columns: 1fr; } }

/* ---------- CTA box with particle corner art ---------- */
.cta-box {
  position: relative;
  border: 1px solid hsl(var(--foreground) / var(--border-alpha));
  border-radius: 22px;
  padding: 3.2rem;
  overflow: hidden;
}
.cta-box-canvas { position: absolute; top: 0; right: 0; width: 55%; height: 100%; opacity: 0.9; pointer-events: none; }
.cta-box-content { position: relative; z-index: 1; max-width: 30rem; }
.cta-box h2 { margin-bottom: 0.9rem; }
.cta-box .lede { margin-bottom: 1.8rem; }
.cta-box .fine { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid hsl(var(--foreground) / var(--border-alpha)); padding: 1.6rem 0; cursor: pointer; }
.faq-item h3 { font-size: 1.05rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item h3::after { content: "+"; font-family: var(--font-mono); font-weight: 400; color: hsl(var(--muted-foreground)); transition: transform 0.3s var(--ease); }
.faq-item.is-open h3::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0; max-height: 0; overflow: hidden; color: hsl(var(--muted-foreground)); transition: max-height 0.35s var(--ease), margin-top 0.35s var(--ease); }
.faq-item.is-open p { margin-top: 0.9rem; max-height: 220px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
.mailto-card { border: 1px solid hsl(var(--foreground) / var(--border-alpha)); border-radius: 20px; padding: 2.2rem; background: hsl(var(--surface)); align-self: start; }
.mailto-card h3 { margin-bottom: 0.6rem; }
.mailto-card p { color: hsl(var(--muted-foreground)); margin-bottom: 1.4rem; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline (about page) ---------- */
.timeline { display: flex; flex-direction: column; gap: 1.4rem; }
.timeline-item { border-left: 2px solid hsl(var(--foreground) / 0.12); padding-left: 1.4rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--foreground) / 0.3); }
.timeline-item.is-current::before { background: hsl(var(--accent-green)); }
.timeline-item h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.3rem; }
.timeline-item p { color: hsl(var(--muted-foreground)); font-size: 0.92rem; }
.timeline-item .tag { font-family: var(--font-mono); font-size: 0.72rem; color: hsl(var(--muted-foreground)); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--stagger, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 5rem 0 2.5rem;
  background-color: hsl(var(--background-alt));
  background-image: radial-gradient(hsl(var(--foreground) / 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  border-top: 1px solid hsl(var(--foreground) / var(--border-alpha));
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; margin-bottom: 0.9rem; }
.footer-brand img { height: 22px; width: 22px; border-radius: 6px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9rem; }
.footer-col a:hover { color: hsl(var(--foreground)); }
.footer-col ul li a { color: hsl(var(--muted-foreground)); }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid hsl(var(--foreground) / var(--border-alpha)); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.76rem; color: hsl(var(--muted-foreground)); }
.footer-status { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-status .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--accent-green)); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: 4rem; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
