:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-soft: #0b111d;
  --surface: #0d1522;
  --surface-strong: #111c2d;
  --text: #f5f7fa;
  --muted: #b8c2cf;
  --faint: #8491a3;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #2878ff;
  --accent-soft: #73a8ff;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, 92vh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: clamp(5.5rem, 14vw, 9rem) 1.4rem clamp(4rem, 10vw, 7rem);
  background: linear-gradient(90deg, rgba(7, 11, 19, 0.98) 0%, rgba(7, 11, 19, 0.9) 62%, rgba(7, 11, 19, 0.28) 100%);
}

.hero-copy {
  width: min(100%, 640px);
  min-width: 0;
  margin-inline: auto;
}

.hero-kicker,
.section-index,
.offer-meta {
  margin: 0 0 1.2rem;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: none;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 7.4vw, 6.35rem);
  font-weight: 760;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.headline-line strong {
  color: var(--accent-soft);
  font: inherit;
}

h2 {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  font-weight: 720;
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 680;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.hero-subtitle {
  max-width: 58ch;
  margin-bottom: 2rem;
  color: #d5dce5;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px rgba(40, 120, 255, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  background: #3b86ff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid #9fc1ff;
  outline-offset: 4px;
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, 0.08), rgba(7, 11, 19, 0.38));
  content: "";
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(0.92) contrast(1.05);
}

.section {
  padding: clamp(5.5rem, 11vw, 9rem) 1.4rem;
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  max-width: 790px;
  text-align: center;
}

.proof-grid,
.offer-grid {
  display: grid;
  gap: 1rem;
}

.proof-item {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.proof-item p,
.offer-card p {
  margin-bottom: 0;
}

.section-offers {
  background: var(--bg-soft);
}

.offer-card {
  position: relative;
  min-height: 330px;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.offer-card::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(40, 120, 255, 0.1);
  filter: blur(32px);
  content: "";
}

.offer-card-accent {
  border-color: rgba(69, 137, 255, 0.38);
  background: linear-gradient(145deg, rgba(40, 120, 255, 0.09), rgba(255, 255, 255, 0.018));
}

.offer-meta {
  min-height: 2.4em;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.section-audience {
  background: radial-gradient(circle at 50% 110%, rgba(40, 120, 255, 0.12), transparent 48%);
}

.section-demo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 120, 255, 0.1), transparent 34rem),
    linear-gradient(180deg, var(--bg-soft), #080e18);
}

.section-demo::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 60rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 168, 255, 0.42), transparent);
  content: "";
  transform: translateX(-50%);
}

.section-demo > .wrap {
  position: relative;
  z-index: 1;
}

.section-demo > .wrap > .section-index + h2 + p {
  max-width: 62ch;
  margin: -1rem auto 2rem;
  color: #c7d1df;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.75;
}

.demo-note {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(115, 168, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.demo-note strong {
  color: var(--text);
}

.demo-static-note {
  max-width: 58ch;
  margin: 1.1rem auto 0;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.demo-suggest,
.demo-form {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(115, 168, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.demo-suggest::before,
.demo-form::before {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.demo-suggest::before {
  flex-basis: 100%;
}

.demo-suggest::before {
  content: "Questions prêtes à tester";
}

.demo-form::before {
  content: "Posez une question sur les documents";
}

.demo-suggest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 860px;
  margin: 0 auto 1rem;
}

.demo-suggest button {
  appearance: none;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #c7d1df;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.demo-suggest button:hover {
  border-color: rgba(115, 168, 255, 0.65);
  background: rgba(40, 120, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.demo-form {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
}

.demo-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.demo-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(4, 9, 18, 0.62);
  color: var(--text);
  font: inherit;
  padding: 1.05rem 1.15rem;
  font-size: 1rem;
  line-height: 1.4;
}

.demo-row input::placeholder {
  color: #7f8ca0;
}

.demo-row .button {
  min-height: 58px;
  padding-inline: 1.5rem;
  white-space: nowrap;
}

.demo-row input:focus-visible {
  outline: 3px solid #9fc1ff;
  outline-offset: 2px;
}

.demo-log {
  display: flex;
  max-width: 720px;
  margin: 2rem auto 0;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.demo-log:empty {
  display: none;
}

.demo-msg {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.demo-msg-question {
  align-self: flex-end;
  max-width: 88%;
  border-color: rgba(69, 137, 255, 0.36);
  background: rgba(40, 120, 255, 0.12);
}

.demo-msg-answer {
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.055);
}

.demo-who,
.demo-body {
  margin: 0;
}

.demo-who {
  margin-bottom: 0.3rem;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.demo-footnote {
  margin: 1.5rem 0 0;
  color: var(--faint);
  font-size: 0.84rem;
}

.audience-list {
  margin-bottom: 1.6rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 650;
  line-height: 1.55;
}

.section-contact {
  padding-bottom: clamp(7rem, 14vw, 11rem);
  background: linear-gradient(180deg, var(--bg), #060912);
}

.section-contact .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-contact h2 {
  margin-bottom: 1.5rem;
}

.section-contact p:not(.section-index):not(.contact-note) {
  max-width: 60ch;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}

.contact-note {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.88rem;
}

.contact-email {
  margin-top: 1rem;
  color: var(--accent-soft);
  font-weight: 650;
  text-underline-offset: 0.22em;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-email-row .contact-email {
  margin-top: 0;
}

.contact-copy {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.contact-copy:hover {
  border-color: var(--accent-soft);
  color: var(--text);
}

.contact-status {
  min-height: 1.4em;
  margin: 0.65rem 0 0;
  color: var(--accent-soft);
  font-size: 0.82rem;
}

.contact-email:hover {
  color: var(--text);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  }

  .hero-panel {
    grid-column: 1;
    padding-inline: max(2.5rem, calc((100vw - var(--max)) / 2));
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 78%, rgba(7, 11, 19, 0.72) 100%);
  }

  .hero-copy {
    margin-inline: 0;
  }

  .hero-visual {
    position: relative;
    grid-column: 2;
    min-width: 0;
  }

  .hero-visual::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 26%;
    background: linear-gradient(90deg, var(--bg), transparent);
    content: "";
  }

  .hero-visual img {
    object-position: 57% center;
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.2rem);
  }

  .proof-item {
    padding-top: 2rem;
  }

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 759px) {
  .hero {
    min-height: 760px;
  }

  .hero-panel {
    align-items: flex-end;
    padding-inline: 1.25rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.5vw, 4.25rem);
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .demo-row {
    flex-direction: column;
  }

  .demo-row .button {
    width: 100%;
  }

  .hero-visual img {
    object-position: 70% center;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(7, 11, 19, 0.28), rgba(7, 11, 19, 0.94) 72%);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
