/* ============================================================
   LUMIÈRE AI — design tokens
   Concept: a dark signal-field. Every glow is a call that got
   answered. Amber = the light (the save). Cyan = raw signal/data.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* color — matched to the Lumière AI logo (violet → blue arc on near-black) */
  --bg: #05070f;
  --bg-raised: #10121c;
  --bg-raised-2: #171a28;
  --line: #262a40;
  --text: #eceef2;
  --text-muted: #8b8fa8;
  --text-faint: #565a75;
  --purple: #8836f0;
  --purple-dim: #5a2c96;
  --blue: #219feb;
  --gradient: linear-gradient(90deg, var(--purple), var(--blue));
  --danger: #ff6b6b;

  /* type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* layout */
  --max: 1180px;
  --edge: clamp(24px, 5vw, 64px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

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

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

/* faint ambient grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
  position: relative;
  z-index: 1;
}

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px 2px var(--purple);
}

.lede { color: var(--text-muted); font-size: 1.1rem; max-width: 46ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px 3px var(--purple); }
.brand .logo-img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.nav-links { display: flex; gap: 36px; font-size: 0.92rem; color: var(--text-muted); }
.nav-links a { transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--purple);
}
.nav-cta {
  font-family: var(--font-mono); font-size: 0.78rem;
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 8px;
  color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--purple); background: rgba(136,54,240,0.12); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line);
    color: var(--text); border-radius: 8px; padding: 8px 12px; font-family: var(--font-mono); font-size: 0.75rem;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 14px 24px; border-radius: 9px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--gradient); color: #ffffff; font-weight: 500; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(136,54,240,0.55); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }

/* ---------- sections ---------- */
section { position: relative; z-index: 1; padding: 96px 0; }
.section-tight { padding: 64px 0; }
.divider { border: none; border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding-top: 88px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--purple); }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- beacon signature diagram ---------- */
.beacon-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.beacon-card svg { width: 100%; height: auto; }
.beacon-caption { display: flex; justify-content: space-between; margin-top: 16px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.beacon-caption span:last-child { color: var(--purple); }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--purple-dim); transform: translateY(-2px); }

.stage-label {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.stat { text-align: left; }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--purple); }
.stat .label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- video demos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.video-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.25s;
}
.video-card:hover { border-color: var(--purple-dim); }
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-raised-2);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card h3 { font-size: 1.05rem; margin-top: 16px; }
.video-card p { font-size: 0.9rem; margin-top: 4px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .brand { font-size: 1rem; }
.footer-links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-fine { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); margin-top: 24px; }

/* ---------- forms ---------- */
form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple);
}
.field textarea { resize: vertical; min-height: 110px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.contact-side { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.contact-side a { color: var(--purple); }
.contact-side .item { margin-bottom: 22px; }
.contact-side .item div:first-child { color: var(--text-faint); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; margin-bottom: 6px; }

/* utility */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.text-muted { color: var(--text-muted); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
