/* VectorBase — vectorbase.life */
:root {
  --indigo: #4338CA;
  --cyan: #22D3EE;
  --dark: #111827;
  --lilac: #F5F3FF;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --sidebar-w: 260px;
  --bottom-nav-h: 64px;
  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

body.no-js .animate-on-scroll { opacity: 1; transform: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lilac); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; color: var(--text-muted); }
ul, ol { margin-bottom: 1rem; padding-left: 1.25rem; color: var(--text-muted); }

/* Mesh background */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(67, 56, 202, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    var(--dark);
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67, 56, 202, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 56, 202, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Layout */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 2rem 2.5rem 6rem;
  max-width: 1200px;
}

/* Sidebar nav — desktop */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(17, 24, 39, 0.95);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.sidebar-logo span { color: var(--cyan); }

.sidebar-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.sidebar-nav { list-style: none; padding: 0; flex: 1; }
.sidebar-nav li { margin-bottom: 0.25rem; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.sidebar-nav a.active { border-left: 3px solid var(--cyan); }

.sidebar-nav svg { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

/* Bottom nav — mobile */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: rgba(17, 24, 39, 0.97);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 0.4rem;
  transition: color var(--transition);
}

.bottom-nav a.active,
.bottom-nav a:hover { color: var(--cyan); }

.bottom-nav svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(67, 56, 202, 0.2);
  border: 1px solid rgba(67, 56, 202, 0.4);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--cyan); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.3), rgba(34, 211, 238, 0.15));
  pointer-events: none;
}

/* Vector mesh canvas overlay */
.vector-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--indigo);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.4);
}

.btn-primary:hover {
  background: #3730A3;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(67, 56, 202, 0.5);
}

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

.btn-outline:hover {
  background: var(--glass);
  color: var(--text);
  border-color: var(--cyan);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--dark);
  font-weight: 700;
}

.btn-cyan:hover {
  background: #06B6D4;
  color: var(--dark);
  transform: translateY(-2px);
}

/* Sections */
section { padding: 4rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p { font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

/* Glass cards */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
}

/* Hex modules */
.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hex-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all var(--transition);
}

.hex-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(67, 56, 202, 0.15);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-3px);
}

.hex-icon {
  width: 48px;
  height: 48px;
  background: rgba(67, 56, 202, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}

.hex-icon svg { width: 24px; height: 24px; }

.hex-card h3 { margin-bottom: 0.75rem; color: var(--text); }
.hex-card p { font-size: 0.9rem; margin-bottom: 0; }

/* Facts strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.fact-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.fact-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Knowledge graph section */
.knowledge-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.knowledge-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.knowledge-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* RAG solutions grid */
.rag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.rag-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.rag-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(67, 56, 202, 0.5);
  line-height: 1;
  flex-shrink: 0;
}

/* AI Lexicon */
.lexicon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lexicon-term {
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: default;
  transition: border-color var(--transition);
}

.lexicon-term:hover { border-color: rgba(34, 211, 238, 0.4); }

.lexicon-term dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.lexicon-term dd {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Services tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tier-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.tier-card.featured {
  border-color: rgba(67, 56, 202, 0.5);
  background: rgba(67, 56, 202, 0.1);
  position: relative;
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tier-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: rgba(34, 211, 238, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.tier-icon svg { width: 28px; height: 28px; }

.tier-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1.25rem 0 0;
}

.tier-card li {
  padding: 0.4rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-card li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
}

/* Data mesh infographic */
.data-mesh {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.mesh-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mesh-node {
  aspect-ratio: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.75rem;
  transition: all var(--transition);
}

.mesh-node.center {
  background: rgba(67, 56, 202, 0.25);
  border-color: var(--indigo);
  grid-column: 2;
  grid-row: 2;
}

.mesh-node svg { width: 24px; height: 24px; color: var(--cyan); margin-bottom: 0.35rem; }
.mesh-node span { color: var(--text-muted); font-size: 0.7rem; }

.mesh-node:hover { border-color: var(--cyan); transform: scale(1.05); }

/* Testimonials */
.testimonials-section {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 3rem 2rem;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(67, 56, 202, 0.3));
  z-index: 1;
}

.testimonials-content {
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonial-author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cyan);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--indigo), #3730A3);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cta-band h2 { color: var(--text); margin-bottom: 0.75rem; position: relative; }
.cta-band p { color: rgba(249, 250, 251, 0.8); margin-bottom: 2rem; position: relative; }
.cta-band .btn { position: relative; }

/* Cloud partners */
.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.partner-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity var(--transition);
  letter-spacing: 0.02em;
}

.partner-logo:hover { opacity: 1; color: var(--text); }

/* Page hero (inner pages) */
.page-hero {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero-image {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  max-height: 360px;
}

.page-hero-image img { width: 100%; height: 360px; object-fit: cover; }

/* Collection cards */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.collection-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.vec-id {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.collection-card h3 { margin-bottom: 0.5rem; }
.collection-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }

.collection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(67, 56, 202, 0.2);
  border-radius: 999px;
  color: var(--lilac);
}

/* Services list */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-item h3 { color: var(--text); margin-bottom: 0.5rem; }
.service-item p { font-size: 0.9rem; }

.service-features {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.service-features li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block h3 { margin-bottom: 1rem; color: var(--text); }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-detail span, .contact-detail a { font-size: 0.95rem; color: var(--text); }

.contact-form .form-group { margin-bottom: 1.25rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error { border-color: #EF4444; }

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 10px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.form-success.visible { display: block; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--indigo);
}

.checkbox-group label { margin-bottom: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Legal pages */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-content p, .legal-content li { font-size: 0.95rem; }

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.legal-image img { width: 100%; max-height: 240px; object-fit: cover; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--cyan); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 2rem;
  z-index: 200;
  display: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cookie-banner.visible { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.cookie-banner p { margin: 0; font-size: 0.875rem; flex: 1; min-width: 200px; }

.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .knowledge-section,
  .data-mesh,
  .contact-layout { grid-template-columns: 1fr; }

  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .lexicon-grid { grid-template-columns: repeat(2, 1fr); }
  .mesh-diagram { grid-template-columns: repeat(2, 1fr); }
  .mesh-node.center { grid-column: 1; grid-row: auto; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }

  .main-content {
    margin-left: 0;
    padding: 1.5rem 1.25rem calc(var(--bottom-nav-h) + 5rem);
  }

  .bottom-nav { display: flex; }

  .cookie-banner { bottom: var(--bottom-nav-h); }

  .hero-grid { gap: 2rem; }
  .rag-grid,
  .collection-grid,
  .services-grid { grid-template-columns: 1fr; }
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .lexicon-grid { grid-template-columns: 1fr; }
  .partners-row { gap: 1.5rem; }
  .cta-band { padding: 2.5rem 1.5rem; }
}

@media (min-width: 769px) {
  .cookie-banner { bottom: 0; }
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
}
.footer-contact-grid a { color: var(--cyan, #22d3ee); }
.footer-copy { display: block; font-size: 0.85rem; opacity: 0.8; }
