/* =========================================================
   JUALI — Feuille de style principale
   Modifiez librement les variables ci-dessous pour adapter
   les couleurs, les polices et les espacements du site.
   ========================================================= */

:root {
  /* Couleurs */
  --primary: #1852F1;          /* Bleu Juali (couleur principale, charte) */
  --primary-dark: #0D3AD1;
  --primary-light: #3D8BFF;
  --accent: #1FC8E8;           /* Cyan (couleur secondaire) */
  --accent-violet: #7B61FF;

  --navy-900: #070C20;         /* Fond sombre profond */
  --navy-800: #0A1230;
  --navy-700: #0C1840;
  --navy-600: #13235E;

  --bg: #F4F7FE;               /* Fond clair général (charte) */
  --surface: #ffffff;          /* Cartes / surfaces */
  --surface-alt: #F8FAFF;

  --text: #0B1020;             /* Texte principal */
  --text-muted: #5A6479;       /* Texte secondaire */
  --text-light: #AEBBD9;       /* Texte sur fond sombre */

  --border: #EAEEF6;
  --border-strong: #C9D6F5;

  /* Typographie */
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Rayons & ombres */
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 16, 32, 0.08);
  --shadow-lg: 0 22px 44px rgba(11, 16, 32, 0.10);
  --shadow-primary: 0 12px 28px rgba(24, 82, 241, 0.32);

  /* Dégradés */
  --grad-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --grad-blue: linear-gradient(135deg, #1852F1, var(--primary-light));
  --grad-dark: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, #0A1E5C 100%);

  --container: 1200px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }

/* ---------- Utilitaires ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.text-center { text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.eyebrow--light { color: var(--primary-light); }
.section-title {
  font-weight: 800; font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.08; color: var(--text);
}
.lead {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.6;
  color: var(--text-muted); max-width: 60ch;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 14px;
  transition: transform .2s, box-shadow .2s; text-align: center;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { color: #fff; background: var(--grad-primary); box-shadow: var(--shadow-primary); }
.btn--light { color: var(--text); background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.btn--ghost { color: var(--primary); background: rgba(36,86,230,0.07); }
.btn--block { display: block; width: 100%; }

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(244,247,254,0.9), rgba(244,247,254,0.72));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 -1px 0 var(--border);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(11,16,32,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; max-width: var(--container); margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad-blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 16px rgba(36,86,230,0.35);
}
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--text); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 15px; font-weight: 600; color: #44506B;
  padding: 8px 13px; border-radius: 10px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__links { display: flex; align-items: center; gap: 10px; }
.nav__link {
  font-size: 15px; font-weight: 600; color: var(--navy-600);
  padding: 8px 13px; border-radius: 10px; white-space: nowrap;
  transition: color .18s, background .18s, transform .12s;
}
.nav__link:hover { background: rgba(24,82,241,0.07); color: var(--primary); transform: translateY(-2px); }
.nav__link.is-active { color: var(--primary); font-weight: 700; }
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none; cursor: pointer; width: 42px; height: 42px;
  border-radius: 11px; border: 1px solid var(--border); background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
  .nav__toggle {
    display: none; cursor: pointer; width: 44px; height: 44px;
    border-radius: 12px; border: 1px solid var(--border); background: #fff;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  }
.btn--primary { color: #fff; background: var(--grad-primary); box-shadow: var(--shadow-primary); padding: 14px 22px; border-radius: 12px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.nav__mobile { display: none; padding: 8px 16px 18px; border-top: 1px solid var(--border); }
.nav__mobile.is-open { display: flex; flex-direction: column; gap: 4px; }
.nav__mobile .nav__link { font-size: 16px; padding: 12px 14px; }
.nav__mobile .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-dark); color: #fff; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none;
}
.hero__orb--1 { top: -120px; right: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle at 40% 40%, rgba(31,200,232,.33), transparent 70%);
  animation: floaty 9s ease-in-out infinite; }
.hero__orb--2 { bottom: -160px; left: -100px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(36,86,230,.45), transparent 70%); }
.hero__inner { position: relative; text-align: center; padding: clamp(80px,12vw,150px) 24px clamp(72px,9vw,120px); max-width: var(--container); margin: 0 auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: 13px; font-weight: 600; color: #CFE0FF; margin-bottom: 26px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__title { font-weight: 800; font-size: clamp(34px,6vw,68px); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; margin: 0 auto; }
.gradient-text { background: linear-gradient(100deg,#5B9BFF,#1FC8E8 60%,#9C8BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { margin: 24px auto 0; max-width: 62ch; font-size: clamp(16px,2vw,20px); color: var(--text-light); }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Statistiques */
.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; max-width: 760px; margin-left: auto; margin-right: auto; }
.stat { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 40px;
  background: linear-gradient(135deg,#5B9BFF,#1FC8E8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 4px; font-size: 14px; color: #9FB0D4; font-weight: 500; }

/* ---------- Bandeau de page (pages intérieures) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: clamp(70px,10vw,120px) 24px; text-align: center; }
.page-hero h1 { font-weight: 800; font-size: clamp(32px,5.5vw,58px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.page-hero .lead { margin: 22px auto 0; color: var(--text-light); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--grad-primary); box-shadow: 0 8px 18px rgba(36,86,230,.28); margin-bottom: 20px; }

/* Font Awesome inside card icons */
.card__icon i { color: #fff; font-size: 22px; display: inline-block; line-height: 50px; text-align: center; width: 100%; }

/* Global Font Awesome tinting (use context-specific overrides when needed) */
.fa, .fas, .far, .fab, .fa-solid { color: var(--primary); }

/* Focus outlines for accessibility */
.nav__link:focus, .btn:focus, .field input:focus, .field textarea:focus, .legal-tab:focus { outline: 3px solid rgba(24,82,241,0.12); outline-offset: 3px; }

/* Small-screen tweaks */
@media (max-width:600px){
  .brand__name{font-size:18px}
  .footer__logo{width:72px;height:72px}
  /* 2 colonnes harmonieuses au lieu d'une seule colonne empilée */
  .footer__top{grid-template-columns:1fr 1fr;gap:22px 18px;padding-bottom:28px}
  .footer__about{max-width:none}
  .footer__col h4{margin-bottom:12px;font-size:13px}
  .footer__col li{margin-bottom:9px}
  .footer__col a,.footer__col span{font-size:14px}
}
@media (max-width:360px){
  .footer__top{grid-template-columns:1fr}
}

/* Icons inside value__mark */
.value__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-primary); margin-bottom: 16px; box-shadow: 0 6px 14px rgba(36,86,230,.25); }
.value__mark i { color: #fff; font-size: 16px; display: inline-block; line-height: 34px; width: 100%; text-align: center; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.card__text { font-size: 15px; color: var(--text-muted); }

/* Cartes produits / projets */
.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product__media { height: 150px; background: linear-gradient(135deg,#EAF1FF,#F4F0FF); display: flex; align-items: center; justify-content: center; font-size: 52px; border-bottom: 1px solid #EEF2FB; position: relative; }
.product__media--hatch { background: repeating-linear-gradient(135deg,#EDF2FF,#EDF2FF 11px,#F5F8FF 11px,#F5F8FF 22px); height: 170px; }

/* Font Awesome icons in product media */
.product__media i { font-size: 64px; color: var(--navy-600); display: inline-block; line-height: 1; }
.product__body { padding: 26px; }
.product__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.product__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.tag { font-size: 12px; font-weight: 700; color: var(--primary); background: rgba(36,86,230,.08); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.tag--cat { display: inline-block; margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.badge-status { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; color: #0B7A53; background: #E3F7EE; border: 1px solid #BCEBD6; padding: 5px 11px; border-radius: 999px; }
.media-label { position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-size: 11px; letter-spacing: .04em; color: #8FA0C8; font-weight: 600; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; margin-top: 18px; border-top: 1px solid #EEF2FB; }
.tech-pill { font-size: 12px; font-weight: 600; color: #3A4358; background: #F2F5FC; padding: 5px 11px; border-radius: 8px; }

/* Bloc présentation */
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,3.6vw,38px); line-height: 1.3; text-wrap: balance; }
.statement span { color: var(--primary); }

/* En-tête de section avec lien */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 46px; }
.link-arrow { font-weight: 700; color: var(--primary); font-size: 15px; }

/* ---------- Services (liste) ---------- */
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.service:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.service__row { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.service__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px,5vw,52px); line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 60px; }
.service__body { flex: 1; min-width: 240px; }
.service__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.6vw,26px); margin-bottom: 10px; }
.service__text { font-size: 16px; color: var(--text-muted); margin: 0 0 18px; max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-size: 13px; font-weight: 600; color: var(--primary); background: rgba(36,86,230,.07); border: 1px solid rgba(36,86,230,.14); padding: 6px 13px; border-radius: 999px; }

/* ---------- Technologies ---------- */
.tech-group { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tech-group__title { min-width: 200px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.6vw,26px); }
.tech-group__items { flex: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.tech-item { font-size: 15px; font-weight: 600; color: var(--navy-600); background: #F2F5FC; border: 1px solid #E4EAF6; padding: 11px 20px; border-radius: 13px; transition: transform .2s, border-color .2s; }
.tech-item:hover { transform: translateY(-3px); border-color: var(--primary); }

/* ---------- Équipe ---------- */
.member { text-align: center; }
.member__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-primary); margin: 0 auto 18px; box-shadow: 0 10px 22px rgba(36,86,230,.3); }

/* ---------- Valeurs ---------- */
.value__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-primary); margin-bottom: 16px; box-shadow: 0 6px 14px rgba(36,86,230,.25); }

/* ---------- Blog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter { font-size: 14px; font-weight: 600; color: #3A4358; background: #fff; border: 1px solid #E4EAF6; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filter:hover, .filter.is-active { border-color: var(--primary); color: var(--primary); }
.post__media { height: 150px; background: repeating-linear-gradient(135deg,#EDF2FF,#EDF2FF 11px,#F5F8FF 11px,#F5F8FF 22px); display: flex; align-items: flex-end; padding: 14px; }
.post__cat { font-size: 11px; font-weight: 700; color: var(--primary); background: #fff; border: 1px solid #DCE6FB; padding: 5px 11px; border-radius: 999px; }
.post__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; margin-bottom: 14px; text-wrap: pretty; }
.post__meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #8B93A8; }

/* ---------- CTA bandeau ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); border-radius: 30px; padding: clamp(44px,7vw,80px) clamp(28px,5vw,72px); text-align: center; color: #fff; }
.cta-band__orb { position: absolute; top: -80px; right: -40px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(31,200,232,.35), transparent 70%); filter: blur(10px); }
.cta-band h2 { position: relative; font-weight: 800; font-size: clamp(26px,4vw,44px); line-height: 1.12; max-width: 20ch; margin: 0 auto; }
.cta-band--bright { background: var(--grad-primary); }
.cta-band--bright .btn--light { color: var(--primary-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 34px; align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-card__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.info-card__value { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { font-size: 14px; font-weight: 600; color: var(--navy-600); background: #F2F5FC; padding: 9px 16px; border-radius: 10px; transition: background .2s, color .2s; }
.social-links a:hover { background: var(--primary); color: #fff; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-md); }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #3A4358; }
.field input, .field textarea {
  border: 1px solid #E2E8F6; border-radius: 12px; padding: 13px 15px;
  font-size: 15px; color: var(--text); background: #FAFBFE; font-family: inherit; outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9AA3BC; }
.form__success { text-align: center; padding: 30px 10px; }
.form__success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-primary); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 800; }
.hidden { display: none !important; }

/* ---------- Pages légales ---------- */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.legal-tab { cursor: pointer; font-size: 14px; font-weight: 600; color: #3A4358; background: #fff; border: 1px solid #E4EAF6; padding: 10px 18px; border-radius: 999px; transition: all .2s; }
.legal-tab:hover { border-color: var(--primary); color: var(--primary); }
.legal-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.legal-panel { display: none; }
.legal-panel.is-active { display: block; }
.legal-panel h2 { font-weight: 700; font-size: clamp(22px,3vw,30px); margin-bottom: 18px; }
.legal-panel p { font-size: 15px; line-height: 1.75; color: #3A4358; white-space: pre-line; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, var(--navy-900), #040818); color: #fff; padding: clamp(56px,8vw,90px) 24px 36px; }
.footer { background: linear-gradient(180deg, var(--navy-900), #040818); color: #fff; padding: clamp(56px,8vw,90px) 24px 36px; }
.footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); max-width: var(--container); margin: 0 auto; }
.footer__logo { width: 96px; height: 96px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.footer__about { font-size: 14px; color: #92A0C4; max-width: 280px; }
.footer__col h4 { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #6E7FA8; margin: 0 0 18px; }
.footer__col li { margin-bottom: 12px; }
.footer__col a, .footer__col span { font-size: 15px; color: #C3CDE4; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__col a, .footer__col span { font-size: 15px; color: #C3CDE4; transition: color .18s, transform .18s; display: inline-block; }
.footer__col a:hover { color: #fff; transform: translateX(4px); }

/* Legal column emphasis */
.footer__col ul li a[href*="conditions-generales"],
.footer__col ul li a[href*="politique-confidentialite"],
.footer__col ul li a[href*="politique-aml"] {
  color: #E6F2FF;
}
.footer__bottom { max-width: var(--container); margin: 0 auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__tag { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer__copy { font-size: 13px; color: #6E7FA8; }

/* ---------- Animations ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeUp .7s ease both; }

/* Blog post specific styles */
.post-hero {
  position: relative; background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: clamp(56px, 8vw, 120px) 0; overflow: hidden;
}
.post-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.post-hero__card {
  position: relative; max-width: var(--container); margin: 0 auto; background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff); color: var(--text); border-radius: 18px; padding: 28px; box-shadow: 0 18px 40px rgba(11,16,32,0.06); transform: translateY(40px);
}
.post-hero__category { display:inline-block; background: var(--surface); color: var(--primary); padding: 8px 12px; border-radius: 999px; font-weight:700; margin-bottom:12px; }
.post-hero__title { font-family: var(--font-display); font-size: clamp(28px, 4.8vw, 44px); margin: 6px 0 12px; color: var(--text); }
.post-hero__meta { color: var(--text-muted); display:flex; gap:12px; align-items:center; font-size:14px; }
.post-hero__meta img { width:44px; height:44px; border-radius:999px; object-fit:cover; }

.post-content { max-width: var(--container); margin: 48px auto; padding: 0 24px 80px; color: var(--text); }
.post-content h2 { font-family: var(--font-display); margin-top:28px; }
.post-content img { width:100%; border-radius:12px; display:block; margin:18px 0; }
.pullquote { margin:22px 0; padding:18px 22px; background: linear-gradient(90deg, rgba(24,82,241,0.06), rgba(123,97,255,0.04)); border-left:4px solid var(--primary); border-radius:10px; color:var(--text); font-style:italic; }

.related-posts { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:16px; margin-top:36px; }
.related-post { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow: var(--shadow-sm); }

.subscribe-cta { display:flex; gap:18px; align-items:center; background:var(--grad-primary); color:#fff; padding:28px; border-radius:16px; margin-top:32px; }
.subscribe-cta .btn { background: #fff; color: var(--primary); }

@media (max-width:900px){
  .post-hero__card { padding:18px; }
  .post-hero__title { font-size: clamp(20px, 6vw, 28px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .section-head { align-items: flex-start; }
}

/* ---------- Demo blog-post layout overrides (moved from inline) ---------- */
body{background:#f6f8fb}
.demo-wrap{max-width:1100px;margin:48px auto;display:grid;grid-template-columns:1fr 360px;gap:28px;padding:0 18px}
.hero-img{height:220px;border-radius:12px 12px 0 0;background-size:cover;background-position:center;box-shadow:0 8px 30px rgba(15,23,42,0.06)}
.title-card{background:#fff;border-radius:14px;padding:26px 28px;width:100%;margin-top:-60px;box-shadow:0 18px 40px rgba(15,23,42,0.08)}
.post-meta{display:flex;align-items:center;gap:12px;margin-top:12px}
.post-meta img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 6px 18px rgba(11,22,48,0.08)}
.post-hero__category{display:inline-block;background:transparent;padding:6px 10px;border-radius:8px;color:var(--navy-600);font-weight:600}
h1{font-family:Fredoka, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-size:26px;line-height:1.15;margin:6px 0}
.title-card h1{color:var(--navy-900)}
.pullquote{border-left:4px solid var(--rose-400);padding:20px 20px;margin:18px 0;background:transparent;color:var(--text-muted);font-style:italic}
.demo-sidebar{position:relative}
.sidebar-section{background:#fff;border-radius:12px;padding:14px;margin-bottom:18px;box-shadow:0 8px 24px rgba(15,23,42,0.04)}
.tabs{display:flex;gap:12px;border-bottom:1px solid rgba(0,0,0,0.06);padding-bottom:8px}
.tabs button{background:transparent;border:0;padding:8px 10px;border-radius:8px;cursor:pointer}
.tabs button.active{border-bottom:3px solid var(--rose-500);color:var(--rose-600);font-weight:600}
.popular-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(11,22,48,0.04)}
.popular-item:last-child{border-bottom:0}
.popular-thumb{width:56px;height:40px;border-radius:8px;background-size:cover;background-position:center;flex-shrink:0}
.tag-pill{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--soft-bg);margin:6px 6px 0 0;font-size:13px}
.share-url{display:flex;gap:8px;align-items:center}
.share-url input{flex:1;padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,0.08)}
.copy-btn{background:var(--rose-600);color:#fff;padding:8px 12px;border-radius:8px;border:none}
.subscribe-card{background:#fff;color:var(--text);padding:14px;border-radius:12px}
.subscribe-card h3{margin:0 0 6px;font-size:16px}
.subscribe-card p{margin:0 0 10px;color:var(--text-muted);font-size:13px}
.subscribe-card .subscribe-form{display:flex;gap:8px}
.subscribe-card input{flex:1;padding:10px;border-radius:8px;border:1px solid rgba(11,22,48,0.06)}
.subscribe-card .btn{background:linear-gradient(90deg,var(--blue-500,#0b7cff),var(--blue-400,#2ea0ff));color:#fff;padding:10px 14px;border-radius:8px;border:0}
@media (max-width:900px){.demo-wrap{grid-template-columns:1fr;gap:18px;padding:0 18px}.title-card{margin-top:-48px}}

