/* ========== ECLAIR AERO — DESIGN SYSTEM ========== */

:root {
  /* Brand */
  --brand-blue: oklch(48% 0.18 255);
  --brand-blue-deep: oklch(32% 0.14 258);
  --brand-blue-bright: oklch(62% 0.19 250);

  /* Neutrals — warm */
  --warm-white: oklch(96% 0.008 80);
  --warm-cream: oklch(92% 0.012 78);
  --warm-stone: oklch(70% 0.012 70);

  /* Dark */
  --midnight: oklch(14% 0.02 258);
  --midnight-deep: oklch(9% 0.018 258);
  --midnight-soft: oklch(20% 0.025 258);
  --midnight-line: oklch(28% 0.02 258);

  /* Light theme defaults */
  --bg: var(--warm-white);
  --bg-elevated: #fff;
  --bg-inset: var(--warm-cream);
  --text: var(--midnight);
  --text-muted: oklch(38% 0.018 258);
  --text-subtle: oklch(55% 0.014 258);
  --line: oklch(86% 0.012 80);
  --line-strong: oklch(72% 0.012 80);
  --accent: var(--brand-blue);
  --accent-hover: var(--brand-blue-deep);

  /* Type */
  --font-display: 'Geist', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --radius: 2px;
  --radius-md: 6px;
  --radius-lg: 14px;

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-base: 320ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);
}

[data-theme="dark"] {
  --bg: var(--midnight);
  --bg-elevated: var(--midnight-soft);
  --bg-inset: var(--midnight-deep);
  --text: var(--warm-white);
  --text-muted: oklch(75% 0.014 80);
  --text-subtle: oklch(58% 0.012 80);
  --line: var(--midnight-line);
  --line-strong: oklch(38% 0.022 258);
  --accent: var(--brand-blue-bright);
  --accent-hover: oklch(72% 0.16 248);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t-base), color var(--t-base);
}

body { overflow-x: hidden; }

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

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

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ========== UTILITIES ========== */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.display { font-family: var(--font-display); letter-spacing: -0.04em; line-height: 0.95; font-weight: 500; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  font-weight: 500;
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 32px;
}
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
  transition: all var(--t-base);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.nav-logo-mark svg { width: 100%; height: 100%; }
.nav-center {
  display: flex; gap: 28px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: var(--accent);
}
.nav-right {
  display: flex; align-items: center; gap: 18px;
}
.nav-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(72% 0.18 145);
  box-shadow: 0 0 0 3px color-mix(in oklch, oklch(72% 0.18 145) 25%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========== BUTTON ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: color-mix(in oklch, var(--text) 4%, transparent);
}
.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: all var(--t-fast);
}
.btn-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  gap: 12px;
}

/* ========== PLACEHOLDER IMAGE ========== */
.placeholder-img {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklch, var(--bg-inset) 90%, var(--text)) 0 1px,
      transparent 1px 8px
    ),
    var(--bg-inset);
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.placeholder-img::before {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 2px;
  border: 1px solid var(--line);
}

/* ========== SECTION HEADER ========== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.55;
}

/* ========== FOCUS RING ========== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* tweaks panel z-index above all */
[data-tweaks-root] { z-index: 9999 !important; }

/* scroll smoothness */
html { scroll-behavior: smooth; }
