:root {
  --color-bg: #020816;
  --color-bg-alt: #050c1e;
  --color-surface: #050c1f;
  --color-surface-soft: #071127;
  --color-border: #1a2743;
  --color-primary: #1b4cff;      /* bleu profond moderne */
  --color-primary-soft: #1b4cff1a;
  --color-accent: #2de5d0;       /* turquoise accent */
  --color-accent-soft: #2de5d01a;
  --color-text: #f9fafc;
  --color-text-soft: #c3c9d7;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #071231 0, #020816 55%);
  color: var(--color-text);
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #050c1f 0, #020816 60%);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-header p {
  margin: 0;
  color: var(--color-text-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 8, 22, 0.96), rgba(2, 8, 22, 0.86));
  border-bottom: 1px solid rgba(29, 82, 255, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.4rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #2de5d0, #1b4cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020816;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 0 1px #020816, 0 10px 28px rgba(4, 9, 28, 0.95);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo-tagline {
  font-size: 0.73rem;
  color: var(--color-text-soft);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  width: 40px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(58, 77, 130, 0.9);
  background: rgba(4, 10, 28, 0.95);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  inset: 56px 1.1rem auto;
  background: #020816f0;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: none;
  box-shadow: var(--shadow-soft);
}

.nav-links.open {
  display: block;
}

.nav-links li {
  border-bottom: 1px solid rgba(18, 32, 68, 0.85);
}

.nav-links li:last-child {
  border-bottom: none;
}

.nav-links a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--color-text);
  background: rgba(7, 17, 39, 0.98);
}

/* Header CTA */
.header-cta {
  display: none;
}

/* Buttons */
.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0.7rem 1.5rem;
  font-size: 0.96rem;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
              background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #2de5d0, #1b4cff);
  color: #020816;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.95);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(102, 112, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(27, 76, 255, 0.12);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(45, 229, 208, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(27, 76, 255, 0.18), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 3.8rem;
}

.hero-content h1 {
  margin: 0 0 0.9rem;
  font-size: 2.1rem;
  line-height: 1.15;
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  color: var(--color-text-soft);
  max-width: 32rem;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 63, 112, 0.8);
  background: rgba(5, 13, 35, 0.9);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.flow-card {
  max-width: 360px;
  width: 100%;
  background: linear-gradient(145deg, #050c20, #020816);
  border-radius: 24px;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid rgba(61, 78, 140, 0.9);
  box-shadow: var(--shadow-soft);
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.flow-pill {
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(88, 108, 186, 0.9);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
}

.flow-pill-green {
  border-color: rgba(45, 229, 208, 0.7);
  color: var(--color-accent);
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.flow-step {
  background: rgba(7, 16, 40, 0.9);
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(44, 60, 117, 0.9);
}

.flow-step p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  background: rgba(11, 25, 56, 0.9);
  color: var(--color-text-soft);
}

.flow-badge-ai {
  background: var(--color-primary-soft);
  color: var(--color-accent);
}

.flow-badge-final {
  background: linear-gradient(135deg, #2de5d0, #1b4cff);
  color: #020816;
}

.flow-arrow {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Problem section */
.pill-grid {
  display: grid;
  gap: 0.9rem;
}

.pill-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0.9rem 1.1rem;
  background: rgba(5, 12, 31, 0.96);
  font-size: 0.93rem;
  color: var(--color-text-soft);
}

/* Workflow */
.workflow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
  font-size: 0.85rem;
}

.workflow-item {
  border-radius: 16px;
  border: 1px solid rgba(41, 64, 126, 0.9);
  padding: 0.8rem 0.8rem;
  background: rgba(5, 12, 31, 0.95);
}

.workflow-item-final {
  border-color: rgba(45, 229, 208, 0.9);
  background: radial-gradient(circle at top, rgba(45, 229, 208, 0.12), rgba(5, 12, 31, 1));
}

.workflow-label {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.workflow-item p {
  margin: 0.35rem 0 0;
  color: var(--color-text-soft);
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-module {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(4, 11, 27, 0.98);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.7);
}

.feature-module h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.feature-module ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.feature-cta {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  padding-inline: 1.2rem;
}

/* Demo */
.demo-layout {
  display: grid;
  gap: 1.4rem;
}

.demo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(5, 11, 28, 0.98);
  padding: 1.2rem 1.1rem 1.1rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.75);
}

.demo-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.demo-prospect {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.demo-prospect span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.demo-hint {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.demo-card-result {
  border-color: rgba(45, 229, 208, 0.5);
  background: radial-gradient(circle at top, rgba(45, 229, 208, 0.08), rgba(5, 11, 28, 0.98));
}

.demo-result {
  border-radius: 14px;
  border: 1px solid rgba(28, 73, 174, 0.95);
  padding: 0.7rem 0.8rem;
  background: rgba(3, 9, 26, 0.96);
  margin-bottom: 0.9rem;
}

.demo-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.24rem 0;
}

.demo-result-row span {
  color: var(--color-text-soft);
}

.demo-status {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--color-text-soft);
}

.demo-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(66, 82, 154, 0.9);
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

.status-dot.active {
  border-color: rgba(45, 229, 208, 0.9);
  background: radial-gradient(circle, var(--color-accent) 0, #071020 65%);
  box-shadow: 0 0 0 4px rgba(45, 229, 208, 0.2);
}

/* Numbers */
.numbers-grid {
  display: grid;
  gap: 1rem;
}

.number-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(33, 54, 112, 0.95);
  background: radial-gradient(circle at top, #050c20, #020816);
  padding: 1rem 1rem 0.9rem;
  text-align: left;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
}

.number-value {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 600;
}

.number-label {
  margin: 0.25rem 0 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.1rem;
}

.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(5, 11, 28, 0.98);
  padding: 1.2rem 1.1rem 1.2rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78);
}

.pricing-card-highlight {
  border-color: rgba(45, 229, 208, 0.7);
  background: radial-gradient(circle at top, rgba(45, 229, 208, 0.1), rgba(5, 11, 28, 0.98));
}

.pricing-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.pricing-price {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.pricing-price span {
  font-size: 0.86rem;
  color: var(--color-text-soft);
}

.pricing-card ul {
  margin: 0 0 1rem;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(5, 11, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.78);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  font-size: 0.95rem;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 0.95rem;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.faq-answer p {
  margin: 0.2rem 0 0.8rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding-bottom: 0.75rem;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* Demo form */
.demo-form-layout {
  display: grid;
  gap: 1.8rem;
  align-items: flex-start;
}

.demo-form-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.demo-form-intro p {
  margin: 0;
  color: var(--color-text-soft);
}

.demo-form-points {
  margin: 1rem 0 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.demo-form-wrapper {
  border-radius: 22px;
  border: 1px solid rgba(45, 229, 208, 0.6);
  padding: 1.2rem 1.1rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(27, 76, 255, 0.16), #050c20);
  box-shadow: var(--shadow-soft);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

input,
textarea {
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(32, 46, 96, 0.98);
  padding: 0.55rem 0.75rem;
  background: rgba(4, 10, 28, 0.98);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
textarea:focus {
  border-color: rgba(45, 229, 208, 0.8);
  box-shadow: 0 0 0 1px rgba(45, 229, 208, 0.4);
  background: #050a1d;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.form-status {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: #020816;
  border-top: 1px solid rgba(24, 38, 88, 1);
  padding: 2.6rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.7rem;
}

.footer-col h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
}

.footer-text {
  margin: 0.4rem 0 0;
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-logo .logo-mark {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.footer-logo .logo-title {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 1.8rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* Scroll animations */
.section,
.flow-card,
.pill-card,
.workflow-item,
.feature-module,
.demo-card,
.number-card,
.pricing-card,
.faq-item,
.demo-form-wrapper {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
  .section {
    padding: 4.6rem 0;
  }

  .hero-inner {
    padding-top: 4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-layout {
    grid-template-columns: 1.05fr 1.1fr;
    align-items: stretch;
  }

  .numbers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-form-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .form-row {
    flex-direction: row;
  }

  .form-row .form-field {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .header-cta {
    display: inline-flex;
    font-size: 0.84rem;
    padding: 0.42rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(45, 229, 208, 0.8);
    text-decoration: none;
    color: var(--color-text);
    background: rgba(4, 10, 28, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  }

  .header-cta:hover {
    background: rgba(10, 21, 52, 1);
  }
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    all: unset;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }

  .nav-links li {
    border-bottom: none;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.88rem;
    color: var(--color-text-soft);
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2de5d0, #1b4cff);
    transition: width 0.18s ease-out;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 639px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .flow-card {
    max-width: 100%;
  }

  .workflow {
    grid-template-columns: 1.2fr;
  }

  .workflow-arrow {
    justify-content: flex-start;
  }
}