/* ============================================
   MVD Informatique — Style.css
   High-End Ethereal Glass · Agency-Tier Design
   ============================================ */

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

:root {
  /* Backgrounds */
  --bg:        #050507;
  --bg-deep:   #030304;
  --s1:        rgba(255,255,255,0.028);
  --s2:        rgba(255,255,255,0.055);
  --s3:        rgba(255,255,255,0.085);

  /* Borders */
  --border:    rgba(255,255,255,0.065);
  --border-md: rgba(255,255,255,0.11);
  --border-hi: rgba(255,255,255,0.20);

  /* Brand */
  --purple:     #7c3aed;
  --purple-lt:  #a78bfa;
  --purple-glow:rgba(124,58,237,0.18);
  --cyan:       #06b6d4;
  --cyan-lt:    #22d3ee;
  --cyan-glow:  rgba(6,182,212,0.14);

  /* Text */
  --text:   #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #475569;

  /* Radii */
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-full: 9999px;

  /* Motion — spring physics only */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --snappy: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NOISE TEXTURE (fixed, pointer-events-none) ===== */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.3;
}

/* ===== GRADIENT ORBS ===== */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 70%);
  top: -280px; left: -220px;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  bottom: -150px; right: -150px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.section    { padding: 120px 0; }
.bg-alt     { background: rgba(255,255,255,0.01); }

/* ===== SCROLL REVEALS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.85s var(--spring), transform 0.85s var(--spring), filter 0.85s var(--spring);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); filter: blur(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* ===== FLOATING PILL NAVBAR ===== */
.navbar-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 20px 28px; pointer-events: none;
}
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  background: rgba(5,5,7,0.78);
  border: 1px solid var(--border-md);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);
  pointer-events: all;
  width: fit-content;
  max-width: 900px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: 12px;
  flex-shrink: 0;
}
.logo-icon { display: flex; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap;
}
.logo-text strong { font-weight: 800; color: var(--purple-lt); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: .85rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-full);
  transition: color 0.3s var(--snappy), background 0.3s var(--snappy);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--s2); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-md); color: var(--text-2);
  background: var(--s1); text-decoration: none;
  padding: 9px 18px; border-radius: var(--r-full); font-size: .85rem; font-weight: 500;
  transition: all 0.3s var(--snappy); cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.btn-outline:hover {
  border-color: rgba(167,139,250,0.45); color: var(--purple-lt);
  background: rgba(124,58,237,0.09);
}

/* Blog pill — gradient distinct */
.btn-blog {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(6,182,212,0.18));
  border: 1px solid rgba(124,58,237,0.45);
  color: #e0d4ff; text-decoration: none;
  padding: 9px 18px; border-radius: var(--r-full);
  font-size: .84rem; font-weight: 600;
  transition: all 0.35s var(--snappy); white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(124,58,237,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  letter-spacing: 0.01em;
}
.btn-blog:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.38), rgba(6,182,212,0.28));
  border-color: rgba(167,139,250,0.6);
  box-shadow: 0 4px 20px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
  color: #fff;
}

/* Burger (morph to ×) */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--r-full);
  cursor: pointer; position: relative; margin-left: 4px;
}
.burger span {
  position: absolute; width: 16px; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
  transition: transform 0.4s var(--spring), opacity 0.3s var(--snappy);
}
.burger span:nth-child(1) { transform: translateY(-5px); }
.burger span:nth-child(3) { transform: translateY(5px); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translateY(0); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translateY(0); }

/* Full-screen mobile overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(5,5,7,0.93);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text); text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px;
  padding: 10px 32px; border-radius: var(--r-md);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s var(--spring), transform 0.55s var(--spring), color 0.2s var(--snappy), background 0.2s var(--snappy);
}
.nav-mobile.open a { opacity: 1; transform: translateY(0); }
.nav-mobile.open a:nth-child(1) { transition-delay: 0.06s; }
.nav-mobile.open a:nth-child(2) { transition-delay: 0.12s; }
.nav-mobile.open a:nth-child(3) { transition-delay: 0.18s; }
.nav-mobile.open a:nth-child(4) { transition-delay: 0.24s; }
.nav-mobile a:hover { color: var(--purple-lt); background: var(--s2); }

/* ===== HERO ===== */
.hero {
  min-height: 100dvh; display: flex; align-items: center;
  padding: 120px 28px 80px;
  max-width: 1200px; margin: 0 auto; gap: 80px;
  position: relative; z-index: 1;
}
.hero-inner { flex: 1; max-width: 600px; }
.hero-visual { flex: 1; max-width: 520px; display: flex; justify-content: center; }

/* Eyebrow tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
  color: var(--purple-lt);
  background: rgba(124,58,237,0.09);
  border: 1px solid rgba(124,58,237,0.22);
  padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: 32px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-lt);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 0 0 rgba(167,139,250,0.5); }
  60%      { opacity:.5; transform:scale(.7); box-shadow: 0 0 0 5px rgba(167,139,250,0); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -2.5px;
  color: var(--text); margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #c4b5fd 0%, var(--cyan-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-2); margin-bottom: 44px; line-height: 1.8;
}

/* Primary button — pill with nested icon */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--purple) 0%, #5b21b6 100%);
  color: #fff; font-size: .875rem; font-weight: 600;
  padding: 12px 12px 12px 22px;
  border-radius: var(--r-full); border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring), opacity 0.3s var(--snappy);
  box-shadow: 0 4px 24px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:active { transform: scale(0.97); }
.btn-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.4s var(--spring);
}
.btn-primary:hover .btn-icon { transform: translate(2px, -1px) scale(1.08); }

/* Ghost button */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: .875rem; font-weight: 500;
  padding: 12px 22px; border-radius: var(--r-full);
  border: 1px solid var(--border-md); text-decoration: none;
  background: var(--s1);
  transition: all 0.3s var(--snappy);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hi); background: var(--s2); }
.btn-ghost:active { transform: scale(0.97); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }

/* Stats */
.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--text); letter-spacing: -1px;
}
.stat-label { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .7px; margin-top: 2px; }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* ===== CODE WINDOW — DOUBLE BEZEL ===== */
.code-shell {
  padding: 3px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: calc(var(--r-xl) + 5px);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.65),
    0 0 0 1px rgba(124,58,237,0.08);
  width: 100%; max-width: 460px;
}
.code-window {
  background: #06090f;
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  animation: floatUp 7s ease-in-out infinite;
}
@keyframes floatUp {
  0%,100% { transform: translateY(0) rotate(-0.2deg); }
  50%      { transform: translateY(-12px) rotate(0.2deg); }
}
.code-bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.code-bar-title { margin-left: auto; font-size: .72rem; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.code-content {
  padding: 24px 28px; font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; line-height: 1.9; white-space: pre;
}
.c-purple { color: #c792ea; }
.c-cyan   { color: #80deea; }
.c-green  { color: #c3e88d; }
.c-yellow { color: #ffcb6b; }
.c-white  { color: #e2e8f0; }
.c-gray   { color: #475569; }
.c-blink  { color: #a78bfa; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ===== TOPICS ===== */
.topics { padding: 0 0 64px; position: relative; z-index: 1; }
.pills  { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 28px; }
.pill {
  padding: 8px 20px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--s1);
  font-size: .8rem; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: all 0.3s var(--snappy); user-select: none;
}
.pill:hover { background: var(--s2); border-color: var(--border-md); color: var(--text); }
.pill.active {
  background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.35);
  color: var(--purple-lt);
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px;
}
.section-header.centered { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -0.8px; color: var(--text);
}
.section-sub { color: var(--text-2); font-size: .95rem; }
.see-all {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); text-decoration: none; font-size: .83rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--r-full); border: 1px solid var(--border);
  background: var(--s1); transition: all 0.3s var(--snappy); white-space: nowrap; flex-shrink: 0;
}
.see-all:hover { color: var(--purple-lt); border-color: rgba(124,58,237,0.35); background: rgba(124,58,237,0.07); }

/* ===== SEARCH BAR ===== */
.search-wrap { margin-bottom: 48px; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--s1); border: 1px solid var(--border-md);
  border-radius: var(--r-full); padding: 13px 20px;
  max-width: 580px; margin: 0 auto;
  transition: border-color 0.3s var(--snappy), box-shadow 0.3s var(--snappy);
}
.search-box:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.14);
}
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: .925rem; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.search-input::placeholder { color: var(--text-3); }
.search-clear {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0 2px;
  transition: color 0.2s var(--snappy); display: none;
}
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--text-2); }

/* ===== ARTICLES GRID — 3 COLONNES UNIFORMES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Outer bezel (shell) */
.card-shell {
  padding: 2px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: calc(var(--r-lg) + 4px);
  display: flex; flex-direction: column;
  transition: border-color 0.45s var(--snappy), box-shadow 0.45s var(--snappy), transform 0.45s var(--spring);
}
.card-shell:hover {
  border-color: rgba(124,58,237,0.28);
  box-shadow: 0 20px 60px rgba(124,58,237,0.1), 0 0 0 1px rgba(124,58,237,0.08);
  transform: translateY(-5px);
}

/* Inner core */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; flex: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: linear-gradient(135deg, #0c1020, #080c18);
}
.card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(6,182,212,0.03));
  display: flex; align-items: center; justify-content: center;
}
.card-img-placeholder svg { opacity: .15; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-cat {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .9px;
  color: var(--purple-lt); background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.18);
  padding: 3px 10px; border-radius: var(--r-full);
}
.card-date { font-size: .74rem; color: var(--text-3); }
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px;
  line-height: 1.35; text-decoration: none; display: block;
  transition: color 0.25s var(--snappy);
}
.card-title:hover { color: var(--purple-lt); }
.card-excerpt { font-size: .875rem; color: var(--text-2); line-height: 1.7; flex: 1; }
.card-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-read {
  font-size: .8rem; color: var(--purple-lt); text-decoration: none; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s var(--snappy);
}
.card-read:hover { color: var(--cyan-lt); }
.card-time { font-size: .73rem; color: var(--text-3); }

/* ===== SKELETON ===== */
.skeleton {
  grid-column: span 4;
  height: 380px; border-radius: calc(var(--r-lg) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255,255,255,0.025) 25%, rgba(255,255,255,0.055) 50%, rgba(255,255,255,0.025) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.9s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.load-more-wrap { display: flex; justify-content: center; margin-top: 56px; }

/* ===== BANNER ===== */
.banner { padding: 0 0 80px; position: relative; z-index: 1; }
.banner-shell {
  padding: 2px;
  background: var(--s1);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: calc(var(--r-xl) + 4px);
}
.banner-inner {
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(6,182,212,0.04));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-xl); padding: 44px 48px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.banner-icon { flex-shrink: 0; }
.banner-inner h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.banner-inner p { font-size: .9rem; color: var(--text-2); }
.banner-inner .btn-primary { flex-shrink: 0; margin-left: auto; }

/* ===== TOOL CARD — DOUBLE BEZEL ===== */
.tool-shell {
  max-width: 720px; margin: 0 auto;
  padding: 3px;
  background: var(--s1);
  border: 1px solid var(--border-md);
  border-radius: calc(var(--r-xl) + 5px);
  box-shadow: 0 32px 100px rgba(0,0,0,0.5);
}
.tool-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 40px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.tool-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.tool-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.tool-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.tool-desc { font-size: .875rem; color: var(--text-2); }

/* Password input */
.pwd-input-wrap { position: relative; margin-bottom: 18px; }
.pwd-input {
  width: 100%; background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-md); color: var(--text);
  font-size: .95rem; padding: 15px 52px 15px 18px;
  border-radius: var(--r-md); outline: none;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
  transition: border-color 0.3s var(--snappy), box-shadow 0.3s var(--snappy);
}
.pwd-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.16), inset 0 1px 4px rgba(0,0,0,0.4);
}
.pwd-toggle {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3); cursor: pointer;
  transition: color 0.2s var(--snappy);
}
.pwd-toggle:hover { color: var(--text-2); }

/* Strength bar */
.strength-bar-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.strength-bar {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0%; border-radius: 2px;
  transition: width 0.55s var(--spring), background 0.45s var(--snappy);
}
.strength-label { font-size: .78rem; font-weight: 700; color: var(--text-3); width: 80px; text-align: right; }

/* Criteria */
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
.criterion {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--text-3);
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all 0.35s var(--snappy);
}
.criterion.ok {
  color: #34d399;
  background: rgba(52,211,153,0.05);
  border-color: rgba(52,211,153,0.12);
}
.criterion-icon { font-size: .85rem; width: 16px; text-align: center; }
.criterion.ok .criterion-icon::before { content: "✓"; }

.tool-divider { height: 1px; background: var(--border); margin: 28px 0; }

/* Generator */
.gen-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 18px;
}
.gen-options { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.gen-opt { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-2); cursor: pointer; }
.gen-opt input { accent-color: var(--purple); }
.gen-length-wrap {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; font-size: .84rem; color: var(--text-2); gap: 20px;
}
.range-slider { flex: 1; accent-color: var(--purple); cursor: pointer; }

.gen-result-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.35); border: 1px solid var(--border-md);
  border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 18px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
}
.gen-result {
  flex: 1; font-family: 'JetBrains Mono', monospace;
  font-size: .875rem; color: var(--text-3); word-break: break-all;
  transition: color 0.3s var(--snappy);
}
.gen-result.has-value { color: var(--cyan-lt); }
.btn-copy {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--s2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--snappy);
}
.btn-copy:hover { color: var(--cyan-lt); border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.08); }
.btn-copy.copied { color: #34d399; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }

/* ===== CATEGORIES ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cat-shell {
  padding: 2px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: calc(var(--r-lg) + 4px);
  transition: all 0.45s var(--spring);
}
.cat-shell:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.cat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.cat-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.cat-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.cat-card p { font-size: .85rem; color: var(--text-2); line-height: 1.65; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-deep); border-top: 1px solid var(--border);
  padding: 80px 0 32px; position: relative; z-index: 1;
}
.footer-top { display: flex; gap: 80px; flex-wrap: wrap; margin-bottom: 60px; }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: .85rem; color: var(--text-3); margin-top: 16px; line-height: 1.75; }
.footer-links { display: flex; gap: 80px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3); margin-bottom: 4px;
}
.footer-col a { font-size: .875rem; color: var(--text-3); text-decoration: none; transition: color 0.25s var(--snappy); }
.footer-col a:hover { color: var(--purple-lt); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: var(--text-3);
}
.footer-made { display: flex; align-items: center; gap: 4px; }

/* ===== RESPONSIVE ===== */
/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 56px; flex-wrap: wrap;
}
.pag-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r-full);
  border: 1px solid var(--border-md); background: var(--s1);
  color: var(--text-2); font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s var(--snappy); text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pag-btn:hover { border-color: rgba(124,58,237,0.35); color: var(--purple-lt); background: rgba(124,58,237,0.07); }
.pag-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.pag-info { font-size: .85rem; color: var(--text-3); padding: 0 8px; }

@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column; padding: 110px 24px 60px;
    gap: 40px; text-align: center; min-height: 100dvh;
  }
  .hero-inner { max-width: 100%; }
  .hero-visual { display: none; }
  .hero-stats  { justify-content: center; }
  .hero-actions { justify-content: center; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 24px; }
  .banner-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .banner-inner .btn-primary { margin-left: 0; }
  .footer-top  { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { gap: 40px; }
  .cat-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section { padding: 80px 0; }
}
