/* Dublin-like display font */
@font-face {
  font-family: "Dublin";
  src: url("/fonts/Dublin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #020617;
  --bg-soft: #050816;
  --accent-blue: #2563eb;
  --accent-violet: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 0% 0%, #111827 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #020617 0, transparent 55%), var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: bodyFade 0.7s ease-out forwards;
  transition: background 0.45s ease, color 0.28s ease;
  overflow-x: hidden;
}

body[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-soft: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #6b7280;

  background: radial-gradient(circle at 10% 10%, #e0e7ff 0, transparent 50%),
    radial-gradient(circle at 90% 90%, #c7d2fe 0, transparent 50%),
    #f7f8fb;
}

@keyframes bodyFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  min-height: 100vh;
  width: 100%;
  max-width: 1280px;
  padding: 32px 32px 40px;
  padding-bottom: 88px; /* espace pour le toggle flottant */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-inner {
  width: 100%;
}

/* HEADER */
.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 10px 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  background: transparent;
}

body[data-theme="light"] .header {
  background: transparent;
}
.header.is-blurred {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.32),
      rgba(15, 23, 42, 0.16),
      rgba(15, 23, 42, 0.08),
      transparent
    ),
    transparent;
}
body[data-theme="light"] .header.is-blurred {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.24),
      transparent
    ),
    transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: flex-start;
}
.header-center {
  display: flex;
  justify-content: center;
  justify-self: center;
}
.header-right {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  padding: 0;
  gap: 0;
  border-radius: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease,
    background 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
  z-index: 120;
  position: fixed;
  top: 14px;
  right: max(14px, calc((100vw - 1280px) / 2 + 10px));
}
.header.is-blurred .menu-toggle {
  background: rgba(15, 23, 42, 0.24);
  border-radius: 10px;
  padding: 4px;
}
body[data-theme="light"] .header.is-blurred .menu-toggle {
  background: rgba(255, 255, 255, 0.52);
}
.menu-toggle:active {
  transform: scale(0.98);
}
.menu-glyph {
  display: grid;
  gap: 7px;
  justify-items: center;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.menu-line {
  width: 18px;
  height: 2.4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8fafc, #dbeafe, #f8fafc);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.3);
  transition: width 0.2s ease, transform 0.26s ease;
  transform-origin: center;
  margin: 0 auto;
}
.menu-line--top {
  transform: translateY(0);
}
.menu-line--bottom {
  transform: translateY(0);
}
body[data-theme="light"] .menu-line {
  background: #020617;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.menu-label {
  display: none;
}
body[data-theme="light"] .menu-toggle {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.menu-toggle.is-active .menu-line--top {
  width: 18px;
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle.is-active .menu-line--bottom {
  width: 18px;
  transform: translateY(-5px) rotate(-45deg);
}
.menu-toggle.is-active {
  border-color: rgba(129, 140, 248, 0.9);
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.35));
}

.logo-text {
  font-family: "Dublin", "Sora", system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-text .word {
  background: linear-gradient(120deg, #60a5fa, #a855f7, #e5e7eb);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  color: transparent;
  animation: logoGlow 7s ease-in-out infinite;
}
.logo-text .dot {
  font-size: 1.2rem;
  color: #e5e7eb;
}
body[data-theme="light"] .logo-text .dot {
  color: #020617;
}

@keyframes logoGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* NAV */
.nav-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(148, 163, 184, 0.4),
    transparent 55%
  );
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.8);
  overflow: hidden;
  min-width: 260px;
}

body[data-theme="light"] .nav-shell {
  background: radial-gradient(
    circle at 100% 0%,
    rgba(129, 140, 248, 0.25),
    transparent 55%
  );
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.nav-highlight {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: 72px;
  border-radius: 999px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(248, 250, 252, 0.8),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(124, 58, 237, 0.48));
  background-size: 220% 220%;
  animation: navLiquid 12s ease-in-out infinite;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.7), 0 0 14px rgba(79, 70, 229, 0.55);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.3, 1),
    width 0.3s cubic-bezier(0.22, 0.7, 0.3, 1);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

@keyframes navLiquid {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body[data-theme="light"] .nav-highlight {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25), 0 0 12px rgba(79, 70, 229, 0.5);
}

.nav-item {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.12s ease;
}
.nav-item:hover {
  transform: translateY(-0.5px);
  color: #f9fafb;
}
.nav-item.is-active {
  color: #f9fafb;
}
body[data-theme="light"] .nav-item {
  color: rgba(31, 41, 55, 0.7);
}
body[data-theme="light"] .nav-item.is-active {
  color: #020617;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 8px;
  right: 8px;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(
      145deg,
      rgba(79, 70, 229, 0.22),
      rgba(37, 99, 235, 0.12),
      rgba(2, 6, 23, 0.9)
    ),
    rgba(5, 8, 22, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.88), 0 0 28px rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transform-origin: top center;
  z-index: 40;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.25, 0.8, 0.3, 1),
    transform 0.32s cubic-bezier(0.25, 0.8, 0.3, 1),
    visibility 0.32s ease;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  pointer-events: none;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
body[data-theme="light"] .mobile-menu {
  background: linear-gradient(
      145deg,
      rgba(129, 140, 248, 0.22),
      rgba(59, 130, 246, 0.12),
      rgba(255, 255, 255, 0.94)
    ),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18),
    0 0 26px rgba(124, 58, 237, 0.2);
}
.mobile-nav-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.14s ease,
    box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
}
.mobile-nav-item::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 140%;
  height: 160%;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.mobile-nav-item:hover {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(148, 163, 184, 0.24),
      transparent 50%
    ),
    rgba(255, 255, 255, 0.02);
  box-shadow: none;
  transform: translateY(-1px);
}
.mobile-nav-item:active {
  transform: translateY(0);
}
.mobile-nav-item:hover::after {
  opacity: 1;
}
body[data-theme="light"] .mobile-nav-item:hover {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.24),
      transparent 50%
    ),
    rgba(255, 255, 255, 0.94);
  box-shadow: none;
}
.mobile-menu.is-open .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease, background 0.22s ease,
    color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mobile-menu.is-open .mobile-nav-item:nth-child(1) {
  transition-delay: 60ms;
}
.mobile-menu.is-open .mobile-nav-item:nth-child(2) {
  transition-delay: 120ms;
}
.mobile-menu.is-open .mobile-nav-item:nth-child(3) {
  transition-delay: 180ms;
}
.mobile-menu.is-open .mobile-nav-item:nth-child(4) {
  transition-delay: 240ms;
}

/* THEME TOGGLE */
.theme-toggle-floating {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 45;
}

.theme-toggle {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4);
  transition: box-shadow 0.25s ease, transform 0.16s ease,
    border-color 0.25s ease, background 0.25s ease;
}
.theme-toggle:active {
  transform: translateY(0.5px) scale(0.99);
}
.theme-track {
  position: relative;
  width: 82px;
  height: 32px;
  border-radius: 999px;
  padding: 5px 6px;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(148, 163, 184, 0.35),
    transparent 60%
  );
  border: 1px solid rgba(148, 163, 184, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.65);
  transition: background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.theme-thumb {
  position: absolute;
  top: 5px;
  left: 6px;
  width: 24px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 10%, #ffffff, #e5e7eb);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.7);
  transform: translateX(0);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.26s ease-out, background 0.26s ease-out;
  z-index: 2;
}
.theme-thumb::before {
  content: "";
  position: absolute;
  inset: 3px 6px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(255, 255, 255, 0.95),
    transparent 60%
  );
  opacity: 0.9;
  pointer-events: none;
}
.theme-label-outside {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
}
body[data-theme="light"] .theme-toggle {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
body[data-theme="light"] .theme-thumb {
  transform: translateX(46px);
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 20% 10%, #ffffff, #e0f2fe);
}
body[data-theme="light"] .theme-track {
  background: radial-gradient(
    circle at 100% 0%,
    rgba(129, 140, 248, 0.36),
    transparent 60%
  );
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

/* BUTTONS */
.btn-primary {
  position: relative;
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background-image: linear-gradient(130deg, #2563eb, #7c3aed, #2563eb);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: #e5e7eb;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.9), 0 0 20px rgba(79, 70, 229, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: visible;
  z-index: 0;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.25, 0.75, 0.25, 1),
    box-shadow 0.22s, filter 0.22s, background-position 0.4s;
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(129, 140, 248, 0.4),
    transparent 60%
  );
  opacity: 0;
  filter: blur(7px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  z-index: -1;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.06) saturate(1.08);
  background-position: 100% 50%;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.95), 0 0 32px rgba(79, 70, 229, 0.85);
}
.btn-primary:hover::after {
  opacity: 1;
  transform: scale(1.01);
}
.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9), 0 0 22px rgba(79, 70, 229, 0.7);
  filter: brightness(1.02);
}
.btn-primary .arrow {
  font-size: 1rem;
  transform: translateX(0);
  transition: transform 0.18s ease-out;
}
.btn-primary:hover .arrow {
  transform: translateX(3px);
}

main {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* HERO */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(79, 70, 229, 0.28),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(37, 99, 235, 0.24),
      transparent 65%
    ),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  column-gap: 40px;
  align-items: center;
  overflow: hidden;
  min-height: calc(100vh - 150px);
}
body[data-theme="light"] .hero {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.12),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(59, 130, 246, 0.12),
      transparent 65%
    ),
    #ffffff;
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  animation: fadeUp 0.55s ease-out forwards;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.9);
}
.hero-title {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.6rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 0.6s ease-out 0.08s forwards;
}
.hero-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 26rem;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 0.6s ease-out 0.16s forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FORM CARD */
.form-card {
  margin-top: 6px;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(79, 70, 229, 0.24),
      transparent 65%
    ),
    #020617;
  border: 1px solid rgba(79, 70, 229, 0.7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95), 0 0 42px rgba(79, 70, 229, 0.6);
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease-out 0.24s forwards;
}
body[data-theme="light"] .form-card {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(79, 70, 229, 0.12),
      transparent 65%
    ),
    #ffffff;
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08),
    0 0 24px rgba(79, 70, 229, 0.35);
}
.lead-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field label {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.field input {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 9px 12px;
  font-size: 0.9rem;
  background: rgba(3, 7, 18, 0.96);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
  width: 100%;
}
.field input::placeholder {
  color: var(--text-muted);
}
.field input:focus {
  border-color: rgba(79, 70, 229, 0.9);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.8);
  background: rgba(3, 7, 18, 1);
}
body[data-theme="light"] .field input {
  background: #f9fafb;
  border-color: rgba(209, 213, 219, 0.9);
  color: #111827;
}

.microcopy {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.microcopy strong {
  color: #e5e7eb;
  font-weight: 500;
}
body[data-theme="light"] .microcopy strong {
  color: #111827;
}
.form-message {
  margin-top: 6px;
  font-size: 0.74rem;
  min-height: 1.1em;
  color: var(--text-secondary);
}
.form-message.error {
  color: #fca5a5;
}
.form-message.success {
  color: #bbf7d0;
}

.social-proof {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease-out 0.32s forwards;
}
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-gradient);
  border: 2px solid #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #e5e7eb;
  box-shadow: 0 0 0 1px #020617;
}
.avatar:nth-child(2) {
  transform: translateX(-8px);
  background: linear-gradient(135deg, #4f46e5, #22c55e);
}
.avatar:nth-child(3) {
  transform: translateX(-16px);
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}
.avatar.more {
  transform: translateX(-24px);
  background: #020617;
  color: var(--text-secondary);
  font-size: 0.65rem;
}
body[data-theme="light"] .avatar {
  border-color: #f4f4f5;
  box-shadow: 0 0 0 1px #f4f4f5;
}
body[data-theme="light"] .avatar.more {
  background: #e5e7eb;
}

/* HERO RIGHT */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.7;
}
.hero-image {
  width: 110%;
  max-width: 420px;
  border-radius: 32px;
  object-fit: cover;
  filter: saturate(1.2);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  transition: transform 0.24s ease-out;
}
body[data-theme="light"] .hero-image {
  opacity: 0.8;
}

.book-wrapper {
  position: relative;
  width: 260px;
  height: 300px;
  perspective: 1300px;
  /* Flottement désactivé pour éviter tout flou de mouvement */
  animation: none;
  isolation: isolate;
}
.book-wrapper::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(124, 58, 237, 0.25),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(37, 99, 235, 0.18),
      transparent 50%
    );
  filter: blur(14px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}
.book-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
  background: transparent;
  border: none;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.6));
}
.book-face {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 22px 20px 20px;
  background: linear-gradient(150deg, #0d1328, #0d1022 50%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78),
    0 0 22px rgba(79, 70, 229, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.book-front,
.book-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
body[data-theme="light"] .book-face {
  background: linear-gradient(155deg, #f9fafb, #ffffff 50%, #eef2ff 100%);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12),
    0 0 20px rgba(79, 70, 229, 0.28);
}
.book-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(248, 250, 252, 0.16),
    transparent 58%
  );
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}
.book-front > * {
  position: relative;
  z-index: 1;
}
.book-front {
  transform: rotateY(0deg);
}
.book-back {
  transform: rotateY(180deg);
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 18px;
}
.book-card.is-flipped .book-front {
  transform: rotateY(-180deg);
}
.book-card.is-flipped .book-back {
  transform: rotateY(0deg);
}
.book-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.book-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(2, 6, 23, 0.9);
  font-size: 0.72rem;
}
body[data-theme="light"] .book-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(129, 140, 248, 0.7);
}
.book-title {
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  color: #f3f5ff;
}
.book-subtitle {
  font-size: 0.86rem;
  color: #d5d9ea;
}
.book-list {
  list-style: none;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.book-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.book-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-blue);
}
.book-price {
  margin-top: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-price .old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.82rem;
}
.book-price .new {
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  color: transparent;
}
.book-price .badge-free {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.8);
  font-size: 0.74rem;
  color: #bbf7d0;
}
.book-front-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.book-back-title {
  font-size: 0.9rem;
  font-weight: 600;
}
.book-back-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.book-back-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.book-back-bullet {
  margin-top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}
.book-back-note {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
  50% {
    transform: translateY(-6px) rotateX(0.5deg) rotateY(-0.5deg) scale(1.005);
  }
}

/* SECTIONS */
.section {
  padding: 24px 24px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(79, 70, 229, 0.2),
      transparent 55%
    ),
    #020617;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9);
  transition: background 0.45s ease, border-color 0.4s ease,
    box-shadow 0.35s ease, color 0.3s ease;
}
body[data-theme="light"] .section {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.12),
      transparent 55%
    ),
    #ffffff;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* BENTO GRID – 3 blocs, private community en grand bloc vertical */
.section.bento {
  padding: 24px 24px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(79, 70, 229, 0.2),
      transparent 55%
    ),
    #020617;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "main square"
    "wide square";
  gap: 10px;
  align-items: stretch;
}

.bento-card {
  border-radius: 22px;
  padding: 16px 16px 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1), box-shadow 0.22s ease-out,
    border-color 0.22s ease-out, background 0.22s ease-out;
  will-change: transform, box-shadow;
}
.bento-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.bento-card:hover {
  border-color: rgba(79, 70, 229, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.98);
  transform: translateY(-6px) scale(1.02) rotate3d(1, -1, 0, 6deg);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(79, 70, 229, 0.25),
    #050816
  );
}
.bento-card:nth-child(1) {
  transition-delay: 0.02s;
}
.bento-card:nth-child(2) {
  transition-delay: 0.08s;
}
.bento-card:nth-child(3) {
  transition-delay: 0.14s;
}
body[data-theme="light"] .bento-card {
  background: #f9fafb;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}
body[data-theme="light"] .bento-card:hover {
  background: #ffffff;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.16);
}

.bento-main {
  grid-area: main;
}
.bento-square {
  grid-area: square;
  border-radius: 28px; /* plus "ronde" et plus grande */
}
.bento-wide {
  grid-area: wide;
}

/* On masque une éventuelle 4e carte si elle existe */
.bento-small {
  display: none;
}

.bento-image {
  width: 90%;
  border-radius: 18px;
  object-fit: cover;
  max-height: 150px;
  display: block;
  margin-bottom: 10px;
  filter: saturate(1.15);
}

/* PROGRESS */
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progress-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.progress-percentage {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  color: transparent;
}
.progress-track {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}
.progress-fill {
  width: 97%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.02s linear;
}
.progress-caption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
body[data-theme="light"] .progress-track {
  background: rgba(229, 231, 235, 0.9);
  box-shadow: inset 0 0 0 1px rgba(209, 213, 219, 0.9);
}

/* COMMUNITY */
.community-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.community-row > div:first-child {
  flex: 1;
}
.community-text {
  font-size: 0.98rem;
  font-weight: 700;
}
.community-description {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.community-icon-wrap {
  width: 74px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
}
.community-discord-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}
body[data-theme="light"] .community-icon-wrap {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body[data-theme="light"] .community-discord-icon {
  /* Teinte violette (#7c3aed) pour l'icône blanche */
  filter: brightness(0) saturate(100%) invert(36%) sepia(79%) saturate(2035%)
    hue-rotate(247deg) brightness(92%) contrast(97%);
}

/* UPCOMING / NEW DIGITAL PRODUCTS */
.upcoming-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.upcoming-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 245, 0.9);
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
}
body[data-theme="light"] .upcoming-pill {
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}
.upcoming-title {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
}
.upcoming-text {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* REVIEWS */
.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.stars {
  color: #00c6b8;
  font-size: 1rem;
  text-shadow: 0 0 4px rgba(0, 198, 184, 0.55),
    0 0 8px rgba(59, 130, 246, 0.28);
}
body[data-theme="light"] .stars {
  color: #fbbf24;
  text-shadow: none;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial {
  position: relative;
  border-radius: 18px;
  padding: 14px;
  background: #050816;
  border: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 0.82rem;
  min-height: 130px;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.7s, transform 0.7s, box-shadow 0.22s, border-color 0.22s,
    background 0.22s;
  cursor: pointer;
  overflow: hidden;
  will-change: transform, box-shadow;
}
.testimonial:nth-child(1) {
  transition-delay: 0.03s;
}
.testimonial:nth-child(2) {
  transition-delay: 0.09s;
}
.testimonial:nth-child(3) {
  transition-delay: 0.15s;
}
.testimonial.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.testimonial:hover {
  border-color: rgba(79, 70, 229, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.98);
  transform: translateY(-5px) scale(1.02) rotate3d(-1, 1, 0, 5deg);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(79, 70, 229, 0.25),
    #050816
  );
}
.testimonial.is-expanded {
  border-color: rgba(79, 70, 229, 0.9);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.98);
  transform: translateY(-6px) scale(1.03);
  background: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.3), #050816);
}
body[data-theme="light"] .testimonial {
  background: #f9fafb;
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .testimonial:hover {
  background: #ffffff;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.16);
}
body[data-theme="light"] .testimonial.is-expanded {
  background: #ffffff;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 20px 42px rgba(79, 70, 229, 0.2);
}

.testimonial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.testimonial-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 10px 18px rgba(0, 0, 0, 0.8);
  margin-bottom: 2px;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body[data-theme="light"] .testimonial-avatar {
  box-shadow: 0 0 0 2px rgba(229, 231, 235, 1),
    0 8px 16px rgba(15, 23, 42, 0.16);
}
.testimonial-name {
  font-weight: 500;
}
.testimonial-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.testimonial-stars {
  color: #00c6b8;
  font-size: 0.92rem;
  text-shadow: 0 0 4px rgba(0, 198, 184, 0.55),
    0 0 8px rgba(59, 130, 246, 0.26);
}
body[data-theme="light"] .testimonial-stars {
  color: #fbbf24;
  text-shadow: none;
}

.testimonial-text {
  color: var(--text-secondary);
  transition: opacity 0.3s ease;
}
.testimonial-text-full {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.testimonial.is-expanded .testimonial-text {
  display: none;
}
.testimonial.is-expanded .testimonial-text-full {
  opacity: 1;
  max-height: 500px;
}

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}
.about-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: grid;
  gap: 10px;
  max-width: 36rem;
}
.about-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-bullet {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-gradient);
}
.about-card {
  border-radius: 20px;
  padding: 14px 14px 16px;
  background: #050816;
  border: 1px solid rgba(31, 41, 55, 1);
  display: grid;
  gap: 10px;
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.7s, transform 0.7s, box-shadow 0.22s, border-color 0.22s,
    background 0.22s;
  will-change: transform, box-shadow;
}
.about-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body[data-theme="light"] .about-card {
  background: #f9fafb;
  border-color: rgba(129, 140, 248, 0.45);
}
.about-card:hover {
  border-color: rgba(79, 70, 229, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.98);
  transform: translateY(-5px) scale(1.02) rotate3d(1, -1, 0, 5deg);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(79, 70, 229, 0.22),
    #050816
  );
}
body[data-theme="light"] .about-card:hover {
  background: #ffffff;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.16);
}
.about-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.metric {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
  min-width: 90px;
}
.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
body[data-theme="light"] .metric {
  background: #ffffff;
  border-color: rgba(129, 140, 248, 0.45);
}

/* CONTACT */
.contact-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  max-width: 32rem;
}
.contact-email {
  margin-top: 6px;
  font-size: 0.88rem;
}
.contact-email a {
  color: var(--accent-blue);
  text-decoration: none;
}
.contact-email a:hover {
  text-decoration: underline;
}
.contact-section {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.7s, transform 0.7s, box-shadow 0.22s, border-color 0.22s,
    background 0.22s;
  will-change: transform, box-shadow;
}
.contact-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.contact-section:hover {
  border-color: rgba(79, 70, 229, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.98);
  transform: translateY(-4px) scale(1.02);
}
body[data-theme="light"] .contact-section:hover {
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.16);
  border-color: rgba(129, 140, 248, 0.9);
}

/* FOOTER */
.footer {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 10px;
  }
  .header-center {
    display: none;
  }
  .nav-shell {
    display: none;
  }
}

@media (max-width: 960px) {
  .page {
    padding-inline: 20px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    min-height: auto;
  }
  .hero-right {
    order: -1;
  }
  .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .hero-right {
    justify-content: center;
    padding: 6px;
  }

  /* BENTO : 3 blocs empilés, sans trou */
  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "square"
      "wide";
  }

  .bento-small {
    display: none;
  }

  .testimonials {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-image {
    max-width: 360px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 20px 16px;
    row-gap: 14px;
  }
  .hero-left {
    gap: 14px;
  }
  .book-wrapper {
    width: 220px;
    height: 250px;
    margin-inline: auto;
  }
  .book-face {
    border-radius: 24px;
    padding: 16px 13px 14px;
    gap: 8px;
  }
  .book-title {
    font-size: 1.08rem;
  }
  .book-subtitle {
    font-size: 0.78rem;
  }
  .book-list {
    gap: 3px;
    font-size: 0.74rem;
  }
  .book-price {
    gap: 6px;
    margin-top: 6px;
  }
  .book-price .new {
    font-size: 1.1rem;
  }
  .book-back {
    padding-top: 14px;
    gap: 8px;
  }
  .theme-toggle-floating {
    right: 12px;
    bottom: 14px;
  }
}

@media (max-width: 375px) {
  .book-wrapper {
    width: 200px;
    height: 230px;
  }
  .book-title {
    font-size: 1.02rem;
  }
  .book-subtitle {
    font-size: 0.74rem;
  }
  .hero-title {
    font-size: 1.82rem;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 14px;
  }
  .hero,
  .section {
    border-radius: 24px;
  }
  .logo-text {
    letter-spacing: 0.14em;
    font-size: 0.98rem;
  }

  .hero {
    padding: 22px 18px;
    border-radius: 22px;
    row-gap: 18px;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.05;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .form-card {
    padding: 14px 12px 16px;
  }
  .lead-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .field label {
    font-size: 0.7rem;
  }
  .field input {
    font-size: 0.85rem;
    padding: 8px 11px;
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding-block: 9px;
  }
  .microcopy {
    font-size: 0.68rem;
  }
  .social-proof {
    font-size: 0.72rem;
  }
  .bento-card {
    padding: 14px 12px 16px;
  }
  .bento-image {
    max-height: 120px;
  }
  .section-title {
    font-size: 1.05rem;
  }
  .testimonials {
    gap: 12px;
  }
  .testimonial {
    min-height: 120px;
    padding: 12px 10px 14px;
  }
  .testimonial-text-full {
    font-size: 0.78rem;
  }
  .about-card,
  .contact-section {
    padding: 16px 14px 18px;
  }
  .about-text,
  .contact-text {
    font-size: 0.86rem;
  }
}

/* iPhone landscape */
@media (max-width: 480px) and (orientation: landscape) {
  .page {
    padding-inline: 10px;
  }
  .header {
    padding-inline: 4px;
  }
  .hero {
    padding: 20px 14px;
    row-gap: 14px;
    min-height: auto;
  }
  .hero-title {
    font-size: 1.8rem;
  }
}

/* iPad portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .page {
    padding-inline: 32px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    row-gap: 24px;
  }
  .hero-right {
    order: -1;
  }
  .hero-image {
    max-width: 380px;
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "square"
      "wide";
  }

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

/* iPad landscape */
@media (min-width: 900px) and (max-width: 1180px) and (orientation: landscape) {
  .page {
    padding-inline: 40px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: calc(100vh - 170px);
  }
  .hero-right {
    order: 0;
  }
  .hero-image {
    max-width: 420px;
  }
}

/* MacBook & laptops */
@media (min-width: 1280px) and (max-width: 1440px) {
  .page {
    max-width: 1320px;
  }
  .hero {
    padding: 40px 40px;
    column-gap: 48px;
  }
  .hero-title {
    font-size: 3.1rem;
  }
  .bento-grid {
    gap: 14px;
  }
}

/* Very large screens */
@media (min-width: 1440px) {
  body {
    justify-content: center;
  }
  .page {
    max-width: 1440px;
    padding-inline: 40px;
  }
  .hero {
    min-height: 70vh;
    padding: 46px 46px;
  }
  .hero-title {
    font-size: 3.3rem;
  }
  .hero-subtitle {
    font-size: 1.02rem;
  }
  .bento-grid {
    gap: 16px;
  }
}
