:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b15;
  color: #edf1ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(26, 148, 255, .23), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(164, 54, 255, .20), transparent 30%),
    #080b15;
}

/* Accueil : sphère WebGL locale et texture réelle NASA Blue Marble, sans interaction. */
.ambient-earth {
  position: fixed;
  z-index: 0;
  top: clamp(16px, 4vw, 54px);
  right: clamp(-130px, -9vw, -40px);
  width: clamp(240px, 35vw, 440px);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
  border-radius: 50%;
  opacity: .44;
  background: #06182d;
  box-shadow: inset -44px -18px 50px rgba(0, 0, 0, .50), inset 16px 8px 26px rgba(180, 228, 255, .28), 0 0 90px rgba(41, 136, 255, .16);
}
.ambient-earth::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(216, 242, 255, .22), transparent 30%), linear-gradient(110deg, transparent 50%, rgba(0, 0, 0, .34) 78%);
  pointer-events: none;
}
.ambient-earth canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ambient-earth--unsupported { background: #06182d url("/media/nasa-blue-marble-next-generation.jpg") center / cover; }

.founder-audio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr); gap: 22px; align-items: center; border-left: 4px solid #8fe3bc; }
.founder-audio__copy > p { margin-bottom: 0; color: #b5c0df; line-height: 1.55; }
.founder-audio__controls { display: grid; gap: 12px; }
.founder-audio__controls button { justify-self: start; }
.founder-audio__player { width: 100%; min-height: 44px; accent-color: #72d7ff; }
.earth-credit { margin: 14px 4px 0; color: #91a1c5; font-size: .78rem; }
.earth-credit a { color: #9edfff; }

[hidden] { display: none !important; }
.shell { position: relative; z-index: 1; width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 64px; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 26px; }
.brand > div { min-width: 0; flex: 1 1 240px; }
.brand img { width: 112px; height: 112px; object-fit: cover; border-radius: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .38); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(1.6rem, 7vw, 3.2rem); letter-spacing: -.05em; }
h2 { margin-bottom: 8px; font-size: clamp(1.2rem, 5.5vw, 1.45rem); }
h1, h2, h3, p, li { overflow-wrap: anywhere; }
.eyebrow { margin-bottom: 8px; color: #72d7ff; font-weight: 800; font-size: .75rem; letter-spacing: .13em; }
.subheading, .panel-heading > p { color: #b5c0df; line-height: 1.55; }
.notice, .panel { border: 1px solid rgba(154, 177, 244, .19); background: rgba(17, 23, 42, .76); box-shadow: 0 18px 60px rgba(0, 0, 0, .18); backdrop-filter: blur(14px); }
.notice { border-left: 4px solid #915cff; margin-bottom: 18px; padding: 15px 17px; border-radius: 12px; color: #dce3fa; line-height: 1.5; }
.panel { margin-top: 18px; padding: clamp(22px, 5vw, 36px); border-radius: 18px; }
.panel-heading { max-width: 600px; }
.list-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; }
label { display: block; margin: 26px 0 8px; font-weight: 700; }
input { display: block; width: 100%; border: 1px solid #455076; border-radius: 10px; background: #0b1021; color: #fff; font: inherit; padding: 13px 14px; outline: none; }
input:focus { border-color: #61cfff; box-shadow: 0 0 0 4px rgba(97, 207, 255, .18); }
.field-help { margin: 8px 0 18px; color: #9eacca; font-size: .9rem; }
button { border: 0; border-radius: 10px; background: linear-gradient(110deg, #26b9ed, #7c55f5); color: #fff; cursor: pointer; font: inherit; font-weight: 800; padding: 12px 17px; transition: opacity .15s ease, transform .15s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .6; }
button.secondary { background: transparent; border: 1px solid #566385; color: #dce5ff; white-space: nowrap; }
.feedback { min-height: 24px; margin: 17px 0 0; color: #b5c0df; line-height: 1.45; }
.feedback.success { color: #8fe3bc; }
.feedback.error { color: #ffb0b7; }
.project-list { display: grid; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.project-list li { display: grid; gap: 5px; padding: 14px 15px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 10px; background: rgba(9, 14, 29, .72); }
.project-list li > * { min-width: 0; }
.project-list li strong, .project-list li span, .project-list li p { overflow-wrap: anywhere; }
.project-list li span { color: #a9b5d3; font-size: .89rem; }
.project-list li.empty { color: #b5c0df; font-style: italic; }
.project-list details, .project-list pre { min-width: 0; max-width: 100%; }
.project-list pre { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 900px); padding-top: 28px; }
  .brand { align-items: flex-start; gap: 14px; }
  .brand img { width: 64px; height: 64px; border-radius: 16px; }
  .list-heading { align-items: stretch; flex-direction: column; }
  button { white-space: normal; overflow-wrap: anywhere; }
  button.secondary { width: 100%; white-space: normal; }
  .ambient-earth { top: 4px; right: -138px; width: 280px; opacity: .24; }
  .founder-audio { grid-template-columns: 1fr; gap: 15px; }
}

.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.auth-grid .panel { margin-top: 0; }
.auth-grid label:first-of-type { margin-top: 22px; }
.workspace-email { margin: 20px 0 8px; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 760px) { .auth-grid { grid-template-columns: 1fr; } }

.auth-dashboard {
  background:
    radial-gradient(circle at 20% 0%, rgba(121, 67, 230, .23), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(79, 43, 160, .18), transparent 28rem),
    #070914;
}
.auth-shell { width: min(1120px, calc(100% - 32px)); }
.auth-brand {
  padding: 22px; border: 1px solid rgba(160, 140, 255, .2); border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 20, 38, .94), rgba(9, 11, 25, .96));
}
.auth-brand img { border: 1px solid rgba(171, 126, 255, .34); }
.auth-promise {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0;
}
.auth-promise div, .auth-services span {
  border: 1px solid rgba(160, 140, 255, .18); background: rgba(12, 14, 30, .84);
}
.auth-promise div { display: grid; gap: 5px; padding: 16px; border-radius: 13px; }
.auth-promise span { color: #aaa4c4; font-size: .9rem; line-height: 1.4; }
.auth-card { position: relative; overflow: hidden; border-color: rgba(156, 104, 255, .3); }
.auth-card::before {
  position: absolute; inset: 0 auto 0 0; width: 3px; content: "";
  background: linear-gradient(#9c68ff, #6334ba);
}
.auth-card--login { background: linear-gradient(145deg, rgba(25, 19, 45, .9), rgba(12, 15, 31, .95)); }
.auth-card button { width: 100%; margin-top: 5px; }
.auth-services { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.auth-services span { padding: 10px 13px; border-radius: 999px; color: #d9d4e8; font-size: .86rem; }
.auth-secondary { background: rgba(12, 14, 30, .72); }
.account-id { margin: -4px 0 0; color: #a9a4bd; font-size: .78rem; }
.account-id strong { color: #dcd5f2; font-weight: 600; }
.owner-badge {
  display: inline-flex; vertical-align: middle; margin-left: 7px; padding: 6px 9px;
  border: 1px solid rgba(177, 123, 255, .4); border-radius: 999px;
  background: rgba(121, 68, 214, .22); color: #d7b9ff; font-size: .68rem;
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  .auth-shell { width: min(100% - 24px, 1120px); }
  .auth-promise { grid-template-columns: 1fr; }
  .auth-brand { padding: 18px; }
  .account-id strong { display: block; margin-top: 3px; }
}

/* AI-DEVHUB — studio musique et administration : interface sobre, mobile-first, sans effet sonore ni thème événementiel. */
textarea, select { display: block; width: 100%; border: 1px solid #455076; border-radius: 10px; background: #0b1021; color: #fff; font: inherit; padding: 13px 14px; outline: none; }
textarea { resize: vertical; min-height: 120px; }
textarea:focus, select:focus { border-color: #61cfff; box-shadow: 0 0 0 4px rgba(97, 207, 255, .18); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module-card { border-left: 4px solid #72d7ff; }
.button-link { display: inline-block; border-radius: 10px; background: linear-gradient(110deg, #26b9ed, #7c55f5); color: #fff; font: inherit; font-weight: 800; padding: 12px 17px; text-decoration: none; }
.button-link.secondary { background: transparent; border: 1px solid #566385; color: #dce5ff; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.connected-home { overflow: hidden; }
.connected-home__heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
.connected-home__heading h2 { margin-bottom: 4px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-card { display: grid; gap: 7px; min-width: 0; padding: 18px; border: 1px solid rgba(114, 215, 255, .22); border-radius: 14px; background: linear-gradient(145deg, rgba(12, 27, 49, .92), rgba(14, 17, 39, .92)); }
.dashboard-card span, .dashboard-card small { color: #aeb9d8; }
.dashboard-card strong { overflow-wrap: anywhere; color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.05; }
.dashboard-card a { width: fit-content; color: #8fe3bc; font-weight: 800; text-decoration: none; }
.dashboard-card a:hover, .dashboard-card a:focus-visible { text-decoration: underline; }
.dashboard-recent { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 14px; padding: 18px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 14px; background: rgba(9, 14, 29, .72); }
.dashboard-recent h3 { margin: 0 0 6px; }
.dashboard-recent p { margin: 0; color: #c7d0e8; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.inline-form label { margin-top: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.summary-card { display: grid; gap: 5px; padding: 18px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: rgba(9, 14, 29, .72); }
.summary-card strong { font-size: 1.7rem; color: #72d7ff; }
.summary-card span { color: #b5c0df; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .form-grid, .summary-grid, .inline-form, .dashboard-grid { grid-template-columns: 1fr; } .workspace-actions > * { width: 100%; text-align: center; } .connected-home__heading, .dashboard-recent { align-items: stretch; flex-direction: column; } .connected-home__heading .button-link, .dashboard-recent .button-link { width: 100%; text-align: center; } }

.connected-dashboard {
  background:
    radial-gradient(circle at 70% 0%, rgba(126, 72, 255, .16), transparent 32rem),
    #070914;
  color: #f5f3ff;
}
.connected-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.connected-sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column;
  border-right: 1px solid rgba(160, 140, 255, .18); background: rgba(8, 10, 23, .94);
}
.connected-brand { display: flex; gap: 11px; align-items: center; color: #fff; text-decoration: none; margin: 0 8px 24px; }
.connected-brand img { border-radius: 14px; }
.connected-brand span { display: grid; }
.connected-brand strong { letter-spacing: .04em; }
.connected-brand small { color: #aaa4c4; }
.connected-sidebar nav { display: grid; gap: 5px; }
.connected-sidebar nav a {
  display: flex; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid transparent;
  border-radius: 11px; color: #c8c4d8; text-decoration: none;
}
.connected-sidebar nav a:hover, .connected-sidebar nav a.active {
  color: #fff; border-color: rgba(151, 105, 255, .25);
  background: linear-gradient(90deg, rgba(123, 73, 230, .34), rgba(123, 73, 230, .08));
}
.connected-sidebar nav a span { width: 20px; color: #a879ff; text-align: center; }
.connected-sidebar__footer { margin-top: auto; padding: 15px 8px 0; border-top: 1px solid rgba(160, 140, 255, .15); }
.connected-sidebar__footer .workspace-email { margin: 0 0 4px; font-size: .8rem; }
.connected-sidebar__footer button { width: 100%; margin-top: 9px; }
.connected-main { width: min(1220px, 100%); padding: 28px; margin: 0 auto; }
.connected-main > section { margin-bottom: 18px; }
.connected-home, .service-launchpad {
  padding: 24px; border: 1px solid rgba(160, 140, 255, .18); border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 20, 38, .96), rgba(9, 11, 25, .98));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .2);
}
.connected-home__heading h1 { margin: 0 0 5px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.connected-home__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.chief-hero {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: center;
  min-height: 290px; margin: 20px 0; padding: 28px; overflow: hidden; border-radius: 17px;
  border: 1px solid rgba(174, 127, 255, .25);
  background: radial-gradient(circle at 8% 30%, rgba(141, 82, 255, .3), transparent 18rem), #0b0e1b;
}
.chief-hero__identity { display: grid; place-items: center; }
.chief-hero__identity span {
  display: grid; place-items: center; width: 150px; aspect-ratio: 1; border-radius: 40% 60% 52% 48%;
  font-size: 3rem; font-weight: 900; color: #fff; border: 1px solid #af7aff;
  background: linear-gradient(145deg, #7f45dd, #171127 65%); box-shadow: 0 0 55px rgba(142, 77, 255, .42);
}
.chief-hero__copy h2 { max-width: 700px; font-size: clamp(1.6rem, 3vw, 2.5rem); margin: 4px 0 10px; }
.chief-hero__copy > p:not(.eyebrow) { max-width: 720px; color: #bdb8d0; line-height: 1.65; }
.chief-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chief-live {
  margin: 0 0 20px; padding: 20px; border: 1px solid rgba(160, 140, 255, .2);
  border-radius: 15px; background: rgba(9, 12, 27, .88);
}
.chief-live__head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.chief-live__head h2 { margin: 2px 0 4px; }
.chief-live__head p { margin: 0; color: #aaa4c4; }
.chief-live__head > strong { font-size: 1.8rem; color: #b98cff; white-space: nowrap; }
.chief-live__bar { height: 7px; margin: 15px 0; overflow: hidden; border-radius: 99px; background: #20223b; }
.chief-live__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8148e8, #bd8dff); transition: width .4s ease; }
.chief-live__experts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chief-live__experts span { padding: 7px 10px; border-radius: 99px; color: #d9d4e8; background: #171a31; font-size: .8rem; }
.chief-live__experts span[data-status="working"] { color: #e8dfff; border: 1px solid #7f50cf; }
.chief-live__tasks { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.chief-live__tasks li { display: flex; justify-content: space-between; gap: 15px; padding: 10px 12px; border-radius: 9px; background: rgba(23, 26, 49, .7); }
.chief-live__tasks li[data-status="completed"] span { color: #8fe0b1; }
.chief-live__tasks li[data-status="in_progress"],
.chief-live__tasks li[data-status="working"],
.chief-live__tasks li[data-status="running"] { border-left: 3px solid #aa78ff; }
.chief-live__tasks small { color: #928ca6; white-space: nowrap; }
@media (max-width: 480px) {
  .chief-live__tasks li { flex-direction: column; gap: 4px; }
  .chief-live__tasks small { white-space: normal; }
}
.chief-live__approval { margin-top: 12px; padding: 11px 12px; border-radius: 9px; color: #aaa4c4; background: rgba(17, 20, 39, .8); }
.chief-live__approval[data-pending="true"] { color: #ffd996; border: 1px solid rgba(255, 188, 75, .35); background: rgba(80, 53, 12, .22); }
.chief-live__conversation { display: grid; gap: 8px; margin-top: 14px; }
.chief-live__conversation p { display: grid; gap: 3px; max-width: 82%; margin: 0; padding: 10px 12px; border-radius: 10px; background: #171a31; }
.chief-live__conversation p[data-role="client"] { margin-left: auto; background: rgba(113, 66, 191, .28); }
.chief-live__conversation strong { color: #b98cff; font-size: .76rem; }
.chief-live__conversation span { color: #ded9eb; line-height: 1.45; }
.chief-live__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.connected-main .dashboard-card {
  border-color: rgba(160, 140, 255, .16); background: rgba(10, 13, 28, .86);
}
.service-launchpad > div:first-child { margin-bottom: 18px; }
.service-launchpad__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-launchpad__grid a {
  min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 18px;
  border: 1px solid rgba(160, 140, 255, .16); border-radius: 13px; color: #fff; text-decoration: none;
  background: rgba(10, 13, 28, .85);
}
.service-launchpad__grid a:hover { border-color: #a879ff; transform: translateY(-2px); }
.service-launchpad__grid span { margin-top: 6px; color: #aaa4c4; font-size: .88rem; line-height: 1.4; }
.connected-main > .panel { background: #0d1020; border-color: rgba(160, 140, 255, .18); }
@media (max-width: 900px) {
  .connected-layout { grid-template-columns: 1fr; }
  .connected-sidebar { position: static; height: auto; }
  .connected-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connected-sidebar__footer { margin-top: 20px; }
  .chief-hero { grid-template-columns: 1fr; }
  .chief-hero__identity { display: none; }
  .service-launchpad__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .connected-main { padding: 12px; }
  .connected-home, .service-launchpad { padding: 17px; }
  .connected-sidebar nav { grid-template-columns: 1fr 1fr; }
  .connected-sidebar nav a { font-size: .82rem; padding: 9px; }
  .chief-hero { padding: 20px; min-height: 0; }
  .chief-hero__actions > * { width: 100%; text-align: center; }
  .connected-home__actions > *, .chief-live__actions > * { width: 100%; text-align: center; }
  .service-launchpad__grid { grid-template-columns: 1fr; }
}

/* ÉclatMémoire : les états et les preuves sont issus du backend, jamais d'un minuteur visuel. */
.section-divider { height: 1px; margin: 34px 0; background: rgba(154, 177, 244, .18); }
.render-state { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 18px 0 0; padding: 15px; border: 1px solid rgba(114, 215, 255, .32); border-radius: 12px; background: rgba(10, 25, 45, .72); }
.render-state strong { color: #72d7ff; font-size: 1.4rem; }
.render-state span { color: #dce5ff; line-height: 1.4; }
.transparency { max-height: 480px; margin: 18px 0 0; padding: 16px; overflow: auto; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: #070b17; color: #c7d5ff; font: .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-answer { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.footer-link { margin: 28px 0 0; text-align: center; }
.footer-link a { color: #9edfff; }
@media (max-width: 600px) { .render-state { grid-template-columns: 1fr; gap: 6px; } }

/* Studio Montage IA long format : l’interface reste légère ; les calculs sont traités par le worker. */
.longform-shell { width: min(1080px, calc(100% - 32px)); }
.checkbox-field { display: flex; gap: 10px; align-items: center; padding-top: 30px; }
.checkbox-field input { width: 20px; height: 20px; accent-color: #61cfff; }
.checkbox-field label { margin: 0; }
.compact-panel { margin-top: 26px; padding: 18px; }
.compact-panel summary { cursor: pointer; color: #9edfff; font-weight: 800; }
@media (max-width: 600px) { .longform-shell { width: min(100% - 24px, 1080px); } .checkbox-field { padding-top: 0; } }

/* Agence IA : le plan, les experts et les validations reflètent exclusivement l’état serveur. */
.agency-shell { width: min(1120px, calc(100% - 32px)); }
.agency-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agency-entry { box-shadow: 0 0 0 1px rgba(114, 215, 255, .25), 0 10px 30px rgba(38, 185, 237, .16); }
.agency-command { border-color: rgba(114, 215, 255, .38); }
.agency-chief { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 26px; }
.agency-chief p { margin-bottom: 0; color: #b5c0df; line-height: 1.5; }
.agency-chief-mark, .agency-expert-mark { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(114, 215, 255, .52); border-radius: 16px; background: linear-gradient(145deg, rgba(38, 185, 237, .3), rgba(124, 85, 245, .35)); color: #fff; font-weight: 900; }
.agency-chief-mark { width: 64px; height: 64px; font-size: 1.25rem; box-shadow: 0 0 32px rgba(114, 215, 255, .18); }
.agency-chief-compact { margin: 22px 0 30px; padding: 18px; border: 1px solid rgba(114, 215, 255, .24); border-radius: 14px; background: rgba(8, 18, 35, .72); }
.agency-mission-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.agency-status, .agency-expert-state, .agency-task-state { display: inline-block; border: 1px solid rgba(114, 215, 255, .32); border-radius: 999px; background: rgba(19, 57, 82, .55); color: #9edfff; font-size: .78rem; font-weight: 800; padding: 6px 10px; white-space: nowrap; }
.agency-status[data-status="awaiting_approval"] { border-color: rgba(255, 196, 95, .5); background: rgba(101, 69, 10, .4); color: #ffd58e; }
.agency-status[data-status="approved"], .agency-status[data-status="completed"] { border-color: rgba(143, 227, 188, .45); background: rgba(17, 82, 57, .4); color: #8fe3bc; }
.agency-expert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 30px; }
.agency-expert { display: flex; gap: 13px; align-items: center; min-width: 0; padding: 15px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: rgba(9, 14, 29, .72); }
.agency-expert > div { min-width: 0; }
.agency-expert-mark { width: 44px; height: 44px; border-radius: 12px; font-size: .8rem; }
.agency-expert p { margin: 4px 0 8px; color: #a9b5d3; font-size: .86rem; overflow-wrap: anywhere; }
.agency-task-list { display: grid; gap: 11px; margin: 14px 0 30px; padding: 0; list-style: none; counter-reset: agency-task; }
.agency-task-list li { position: relative; min-width: 0; padding: 17px 17px 17px 56px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: rgba(9, 14, 29, .72); counter-increment: agency-task; }
.agency-task-list li::before { position: absolute; top: 17px; left: 17px; display: grid; place-items: center; width: 27px; height: 27px; content: counter(agency-task); border-radius: 50%; background: rgba(114, 215, 255, .14); color: #9edfff; font-weight: 900; }
.agency-task-list li > div { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.agency-task-list p { margin: 7px 0; color: #c3cce2; line-height: 1.45; overflow-wrap: anywhere; }
.agency-task-list small { color: #8e9bb9; }
.agency-task-list li[data-status="ready"] { border-color: rgba(143, 227, 188, .38); }
.agency-approval { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px; border: 1px solid rgba(255, 196, 95, .42); border-radius: 14px; background: rgba(72, 50, 12, .34); }
.agency-approval p:last-child { margin: 7px 0 0; color: #d9c79d; font-size: .88rem; }
.agency-events { margin-top: 28px; }
.agency-events summary { cursor: pointer; color: #9edfff; font-weight: 800; }
@media (max-width: 700px) {
  .agency-shell { width: min(100% - 24px, 1120px); }
  .agency-summary, .agency-expert-grid { grid-template-columns: 1fr; }
  .agency-mission-header, .agency-approval { align-items: stretch; flex-direction: column; }
  .agency-approval button { width: 100%; }
  .agency-task-list li > div { flex-direction: column; }
  .agency-task-state { align-self: flex-start; }
}

/* Atelier du Chef IA — maquette conversation */
.chief-studio { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 0; margin: 26px 0; border: 1px solid rgba(154, 177, 244, .18); border-radius: 18px; background: rgba(7, 11, 24, .92); overflow: hidden; }
.chief-studio[data-details="open"] { grid-template-columns: 272px minmax(0, 1fr) 380px; }
.chief-studio__side { display: flex; flex-direction: column; gap: 18px; padding: 20px 16px; border-right: 1px solid rgba(154, 177, 244, .14); background: rgba(11, 16, 33, .96); }
.chief-studio__project strong { display: block; margin: 6px 0; color: #f2f5ff; font-size: 1.02rem; }
.chief-studio__nav { display: grid; gap: 4px; }
.chief-studio__tab { width: 100%; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #b9c4e0; font-size: .92rem; font-weight: 600; text-align: left; cursor: pointer; }
.chief-studio__tab:hover { background: rgba(114, 215, 255, .08); color: #eaf1ff; }
.chief-studio__tab.is-active { border-color: rgba(114, 215, 255, .38); background: rgba(114, 215, 255, .12); color: #9edfff; }
.chief-studio__gauge { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.chief-gauge { --gauge: 0; display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#7c55f5 calc(var(--gauge) * 1%), rgba(154, 177, 244, .16) 0); }
.chief-gauge span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #0b1021; color: #eaf1ff; font-size: .86rem; font-weight: 800; }
.chief-studio__state strong { display: block; color: #eaf1ff; font-size: .9rem; }
.chief-side-tasks { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.chief-side-tasks li { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 9px 11px; border: 1px solid rgba(154, 177, 244, .16); border-left: 3px solid rgba(154, 177, 244, .16); border-radius: 10px; background: rgba(9, 14, 29, .7); }
.chief-side-tasks li[data-status="in_progress"], .chief-side-tasks li[data-status="working"], .chief-side-tasks li[data-status="running"] { border-left-color: #aa78ff; }
.chief-side-tasks li[data-status="completed"] { border-left-color: #8fe3bc; }
.chief-side-tasks strong { color: #dde5f8; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.chief-side-tasks span { color: #8e9bb9; font-size: .74rem; white-space: nowrap; }
.chief-studio__all-tasks { width: 100%; }
.chief-studio__user { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(154, 177, 244, .14); }
.chief-studio__avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(145deg, rgba(38, 185, 237, .32), rgba(124, 85, 245, .38)); color: #fff; font-weight: 800; }
.chief-studio__user strong { display: block; color: #eaf1ff; font-size: .84rem; overflow-wrap: anywhere; }
.chief-studio__user small { color: #8e9bb9; }
.chief-studio__main { display: flex; flex-direction: column; min-width: 0; min-height: 560px; }
.chief-studio__topbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(154, 177, 244, .14); }
.chief-studio__topbar h2 { margin: 0; font-size: 1.04rem; }
.chief-studio__online { color: #8fe3bc; font-size: .8rem; font-weight: 700; }
.chief-studio__online::before { content: "● "; }
.chief-studio__live { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(154, 177, 244, .1); }
.chief-studio__live .agency-chief-mark { width: 40px; height: 40px; font-size: .82rem; }
.chief-studio__live p { margin: 2px 0 0; color: #c3cce2; }
.chief-thread { display: grid; gap: 14px; flex: 1 1 auto; margin: 0; padding: 20px; list-style: none; overflow-y: auto; max-height: 52vh; }
.chief-bubble { display: grid; gap: 5px; max-width: 76%; padding: 14px 16px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 16px; background: rgba(12, 18, 38, .85); }
.chief-bubble--chief { justify-self: start; border-bottom-left-radius: 6px; }
.chief-bubble--client { justify-self: end; border-bottom-right-radius: 6px; background: linear-gradient(145deg, rgba(38, 185, 237, .18), rgba(124, 85, 245, .2)); }
.chief-bubble strong { color: #9edfff; font-size: .82rem; }
.chief-bubble--client strong { color: #d7c9ff; }
.chief-bubble span { color: #e4ebfb; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chief-bubble small { color: #8e9bb9; font-size: .74rem; }
.chief-composer { padding: 14px 20px 18px; border-top: 1px solid rgba(154, 177, 244, .14); background: rgba(9, 14, 29, .8); }
.chief-composer textarea { width: 100%; }
.chief-composer__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 10px; }
.chief-composer__actions label { display: block; margin-bottom: 4px; color: #8e9bb9; font-size: .76rem; }
.chief-composer__actions select { min-width: 170px; max-width: 260px; }
.chief-studio__details { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-left: 1px solid rgba(154, 177, 244, .14); background: rgba(11, 16, 33, .96); overflow-y: auto; max-height: 80vh; }
.chief-studio__details-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.chief-studio__details-head strong { color: #eaf1ff; font-size: 1rem; }
.chief-pane { display: grid; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) {
  .chief-studio, .chief-studio[data-details="open"] { grid-template-columns: minmax(0, 1fr); }
  .chief-studio__side { border-right: 0; border-bottom: 1px solid rgba(154, 177, 244, .14); }
  .chief-studio__details { border-left: 0; border-top: 1px solid rgba(154, 177, 244, .14); }
  .chief-bubble { max-width: 92%; }
  .chief-thread { max-height: 58vh; }
  .chief-studio__main { order: -1; }
}

@media (max-width: 760px) {
  .chief-studio__main { position: relative; }
  .chief-thread { max-height: 52vh; padding: 16px 14px; }
  .chief-composer { position: sticky; bottom: 0; z-index: 4; padding: 12px 14px 14px; background: rgba(9, 14, 29, .97); }
  .chief-composer__bar { flex-wrap: wrap; }
  .chief-composer__bar textarea { order: -1; flex: 1 1 100%; width: 100%; min-height: 56px; }
}

.chief-studio__details .agency-expert-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
.chief-studio__details .agency-expert { flex-wrap: wrap; }
.chief-studio__details .agency-expert p, .chief-studio__details .agency-expert strong { overflow-wrap: anywhere; }
.chief-studio__details .agency-task-list { margin-bottom: 12px; }

/* Atelier plein écran du Chef IA */
body.studio-page { margin: 0; padding: 0; min-height: 100vh; }
body.studio-page .chief-studio { margin: 0; min-height: 100vh; border: 0; border-radius: 0; }
.chief-studio__brand strong { display: block; color: #9edfff; font-size: .84rem; letter-spacing: .08em; }
.chief-studio__brand span { color: #8e9bb9; font-size: .76rem; }
.chief-studio__selector { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: rgba(9, 14, 29, .8); color: #eaf1ff; text-align: left; cursor: pointer; }
.chief-studio__selector-mark { color: #aa78ff; }
.chief-studio__selector-text { flex: 1 1 auto; min-width: 0; }
.chief-studio__selector-text strong { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.chief-studio__selector-text small { color: #8e9bb9; font-size: .74rem; overflow-wrap: anywhere; }
.chief-studio__chevron { color: #8e9bb9; }
.chief-studio__menu { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: rgba(9, 14, 29, .95); }
.chief-studio__menu-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; color: #8e9bb9; font-size: .76rem; }
.chief-studio__menu { min-width: 0; max-width: 100%; overflow: hidden; }
.chief-studio__menu .project-list { max-height: 220px; overflow-x: hidden; overflow-y: auto; margin: 0; }
.chief-studio__menu .project-list li { min-width: 0; padding: 8px; }
.chief-studio__menu .project-open-button { display: grid; gap: 2px; width: 100%; min-width: 0; max-width: 100%; padding: 6px 8px; text-align: left; white-space: normal; }
.chief-studio__menu .project-open-button strong, .chief-studio__menu .project-open-button span { min-width: 0; overflow-wrap: anywhere; font-size: .76rem; }
.chief-studio__exit { margin-left: auto; color: #9edfff; font-size: .78rem; }
.chief-studio__user > div { min-width: 0; }
.chief-studio__user strong, .chief-studio__user small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chief-studio__user small.chief-studio__credits { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.35; }
.chief-studio__footer { margin: 0; padding: 8px 20px 14px; color: #8e9bb9; font-size: .76rem; text-align: center; }
.chief-studio__dot { color: #8fe3bc; }
.chief-composer__mission { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.chief-composer__mission label { display: block; margin-bottom: 4px; color: #8e9bb9; font-size: .76rem; }
.chief-composer__bar { display: flex; gap: 8px; align-items: end; }
.chief-composer__bar textarea { flex: 1 1 auto; min-height: 44px; resize: vertical; }
.chief-icon, .chief-send { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border-radius: 12px; font-size: 1rem; cursor: pointer; }
.chief-icon { border: 1px solid rgba(154, 177, 244, .2); background: rgba(12, 18, 38, .85); color: #c3cce2; }
.chief-icon.is-active { border-color: #aa78ff; color: #eaf1ff; }
.chief-composer__options { margin-top: 8px; }
.chief-composer__options summary { color: #8e9bb9; font-size: .8rem; cursor: pointer; }
.chief-bubble--wide { max-width: 100%; }
.chief-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.chief-card { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border: 1px solid rgba(154, 177, 244, .18); border-radius: 12px; background: rgba(9, 14, 29, .72); }
.chief-card .eyebrow { margin: 0; color: #9edfff; font-size: .68rem; }
.chief-card p { margin: 0; color: #dde5f8; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.chief-card small { color: #8e9bb9; font-size: .72rem; }
.chief-card ol, .chief-card ul { margin: 0; padding-left: 18px; color: #dde5f8; font-size: .8rem; line-height: 1.5; }
.chief-card li { overflow-wrap: anywhere; }
.chief-card li[data-status="completed"] { color: #8fe3bc; }
.chief-card button { margin-top: 4px; }

@media (max-width: 900px) {
  .chief-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1101px) {
  body.studio-page .chief-studio__main { height: 100vh; }
  body.studio-page .chief-thread { flex: 1 1 auto; max-height: none; }
  body.studio-page .chief-studio__side, body.studio-page .chief-studio__details { max-height: 100vh; overflow-y: auto; }
}

.chief-bubble--locked { align-self: start; height: fit-content; max-width: 560px; border: 1px solid rgba(255, 138, 138, .45); background: rgba(60, 18, 24, .55); }
.chief-bubble--locked strong { color: #ffb4b4; }
.chief-bubble--queue { align-self: start; height: fit-content; max-width: 560px; border: 1px solid rgba(154, 177, 244, .35); background: rgba(24, 34, 60, .65); }
.chief-bubble--queue strong { color: #bcd0ff; }
.chief-composer textarea:disabled,
.chief-composer .chief-icon:disabled,
.chief-composer .chief-send:disabled { opacity: .45; cursor: not-allowed; }
.chief-call-status { margin: .4rem 0 0; font-size: .85rem; color: #cfd8ef; }

/* Accueil public AI-DEVHUB */
body.home-page {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(121, 67, 230, .28), transparent 34rem),
    radial-gradient(circle at 92% 6%, rgba(56, 132, 255, .18), transparent 32rem),
    #070b17;
  color: #e7ecfa;
}
body.home-page {
  --home-gutter: 20px;
  --home-width: 1180px;
}
@media (min-width: 720px) {
  body.home-page { --home-gutter: 32px; }
}
body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page p,
body.home-page li,
body.home-page summary {
  overflow-wrap: break-word;
}
body.home-page .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.home-nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 23, .82);
  border-bottom: 1px solid rgba(154, 177, 244, .16);
}
.home-nav__inner {
  width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 12px 0; flex-wrap: wrap;
}
.home-nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.home-nav__brand img { border-radius: 10px; }
.home-nav__links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.home-nav__links a { color: #b9c5e2; text-decoration: none; font-size: .92rem; }
.home-nav__links a:hover { color: #fff; }
.home-nav__actions { display: flex; gap: 10px; }
.home-page .button-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; text-decoration: none;
  background: linear-gradient(135deg, #7b46ff, #4f8bff); color: #fff; border: 1px solid transparent;
}
.home-page .button-link:hover { filter: brightness(1.08); }
.home-page .button-link.secondary { background: rgba(255, 255, 255, .06); border-color: rgba(154, 177, 244, .3); color: #dce5fb; }

.home-hero {
  width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin: 0 auto; padding: 64px 0 40px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 3vw, 40px); align-items: center;
}
.home-hero > div { min-width: 0; }
.home-hero h1 {
  margin: 8px 0 16px; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.16;
  max-width: 22ch; text-wrap: balance; letter-spacing: -.01em;
}
.home-hero__lead { color: #bcc8e6; font-size: 1.05rem; line-height: 1.65; max-width: 34rem; }
.home-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.home-hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-hero__points li { position: relative; padding-left: 22px; color: #cdd7ef; font-size: .93rem; }
.home-hero__points li::before { content: "✓"; position: absolute; left: 0; color: #8fe3bc; }
.home-hero__card {
  padding: 22px; border-radius: 20px; border: 1px solid rgba(154, 177, 244, .22);
  background: linear-gradient(160deg, rgba(20, 26, 48, .95), rgba(10, 13, 28, .96));
  box-shadow: 0 24px 60px rgba(4, 6, 16, .55); display: grid; gap: 14px;
}
.home-hero__card-head { display: flex; align-items: center; gap: 12px; }
.home-hero__card-head strong { display: block; }
.home-hero__card-head small { color: #97a4c4; }
.home-hero__avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: .8rem; font-weight: 700;
  background: linear-gradient(135deg, #7b46ff, #4f8bff);
}
.home-hero__bubble {
  margin: 0; padding: 14px 16px; border-radius: 14px; color: #dbe3f7; font-size: .92rem; line-height: 1.5;
  background: rgba(123, 70, 255, .14); border: 1px solid rgba(123, 70, 255, .28);
}
.home-hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: #c6d0ea; font-size: .9rem; }
.home-hero__list span { color: #9edfff; margin-right: 6px; }

.home-section { width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin: 0 auto; padding: 52px 0; }
.home-section h2 { margin: 6px 0 10px; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.22; max-width: 26ch; text-wrap: balance; }
.home-section__lead { color: #b6c2e0; max-width: 42rem; line-height: 1.65; }
.home-section--split > div { min-width: 0; }
.home-section--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; margin-top: 26px; }
.home-card {
  display: grid; gap: 9px; align-content: start; padding: 20px;
  border-radius: 18px; border: 1px solid rgba(154, 177, 244, .18); background: rgba(13, 18, 36, .82);
}
.home-card h3 { margin: 0; font-size: 1.05rem; }
.home-card p { margin: 0; color: #b4c0de; font-size: .9rem; line-height: 1.55; }
.home-card a { color: #9edfff; font-size: .9rem; font-weight: 600; text-decoration: none; }
.home-card a:hover { text-decoration: underline; }
.home-card--free { border-color: rgba(143, 227, 188, .35); }

.home-chief {
  width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin: 0 auto;
  padding: clamp(22px, 3vw, 34px); border-radius: 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  border: 1px solid rgba(123, 70, 255, .3);
  background: linear-gradient(140deg, rgba(38, 24, 74, .85), rgba(10, 14, 30, .92));
}
.home-chief h2 { margin: 6px 0 12px; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.22; max-width: 24ch; text-wrap: balance; }
.home-chief > div { min-width: 0; }
.home-chief p { color: #c2cbe6; line-height: 1.65; max-width: 40rem; }
.home-chief__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.home-chief__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-chief__grid li {
  display: grid; gap: 6px; padding: 16px; border-radius: 16px;
  border: 1px solid rgba(154, 177, 244, .2); background: rgba(9, 13, 28, .7);
}
.home-chief__grid span { color: #aab6d6; font-size: .85rem; line-height: 1.5; }

.home-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.home-steps li { display: grid; gap: 8px; padding: 20px; border-radius: 18px; border: 1px solid rgba(154, 177, 244, .18); background: rgba(13, 18, 36, .82); }
.home-steps span { color: #b4c0de; font-size: .9rem; line-height: 1.55; }

.home-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.home-trust li { display: grid; gap: 5px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(154, 177, 244, .18); background: rgba(13, 18, 36, .78); }
.home-trust span { color: #b4c0de; font-size: .88rem; line-height: 1.5; }

.home-access { width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin: 0 auto; padding: 48px 0; }
.home-access__intro { max-width: 42rem; margin-bottom: 22px; }
.home-access__intro p { color: #b6c2e0; line-height: 1.6; }
.home-access .auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.home-faq { display: grid; gap: 10px; margin-top: 24px; }
.home-faq details { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(154, 177, 244, .18); background: rgba(13, 18, 36, .78); }
.home-faq summary { cursor: pointer; font-weight: 600; }
.home-faq p { margin: 10px 0 0; color: #b4c0de; font-size: .92rem; line-height: 1.6; }

.home-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 48px; padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 34px); border-radius: 22px;
  border: 1px solid rgba(123, 70, 255, .3); background: linear-gradient(120deg, rgba(48, 30, 96, .8), rgba(11, 16, 34, .9));
}
.home-cta > div { min-width: 0; }
.home-cta h2 { margin: 0 0 6px; line-height: 1.22; max-width: 24ch; text-wrap: balance; }
.home-cta p { margin: 0; color: #bcc8e6; max-width: 44ch; }

.home-footer { border-top: 1px solid rgba(154, 177, 244, .16); background: rgba(6, 9, 20, .9); }
.home-footer__inner {
  width: min(var(--home-width), calc(100% - 2 * var(--home-gutter))); margin: 0 auto; padding: 28px 0;
  display: flex; gap: 22px; justify-content: space-between; flex-wrap: wrap;
}
.home-footer p { margin: 6px 0 0; color: #93a0bf; font-size: .88rem; max-width: 30rem; }
.home-footer nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.home-footer nav a { color: #b9c5e2; font-size: .88rem; text-decoration: none; }
.home-footer nav a:hover { color: #fff; }

@media (max-width: 1080px) {
  .home-hero, .home-section--split, .home-chief { grid-template-columns: minmax(0, 1fr); }
  .home-hero h1, .home-section h2, .home-chief h2, .home-cta h2 { max-width: 30ch; }
}
@media (max-width: 960px) {
  .home-hero { padding-top: 40px; }
  .home-steps, .home-chief__grid, .home-access .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .home-nav__links { order: 3; width: 100%; margin-left: 0; }
  .home-nav__actions { margin-left: auto; }
}
body.home-page [id] { scroll-margin-top: 92px; }
@media (max-width: 960px) {
  body.home-page [id] { scroll-margin-top: 210px; }
}
