:root {
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(255, 255, 255, 0.68);
  --ink: #0b1020;
  --ink-2: #161c2f;
  --muted: #5a6275;
  --line: rgba(11, 16, 32, 0.12);
  --accent-0: #00e5ff;
  --accent-1: #7c3aed;
  --accent-2: #ff4d6d;
  --accent-3: #22c55e;
  --accent-4: #0f172a;
  --bg-spot-1: rgba(0, 229, 255, 0.22);
  --bg-spot-2: rgba(124, 58, 237, 0.18);
  --bg-spot-3: rgba(255, 77, 109, 0.16);
  --laser-1: rgba(0, 229, 255, 0.6);
  --laser-2: rgba(124, 58, 237, 0.55);
  --laser-3: rgba(255, 77, 109, 0.5);
  --gradient-brand: linear-gradient(120deg, var(--accent-0), var(--accent-1) 45%, var(--accent-2));
  --gradient-soft: radial-gradient(circle at 15% 10%, var(--bg-spot-1), transparent 55%),
    radial-gradient(circle at 90% 20%, var(--bg-spot-2), transparent 55%),
    radial-gradient(circle at 50% 80%, var(--bg-spot-3), transparent 55%);
  --page-hero-bg: linear-gradient(135deg, rgba(7, 11, 25, 0.95), rgba(7, 11, 25, 0.75));
  --shadow: 0 22px 60px rgba(8, 12, 25, 0.18);
  --shadow-soft: 0 14px 36px rgba(10, 14, 30, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --fx-opacity: 0.28;
  --fx-blur: 10px;
  --fx-sat: 140%;
  --fx-bright: 120%;
}

html[data-theme="home"] {
  --accent-0: #00e5ff;
  --accent-1: #7c3aed;
  --accent-2: #ff4d6d;
  --bg-spot-1: rgba(0, 229, 255, 0.24);
  --bg-spot-2: rgba(124, 58, 237, 0.2);
  --bg-spot-3: rgba(255, 77, 109, 0.18);
  --laser-1: rgba(0, 229, 255, 0.65);
  --laser-2: rgba(124, 58, 237, 0.6);
  --laser-3: rgba(255, 77, 109, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(6, 10, 22, 0.98), rgba(10, 14, 32, 0.78));
}

html[data-theme="services"] {
  --accent-0: #00d4ff;
  --accent-1: #22c55e;
  --accent-2: #3b82f6;
  --bg-spot-1: rgba(0, 212, 255, 0.22);
  --bg-spot-2: rgba(34, 197, 94, 0.18);
  --bg-spot-3: rgba(59, 130, 246, 0.16);
  --laser-1: rgba(0, 212, 255, 0.6);
  --laser-2: rgba(34, 197, 94, 0.55);
  --laser-3: rgba(59, 130, 246, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(3, 20, 26, 0.95), rgba(3, 20, 26, 0.72));
}

html[data-theme="projets"] {
  --accent-0: #a855f7;
  --accent-1: #f97316;
  --accent-2: #ef4444;
  --bg-spot-1: rgba(168, 85, 247, 0.22);
  --bg-spot-2: rgba(249, 115, 22, 0.18);
  --bg-spot-3: rgba(239, 68, 68, 0.16);
  --laser-1: rgba(168, 85, 247, 0.6);
  --laser-2: rgba(249, 115, 22, 0.55);
  --laser-3: rgba(239, 68, 68, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(24, 9, 31, 0.96), rgba(24, 9, 31, 0.75));
}

html[data-theme="accompagnement"] {
  --accent-0: #2dd4bf;
  --accent-1: #f97316;
  --accent-2: #38bdf8;
  --bg-spot-1: rgba(45, 212, 191, 0.22);
  --bg-spot-2: rgba(249, 115, 22, 0.18);
  --bg-spot-3: rgba(56, 189, 248, 0.16);
  --laser-1: rgba(45, 212, 191, 0.6);
  --laser-2: rgba(249, 115, 22, 0.55);
  --laser-3: rgba(56, 189, 248, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(4, 20, 22, 0.96), rgba(4, 20, 22, 0.74));
}

html[data-theme="about"] {
  --accent-0: #60a5fa;
  --accent-1: #f59e0b;
  --accent-2: #22c55e;
  --bg-spot-1: rgba(96, 165, 250, 0.22);
  --bg-spot-2: rgba(245, 158, 11, 0.18);
  --bg-spot-3: rgba(34, 197, 94, 0.16);
  --laser-1: rgba(96, 165, 250, 0.6);
  --laser-2: rgba(245, 158, 11, 0.55);
  --laser-3: rgba(34, 197, 94, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(6, 16, 28, 0.96), rgba(6, 16, 28, 0.74));
}

html[data-theme="contact"] {
  --accent-0: #22d3ee;
  --accent-1: #84cc16;
  --accent-2: #f43f5e;
  --bg-spot-1: rgba(34, 211, 238, 0.22);
  --bg-spot-2: rgba(132, 204, 22, 0.18);
  --bg-spot-3: rgba(244, 63, 94, 0.16);
  --laser-1: rgba(34, 211, 238, 0.6);
  --laser-2: rgba(132, 204, 22, 0.55);
  --laser-3: rgba(244, 63, 94, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(6, 20, 20, 0.96), rgba(6, 20, 20, 0.74));
}

html[data-theme="devis"] {
  --accent-0: #f472b6;
  --accent-1: #38bdf8;
  --accent-2: #a855f7;
  --bg-spot-1: rgba(244, 114, 182, 0.22);
  --bg-spot-2: rgba(56, 189, 248, 0.18);
  --bg-spot-3: rgba(168, 85, 247, 0.16);
  --laser-1: rgba(244, 114, 182, 0.6);
  --laser-2: rgba(56, 189, 248, 0.55);
  --laser-3: rgba(168, 85, 247, 0.5);
  --page-hero-bg: linear-gradient(140deg, rgba(18, 8, 22, 0.96), rgba(18, 8, 22, 0.74));
}

html[data-theme="legal"] {
  --accent-0: #38bdf8;
  --accent-1: #64748b;
  --accent-2: #94a3b8;
  --bg-spot-1: rgba(56, 189, 248, 0.18);
  --bg-spot-2: rgba(100, 116, 139, 0.12);
  --bg-spot-3: rgba(148, 163, 184, 0.1);
  --laser-1: rgba(56, 189, 248, 0.45);
  --laser-2: rgba(100, 116, 139, 0.35);
  --laser-3: rgba(148, 163, 184, 0.3);
  --page-hero-bg: linear-gradient(140deg, rgba(10, 14, 24, 0.96), rgba(10, 14, 24, 0.74));
}

html[data-theme="faq"] {
  --accent-0: #38bdf8;
  --accent-1: #a855f7;
  --accent-2: #22c55e;
  --bg-spot-1: rgba(56, 189, 248, 0.2);
  --bg-spot-2: rgba(168, 85, 247, 0.16);
  --bg-spot-3: rgba(34, 197, 94, 0.14);
  --laser-1: rgba(56, 189, 248, 0.6);
  --laser-2: rgba(168, 85, 247, 0.55);
  --laser-3: rgba(34, 197, 94, 0.45);
  --page-hero-bg: linear-gradient(140deg, rgba(8, 12, 26, 0.96), rgba(8, 12, 26, 0.74));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% -5% auto -5%;
  height: 70vh;
  background: var(--gradient-soft);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(16, 18, 35, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 35, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.2;
  z-index: -3;
  pointer-events: none;
}

#bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

#bg-fx::before,
#bg-fx::after {
  content: "";
  position: absolute;
  width: 160%;
  height: 4px;
  left: -30%;
  opacity: var(--fx-opacity);
  filter: blur(1px) saturate(var(--fx-sat)) brightness(var(--fx-bright));
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
  animation: fx-sweep 1.6s linear infinite;
}

#bg-fx::before {
  top: 18%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.45) 20%,
    rgba(255, 77, 109, 0.7) 40%,
    rgba(124, 58, 237, 0.85) 55%,
    rgba(34, 197, 94, 0.55) 72%,
    transparent 100%
  );
}

#bg-fx::after {
  animation-duration: 1.9s;
  opacity: calc(var(--fx-opacity) * 0.85);
  top: 68%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.55) 22%,
    rgba(0, 229, 255, 0.9) 45%,
    rgba(249, 115, 22, 0.75) 62%,
    rgba(168, 85, 247, 0.55) 80%,
    transparent 100%
  );
}

#bg-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  filter: blur(0.5px) saturate(1.15);
  mix-blend-mode: screen;
}

@keyframes fx-sweep {
  0% {
    transform: translateX(-20%);
  }
  100% {
    transform: translateX(20%);
  }
}

main,
header,
footer,
.site,
.container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: ambientShift 18s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bg-fx::before,
  #bg-fx::after {
    animation: none;
    opacity: 0.12;
  }
}

@media (max-width: 768px) {
  :root {
    --fx-opacity: 0.2;
    --fx-blur: 12px;
  }

  #bg-fx-canvas {
    opacity: 0.55;
  }
}

@keyframes ambientShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-2%, -1%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(11, 16, 32, 0.08);
  backdrop-filter: blur(12px);
}

.section.tight {
  padding: 72px 0;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--ink);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.25);
  color: #0078a8;
  font-weight: 600;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 18, 35, 0.08);
  color: #101629;
  box-shadow: 0 12px 28px rgba(6, 10, 25, 0.12);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.35;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 90px;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.logo-img.wordmark {
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  color: rgba(13, 19, 34, 0.78);
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
  width: auto;
  justify-self: center;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #0b1222;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 18px 30px rgba(5, 8, 20, 0.25), 0 0 22px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 38px rgba(5, 8, 20, 0.3), 0 0 26px rgba(124, 58, 237, 0.35);
}

.btn-ghost {
  background: rgba(15, 21, 38, 0.06);
  border: 1px solid rgba(15, 21, 38, 0.16);
  color: #0f172a;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(15, 21, 38, 0.3);
}

.btn-outline {
  border: 1px solid rgba(15, 18, 35, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  border-color: rgba(15, 18, 35, 0.32);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f6f8ff;
  background: rgba(255, 255, 255, 0.08);
}

.hero .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
  color: #eef3ff;
  background: var(--page-hero-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, var(--bg-spot-1), transparent 55%),
    radial-gradient(circle at 80% 10%, var(--bg-spot-2), transparent 55%),
    radial-gradient(circle at 60% 80%, var(--bg-spot-3), transparent 55%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 180%;
  background: linear-gradient(120deg, transparent 0%, var(--laser-1) 42%, transparent 52%),
    linear-gradient(35deg, transparent 0%, var(--laser-2) 40%, transparent 55%),
    linear-gradient(200deg, transparent 0%, var(--laser-3) 35%, transparent 55%);
  opacity: 0.45;
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    animation: laserSweep 12s linear infinite;
  }
}

@keyframes laserSweep {
  0% {
    transform: translateX(-6%) rotate(0deg);
  }
  50% {
    transform: translateX(6%) rotate(1deg);
  }
  100% {
    transform: translateX(-6%) rotate(0deg);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  line-height: 1.05;
  margin: 16px 0;
  color: #f6f8ff;
  text-shadow: 0 18px 40px rgba(2, 4, 12, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 0.55em;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(240, 245, 255, 0.82);
}

.hero-copy p {
  color: rgba(240, 245, 255, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-highlights {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(11, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(5, 8, 20, 0.35);
}

.highlight strong {
  display: block;
  font-weight: 700;
}

.hero-panel {
  background: rgba(9, 12, 24, 0.72);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(4, 6, 16, 0.35);
  overflow: hidden;
}

.panel-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 10, 22, 0.75), transparent 70%),
    linear-gradient(20deg, var(--laser-2), transparent 65%);
}

.panel-body {
  padding: 24px 26px 28px;
}

.panel-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.capsule-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.capsule-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.capsule-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.hero .panel-title {
  color: #f6f8ff;
}

.hero .capsule-list {
  color: rgba(234, 240, 255, 0.82);
}

.hero .panel-footer {
  color: rgba(234, 240, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.panel-footer {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  font-size: 0.9rem;
  color: #0b3550;
  font-weight: 600;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

.card-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.9), rgba(124, 58, 237, 0.9));
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.2);
  flex-shrink: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.project-logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 18, 35, 0.12);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(15, 18, 35, 0.12);
  flex-shrink: 0;
}

.project-logo img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  display: block;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 10px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.08), transparent 35%),
    linear-gradient(200deg, rgba(124, 58, 237, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(6, 10, 24, 0.18), 0 0 28px rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.28);
}

.card:hover::before {
  opacity: 1;
}

.simple-offers .card {
  padding: 22px 22px 24px;
}

.simple-offers .card h3 {
  margin-bottom: 6px;
}

.simple-offers .card p {
  margin: 0 0 8px;
}

.simple-offers .card p:last-child {
  margin-bottom: 0;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0b3550;
  background: rgba(0, 229, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

@media (min-width: 1200px) {
  .projects-grid .card:last-child {
    grid-column: 2 / span 1;
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(16, 18, 35, 0.06);
  color: var(--ink-2);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.link {
  color: var(--accent-1);
  font-weight: 600;
  text-decoration: none;
}

.link:hover,
.link:focus-visible {
  text-decoration: underline;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.image-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 18, 35, 0.08);
}

.image-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.image-card-content {
  padding: 18px 20px 22px;
}

.contact-visual {
  aspect-ratio: 16 / 10;
}

.contact-visual img {
  height: 100%;
}

.story-card {
  background: rgba(8, 12, 24, 0.92);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(240, 245, 255, 0.9);
  box-shadow: 0 24px 50px rgba(4, 6, 16, 0.35);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--bg-spot-1), transparent 60%),
    linear-gradient(120deg, transparent 0%, rgba(124, 58, 237, 0.4) 45%, transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}

.story-card > * {
  position: relative;
  z-index: 1;
}

.story-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.story-card .capsule-list {
  color: rgba(240, 245, 255, 0.82);
}

.story-card .notice {
  color: rgba(240, 245, 255, 0.68);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 18, 35, 0.08);
}

.timeline-step {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.stat {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 18, 35, 0.08);
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
}

.notice {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero .notice,
.cta .notice {
  color: rgba(234, 240, 255, 0.7);
}

.cta {
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.95), rgba(8, 12, 24, 0.78));
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--bg-spot-1), transparent 60%),
    linear-gradient(120deg, transparent 0%, var(--laser-2) 45%, transparent 60%);
  opacity: 0.55;
}

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

.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.page-hero {
  padding: 96px 0 64px;
  background: var(--page-hero-bg);
  color: #f4f7ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, var(--bg-spot-1), transparent 55%),
    radial-gradient(circle at 85% 5%, var(--bg-spot-2), transparent 55%),
    radial-gradient(circle at 70% 80%, var(--bg-spot-3), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, var(--laser-1) 45%, transparent 60%),
    linear-gradient(30deg, transparent 0%, var(--laser-2) 40%, transparent 58%);
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero::after {
    animation: laserSweep 14s linear infinite;
  }
}

.page-hero .section-title {
  color: #fff;
  text-shadow: 0 16px 34px rgba(2, 4, 12, 0.45);
}

.page-hero .section-kicker {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-hero-card {
  background: rgba(8, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(2, 4, 12, 0.35);
}

.page-hero-media {
  height: 180px;
  margin: -18px -20px 14px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 10, 22, 0.7), transparent 70%),
    linear-gradient(20deg, var(--laser-2), transparent 65%);
}

.page-hero-card h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #fff;
}

.page-hero-card .capsule-list li {
  color: rgba(255, 255, 255, 0.85);
}

.form-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 26px 28px 30px;
  border: 1px solid rgba(12, 18, 35, 0.1);
  box-shadow: 0 24px 50px rgba(8, 12, 25, 0.14);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0, 229, 255, 0.08), transparent 40%),
    linear-gradient(220deg, rgba(124, 58, 237, 0.08), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.form-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.6;
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.dialogue-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.dialogue-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid rgba(12, 18, 35, 0.1);
  box-shadow: 0 30px 70px rgba(8, 12, 25, 0.16);
  position: relative;
  overflow: hidden;
}

.dialogue-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0, 229, 255, 0.08), transparent 40%),
    linear-gradient(220deg, rgba(124, 58, 237, 0.08), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.dialogue-panel > * {
  position: relative;
  z-index: 1;
}

.dialogue-header {
  margin-bottom: 24px;
}

.dialogue-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: rgba(8, 12, 24, 0.08);
  border: 1px solid rgba(12, 18, 35, 0.12);
  color: #3b4256;
}

.dialogue-form {
  display: grid;
  gap: 22px;
}

.dialogue-step h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.choice-chip {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(12, 18, 35, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.choice-chip:hover,
.choice-chip:focus-visible {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 14px 30px rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

.choice-chip.is-selected {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.2);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(0, 229, 255, 0.12));
}

.dialogue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.dialogue-summary {
  display: grid;
  gap: 18px;
}

.summary-card {
  background: rgba(8, 12, 24, 0.85);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(4, 6, 16, 0.35);
  color: rgba(240, 245, 255, 0.9);
}

.summary-card h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 10px;
  color: #fff;
}

.summary-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.summary-card strong {
  color: #fff;
}

.summary-card .notice {
  color: rgba(240, 245, 255, 0.7);
}

.summary-media {
  padding: 0;
  overflow: hidden;
}

.summary-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.guide-card {
  display: grid;
  gap: 12px;
}

.guide-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.guide-header h3 {
  margin: 0 0 4px;
}

.guide-header .notice {
  margin: 0;
}

.guide-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 12px 24px rgba(0, 229, 255, 0.2);
}

.preview-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.preview-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.preview-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 18, 35, 0.14);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18);
}

.hidden {
  display: none !important;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: #fff;
  box-shadow: 0 20px 50px rgba(6, 10, 24, 0.12), 0 0 26px rgba(0, 229, 255, 0.12);
  aspect-ratio: 16 / 10;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  background: #080b17;
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, var(--bg-spot-1), transparent 55%);
  opacity: 0.7;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, transparent 0%, var(--laser-2) 45%, transparent 60%);
  opacity: 0.2;
  pointer-events: none;
}

.footer h4 {
  color: #fff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.footer .logo-img {
  height: 64px;
}

.footer-brand p {
  margin-top: 14px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer .tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f6f9ff;
  box-shadow: 0 10px 20px rgba(7, 10, 20, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.socials svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.socials a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), rgba(124, 58, 237, 0.55));
  opacity: 0;
  z-index: 0;
  transition: opacity 0.2s ease;
}

.socials a svg {
  position: relative;
  z-index: 1;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 32px rgba(7, 10, 20, 0.4);
}

.socials a:hover::before,
.socials a:focus-visible::before {
  opacity: 0.45;
}

.form-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 18, 35, 0.08);
  vertical-align: top;
}

.compare-table th {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b3550;
  background: rgba(0, 229, 255, 0.08);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: #0b1020;
  font-size: 1rem;
  font-weight: 500;
}

.loop-diagram {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 18, 35, 0.08);
  border: 1px solid rgba(15, 18, 35, 0.12);
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
}

.loop-diagram svg {
  width: min(360px, 90%);
  height: 160px;
  opacity: 0.75;
}

.loop-node {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 18, 35, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b1020;
  box-shadow: 0 10px 24px rgba(15, 18, 35, 0.12);
}

.loop-node.node-measure { top: 24px; left: 18px; }
.loop-node.node-understand { top: 18px; right: 18px; }
.loop-node.node-prioritize { bottom: 24px; right: 18px; }
.loop-node.node-improve { bottom: 24px; left: 18px; }
.loop-node.node-document { top: 50%; left: 50%; transform: translate(-50%, -50%); }

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

.loop-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 18, 35, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.loop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(15, 18, 35, 0.18);
}

.loop-card h3 {
  margin: 8px 0 6px;
  font-size: 0.98rem;
}

.loop-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.engagement {
  display: grid;
  gap: 22px;
}

.engagement-grid {
  gap: 16px;
}

.engagement-card {
  padding: 18px 18px 16px;
}

.engagement-card h3 {
  margin-bottom: 6px;
}

.engagement-card .notice {
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.engagement-card p {
  margin-bottom: 10px;
}

.engagement-card .capsule-list {
  gap: 8px;
  font-size: 0.9rem;
}

.cookie-card {
  padding: 12px 14px;
  gap: 8px;
}

.cookie-head h3 {
  margin-bottom: 6px;
}

.cookie-head p {
  font-size: 0.86rem;
}

.cookie-actions {
  gap: 6px;
}

.cookie-panel {
  padding-top: 6px;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cookie-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.cookie-panel-actions {
  justify-content: flex-start;
  margin-top: 2px;
  grid-column: 1 / -1;
}

.cookie-card .btn {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.cookie-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #38bdf8;
}

.diagram {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(15, 18, 35, 0.08);
  border: 1px solid rgba(15, 18, 35, 0.12);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}

.deliverable-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(15, 18, 35, 0.04);
  border: 1px solid rgba(15, 18, 35, 0.12);
  font-family: "Manrope", "Segoe UI", sans-serif;
  box-shadow: var(--shadow-soft);
}

.deliverable-title {
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

.deliverable-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.deliverable-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.deliverable-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.faq-item {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  color: #0b1020;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
  background: rgba(16, 20, 34, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  text-align: center;
  align-items: center;
}

.mobile-menu a {
  color: #f5f8ff;
}

.mobile-menu .btn {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  left: auto;
  bottom: 24px;
  z-index: 999;
  width: min(420px, calc(100vw - 32px));
}

.cookie-banner.hidden {
  display: none;
}

.cookie-card {
  background: rgba(8, 12, 24, 0.92);
  color: rgba(240, 245, 255, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px rgba(4, 6, 16, 0.35), 0 0 28px rgba(0, 229, 255, 0.18);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.cookie-head h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-bottom: 4px;
  color: #fff;
}

.cookie-head p {
  color: rgba(240, 245, 255, 0.72);
  font-size: 0.86rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cookie-panel {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

.cookie-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(240, 245, 255, 0.82);
}

.cookie-option input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: #38bdf8;
}

.cookie-panel-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.cookie-card .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.cookie-card .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 998;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(8, 12, 24, 0.9);
  color: #fff;
  border: 0;
  font-size: 0.85rem;
  display: inline-flex;
  box-shadow: 0 12px 24px rgba(15, 18, 35, 0.3);
}

.cookie-fab.hidden {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 997;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 24, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(15, 18, 35, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.2), 0 12px 24px rgba(15, 18, 35, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top {
    transition: none;
  }
}

#page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, var(--bg-spot-1), transparent 50%),
    radial-gradient(circle at 80% 20%, var(--bg-spot-2), transparent 55%),
    linear-gradient(120deg, rgba(8, 12, 24, 0.95), rgba(8, 12, 24, 0.75));
  opacity: 0;
  transform: translateY(-8%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 9999;
}

body.is-transitioning #page-transition {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    justify-self: center;
  }

  .mobile-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-menu.active {
    display: flex;
  }

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

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .dialogue-shell {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1200px) {
  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }

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

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

@media (max-width: 1120px) {
  .nav-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 700px) {
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .card-grid.case-grid {
    grid-template-columns: 1fr;
  }

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

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .cookie-panel {
    grid-template-columns: 1fr;
  }

  .hero-tagline {
    font-size: 0.6em;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .cta {
    padding: 32px;
  }

  .hero {
    padding: 100px 0 70px;
  }

  .logo-img {
    height: 56px;
  }

  .logo-img.wordmark {
    height: 48px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .cookie-card {
    padding: 16px;
  }
}
