/* ============================================
   CHRONOASSISTANCE — Feuille de style principale (v2)
   Palette : bleu marine / cyan électrique, effets glossy & dynamiques
   ============================================ */

:root {
  --navy-900: #060f21;
  --navy-800: #0b1f3a;
  --navy-700: #12294f;
  --navy-600: #1a3766;
  --blue-600: #2b5cad;
  --blue-500: #3a72d1;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --violet-500: #6366f1;
  --amber-400: #fbbf24;
  --green-400: #34d399;
  --blue-100: #e8f0fd;
  --gray-900: #10131a;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d9dee6;
  --gray-100: #f4f6fb;
  --white: #ffffff;
  --success: #1f9d55;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 4px 18px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 16px 36px rgba(11, 31, 58, 0.16);
  --glow-cyan: 0 0 0 1px rgba(34,211,238,0.25), 0 12px 30px rgba(34,211,238,0.18);
  --glow-blue: 0 12px 30px rgba(43,92,173,0.28);
  --gradient-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--cyan-400) 100%);
  --gradient-dark: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 130%);
  --max-width: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg.illustration { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

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

/* ===== Transitions douces entre sections (vagues) =====
   Placée en fin de section, colorée dans le ton de la section
   suivante : évite les lignes de séparation trop nettes. */
.section-edge {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 90px;
  line-height: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.section-edge svg { width: 100%; height: 100%; display: block; }
@media (max-width: 700px) {
  .section-edge { height: 46px; }
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--navy-900); letter-spacing: -0.01em; }

h2.section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  margin-bottom: 12px;
}

p.section-lead {
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 1.06rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.on-dark { background: rgba(34,211,238,0.12); color: var(--cyan-300); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  background-size: 160% 160%;
  color: var(--white);
  box-shadow: var(--glow-blue);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-cyan), var(--glow-blue); background-position: 100% 0; }

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-3px); }

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ===== Reveal on scroll =====
   Progressive enhancement: content is fully visible by default.
   Only hidden-then-revealed when the early inline script has
   confirmed JS is running (html.js) — this guarantees the page
   never depends on JS/IntersectionObserver to show its content. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
html.js .reveal-delay-1.in-view { transition-delay: .08s; }
html.js .reveal-delay-2.in-view { transition-delay: .16s; }
html.js .reveal-delay-3.in-view { transition-delay: .24s; }

/* ===== Icon badges (glossy / high-tech) ===== */
.icon-badge {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--blue-500) 0%, var(--navy-800) 75%);
  box-shadow: 0 10px 22px rgba(19, 45, 92, 0.35), inset 0 1px 1px rgba(255,255,255,0.45), inset 0 -8px 14px rgba(0,0,0,0.28);
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-badge::before {
  content: "";
  position: absolute; top: -35%; left: -15%;
  width: 75%; height: 65%;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  filter: blur(7px);
  transform: rotate(-18deg);
}
.icon-badge svg {
  width: 26px; height: 26px;
  stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  position: relative; z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}
.icon-badge.sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.icon-badge.sm svg { width: 20px; height: 20px; }
.icon-badge.cyan { background: linear-gradient(150deg, var(--cyan-400) 0%, #0e7490 80%); }
.icon-badge.violet { background: linear-gradient(150deg, #a5b4fc 0%, var(--violet-500) 80%); }
.icon-badge.amber { background: linear-gradient(150deg, #fde68a 0%, #b45309 85%); }
.icon-badge.green { background: linear-gradient(150deg, #6ee7b7 0%, #047857 85%); }
.icon-badge.rose { background: linear-gradient(150deg, #fda4af 0%, #be123c 85%); }

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 33, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-mark {
  position: relative;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-cyan);
  font-size: 1rem; color: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}
.logo .logo-mark::before {
  content: "";
  position: absolute; top: -35%; left: -15%;
  width: 75%; height: 65%;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  filter: blur(5px);
  transform: rotate(-18deg);
}
.logo .logo-mark svg { position: relative; z-index: 1; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.logo .logo-mark svg circle[fill] { fill: #fff; stroke: none; }
.logo span { color: var(--cyan-300); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: #b9c6de;
  transition: color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--cyan-300); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.phone-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  white-space: nowrap;
}
.phone-badge svg { width: 16px; height: 16px; stroke: var(--cyan-300); fill: none; stroke-width: 2; }

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.4; pointer-events: none; animation: floaty 14s ease-in-out infinite; mix-blend-mode: screen; }
.hero .blob-a { width: 560px; height: 560px; background: var(--cyan-400); top: -220px; left: -120px; }
.hero .blob-b { width: 520px; height: 520px; background: var(--violet-500); bottom: -240px; right: -100px; animation-delay: -7s; }
@keyframes floaty { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-35px) scale(1.08); } }

.hero .grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  margin-bottom: 20px;
}
.hero h1 em { color: var(--cyan-300); font-style: normal; }

.hero p.lead {
  color: #d6e2f5;
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.hero .btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.hero .btn-outline:hover { border-color: var(--cyan-300); color: var(--cyan-300); }

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #eaf1fc;
}
.dot-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(52,211,153,0.25);} 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0.12);} }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--glow-cyan);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat strong { display: block; font-size: 1.7rem; color: var(--white); }
.hero-stats .stat span { font-size: 0.8rem; color: #c3d3ec; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(58,114,209,0.25); }

.service-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-700); margin-bottom: 16px; font-size: 0.95rem; }
.service-card ul { list-style: none; }
.service-card li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.service-card li::before {
  content: "✓";
  position: absolute; left: 0; color: var(--success); font-weight: 700;
}

/* ===== Enterprise spotlight section ===== */
.enterprise-section {
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.enterprise-section .grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
}
.enterprise-section .blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35; mix-blend-mode: screen; }
.enterprise-section .blob-c { width: 480px; height: 480px; background: var(--cyan-400); top: -180px; right: -140px; }

.enterprise-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; position: relative; z-index: 1; }
.enterprise-header .section-lead { color: #c3d3ec; margin-bottom: 0; }
.enterprise-header h2 { color: var(--white); }

.audience-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chip-audience {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #eaf1fc;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative; z-index: 1;
}
.enterprise-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.enterprise-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.4); background: rgba(255,255,255,0.09); }
.enterprise-card h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 8px; }
.enterprise-card p { color: #c3d3ec; font-size: 0.88rem; }

.enterprise-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative; z-index: 1;
  box-shadow: var(--glow-cyan);
}
.enterprise-cta p { color: #dbe8fb; max-width: 460px; }
.enterprise-cta h4 { color: var(--white); margin-bottom: 6px; font-size: 1.15rem; }

/* ===== About / savoir-faire ===== */
.about-section { background: var(--gray-100); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-grid ul.checklist { list-style: none; margin-top: 20px; }
.about-grid .checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
  color: var(--gray-700);
}
.about-grid .checklist li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.about-grid .checklist li::after {
  content: "✓";
  position: absolute; left: 4px; top: 2px;
  color: var(--white); font-size: 0.7rem; font-weight: 700;
}

.about-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-blue);
}
.about-card::before { content: ""; position: absolute; width: 260px; height: 260px; background: var(--cyan-400); filter: blur(100px); opacity: .3; top: -100px; right: -80px; border-radius: 50%; }
.about-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 6px; position: relative; }
.about-card p { color: #c3d3ec; font-size: 0.92rem; margin-bottom: 18px; position: relative; }
.about-card .availability-line {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 10px;
  position: relative;
}
.about-card .availability-line svg { width: 16px; height: 16px; stroke: var(--cyan-300); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-thumb {
  height: 160px;
  position: relative;
  background: var(--gradient-dark);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-thumb .grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.project-thumb .icon-badge { margin-bottom: 0; position: relative; z-index: 1; }
.project-body { padding: 22px; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-body p { color: var(--gray-700); font-size: 0.9rem; }

.portfolio-cta { text-align: center; margin-top: 40px; }

/* ===== Testimonials ===== */
.testimonials-section { background: var(--gray-100); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-card .stars { color: #f5a623; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.testimonial-author span { font-size: 0.8rem; color: var(--gray-500); }

/* ===== Partners ===== */
.partners-section { padding: 48px 0; }
.partners-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.partner-chip {
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ===== Contact ===== */
.contact-section { background: var(--navy-900); color: var(--white); overflow: hidden; }
.contact-section h2, .contact-section .section-lead { color: var(--white); }
.contact-section .section-lead { color: #c3d3ec; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-list { list-style: none; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-list .icon-box {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-list .icon-box svg { width: 18px; height: 18px; stroke: var(--cyan-300); fill: none; stroke-width: 2; }
.contact-info-list strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: #c3d3ec; font-size: 0.92rem; }
.contact-info-list a:hover { color: var(--white); }

form.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
}
form.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #d6e2f5;
}
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
}
form.contact-form input::placeholder, form.contact-form textarea::placeholder { color: #93a6c4; }
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: none;
  border-color: var(--cyan-400);
}
form.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-feedback {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  display: none;
}
.form-feedback.success {
  display: block;
  color: var(--green-400, #34d399);
}
.form-feedback.error {
  display: block;
  color: #fca5a5;
}

/* ===== Footer ===== */
footer.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #93a6c4;
  padding: 40px 0 28px;
  font-size: 0.85rem;
}
footer.site-footer a { color: #c3d3ec; }
footer.site-footer a:hover { color: var(--white); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; }

/* ===== Page header (portfolio / blog) ===== */
.page-header {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header .blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35; mix-blend-mode: screen; }
.page-header .blob-a { width: 460px; height: 460px; background: var(--cyan-400); top: -200px; left: -100px; }
.page-header h1 { color: var(--white); margin-bottom: 12px; position: relative; }
.page-header p { color: #d6e2f5; max-width: 620px; position: relative; }

.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-chip {
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
}
.filter-chip.active, .filter-chip:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-100); }

.template-note {
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--gray-500);
  font-size: 0.88rem;
  margin-top: 40px;
  background: var(--gray-100);
}
.template-note code {
  background: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  background: var(--white);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.blog-cover {
  height: 170px;
  position: relative;
  overflow: hidden;
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover .blog-cover-fallback {
  width: 100%; height: 100%;
  background: var(--gradient-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.blog-meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--gray-500); }
.blog-meta .tag { color: var(--blue-600); background: var(--blue-100); padding: 3px 10px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.blog-body h3 { font-size: 1.08rem; }
.blog-body p { color: var(--gray-700); font-size: 0.9rem; }
.blog-readmore { margin-top: auto; font-weight: 700; color: var(--blue-600); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }

/* ===== Article ===== */
.article-header { background: var(--gradient-dark); color: var(--white); padding: 70px 0 50px; position: relative; overflow: hidden; }
.article-header .blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; mix-blend-mode: screen; background: var(--cyan-400); width: 420px; height: 420px; top: -180px; right: -100px; }
.breadcrumb { font-size: 0.82rem; color: #a8bcdd; margin-bottom: 18px; position: relative; }
.breadcrumb a { color: #cddcf5; }
.breadcrumb a:hover { color: var(--white); }
.article-header h1 { color: var(--white); max-width: 780px; position: relative; }
.article-meta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 22px; color: #c3d3ec; font-size: 0.88rem; position: relative; }
.article-meta-row .tag { background: rgba(34,211,238,0.14); color: var(--cyan-300); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }

.article-cover { max-width: var(--max-width); margin: -40px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.article-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-hover); }

.article-wrap { max-width: 780px; margin: 0 auto; padding: 70px 24px 40px; }
.article-prose h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.article-prose h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.article-prose p { color: var(--gray-700); margin-bottom: 18px; font-size: 1.02rem; }
.article-prose ul, .article-prose ol { color: var(--gray-700); margin: 0 0 18px 22px; }
.article-prose li { margin-bottom: 8px; }
.article-prose strong { color: var(--navy-900); }
.article-prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.article-prose blockquote {
  border-left: 3px solid var(--cyan-400);
  background: var(--blue-100);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  color: var(--navy-900);
  margin: 24px 0;
  font-size: 0.98rem;
}
.callout {
  display: flex; gap: 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.94rem;
  color: var(--gray-700);
}
.callout.tip { border-color: rgba(34,211,238,0.4); background: var(--blue-100); }
.callout .icon-badge.sm { margin-top: 2px; }

.code-block {
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.code-block .code-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-block .code-dots { display: flex; gap: 6px; }
.code-block .code-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.code-block .code-filename { font-family: var(--font-mono); font-size: 0.76rem; color: #93a6c4; }
.code-block .copy-btn {
  font-size: 0.74rem; font-weight: 700; color: #cddcf5;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.code-block .copy-btn:hover { color: var(--white); border-color: var(--cyan-400); }
.code-block pre { margin: 0; padding: 20px; overflow-x: auto; }
.code-block code { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; color: #e2e8f0; }
.code-block .tok-key { color: var(--cyan-300); }
.code-block .tok-string { color: #a5d6a7; }
.code-block .tok-comment { color: #7d8ba1; font-style: italic; }
.code-block .tok-cmd { color: #fbbf24; }

.author-box {
  display: flex; align-items: center; gap: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 48px;
}
.author-box .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
.author-box strong { display: block; color: var(--navy-900); }
.author-box span { color: var(--gray-700); font-size: 0.88rem; }

.article-share { display: flex; gap: 10px; margin-top: 28px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .enterprise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  nav.main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); display: none; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; flex-shrink: 0; order: 3; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--white); }
  .phone-badge span.phone-text { display: none; }
  .header-actions { gap: 12px; }
  .header-actions .btn-primary { display: none; }
  .nav-wrap { padding: 14px 20px; }
  .services-grid, .portfolio-grid, .testimonials-grid, .enterprise-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .article-cover { margin-top: -24px; }
}
