/* ===== Le Caption — calm, precise, Apple-product-page feel ===== */
/* Palette anchored to the logo's warm indigo (icon gradient #9b99ff → #6b68f0 → #4d4bcf). */

:root {
  /* Neutrals — true near-whites, no warm tint */
  --bg: #ffffff;
  --bg-tint: #f5f5f7;          /* Apple-style off-white section */
  --ink: #1d1d1f;              /* primary text, ~16:1 on white */
  --ink-2: #515154;            /* secondary, ~7:1 on white */
  --ink-3: #6e6e73;            /* tertiary, ~4.6:1 on white */
  --hair: rgba(0, 0, 0, 0.10); /* hairline borders */

  /* Accent — warm indigo from the logo */
  --accent: #5d5ae0;           /* button bg, ~5.2:1 with white */
  --accent-strong: #4d4bcf;    /* hover / deep tone from the logo */
  --accent-ink: #4d4bcf;       /* accent text on light, ~6.5:1 */
  --accent-soft: #ecebff;

  /* Dark (Warmth) band */
  --dark-bg: #131417;
  --dark-surface: #1f2024;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #b7b8be;
  --dark-hair: rgba(255, 255, 255, 0.12);

  --status-green: #2f8f67;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;

  /* Fluid spacing scale */
  --space-section: clamp(64px, 10vw, 132px);
  --wrap: 1120px;
  --radius: 16px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-sticky: 100;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.08s var(--ease-out);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--sm { padding: 8px 18px; font-size: 15px; }
.btn--lg { padding: 14px 28px; font-size: 17px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: block;
  width: 32px; height: 32px;
  object-fit: contain;
}
.brand--footer .brand__mark { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.15s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #fff; }
.nav__links a.btn:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: var(--space-section);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.hero__title {
  margin: 0;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 16ch;
}
.hero__sub {
  margin: 22px auto 0;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.hero__note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

/* Hero product stage */
.stage { margin-top: clamp(48px, 7vw, 88px); width: 100%; }
.stage__scene {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(120% 120% at 50% 0%, #20242c 0%, #14161b 60%, #0e1014 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px -40px rgba(16, 22, 34, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6%;
}
.scene__glow {
  position: absolute;
  width: 70%; height: 60%;
  top: -10%; left: 15%;
  background: radial-gradient(closest-side, rgba(107, 104, 240, 0.34), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.scene__speaker { display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 1; }
.scene__avatar {
  font-size: clamp(32px, 6vw, 56px);
  width: clamp(72px, 11vw, 104px); height: clamp(72px, 11vw, 104px);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.scene__waves { display: flex; align-items: center; gap: 5px; height: 26px; }
.scene__waves span {
  width: 4px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  height: 30%;
}
.scene__lang { color: var(--dark-ink-2); font-size: 14px; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: no-preference) {
  .scene__waves span { animation: eq 1.1s var(--ease-out) infinite; }
  .scene__waves span:nth-child(1) { animation-delay: 0s; }
  .scene__waves span:nth-child(2) { animation-delay: 0.12s; }
  .scene__waves span:nth-child(3) { animation-delay: 0.24s; }
  .scene__waves span:nth-child(4) { animation-delay: 0.06s; }
  .scene__waves span:nth-child(5) { animation-delay: 0.30s; }
  .scene__waves span:nth-child(6) { animation-delay: 0.18s; }
  .scene__waves span:nth-child(7) { animation-delay: 0.09s; }
  @keyframes eq { 0%, 100% { height: 22%; } 50% { height: 96%; } }
}

.overlay-card {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 5%, 40px);
  transform: translateX(-50%);
  width: min(82%, 560px);
  background: rgba(16, 22, 34, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 22px 18px;
  text-align: center;
  z-index: 2;
}
.overlay-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #cdcbf6;
  letter-spacing: 0.01em;
}
.overlay-card__line {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 1.8s var(--ease-out) infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  }
}

/* ===== Sections ===== */
.section { padding: var(--space-section) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.section__title--invert { color: var(--dark-ink); }
.section__lead {
  margin: 16px auto 0;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  text-wrap: pretty;
}
.section__lead--invert { color: var(--dark-ink-2); }

/* ===== Steps (a real sequence — numbers earned) ===== */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}
.step { text-align: left; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}
.step__title { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.step__body { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }

/* ===== Personas ===== */
.personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.persona {
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
}
.section:not(.section--tint) .persona { background: var(--bg-tint); border-color: transparent; }
.persona__icon {
  font-size: 30px;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 18px;
}
.section--tint .persona__icon { background: var(--bg-tint); }
.persona__title { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.persona__body { margin: 0; color: var(--ink-2); line-height: 1.5; }

/* ===== Spotlight: for speakers ===== */
.spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.spotlight__eyebrow {
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 16px;
}
.spotlight__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.spotlight__lead {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.5;
  max-width: 46ch;
  text-wrap: pretty;
}
.spotlight__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.spotlight__points li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; color: var(--ink-2); }
.spotlight__points strong { color: var(--ink); font-weight: 600; }
.spotlight__pt-icon {
  flex: 0 0 auto;
  font-size: 18px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: 11px;
}

/* Visual: presenter + same line in several languages */
.room {
  background: radial-gradient(120% 120% at 50% 0%, #20242c 0%, #14161b 65%, #0e1014 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: clamp(18px, 3vw, 26px);
  box-shadow: 0 40px 80px -44px rgba(16, 22, 34, 0.5);
  padding: clamp(26px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.room__source { display: flex; align-items: center; gap: 14px; }
.room__avatar {
  font-size: 26px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.room__label { color: var(--dark-ink-2); font-size: 15px; letter-spacing: -0.01em; }
.room__captions { display: grid; gap: 12px; }
.room__cap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(16, 22, 34, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 13px 18px;
}
.room__flag { font-size: 22px; flex: 0 0 auto; }
.room__cap p {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 820px) {
  .spotlight__inner { grid-template-columns: 1fr; gap: 36px; }
  .spotlight__visual { order: -1; }
}

/* ===== Languages ===== */
.lang-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.lang-col {
  flex: 1 1 320px;
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
}
.section--tint .lang-col { background: var(--bg); }
.lang-col__label {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
.lang-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px;
  border-radius: 980px;
  background: var(--bg);
  border: 1px solid var(--hair);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.section--tint .chip { background: var(--bg-tint); }
.chip--accent { background: var(--accent); border-color: transparent; color: #fff; }
.lang-note { text-align: center; color: var(--ink-3); font-size: 15px; margin: clamp(28px, 4vw, 40px) 0 0; }

/* ===== Settings (concise) ===== */
.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 980px;
  margin: 0 auto;
}
.setting {
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 30px);
}
.setting__title {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.setting__title::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.setting__desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.45;
}

/* ===== Dark band — caption presets ===== */
.band {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: var(--space-section) 0;
}
.presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 1000px;
  margin: 0 auto;
}
.preset { margin: 0; }
.preset__stage {
  height: 150px;
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, #2b2f3a 0%, #1a1d24 100%);
  border: 1px solid var(--dark-hair);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.preset__stage--left { justify-content: flex-start; }
.preset__label {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--dark-ink-2);
  font-weight: 500;
}
.cap {
  font-family: "SF Pro Display", var(--font);
  color: #fff;
  text-align: center;
  border-radius: 9px;
  padding: 10px 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 100%;
}
.cap--default { background: rgba(5, 7, 10, 0.62); font-size: 20px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.cap--contrast { background: rgba(0, 0, 0, 0.92); font-size: 22px; font-weight: 700; }
.cap--large { background: rgba(5, 7, 10, 0.82); font-size: 30px; font-weight: 700; }
.cap--presentation { background: rgba(16, 42, 67, 0.9); font-size: 21px; font-weight: 600; }
.cap--lower { background: rgba(16, 24, 32, 0.86); font-size: 19px; font-weight: 600; text-align: left; }
.cap--minimal { background: rgba(0, 0, 0, 0.42); font-size: 18px; font-weight: 600; }

/* ===== Download ===== */
.download { text-align: center; }
.download__inner { max-width: 44rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.download__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.download__lead {
  margin: 0 0 30px;
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--hair);
  padding: 48px 0;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand--footer { font-size: 18px; }
.footer__tagline { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.footer__fine { margin: 0; font-size: 13px; color: var(--ink-3); }
.footer__credit { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.footer__credit a {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
}
.footer__credit a:hover { text-decoration: underline; }
.footer__metal { font-style: normal; }
.footer__sep { margin: 0 7px; color: var(--ink-3); }

/* ===== Reveal motion (enhances an already-visible default) ===== */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; max-width: 460px; gap: 32px; }
  .settings { grid-template-columns: 1fr; }
  .lang-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .hero__title { letter-spacing: -0.02em; }
  .lang-col { flex-basis: 100%; }
}
