/* ========================================
   ALTA Landing Page — Dark Cinematic Theme
   ======================================== */

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

:root {
  --bg-primary: #101014;
  --bg-alt: #16161c;
  --bg-deep: #0c0c10;
  --surface: #212529;
  --surface-hover: #2a2e33;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-title: #fff;
  --text-body: #adb5bd;
  --text-muted: #868e96;
  --accent: #4dadf7;
  --accent-dim: rgba(77,173,247,0.15);
  --violet: #8a40af;
  --violet-dim: rgba(138,64,175,0.12);
  --teal: #3ea3ab;
  --teal-dim: rgba(62,163,171,0.12);
  --blue: #4878c0;
  --blue-dim: rgba(72,120,192,0.12);
  --red-orange: #fa5f50;
  --green: #51cf66;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 650px;
  line-height: 1.8;
}

.section-subtitle.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

section {
  padding: 7rem 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(16, 16, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-title);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.navbar-links a:hover {
  color: var(--text-title);
  text-decoration: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border);
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--accent);
  color: var(--bg-primary);
}

.navbar-login-btn {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.navbar-login-btn:hover {
  opacity: 0.85;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 3rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(138,64,175,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(72,120,192,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(62,163,171,0.05) 0%, transparent 40%),
    linear-gradient(rgba(16,16,20,0.5), rgba(16,16,20,0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
}

.hero-wordmark {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #4dadf7 50%, #8a40af 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-body);
  max-width: 700px;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-sub-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(77, 173, 247, 0.3);
  text-decoration: none;
}

.hero-cta-secondary {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-hover);
}

.hero-cta-secondary:hover {
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--text-title);
}

.hero-screenshot {
  position: relative;
  max-width: 1000px;
  width: 100%;
}

.hero-screenshot::before {
  content: '';
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse at center, rgba(138, 64, 175, 0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-screenshot::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-primary));
  z-index: 2;
  pointer-events: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Screenshot frames --- */
.screenshot {
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.4),
    0 16px 48px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}

.screenshot:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.5),
    0 32px 80px rgba(0,0,0,0.3);
}

.screenshot-glow {
  position: relative;
}

.screenshot-glow::before {
  content: '';
  position: absolute;
  inset: -80px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.screenshot-glow.glow-violet::before { background: rgba(138,64,175,0.08); }
.screenshot-glow.glow-blue::before { background: rgba(72,120,192,0.08); }
.screenshot-glow.glow-teal::before { background: rgba(62,163,171,0.08); }

/* --- Problem section --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-orange);
  opacity: 0.6;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.problem-then-now {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.problem-then, .problem-now {
  padding: 1.5rem;
}

.problem-then h4, .problem-now h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.problem-then h4 { color: var(--red-orange); }
.problem-now h4 { color: var(--green); }

.problem-then ul, .problem-now ul {
  list-style: none;
  padding: 0;
}

.problem-then li, .problem-now li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.problem-then li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--red-orange);
  font-weight: 700;
  font-size: 0.8rem;
}

.problem-now li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.problem-arrow {
  font-size: 2rem;
  color: var(--text-muted);
}

/* --- Value Proposition --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.value-card:nth-child(1)::after { background: var(--teal); }
.value-card:nth-child(2)::after { background: var(--violet); }
.value-card:nth-child(3)::after { background: var(--blue); }

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
}

.value-card:nth-child(1) .value-icon { color: var(--teal); }
.value-card:nth-child(2) .value-icon { color: var(--violet); }
.value-card:nth-child(3) .value-icon { color: var(--blue); }

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.value-synthesis {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text-body);
  max-width: 750px;
  margin: 0 auto;
  font-weight: 600;
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.stat-number.stat-number-text {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.c-teal { color: var(--teal); }
.c-violet { color: var(--violet); }
.c-blue { color: var(--blue); }
.c-orange { color: var(--red-orange); }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Feature sections (deep-dive) --- */
.feature-section {
  position: relative;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-row.reversed {
  direction: rtl;
}

.feature-row.reversed > * {
  direction: ltr;
}

.feature-visual {
  position: relative;
}

.feature-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.feature-text .lead {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list.accent-teal li::before { background: var(--teal); }
.feature-list.accent-violet li::before { background: var(--violet); }
.feature-list.accent-blue li::before { background: var(--blue); }

.inset-screenshot {
  position: absolute;
  width: 45%;
  bottom: -1.5rem;
  right: -1rem;
  z-index: 2;
  border: 2px solid var(--bg-primary);
}

.inset-screenshot-left {
  right: auto;
  left: -1rem;
}

/* --- Storyboard section (the showstopper) --- */
.storyboard-section {
  padding: 8rem 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(72,120,192,0.06) 0%, transparent 50%),
    var(--bg-alt);
  overflow: hidden;
}

.storyboard-header {
  text-align: center;
  margin-bottom: 4rem;
}

.storyboard-header .section-title {
  font-size: 3.2rem;
}

.storyboard-hero {
  margin-bottom: 4rem;
  position: relative;
}

.storyboard-hero::before {
  content: '';
  position: absolute;
  inset: -120px;
  background: radial-gradient(ellipse at center, rgba(72, 120, 192, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.storyboard-hero img {
  border-radius: 12px;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.filmstrip-item {
  position: relative;
}

.filmstrip-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

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

.feature-grid-item {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-grid-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.feature-grid-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-grid-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-grid-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Pipeline --- */
.pipeline-section {
  text-align: center;
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 4rem;
  flex-wrap: nowrap;
}

.pipeline-node {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 0;
  flex: 1 1 0;
  max-width: 200px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pipeline-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.pipeline-node h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.pipeline-node p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.pipeline-node.node-scenario { border-top: 3px solid var(--teal); }
.pipeline-node.node-depouil { border-top: 3px solid var(--violet); }
.pipeline-node.node-board { border-top: 3px solid var(--blue); }

.pipeline-node.node-upstream,
.pipeline-node.node-downstream {
  border: 2px dashed var(--green);
  border-top: 3px dashed var(--green);
  background: rgba(81, 207, 102, 0.04);
}

.node-formats {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pipeline-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 0 0.75rem;
  flex-shrink: 0;
}

.pipeline-screenshot {
  margin-top: 2rem;
  position: relative;
}

.pipeline-screenshot::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse at center, rgba(138, 64, 175, 0.06) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* --- Openness section --- */
.openness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3.5rem;
}

.openness-card {
  padding: 2rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.openness-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
}

.openness-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.openness-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.openness-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.openness-synthesis {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text-body);
  max-width: 750px;
  margin: 0 auto;
  font-weight: 600;
}

.feature-list.accent-green li::before { background: var(--green); }

/* --- Comparison table --- */
.comparison-table {
  overflow-x: auto;
  margin-top: 3rem;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 1rem;
}

.comparison-table td[data-lang],
.comparison-table th[data-lang] {
  text-align: left;
  font-weight: 500;
  color: var(--text-body);
}

.comparison-table .ct-highlight {
  color: var(--accent);
  font-weight: 700;
}

.comparison-table th.ct-highlight {
  color: var(--accent);
  font-size: 1rem;
}

.comparison-table .ct-yes::before {
  content: '\2713';
  font-weight: 700;
  color: #22c55e;
}

.comparison-table .ct-no {
  color: var(--text-muted);
  opacity: 0.5;
}

.comparison-table .ct-no:empty::before {
  content: '\2014';
}

.comparison-table td.ct-partial {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.comparison-table tbody tr {
  transition: background 0.2s;
}

.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* --- Source references --- */
.source-ref {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  vertical-align: super;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.source-ref:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration: none;
}

/* --- Tech section --- */
.tech-section {
  text-align: center;
}

.tech-statement {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-body);
  line-height: 1.9;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.tech-pill {
  padding: 0.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.tech-pill:hover {
  border-color: var(--accent);
  color: var(--text-title);
  transform: translateY(-2px);
}

.tech-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.tech-detail h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.tech-detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA section --- */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(77,173,247,0.06) 0%, transparent 50%),
    var(--bg-deep);
}

.cta-section .section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-title);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* --- Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: 0 auto 2rem;
  border-radius: 2px;
  opacity: 0.5;
}

/* --- Scroll animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Pipeline stagger */
.pipeline-node,
.pipeline-arrow {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pipeline-node.visible,
.pipeline-arrow.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Bilingual system --- */
[data-lang] {
  display: none;
}

html[lang="fr"] [data-lang="fr"] { display: revert; }
html[lang="en"] [data-lang="en"] { display: revert; }

/* Inline lang spans (inside same block) */
span[data-lang],
a[data-lang] {
  display: none;
}

html[lang="fr"] span[data-lang="fr"],
html[lang="fr"] a[data-lang="fr"] { display: inline; }
html[lang="en"] span[data-lang="en"],
html[lang="en"] a[data-lang="en"] { display: inline; }

/* --- Responsive (basic) --- */
@media (max-width: 900px) {
  .value-grid,
  .feature-row,
  .filmstrip,
  .feature-grid,
  .problem-grid,
  .stats-row,
  .tech-details,
  .openness-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reversed {
    direction: ltr;
  }

  .pipeline {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .pipeline-node {
    max-width: none;
    width: 100%;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .pipeline-arrow.visible {
    transform: rotate(90deg);
  }

  .problem-then-now {
    grid-template-columns: 1fr;
  }

  .problem-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-wordmark {
    font-size: clamp(3.5rem, 12vw, 7rem);
  }

  .storyboard-header .section-title {
    font-size: 2.2rem;
  }

  .navbar-links {
    display: none;
  }
}
