/* ==========================================================================
   Xelvoraa — Editorial AI/ML SaaS
   Design tokens, base, layout, components, pages
   ========================================================================== */

:root {
  /* Color palette */
  --bg-primary: #0A0908;
  --bg-surface: #141210;
  --bg-surface-hover: #1C1917;
  --bg-elev: #1F1B17;
  --border-subtle: #2A2621;
  --border-focus: #FF5500;
  --text-primary: #F4EFE6;
  --text-secondary: #A39C93;
  --text-muted: #68625B;
  --accent-electric: #FF5500;
  --accent-amber: #FFB266;
  --accent-glow: rgba(255, 85, 0, 0.18);
  --accent-glow-soft: rgba(255, 85, 0, 0.08);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --container-max: 1280px;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background-color: var(--accent-electric); color: #0A0908; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography */
h1, h2, h3, .serif {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 400; }
h4 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-primary); }

.serif-italic { font-style: italic; color: var(--accent-amber); font-weight: 400; }

p { color: var(--text-secondary); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--text-secondary); line-height: 1.55; max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-electric);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent-electric);
}
.eyebrow.no-line::before { display: none; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--accent-electric);
  display: grid; place-items: center;
  color: var(--accent-electric);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: rotate(45deg);
}
.brand-mark span { transform: rotate(-45deg); }

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--accent-electric);
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-subtle);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1px;
  background: var(--text-primary);
  margin: 4px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: 0;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-electric);
  color: #0A0908;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 1.125rem 2.25rem; font-size: 1rem; }
.btn-arrow::after { content: '→'; transition: transform 0.3s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Hero */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-16);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}
.hero h1 { margin: var(--space-6) 0; }
.hero h1 em { font-style: italic; color: var(--accent-amber); font-weight: 400; }
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(1.05) saturate(0.9) hue-rotate(-10deg);
}
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0) 40%, rgba(10,9,8,0.85) 100%);
  pointer-events: none;
}
.hero-meta {
  position: absolute;
  left: var(--space-6); right: var(--space-6); bottom: var(--space-6);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-electric);
  display: inline-block; margin-right: var(--space-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 10%, var(--accent-glow-soft), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Social proof / logos strip */
.logos {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.logos-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.logo-item {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.logo-item:hover { opacity: 1; color: var(--text-primary); }

/* Section heads */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: end;
  margin-bottom: var(--space-16);
}
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head .lead { margin-top: var(--space-4); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-surface-hover);
}
.bento-card .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.bento-card h3 { font-size: 1.75rem; }
.bento-card p { font-size: 0.9375rem; }
.bento-wide { grid-column: span 4; }
.bento-narrow { grid-column: span 2; }
.bento-half { grid-column: span 3; }
.bento-full { grid-column: span 6; }
.bento-stat { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 4rem); color: var(--accent-electric); line-height: 1; }
.bento-stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

/* Feature cards (3 col) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  gap: var(--space-4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover { border-color: var(--border-focus); }
.feature-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-subtle);
  display: grid; place-items: center;
  color: var(--accent-electric);
  font-family: var(--font-mono);
  font-size: 1rem;
}

/* Deep dive (alternating text/image) */
.deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
}
.deep-dive.reverse .deep-dive-text { order: 2; }
.deep-dive-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.deep-dive-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.deep-dive-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,85,0,0.05), transparent 50%);
}
.deep-dive-text h2 { margin-bottom: var(--space-6); }
.deep-dive ul { list-style: none; margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.deep-dive li { padding-left: var(--space-6); position: relative; color: var(--text-secondary); }
.deep-dive li::before {
  content: '—'; position: absolute; left: 0; color: var(--accent-electric);
}

/* Tech specs strip */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}
.spec {
  background: var(--bg-primary);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  gap: var(--space-2);
}
.spec-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--accent-electric);
  line-height: 1;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* CTA section */
.cta-band {
  position: relative;
  padding: var(--space-32) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow-soft), transparent 60%);
}
.cta-band-inner { position: relative; text-align: center; }
.cta-band h2 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 18ch; margin: 0 auto var(--space-8); }
.cta-band h2 em { font-style: italic; color: var(--accent-amber); font-weight: 400; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  gap: var(--space-6);
  position: relative;
  transition: border-color 0.3s ease;
}
.price-card.featured {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 20px 60px var(--accent-glow-soft);
}
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -10px; left: var(--space-8);
  background: var(--accent-electric);
  color: #0A0908;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px;
}
.price-tier { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted); }
.price-amount { display: flex; align-items: baseline; gap: var(--space-2); }
.price-amount .currency { font-family: var(--font-body); font-size: 1.25rem; color: var(--text-secondary); }
.price-amount .value { font-family: var(--font-heading); font-size: clamp(3rem, 5vw, 4.5rem); color: var(--text-primary); line-height: 1; }
.price-amount .period { font-family: var(--font-body); color: var(--text-muted); font-size: 0.9375rem; }
.price-features { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.price-features li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.price-features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent-electric);
  font-family: var(--font-mono);
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-6) 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-electric);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--space-4); color: var(--text-secondary); }

/* Forms */
.form { display: grid; gap: var(--space-6); max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-4);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent-electric); }
.field textarea { min-height: 160px; resize: vertical; }
.form-success {
  border: 1px solid var(--accent-electric);
  padding: var(--space-4) var(--space-6);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: var(--accent-glow-soft);
  display: none;
}
.form-success.visible { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
  background: var(--bg-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--space-3); }
.footer-col a { color: var(--text-secondary); transition: color 0.3s ease; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-brand { max-width: 36ch; }
.footer-brand p { margin-top: var(--space-4); font-size: 0.9375rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom .badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
}
.footer-bottom .badge::before { content: ''; width: 6px; height: 6px; background: var(--accent-electric); border-radius: 50%; }

/* Page hero (sub-pages) */
.page-hero {
  padding: var(--space-24) 0 var(--space-16);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 20%, var(--accent-glow-soft), transparent 50%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); margin: var(--space-4) 0 var(--space-6); }
.page-hero .lead { max-width: 64ch; }

/* About story */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.about-story-text p { margin-bottom: var(--space-4); font-size: 1.0625rem; line-height: 1.7; }
.about-image {
  aspect-ratio: 4/5;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.team-card {
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-2);
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-electric);
  margin-bottom: var(--space-4);
}
.team-card h4 { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; }
.team-card .role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* Blog */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.blog-featured .visual {
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.blog-featured .visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.blog-featured h2 { font-size: clamp(2rem, 4vw, 3rem); margin: var(--space-4) 0; }
.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex; gap: var(--space-4);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-12);
}
.blog-card {
  display: flex; flex-direction: column;
  gap: var(--space-4);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.blog-card:hover { border-color: var(--border-focus); transform: translateY(-2px); }
.blog-card .visual { aspect-ratio: 16/10; background: var(--bg-surface); overflow: hidden; }
.blog-card .visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.6s ease; }
.blog-card:hover .visual img { transform: scale(1.04); }
.blog-card .body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.blog-card h3 { font-size: 1.5rem; line-height: 1.2; }

/* Careers */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.benefit {
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
}
.benefit h4 { margin-bottom: var(--space-2); }
.benefit p { font-size: 0.9375rem; }
.roles {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.role-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}
.role-item:hover { border-color: var(--border-focus); background: var(--bg-surface); }
.role-item .title { font-family: var(--font-heading); font-size: 1.375rem; color: var(--text-primary); }
.role-item .meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.role-item .arrow { font-family: var(--font-mono); color: var(--accent-electric); transition: transform 0.3s ease; }
.role-item:hover .arrow { transform: translateX(4px); }

/* Contact info grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-info { display: grid; gap: var(--space-8); }
.contact-info-item h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.contact-info-item p { color: var(--text-primary); font-size: 1.0625rem; }

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 { font-family: var(--font-heading); font-size: 2rem; margin: var(--space-12) 0 var(--space-4); font-weight: 600; }
.legal h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 500; margin: var(--space-8) 0 var(--space-3); color: var(--text-primary); }
.legal p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: var(--space-4); }
.legal ul { margin: var(--space-4) 0; padding-left: var(--space-6); }
.legal ul li { color: var(--text-secondary); margin-bottom: var(--space-2); line-height: 1.7; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/10; max-height: 480px; }
  .bento-wide, .bento-narrow, .bento-half { grid-column: span 6; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .bento-narrow, .bento-half { grid-column: span 1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .nav-links {
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-8);
    gap: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .pricing-grid { grid-template-columns: 1fr; }
  .deep-dive, .blog-featured, .about-story, .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .deep-dive.reverse .deep-dive-text { order: 0; }
  .feature-grid, .bento, .team-grid, .benefits, .specs, .blog-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-narrow, .bento-half, .bento-full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .role-item { grid-template-columns: 1fr; gap: var(--space-2); }
  .form-row { grid-template-columns: 1fr; }
}
