/* =========================================================
   Passage Net Pro — v2
   Inspired by 21st.dev patterns (glow hero, deco cards, bento)
   ========================================================= */

:root {
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --ink: #0B1F3A;
  --ink-2: #1E3A5F;
  --mute: #5B6B82;
  --line: #E5EAF2;
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1E40AF;
  --accent: #06B6D4;
  --accent-soft: #E0F2FE;
  --gold: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .05), 0 4px 12px rgba(11, 31, 58, .04);
  --shadow-md: 0 2px 6px rgba(11, 31, 58, .06), 0 12px 32px rgba(11, 31, 58, .08);
  --shadow-lg: 0 8px 24px rgba(37, 99, 235, .18), 0 24px 48px rgba(11, 31, 58, .1);
  --radius: 16px;
  --radius-lg: 24px;
}

/* Reset */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
.section-lead { color: var(--mute); font-size: 1.08rem; max-width: 640px; margin: 14px auto 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }

/* =========================================================
   NAVBAR — floating glass
   ========================================================= */
.navbar-container {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
}
.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(11, 31, 58, .06), 0 10px 32px rgba(11, 31, 58, .08);
  transition: background .3s, box-shadow .3s;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}
.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
  position: relative;
}
.brand-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .35);
  filter: blur(1px);
}
.nav-inner {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.nav-link:hover { background: rgba(37, 99, 235, 0.08); color: var(--primary); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--primary); }

@media (max-width: 860px) {
  .nav-inner { display: none; }
  .navbar { grid-template-columns: 1fr auto; }
}

/* =========================================================
   HERO — centered badge + gradient title + radial glow
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.webp') no-repeat center/cover;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.78) 0%,
    rgba(11, 31, 58, 0.55) 45%,
    rgba(11, 31, 58, 0.75) 100%
  );
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 10%, rgba(6, 182, 212, 0.45), transparent 65%),
    radial-gradient(45% 40% at 50% 85%, rgba(37, 99, 235, 0.35), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 860px;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.hero-badge:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22D3EE;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12); }
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-top: 28px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.title-gradient {
  background: linear-gradient(90deg, #67E8F9, #A5C8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin: 22px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,.2);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.45); }

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.trust-avatars {
  display: flex;
}
.trust-avatars span {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 2px solid #0B1F3A;
  background: linear-gradient(135deg, #60A5FA, #22D3EE);
  margin-left: -10px;
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #F59E0B, #FB7185); }
.trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #34D399, #06B6D4); }
.trust-avatars span:nth-child(4) { background: linear-gradient(135deg, #A78BFA, #6366F1); }
.trust-text { text-align: left; color: #fff; font-size: 0.88rem; }
.trust-stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}
.trust-stars svg { width: 14px; height: 14px; }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-lbl { font-size: 0.88rem; color: var(--mute); }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* =========================================================
   INTRO (Qui sommes-nous)
   ========================================================= */
.intro-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.intro-copy .section-title { text-align: left; }
.section-text { color: var(--mute); font-size: 1.02rem; margin: 16px 0; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.96rem;
}
.check-list svg { color: var(--primary); flex-shrink: 0; }

.intro-card {
  position: relative;
  background: linear-gradient(160deg, var(--accent-soft), #F0F9FF);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.intro-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(37,99,235,.25);
  margin-bottom: 18px;
}
.intro-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 14px;
}
.intro-sign { color: var(--mute); font-size: 0.92rem; margin: 0; }

@media (max-width: 860px) {
  .intro-wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   SERVICES — cards with decorative grid-paper top
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid-4 { grid-template-columns: 1fr; } }

/* Service card as clickable anchor */
a.service-card { text-decoration: none; color: inherit; display: block; }

/* Villes grid */
.villes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 768px) { .villes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .villes-grid { grid-template-columns: 1fr; } }

.ville-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.ville-card::after {
  content: "→";
  position: absolute; right: 22px; opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
  color: var(--primary);
  font-weight: 700;
}
.ville-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px -18px rgba(37, 99, 235, .45);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}
.ville-card:hover span { opacity: 0; }
.ville-card:hover::after { opacity: 1; transform: translateX(0); }
.ville-card strong { font-size: 15px; }
.ville-card span { color: var(--ink-soft, #667085); font-size: 13px; transition: opacity .25s ease; }
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}
.card-deco {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
}
.card-icon-box {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(11, 31, 58, .15);
  backdrop-filter: blur(6px);
}
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-content { padding: 24px 24px 26px; }
.service-content h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.service-content p {
  font-size: 0.96rem;
  color: var(--mute);
  margin: 0 0 14px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap .2s, color .2s;
}
.service-card:hover .card-link { gap: 10px; color: var(--primary-600); }

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

/* =========================================================
   STEPS (processus)
   ========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, box-shadow .25s;
}
.step:hover { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow-sm); }
.step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.step p { color: var(--mute); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   TESTIMONIALS — bento grid
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.testimonial {
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial.featured {
  grid-row: span 2;
  background: linear-gradient(160deg, #EFF6FF 0%, #F0FDFA 100%);
  border-color: rgba(37, 99, 235, 0.15);
}
.t-stars { display: flex; gap: 3px; color: var(--gold); }
.t-stars svg { width: 18px; height: 18px; }
.testimonial blockquote {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}
.testimonial.featured blockquote { font-size: 1.28rem; font-weight: 500; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.who { display: flex; flex-direction: column; font-size: 0.9rem; }
.who strong { color: var(--ink); font-weight: 600; }
.who span { color: var(--mute); font-size: 0.84rem; }
@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial.featured { grid-row: auto; }
}

/* =========================================================
   DEVIS
   ========================================================= */
.devis-section {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.devis-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
}
.devis-side {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.devis-side::before {
  content: "";
  position: absolute;
  top: -40%; right: -40%;
  width: 80%; height: 80%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.35), transparent);
  pointer-events: none;
}
.devis-side h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 18px;
  position: relative;
}
.devis-side .check-list li { color: rgba(255,255,255,.92); }
.devis-side .check-list svg { color: #22D3EE; }
.side-contact { margin-top: 32px; position: relative; }
.side-label { color: rgba(255,255,255,.6); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 10px; }
.side-phone {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
  transition: color .2s;
}
.side-phone:hover { color: #22D3EE; }
.side-sub { font-size: 0.82rem; color: rgba(255,255,255,.55); margin: 2px 0 14px; }

.formulaire {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FAFBFD;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 20px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transition: background .2s, box-shadow .2s, transform .15s;
}
.btn-submit:hover {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}
.btn-submit:active { transform: translateY(1px); }
.form-hint { font-size: 0.82rem; color: var(--mute); text-align: center; margin: 14px 0 0; }

@media (max-width: 860px) {
  .devis-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT GRID
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: pointer;
}
.contact-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.contact-label { color: var(--mute); font-size: 0.82rem; }
.contact-value { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #091627;
  color: #fff;
  padding: 64px 0 24px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .nav-brand { color: #fff; }
.footer-tag { color: rgba(255,255,255,.6); margin-top: 14px; font-size: 0.95rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 0.94rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { margin: 0; }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   SUB-PAGE HERO + PROSE + RELATED
   ========================================================= */
.subpage-hero {
  padding: 140px 24px 40px;
  background:
    radial-gradient(45% 55% at 20% 30%, rgba(6, 182, 212, 0.15), transparent 70%),
    radial-gradient(35% 50% at 90% 10%, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(180deg, #F0F9FF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.subpage-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin: 14px 0 16px;
  max-width: 820px;
}
.subpage-lead {
  color: var(--mute);
  font-size: 1.12rem;
  max-width: 720px;
  line-height: 1.65;
  margin: 0 0 26px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--mute);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--mute);
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #B5C0D2; }

.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.9rem;
  margin: 0 0 18px;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 36px 0 14px;
  color: var(--ink-2);
}
.prose p {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.prose ul:not(.check-list) {
  padding-left: 1.2rem;
  color: var(--ink-2);
}
.prose ul:not(.check-list) li { margin-bottom: 8px; }
.prose a { color: var(--primary); font-weight: 500; }
.prose a:hover { text-decoration: underline; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 16px 0 10px;
}
.mini-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.mini-grid strong { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); font-size: 1.02rem; }
.mini-grid p { margin: 8px 0 0; color: var(--mute); font-size: 0.94rem; }
@media (max-width: 600px) { .mini-grid { grid-template-columns: 1fr; } }

.related-cta {
  margin: 72px auto 0;
  max-width: 780px;
  padding: 42px 36px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #0EA5E9);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(37,99,235,.25);
}
.related-cta h2 { color: #fff; font-size: 1.75rem; margin-bottom: 8px; }
.related-cta p { color: rgba(255,255,255,.85); margin: 0 0 20px; }
.related-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.related-cta .btn-primary:hover { background: #F0F9FF; }

.related-links {
  margin: 72px auto 0;
  max-width: 1080px;
}
.related-links h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}
.related-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.related-card strong { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); font-size: 1.05rem; }
.related-card span { color: var(--mute); font-size: 0.9rem; }

/* FAQ accordion */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 6px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--mute);
  margin: 10px 0 4px;
  line-height: 1.7;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(37,99,235,.3);
}
.blog-card-body { padding: 22px; }
.blog-card-meta { font-size: 0.82rem; color: var(--mute); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.blog-card h3 { font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.blog-card p { color: var(--mute); font-size: 0.94rem; margin: 0; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

.article-meta {
  color: var(--mute);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
}
.page-404 h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

/* =========================================================
   Animations
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: none; }

/* Navbar shrink on scroll */
.navbar.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 6px 30px -10px rgba(11, 31, 58, .14);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in, .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
