/* ==========================================================================
   byCosta — style.css
   Thème sombre, glassmorphism, accents mauve/violet — niveau agence premium
   ========================================================================== */

:root {
  --bg: #08070c;
  --bg-alt: #0d0b14;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f4fa;
  --text-muted: #a8a5b8;
  --text-faint: #726f82;

  --violet-300: #c4a4fb;
  --violet-400: #a855f7;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --pink-400: #f9a8d4;

  --gradient-brand: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #5b21b6 100%);
  --gradient-text: linear-gradient(135deg, #e9d5ff 0%, #c4a4fb 50%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #c4a4fb 0%, #f9a8d4 100%);

  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, 0.15), 0 20px 60px -20px rgba(124, 58, 237, 0.45);
  --shadow-soft: 0 10px 40px -15px rgba(0, 0, 0, 0.6);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.container-narrow { max-width: 760px; }

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--gradient-brand);
  transform: translateY(0);
  pointer-events: none;
}

.page-transition.can-transition {
  transition: transform 0.65s var(--ease);
}

.page-transition.is-hidden { transform: translateY(-100%); }
.page-transition.is-covering { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

/* ---------- Background ambience ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.bg-ambient .blob {
  position: absolute;
  opacity: 0.55;
  filter: blur(10px);
}

.bg-ambient .blob-1 { top: -18%; right: -12%; width: 720px; animation: drift1 26s ease-in-out infinite; }
.bg-ambient .blob-2 { top: 55%; left: -18%; width: 560px; animation: drift2 30s ease-in-out infinite; }
.bg-ambient .blob-3 { top: 20%; left: 30%; width: 480px; opacity: 0.28; animation: drift1 34s ease-in-out infinite reverse; }
.bg-ambient .blob-4 { top: 8%; left: 42%; width: 420px; opacity: 0.32; animation: drift2 22s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.06); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-ambient .blob { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(8, 7, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  transition: opacity 0.25s var(--ease);
}

.brand:hover { opacity: 0.85; }
.brand img { width: 28px; height: 28px; }

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

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.is-active { color: var(--text); background: var(--surface-strong); }

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 82vw);
  background: rgba(13, 11, 20, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 99;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
  padding: 14px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.mobile-nav a.is-active,
.mobile-nav a:hover { color: var(--text); }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 98;
}

.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-nav, .nav-scrim { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -10px rgba(168, 85, 247, 0.7);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

/* buttons not JS-driven (magnetic) still get a plain lift/press */
.btn:not([data-magnetic]):hover { transform: translateY(-2px); }
.btn:not([data-magnetic]):active { transform: translateY(0) scale(0.97); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* click ripple */
.btn .ripple,
.card .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  opacity: 0.6;
  pointer-events: none;
  animation: ripple-out 0.7s var(--ease) forwards;
}

.btn-ghost .ripple, .card .ripple { background: rgba(196, 164, 251, 0.35); }

@keyframes ripple-out {
  to { transform: scale(1); opacity: 0; }
}

/* ---------- Glass surfaces / cards ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-glow);
}

.card:hover::before { opacity: 1; }
.card:active { transform: translateY(-3px) scale(0.99); }

.card > * { position: relative; }

/* ---------- Scroll reveal (variantes) ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: transform, opacity;
}

[data-animate="fade-up"], [data-animate=""] {
  transform: translateY(30px);
}

[data-animate="slide-left"] { transform: translateX(-46px); }
[data-animate="slide-right"] { transform: translateX(46px); }
[data-animate="scale-in"] { transform: translateY(14px) scale(0.94); }
[data-animate="fade"] { transform: translateY(0); }

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.draw-line {
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transition: width 1s var(--ease) 0.15s;
}

.draw-line.is-visible { width: 64px; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .draw-line { width: 64px !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
main { padding-top: 88px; }

section { padding: 96px 0; }

.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-300);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 8px 2px rgba(168, 85, 247, 0.7);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }

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

.text-muted { color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-top: 22px;
}

.hero .lede {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero-note .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* ---------- Stats / counters ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }

.stat .num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
}

.stat .num .suffix { font-size: 0.55em; color: var(--violet-300); }

.stat .label {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stats-band { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  margin-bottom: 20px;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.6);
  transition: transform 0.4s var(--ease-spring);
}

.card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }

.feature-icon svg { width: 22px; height: 22px; stroke: #fff; }

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Positioning band ---------- */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 860px) {
  .band-grid { grid-template-columns: repeat(3, 1fr); }
}

.band-item { display: flex; gap: 16px; }

.band-item .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--violet-300);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.band-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.band-item p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- CTA section ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 60%), var(--surface);
}

.cta-panel h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 16px; }
.cta-panel p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.cta-panel .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Blog teaser (index) ---------- */
.blog-teaser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  color: var(--violet-300);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow:hover { gap: 10px; color: var(--text); }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Pricing (services page) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.price-card.is-featured {
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), var(--surface) 40%);
  box-shadow: var(--shadow-glow);
}

.price-badge {
  align-self: flex-start;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  margin-bottom: 18px;
}

.price-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.price-card .price-sub { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 28px; }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-amount .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-amount .unit { color: var(--text-faint); font-size: 0.85rem; }

.price-note { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 28px; }

.hosting-note { color: var(--text-faint); font-size: 0.8rem; text-align: center; max-width: 560px; margin: 20px auto 32px; }

.price-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; flex-grow: 1; }

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text);
}

.price-list li.is-inherited { color: var(--text-muted); }

.price-list .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.price-list .check svg { width: 11px; height: 11px; stroke: var(--violet-300); }

/* Maintenance option card */
.maintenance-card {
  margin-top: 28px;
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.maintenance-card .m-info { max-width: 560px; }
.maintenance-card h3 { font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tag-soft {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet-300);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
}

.maintenance-card p { color: var(--text-muted); font-size: 0.95rem; }

.maintenance-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
}

.maintenance-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.maintenance-card ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-400);
}

.maintenance-price { text-align: right; flex-shrink: 0; }
.maintenance-price .amount { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 600; }
.maintenance-price .unit { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step { padding: 26px; }
.step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--violet-300);
  margin-bottom: 14px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Process timeline (contact page) ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  }
}

.timeline-item { position: relative; padding-top: 0; }

.timeline-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--violet-300);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--bg);
}

.timeline-item .when {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--violet-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.timeline-item h3 { font-size: 1.08rem; margin-bottom: 10px; }
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Contact methods ---------- */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
}

.method-card { text-align: left; padding: 28px; }

.method-card .info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.method-card .info-icon svg { width: 18px; height: 18px; stroke: var(--violet-300); }
.method-card h3 { font-size: 1rem; margin-bottom: 6px; }
.method-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
.method-card .value { color: var(--text); font-weight: 500; font-size: 0.98rem; }

/* ---------- Contact page (form layout) ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 1fr 1.15fr; }
}

.contact-info { padding: 36px; }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.info-row:first-of-type { border-top: none; }

.info-row .info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row .info-icon svg { width: 17px; height: 17px; stroke: var(--violet-300); }
.info-row a:hover { color: var(--violet-300); }
.info-row .info-label { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 2px; }
.info-row .info-value { font-size: 0.98rem; }

.response-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 0.9rem;
  color: var(--violet-300);
}

.contact-form-card { padding: 40px; }

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-row .optional { color: var(--text-faint); font-weight: 400; }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.form-row textarea { resize: vertical; min-height: 140px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-actions .btn-block { flex: 1 1 220px; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.form-status.is-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item[open] { border-color: var(--border-strong); background: var(--surface-strong); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(168, 85, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.faq-item .faq-icon::before, .faq-item .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--violet-300);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.faq-item .faq-icon::before { width: 12px; height: 2px; }
.faq-item .faq-icon::after { width: 2px; height: 12px; }

.faq-item[open] .faq-icon { background: var(--gradient-brand); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }

.faq-answer {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 640px;
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-hero { grid-template-columns: 1.2fr 0.8fr; }
}

.about-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 18px; }
.about-hero .lede { margin-top: 20px; color: var(--text-muted); font-size: 1.08rem; max-width: 560px; }

.avatar-frame {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.avatar-frame img {
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.avatar-frame .avatar-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-frame .avatar-ring { animation: none; }
}

.founder-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-top: 22px; text-align: center; }
.founder-role { text-align: center; color: var(--text-faint); font-size: 0.88rem; margin-top: 4px; }

.prose { max-width: 720px; }
.prose p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.founder-quote {
  position: relative;
  padding: 36px 40px;
  margin: 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
}

.founder-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 20px;
  font-size: 4rem;
  color: var(--violet-500);
  opacity: 0.4;
  font-family: Georgia, serif;
}

.founder-quote cite {
  display: block;
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.blog-cover {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.blog-card:hover .blog-cover img { transform: scale(1.06); }

.blog-card-body { padding: 28px 30px 30px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }

.blog-card .link-arrow { font-size: 0.88rem; }

.blog-hero-teaser { margin-top: 40px; }

/* small article-list cards used on index.html teaser */
.blog-card.is-compact .blog-card-body { padding: 22px 24px 24px; }

/* ---------- Article page ---------- */
.article-header { padding: 56px 0 0; }

.article-header .container { max-width: 780px; }

.article-header h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 18px; }

.article-cover {
  margin: 40px auto 0;
  max-width: var(--container);
  padding: 0 24px;
}

@media (min-width: 768px) { .article-cover { padding: 0 40px; } }

.article-cover-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

@media (min-width: 768px) { .article-body { padding: 64px 40px 40px; } }

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 44px;
  margin-bottom: 18px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-body li {
  color: var(--text-muted);
  font-size: 1.02rem;
  padding-left: 28px;
  position: relative;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  color: var(--violet-300);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body strong { color: var(--text); font-weight: 600; }

.article-callout {
  margin: 32px 0;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  font-size: 0.98rem;
  color: var(--text);
}

.article-callout strong { color: var(--violet-300); }

.article-footer {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) { .article-footer { padding: 32px 40px 0; } }

.article-footer .cta-panel { margin-top: 20px; padding: 40px 30px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav-group { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--text); }

.footer-social { display: flex; align-items: center; gap: 12px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-icon:hover { color: var(--text); border-color: var(--violet-300); transform: translateY(-2px); }
.social-icon svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Page hero (services/contact/about/blog) ---------- */
.page-hero { padding: 60px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-top: 18px; max-width: 720px; }
.page-hero p { margin-top: 18px; color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }
