:root {
  --bg: #e9eef6;
  --bg-strong: #f4f8fd;
  --surface: rgba(250, 252, 255, 0.82);
  --surface-strong: #fcfdff;
  --surface-dark: #111827;
  --text: #15233b;
  --muted: #5b6b84;
  --line: rgba(21, 35, 59, 0.09);
  --accent: #ff7a00;
  --accent-dark: #0f56b3;
  --accent-soft: #dfeeff;
  --success: #2f8f62;
  --shadow: 0 22px 64px rgba(19, 41, 78, 0.12);
  --shadow-strong: 0 28px 90px rgba(14, 30, 59, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body :is(section, header)[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(17, 127, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #e8eef8 0%, #f2f6fd 40%, #fbfdff 100%);
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  padding-bottom: 28px;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(15, 86, 179, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 86, 179, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
  animation: drift 14s ease-in-out infinite;
}

.ambient-one {
  top: 90px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(17, 127, 255, 0.3), transparent 70%);
}

.ambient-two {
  top: 420px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(15, 86, 179, 0.18), transparent 72%);
  animation-duration: 18s;
}

.ambient-three {
  bottom: 120px;
  left: 20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.18), transparent 68%);
  animation-duration: 20s;
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
}

.hero {
  padding: 24px 0 54px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 26px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  overflow: visible;
  isolation: isolate;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease,
    filter 420ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.brand,
h1,
h2,
h3,
.plan-name,
.panel-label,
.service-tag {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-logo {
  display: block;
  height: 196px;
  max-width: min(100%, 360px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(84, 52, 35, 0.12));
}

.brand-logo-side {
  height: 108px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #117fff, var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease;
}

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

.nav-login-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 86, 179, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(19, 41, 78, 0.07);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-login-trigger:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 86, 179, 0.22);
  box-shadow: 0 16px 30px rgba(19, 41, 78, 0.11);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  overflow: hidden;
  background-clip: padding-box;
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(17, 127, 255, 0.08);
}

.nav-side-rail {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.metrics article,
.service-card,
.process-card,
.pack-card,
.payment-note,
.builder-form,
.checkout-card,
.faq-list details,
.stack-section,
.process-section {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.93), rgba(248, 252, 255, 0.78)),
    radial-gradient(circle at top right, rgba(17, 127, 255, 0.08), transparent 34%);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 90, 49, 0.16), transparent 68%);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(151, 67, 33, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(19, 41, 78, 0.08);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffb38e);
  box-shadow: 0 0 12px rgba(194, 90, 49, 0.55);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--accent-dark);
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
}

.lead,
.section-heading p,
.service-card p,
.process-card p,
.plan-copy,
.faq-list p,
.payment-note p,
.checkout-note,
.footer p,
.hero-panel-footer span,
.stack-copy p {
  color: var(--muted);
}

.lead {
  margin: 18px 0 0;
  max-width: 58ch;
  line-height: 1.75;
  font-size: 1.05rem;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-actions,
.form-actions,
.payment-actions,
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions > * {
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
  box-shadow: 0 14px 30px rgba(19, 41, 78, 0.09);
}

.button:hover {
  transform: translateY(-3px) scale(1.01);
}

.button:disabled,
.button.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover,
.button.is-disabled:hover {
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, #117fff, var(--accent));
  color: #fff8f3;
  overflow: hidden;
  background-clip: padding-box;
  isolation: isolate;
  box-shadow: 0 18px 36px rgba(17, 127, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
  overflow: hidden;
  background-clip: padding-box;
  isolation: isolate;
  box-shadow: 0 12px 24px rgba(19, 41, 78, 0.06);
}

.button-block {
  width: 100%;
}

.client-access-actions {
  display: grid;
  gap: 10px;
  width: min(260px, 100%);
}

body.modal-open {
  overflow: hidden;
}

.client-login-modal[hidden] {
  display: none;
}

.client-login-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.client-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 34, 0.56);
  backdrop-filter: blur(10px);
}

.client-login-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 28px));
  margin: min(10vh, 72px) auto 0;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(160deg, rgba(248, 251, 255, 0.97), rgba(234, 242, 252, 0.94)),
    linear-gradient(135deg, rgba(17, 127, 255, 0.08), rgba(255, 122, 0, 0.06));
  box-shadow: 0 30px 100px rgba(7, 17, 34, 0.24);
}

.client-login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 41, 78, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
}

.client-login-copy,
.client-login-hint {
  color: var(--muted);
}

.client-login-hint a {
  color: var(--accent-dark);
  font-weight: 700;
}

.client-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.client-login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.client-login-form label {
  font-weight: 700;
  color: var(--text);
}

.client-login-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 86, 179, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.client-login-form input:focus {
  border-color: rgba(17, 127, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(17, 127, 255, 0.12);
}

.client-login-status {
  min-height: 1.4em;
  margin: 4px 0 0;
  color: var(--muted);
}

.client-login-status.is-success {
  color: var(--success);
}

.client-login-status.is-error {
  color: #c23b31;
}

.client-login-status.is-pending {
  color: var(--accent-dark);
}

.builder-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.builder-point {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.trust-list,
.hero-checks,
.service-card ul,
.pack-card ul,
.summary-list {
  margin: 0;
  padding-left: 20px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin-top: 28px;
}

.trust-list li,
.hero-checks li,
.service-card li,
.pack-card li,
.summary-list li {
  color: var(--muted);
}

.trust-list li::before {
  content: "• ";
  color: var(--accent);
}

.hero-panel {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(15, 34, 68, 0.98), rgba(9, 23, 48, 0.98) 42%, rgba(12, 31, 64, 0.98)),
    radial-gradient(85% 70% at 8% 100%, rgba(17, 127, 255, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(10, 23, 48, 0.98), rgba(13, 35, 72, 0.97));
  color: #f7fbff;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.panel-glow {
  display: none;
}

.panel-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: #8ec5ff;
}

.hero-panel h2 {
  margin: 10px 0 6px;
  font-size: 2rem;
}

.hero-price {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffb35c;
}

.hero-checks li {
  margin-bottom: 10px;
  color: rgba(236, 244, 255, 0.88);
}

.hero-panel-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel-footer span {
  color: rgba(197, 217, 245, 0.82);
}

.section {
  padding: 30px 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metrics article {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 255, 0.66));
  overflow: hidden;
}

.metric-line {
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(194, 90, 49, 0.15));
}

.metrics strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.metrics span {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.stack-copy h2,
.payment-note strong {
  margin: 0 0 10px;
}

.section-heading h2,
.stack-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.service-grid,
.process-grid,
.pack-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(5, 1fr);
}

.examples-section .pack-card,
.hosting-section .pack-card {
  min-height: 100%;
}

.service-card,
.process-card,
.pack-card,
.trust-card,
.builder-form,
.checkout-card,
.payment-note,
.faq-list details {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 250, 255, 0.68));
}

.service-card,
.process-card,
.pack-card,
.trust-card {
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service-card,
.process-card,
.pack-card,
.trust-card,
.faq-list details,
.metrics article,
.hero-copy,
.hero-panel,
.builder-form,
.checkout-card,
.payment-note,
.process-section,
.stack-section {
  overflow-wrap: anywhere;
}

.service-card:hover,
.process-card:hover,
.pack-card:hover,
.trust-card:hover,
.faq-list details:hover,
.payment-note:hover,
.builder-form:hover,
.checkout-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(19, 41, 78, 0.13);
  border-color: rgba(17, 127, 255, 0.12);
}

.service-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 127, 255, 0.1), rgba(255, 122, 0, 0.14));
}

.service-card h3,
.process-card h3,
.pack-card h3,
.trust-card h3,
.checkout-card h3 {
  margin: 0 0 10px;
}

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

.trust-card {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 249, 255, 0.74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 127, 255, 0.14), rgba(255, 122, 0, 0.18));
  color: var(--accent-dark);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.process-section,
.stack-section {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(251, 252, 255, 0.9), rgba(245, 249, 255, 0.7)),
    radial-gradient(circle at top right, rgba(17, 127, 255, 0.08), transparent 30%);
}

.process-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.stack-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-list span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.pack-card-featured {
  background:
    linear-gradient(180deg, #fff5ee 0%, #fbfdff 100%),
    radial-gradient(circle at top right, rgba(17, 127, 255, 0.08), transparent 28%);
  transform: translateY(-8px);
  position: relative;
  box-shadow: 0 26px 80px rgba(17, 127, 255, 0.12);
}

.pack-card-featured::before {
  content: "Le plus choisi";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #1f1a17;
  color: #fff5ed;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.builder-header {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.payment-note {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 249, 255, 0.72));
}

.builder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.builder-form,
.checkout-card {
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-block {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.field-label,
.form-block label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(151, 67, 33, 0.4);
  box-shadow: 0 0 0 4px rgba(194, 90, 49, 0.12);
}

.input-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.field-hint,
.field-error {
  min-height: 1.1rem;
  font-size: 0.9rem;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: #b03a2e;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice-card,
.addon-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.choice-card input,
.addon-item input {
  width: auto;
  margin: 0;
}

.choice-card span,
.addon-item span {
  font-weight: 700;
}

.choice-card small,
.addon-item small {
  color: var(--muted);
}

.addon-item em {
  color: var(--accent-dark);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-block-muted {
  padding: 18px;
  border-radius: 18px;
  background: rgba(244, 249, 255, 0.68);
  border: 1px solid var(--line);
}

.builder-note-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.builder-note-list span {
  color: var(--muted);
  line-height: 1.6;
}

.choice-card-featured {
  background: linear-gradient(180deg, #fff2e8 0%, #fff8f3 100%);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkout-card {
  position: sticky;
  top: 16px;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(253, 254, 255, 0.9), rgba(247, 250, 255, 0.82));
}

.checkout-card-head {
  margin-bottom: 20px;
}

.summary-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.summary-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-line strong,
.summary-line span {
  min-width: 0;
}

.summary-line span {
  color: var(--muted);
}

.total-block strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.checkout-note {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.2rem;
  margin: 4px 0 0;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: #b03a2e;
}

.form-status.is-pending {
  color: var(--accent-dark);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 36px;
  color: var(--muted);
  align-items: flex-start;
  border-top: 1px solid rgba(21, 35, 59, 0.08);
  margin-top: 18px;
  padding-top: 28px;
}

.hero-copy,
.hero-panel,
.metrics article,
.service-card,
.process-card,
.stack-section,
.pack-card,
.payment-note,
.builder-form,
.checkout-card,
.faq-list details,
.footer {
  animation: rise-in 0.75s ease both;
}

.metrics article:nth-child(2),
.service-card:nth-child(2),
.process-card:nth-child(2),
.pack-card:nth-child(2) {
  animation-delay: 0.08s;
}

.metrics article:nth-child(3),
.service-card:nth-child(3),
.process-card:nth-child(3),
.pack-card:nth-child(3) {
  animation-delay: 0.16s;
}

.service-card:nth-child(4),
.process-card:nth-child(4) {
  animation-delay: 0.24s;
}

.service-card:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -22px, 0) scale(1.05);
  }
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 8px;
  }

  .nav {
    position: relative;
    top: auto;
    padding-bottom: 18px;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .brand-logo {
    height: clamp(112px, 18vw, 164px);
    max-width: min(52vw, 280px);
  }

  h1 {
    max-width: 100%;
  }

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

  .builder-header,
  .builder-grid,
  .stack-section,
  .hero-grid,
  .pack-grid,
  .process-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }

  .pack-card-featured {
    transform: none;
  }

  .pack-card-featured::before {
    position: static;
    display: inline-flex;
    margin-bottom: 14px;
  }

  .hero-copy,
  .hero-panel,
  .process-section,
  .stack-section,
  .builder-form,
  .checkout-card {
    padding: 24px;
  }

  .builder-header {
    gap: 16px;
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 920px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav > .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    gap: 10px;
  }

  .service-grid,
  .pack-grid,
  .process-grid,
  .trust-grid,
  .metrics,
  .builder-header,
  .builder-grid,
  .stack-section {
    grid-template-columns: 1fr;
  }

  .form-row,
  .option-grid,
  .addons-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .form-actions,
  .payment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .form-actions .button,
  .payment-actions .button,
  .client-access-actions {
    width: 100%;
  }

  .hero-badge-row {
    justify-content: flex-start;
  }

  .builder-header .section-heading,
  .section-heading {
    max-width: 100%;
  }

  .summary-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1180px, calc(100% - 20px));
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
  }

  .page-shell {
    padding-bottom: 20px;
  }

  .hero {
    padding-bottom: 34px;
  }

  .hero-grid,
  .builder-grid,
  .stack-section,
  .process-grid,
  .pack-grid,
  .trust-grid,
  .metrics {
    gap: 14px;
  }

  .section {
    padding: 20px 0;
  }

  .nav {
    gap: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    height: clamp(82px, 22vw, 116px);
    max-width: 58vw;
  }

  .nav-links {
    gap: 8px;
    width: 100%;
  }

  .nav-links a,
  .nav-login-trigger,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-copy,
  .hero-panel,
  .metrics article,
  .service-card,
  .process-card,
  .pack-card,
  .payment-note,
  .builder-form,
  .checkout-card,
  .faq-list details,
  .process-section,
  .stack-section {
    padding: 18px;
  }

  .hero-badge-row,
  .builder-points,
  .stack-list,
  .trust-list {
    gap: 8px;
  }

  .hero-price {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .metrics strong {
    font-size: 1.6rem;
  }

  .faq-list details {
    padding: 18px;
  }

  .service-tag,
  .builder-point,
  .hero-badge {
    max-width: 100%;
  }

  .button,
  .nav-login-trigger,
  .nav-cta {
    padding: 13px 16px;
  }

  .section-heading h2,
  .stack-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
    line-height: 1.08;
  }

  .summary-line strong,
  .hero-panel h2,
  .pack-card h3,
  .service-card h3 {
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 74px;
    max-width: 62vw;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.7rem;
  }

  .hero-checks,
  .service-card ul,
  .pack-card ul,
  .summary-list {
    padding-left: 18px;
  }

  .client-login-panel {
    width: calc(100% - 18px);
    margin-top: 18px;
    padding: 20px 16px;
  }

  .hero-copy::after,
  .page-shell::before {
    opacity: 0.18;
  }
}

@media (min-width: 1101px) {
  .hero {
    padding-top: 118px;
  }

  .nav {
    position: fixed;
    top: 22px;
    left: 50%;
    width: min(1180px, calc(100% - 48px));
    min-height: 78px;
    padding: 10px 22px 10px 202px;
    border: 1px solid rgba(33, 27, 23, 0.08);
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.7);
    box-shadow: 0 18px 45px rgba(84, 52, 35, 0.1);
    transform: translateX(-50%);
    justify-content: space-between;
  }

  .nav > .brand {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .nav-side-rail {
    display: flex;
    position: fixed;
    top: 34px;
    left: 42px;
    z-index: 11;
    width: 300px;
    padding: 16px 14px 14px;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 236, 224, 0.08);
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(18, 15, 13, 0.94), rgba(36, 28, 24, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
    overflow: hidden;
    box-shadow:
      0 30px 80px rgba(16, 12, 10, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-26px, 18px, 0) scale(0.96);
    transition:
      opacity 460ms ease,
      transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-side-rail .brand {
    color: #fff7ef;
    padding-bottom: 4px;
  }

  .nav-side-rail .brand-logo {
    filter: brightness(1.08) contrast(1.04) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3));
  }

  .nav-side-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-side-links a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 244, 236, 0.8);
    transition: background 220ms ease, border-color 220ms ease, transform 220ms ease, color 220ms ease, box-shadow 220ms ease;
  }

  .nav-side-links a:hover {
    transform: translateX(8px);
    color: #fff7ef;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .nav-side-links .nav-cta {
    background: linear-gradient(135deg, #117fff, var(--accent));
    color: #fff7ef;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(17, 127, 255, 0.16);
    overflow: hidden;
    background-clip: padding-box;
    isolation: isolate;
  }

  .nav-side-links .nav-cta:hover {
    transform: none;
  }

  body.nav-side-mode .nav {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-90px, -12px, 0) scale(0.92);
    filter: blur(4px);
  }

  body.nav-side-mode .nav-side-rail {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 780px) {
  .option-grid,
  .addons-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .hero-copy,
  .hero-panel,
  .service-card,
  .process-card,
  .pack-card,
  .builder-form,
  .checkout-card,
  .faq-list details,
  .payment-note,
  .process-section,
  .stack-section,
  .metrics article {
    border-radius: 22px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1180px, calc(100% - 20px));
  }

  .hero-copy,
  .builder-form,
  .checkout-card {
    padding: 22px;
  }

  .form-actions,
  .payment-actions {
    display: grid;
    gap: 10px;
  }

  .footer {
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}
