/* Scenio landing pages (/, /fr/, /es/) - Ember Darkroom (DESIGN.md).
   Static, zero-JS, shared by every language. Raw color values are allowed
   here (this file plays the role theme.css plays for the app). */

:root {
  --bg-deep: #050505;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --glass: rgba(20, 20, 20, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececec;
  --text-dim: rgba(236, 236, 236, 0.55);
  --text-faint: rgba(236, 236, 236, 0.32);
  --text-strong: #ffffff;
  --accent: #f6821f;
  --accent-hover: #ff9b45;
  --accent-contrast: #16100a;
  --info: #8ab4ff;
  --music: #40d2be;
  --voice: #a78bfa;
  --ok: #7dffa8;
  --radius: 10px;
  --radius-lg: 16px;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-brand: "Unbounded", "Inter", sans-serif;
}

/* Light theme: same warm paper tokens as the app (src/theme.css), same
   data-mode attribute and localStorage key, so the choice follows the user
   between the landing and the studio. */
html[data-mode="light"] {
  /* Warm paper, never stark white (mirrors src/theme.css). */
  --bg-deep: #eae6db;
  --bg: #f4f1e8;
  --surface: #fbf9f3;
  --surface-2: #eeeadf;
  --glass: rgba(251, 249, 243, 0.7);
  --line: rgba(24, 18, 8, 0.1);
  --line-strong: rgba(24, 18, 8, 0.2);
  --text: #1d1a15;
  --text-dim: rgba(29, 26, 21, 0.62);
  --text-faint: rgba(29, 26, 21, 0.42);
  --text-strong: #000000;
  --accent: #ea690b;
  --accent-hover: #f6821f;
  --accent-contrast: #ffffff;
  --info: #2e63c9;
  --music: #0f8a7a;
  --voice: #6d4fd2;
  --ok: #0f8a4d;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

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

/* Darkroom atmosphere: one ember glow high up, film grain over everything. */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.atmosphere::before {
  content: "";
  position: absolute;
  top: -30vh;
  left: 50%;
  width: 120vmax;
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(246, 130, 31, 0.14), transparent 60%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-mode="light"] .atmosphere::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(234, 105, 11, 0.1), transparent 60%);
}
html[data-mode="light"] .atmosphere::after { opacity: 0.03; }

main { position: relative; z-index: 1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.micro {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
}
html[data-mode="light"] .topbar { background: rgba(244, 241, 232, 0.72); }
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-strong);
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--accent); }
.topnav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 13px;
  color: var(--text-dim);
}
.topnav a:hover { color: var(--text-strong); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 9999px; padding: 2px; }
.langs a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--text-faint);
}
.langs a:hover { color: var(--text-strong); }
.langs a[aria-current="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* theme toggle: crescent in dark mode, ember sun in light mode */
.theme-toggle {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}
.theme-toggle:hover { border-color: var(--text-faint); }
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 9999px;
  box-shadow: inset 5px -3px 0 0 var(--text-dim);
}
html[data-mode="light"] .theme-toggle::before {
  inset: 11px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 var(--font-ui);
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text-strong); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.hero-copy > * { opacity: 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 14px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--text-dim); max-width: 46ch; font-size: 16px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* hero gallery mock: "the chrome recedes, the gallery glows" */
.reel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  opacity: 0;
  animation: rise 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.frame.wide { grid-column: span 2; aspect-ratio: 16 / 7; }
.frame .tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px 9px;
}
.f-dawn { background: linear-gradient(160deg, #2b1c3d 0%, #713057 45%, #d96f3a 80%, #f2b263 100%); }
.f-product { background: radial-gradient(circle at 35% 30%, #3d5a66 0%, #16242b 60%, #0a1114 100%); }
.f-portrait { background: linear-gradient(200deg, #1f2937 0%, #374b63 55%, #8a6d4f 100%); }

/* the "rendering" frame: shimmer + ember progress */
.f-render { background: linear-gradient(160deg, #131313, #1d1d1d); }
.f-render::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
.f-render .bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 40px;
  height: 3px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.f-render .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 62%;
  border-radius: inherit;
  background: var(--accent);
  animation: fill 3.4s ease-in-out infinite alternate;
}
@keyframes fill { from { width: 34%; } to { width: 86%; } }

/* play badge on the wide frame */
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 12px solid var(--text-strong);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* ---------- modality strip ---------- */
.modes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.modes .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 18px 24px;
  justify-content: center;
}
.mode {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mode i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent);
  display: inline-block;
}
.mode.m-video i { background: var(--ok); }
.mode.m-audio i { background: var(--music); }
.mode.m-voice i { background: var(--voice); }
.mode.m-text i { background: var(--info); }

/* ---------- model wall (platform section) ---------- */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.wall .frame { aspect-ratio: 4 / 3; }
.f-cine { background: linear-gradient(165deg, #101c2e 0%, #1e3a52 55%, #6c8ba3 100%); }
.f-neon { background: linear-gradient(200deg, #170b2e 0%, #4a1d6e 55%, #b0489a 100%); }
.f-forest { background: radial-gradient(circle at 30% 70%, #1d3a2a 0%, #0c1712 70%); }
.f-gold { background: radial-gradient(circle at 60% 35%, #8a6430 0%, #3a2a12 60%, #16100a 100%); }
.f-sea { background: linear-gradient(180deg, #0b2530 0%, #14505c 60%, #2e8c8c 100%); }
.f-mono { background: linear-gradient(170deg, #2c2c2c 0%, #101010 70%); }

/* equalizer bars on the music tile */
.wave {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 26px;
}
.wave i { flex: 1; background: rgba(255, 255, 255, 0.6); border-radius: 2px; height: 30%; animation: eq 0.9s ease-in-out infinite alternate; }
.wave i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.wave i:nth-child(3) { height: 45%; animation-delay: 0.24s; }
.wave i:nth-child(4) { height: 90%; animation-delay: 0.06s; }
.wave i:nth-child(5) { height: 55%; animation-delay: 0.3s; }
.wave i:nth-child(6) { height: 75%; animation-delay: 0.18s; }
@keyframes eq { from { transform: scaleY(0.5); } to { transform: scaleY(1); } }

/* stat trio (platform + pricing) */
.stat-panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 560px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-brand);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-strong);
  margin: 12px 0 10px;
}
.section-head p { color: var(--text-dim); }

/* features */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 15px; font-weight: 600; color: var(--text-strong); margin: 12px 0 6px; }
.card p { font-size: 13.5px; color: var(--text-dim); }
.card .micro { color: var(--accent); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; counter-reset: step; }
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.step .n {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 15px; font-weight: 600; color: var(--text-strong); margin: 10px 0 6px; }
.step p { font-size: 13.5px; color: var(--text-dim); }

/* pricing */
.pstat .v {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pstat p { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

/* final cta */
.final { text-align: center; padding: 96px 0 110px; }
.final h2 {
  font-family: var(--font-brand);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.15;
  margin: 12px 0 26px;
}
.final h2 em { font-style: normal; color: var(--accent); }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg); }
footer .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
footer .langs { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .topnav { display: none; }
  section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .reel { opacity: 1; }
}

/* Live model strip (the models section): latest + top catalog models, house
   thumbnails fetched from the API at view time; hidden until data lands. */
.model-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.model-strip a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.model-strip a:hover { border-color: var(--line-strong); }
.model-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.model-strip .mname {
  display: block;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-strip .mmeta {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 10px 9px;
  font-size: 11px;
  color: var(--text-dim);
}
.model-strip .mnew {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* Featured model chip on the category frames: the live top model's name,
   injected by the highlights script (proof the catalog stays current). */
.frame .mfeat {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 130, 31, 0.6);
  border-radius: 9999px;
  padding: 4px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
