/* ============================================
   COSY & SAFE — SITE VITRINE
   Aesthetic: Dark tech-luxe, data-driven, alive
   ============================================ */

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

:root {
  --bg: #060810;
  --bg2: #0a0d14;
  --surface: #0e1118;
  --surface2: #141822;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e2e4ea;
  --text-dim: #6a7090;
  --text-muted: #3e445c;
  --accent: #00b4ff;
  --accent2: #7c5cff;
  --accent3: #ff6b35;
  --gradient: linear-gradient(135deg, #00b4ff, #7c5cff, #ff6b35);
  --font: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ====== NAVIGATION ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.scrolled {
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(0, 180, 255, 0.4));
}
/* Fallback text logo */
.nav-logo-text {
  font-family: var(--font); font-weight: 800; font-size: 1.1rem;
  letter-spacing: 0.15em; color: #fff;
}
.nav-logo-text span {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Faucet-style header with spout */
.nav-faucet {
  background: linear-gradient(180deg, #0e111a 0%, rgba(14, 17, 26, 0.95) 100%);
}
.nav-faucet::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 25px;
  background: linear-gradient(180deg, #0e111a 0%, #070a10 100%);
  border-radius: 0 0 4px 4px;
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    inset 2px 0 3px rgba(80, 150, 220, 0.05),
    inset -2px 0 3px rgba(80, 150, 220, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 101;
}
/* Inner dark hole of the spout */
.nav-faucet::before {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 10px;
  background: linear-gradient(180deg, #020408 0%, #050810 100%);
  border-radius: 0 0 3px 3px;
  z-index: 102;
}
.nav-faucet.scrolled::after {
  opacity: 0.9;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 400;
  color: var(--text-dim); text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  padding: 8px 20px; border: 1px solid rgba(0,180,255,0.4);
  color: var(--accent); background: rgba(0,180,255,0.06);
  border-radius: 4px; cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.1em; transition: all 0.3s;
  text-decoration: none;
}
.nav-cta:hover {
  background: rgba(0,180,255,0.15); border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,180,255,0.15);
}

/* Mobile menu */
.nav-toggle { display: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: #fff;
  margin: 5px 0; transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(6,8,16,0.95); backdrop-filter: blur(20px);
    flex-direction: column; padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ====== HERO WITH BINARY FAUCET ====== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
  max-width: 820px;
}
/* Hero brand section */
.hero-brand {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-site-name {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #00d4ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease infinite;
  margin: 0;
}
.hero-claude-friendly {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
  text-transform: lowercase;
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); padding: 6px 16px;
  border: 1px solid rgba(0,180,255,0.25);
  border-radius: 20px; background: rgba(0,180,255,0.05);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero h1 {
  font-family: var(--font); font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero h1 .line1 { color: #fff; }
.hero h1 .line2 {
  background: var(--gradient); background-size: 200% 200%;
  animation: fadeUp 0.8s ease 0.15s both, shimmer 4s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-dim); max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.7; font-weight: 300;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}

/* ====== BUTTONS ====== */
.btn-primary {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  padding: 14px 32px; background: var(--accent); color: #000;
  border: none; border-radius: 5px; cursor: pointer;
  letter-spacing: 0.06em; transition: all 0.3s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover {
  background: #33c4ff; box-shadow: 0 0 30px rgba(0,180,255,0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 400;
  padding: 14px 32px; background: transparent;
  color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 5px; cursor: pointer; letter-spacing: 0.06em;
  transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--border-hover); color: #fff;
  background: rgba(255,255,255,0.03);
}

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
}

/* ====== SECTION BASE ====== */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem; color: var(--text-dim);
  max-width: 600px; line-height: 1.7;
}

/* ====== PAGE HEADER (pour pages internes) ====== */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header .section-inner {
  text-align: center;
}
.page-header h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  margin: 0 0.5rem;
}

/* ====== POSITIONING SECTION (UNDERWATER) ====== */
.positioning {
  position: relative;
  overflow: hidden;
}
.underwater-section {
  background: linear-gradient(180deg,
    rgba(2, 10, 28, 0.98) 0%,      /* Surface water - slightly lighter */
    rgba(2, 8, 22, 0.97) 15%,       /* Shallow */
    rgba(1, 5, 15, 0.98) 35%,       /* Mid depth */
    rgba(1, 3, 10, 0.99) 55%,       /* Deep */
    rgba(0, 2, 6, 1) 75%,           /* Very deep */
    rgba(0, 0, 2, 1) 100%           /* Abyss - almost pure black */
  );
}
#underwater-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: crosshair;
}
.underwater-section .section-inner {
  position: relative;
  z-index: 1;
}
/* Underwater content styling */
.underwater-section .section-label {
  color: rgba(100, 180, 255, 0.7);
  text-shadow: 0 0 10px rgba(80, 160, 240, 0.3);
}
.underwater-section .pos-quote {
  background: rgba(5, 15, 35, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(80, 160, 240, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.underwater-section .pillar {
  background: rgba(5, 15, 35, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(80, 160, 240, 0.1);
}
.underwater-section .pillar:hover {
  background: rgba(10, 25, 50, 0.6);
  border-color: rgba(80, 160, 240, 0.25);
}
.positioning-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; margin-top: 3rem;
}
.pos-quote {
  font-family: var(--font); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  color: #fff; position: relative; padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
.pos-pillars {
  display: flex; flex-direction: column; gap: 1.2rem;
}
.pillar {
  padding: 1.2rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  transition: all 0.3s; cursor: default;
}
.pillar:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
  transform: translateX(4px);
}
.pillar-icon {
  font-size: 1.3rem; margin-bottom: 0.3rem;
}
.pillar h4 {
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.pillar p {
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.5;
}

@media (max-width: 768px) {
  .positioning-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ====== ECOSYSTEM SECTION ====== */
.ecosystem { background: var(--bg2); }
.eco-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem; margin-top: 3rem;
}
.eco-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.8rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.eco-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gradient); opacity: 0;
  transition: opacity 0.3s;
}
.eco-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.eco-card:hover::before { opacity: 1; }

.eco-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}
.eco-icon.urg { background: rgba(255,59,48,0.12); }
.eco-icon.ai { background: rgba(124,92,255,0.12); }
.eco-icon.adhd { background: rgba(0,200,150,0.12); }
.eco-icon.ntact { background: rgba(255,165,0,0.12); }
.eco-icon.diy { background: rgba(59,130,246,0.12); }

.eco-card h3 {
  font-family: var(--font); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.eco-card .eco-sub {
  font-family: var(--mono); font-size: 0.68rem; color: var(--accent);
  letter-spacing: 0.04em; margin-bottom: 0.8rem;
}
.eco-card p {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.6;
  margin-bottom: 1rem;
}
.eco-link {
  font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.3s;
}
.eco-link:hover { color: var(--accent); }
.eco-link::after { content: '→'; transition: transform 0.3s; }
.eco-link:hover::after { transform: translateX(3px); }

/* ====== TECH STACK ====== */
.techstack { background: var(--bg); }
.stack-terminal {
  margin-top: 3rem;
  background: #0c0e16; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  max-width: 700px;
}
.stack-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.stack-dot { width: 10px; height: 10px; border-radius: 50%; }
.stack-dot.r { background: #ff5f57; }
.stack-dot.y { background: #febc2e; }
.stack-dot.g { background: #28c840; }
.stack-title {
  font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted);
  margin-left: 8px;
}
.stack-body {
  padding: 1.5rem 1.8rem; font-family: var(--mono);
  font-size: 0.78rem; line-height: 2;
}
.stack-line { display: flex; gap: 0; }
.stack-key {
  color: var(--text-muted); min-width: 130px; user-select: none;
}
.stack-arrow { color: var(--accent); margin: 0 0.8rem; user-select: none; }
.stack-val { color: var(--text); }
.stack-val .hl { color: var(--accent); }
.stack-val .hl2 { color: var(--accent2); }
.stack-val .hl3 { color: var(--accent3); }

/* ====== STATS ====== */
.stats-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====== CONTACT SECTION & PAGE ====== */
.contact-section {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}
.contact-info-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0,180,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.contact-info-text p {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.contact-info-text a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-info-text a:hover {
  color: #33c4ff;
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}
.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ====== GOOGLE MAP SECTION ====== */
.map-section {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.google-map-container {
  height: 400px;
  border-radius: 12px;
  margin-top: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.map-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ====== SOCIAL SECTION ====== */
.social-section {
  background: var(--bg2);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,180,255,0.15);
}
.social-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.social-name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.social-handle {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.social-card.review-card {
  background: linear-gradient(135deg, rgba(255,180,0,0.08) 0%, rgba(255,100,0,0.08) 100%);
  border-color: rgba(255,180,0,0.2);
}
.social-card.review-card:hover {
  border-color: rgba(255,180,0,0.5);
  box-shadow: 0 20px 60px rgba(255,180,0,0.15);
}

@media (max-width: 900px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
  .google-map-container {
    height: 300px;
  }
}

/* ====== BLOG SECTION & PAGE ====== */
.blog-section {
  background: var(--bg2);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}
.blog-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg2) 100%);
  font-size: 3rem;
  opacity: 0.5;
}
.blog-card-content {
  padding: 1.5rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.blog-card-category {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(0,180,255,0.1);
  border-radius: 4px;
}
.blog-card-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.blog-card h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.blog-card:hover h3 {
  color: var(--accent);
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s;
}
.blog-card-link:hover {
  color: var(--accent);
}
.blog-card-link::after {
  content: '→';
  transition: transform 0.3s;
}
.blog-card-link:hover::after {
  transform: translateX(4px);
}

/* Blog featured */
.blog-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.blog-featured:hover {
  border-color: var(--border-hover);
}
.blog-featured-image {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.blog-featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent3);
  padding: 6px 14px;
  background: rgba(255,107,53,0.12);
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}
.blog-featured h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.blog-featured p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured-image {
    min-height: 200px;
  }
}

/* ====== ARTICLE PAGE ====== */
.article-header {
  padding-top: 140px;
}
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-meta-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 700px;
}
.article-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg);
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #fff;
}
.article-body h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.article-body p {
  margin-bottom: 1.2rem;
  line-height: 1.75;
  color: var(--text-dim);
}
.article-body ul, .article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.article-body li strong {
  color: var(--text);
}
.article-illustration {
  text-align: center;
  margin: 2rem 0 3rem;
}
.article-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.article-icon-caption {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.article-highlight {
  background: linear-gradient(135deg, rgba(0,180,255,0.08) 0%, rgba(124,92,255,0.08) 100%);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}
.article-highlight p {
  font-family: var(--font);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
.article-warning {
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.article-warning h4 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent3);
  margin-bottom: 0.5rem;
}
.article-warning p {
  margin: 0;
  font-size: 0.9rem;
}
.tech-stack-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.tech-item {
  display: flex;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.tech-item:last-child {
  border-bottom: none;
}
.tech-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tech-value {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.language-list {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 1rem;
  border-radius: 6px;
  line-height: 1.8;
}
.article-rating {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.rating-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rating-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rating-stars {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 2px;
}
.article-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .article-rating {
    grid-template-columns: 1fr;
  }
  .tech-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .tech-label {
    min-width: auto;
  }
}

/* ====== FOOTER ====== */
.footer {
  background: var(--bg); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 {
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  letter-spacing: 0.1em; margin-bottom: 0.8rem;
}
.footer-brand p {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--text-dim);
  text-decoration: none; padding: 0.3rem 0; transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== UTILITIES ====== */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
