/* ─── SeoFreshUp — Custom CSS layer above Tailwind ──────────────────── */

:root {
  /* Brand colors — vert frais + slate sombre */
  --brand-50:  #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981; /* primary */
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a; /* primary dark */
  --slate-950: #020617;

  --bg-default: #ffffff;
  --bg-subtle:  #f8fafc;
  --bg-muted:   #f1f5f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--slate-900);
  background: var(--bg-default);
  line-height: 1.6;
}

/* ─── Wordmark logo (typography only — no real logo yet) ─── */
.brand-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--slate-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-wordmark::before {
  content: '';
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  border-radius: 6px;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4);
  display: inline-block;
}
.brand-wordmark .accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Hero gradient backgrounds ─── */
.hero-bg {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(52, 211, 153, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(15, 23, 42, 0.04), transparent 50%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 30%, transparent 70%);
  pointer-events: none;
}

/* ─── Browser frame for screenshots (macOS-style window chrome) ─── */
.browser-frame {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 24px 60px -20px rgba(15, 23, 42, 0.25),
    0 12px 32px -16px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  transform: perspective(1500px) rotateX(2deg);
  transition: transform .4s ease;
}
.browser-frame:hover { transform: perspective(1500px) rotateX(0deg); }
.browser-frame__chrome {
  height: 38px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid #cbd5e1;
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
}
.browser-frame__dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-frame__dot--red    { background: #ff5f57; }
.browser-frame__dot--yellow { background: #febc2e; }
.browser-frame__dot--green  { background: #28c840; }
.browser-frame__url {
  flex: 1; margin-left: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--slate-500);
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  display: flex; align-items: center; gap: 6px;
  max-width: 320px;
}
.browser-frame__url::before {
  content: '';
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center / contain no-repeat;
  opacity: 0.7;
}
.browser-frame__body {
  background: #fff;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.browser-frame__body img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}

/* Placeholder when no real screenshot yet */
.browser-frame__placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(15, 23, 42, 0.02) 12px 24px),
    var(--slate-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 500;
}

/* ─── Bento grid items ─── */
.bento-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bento-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  opacity: 0; transform: translateX(-100%);
  transition: all .5s ease;
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: 0 12px 32px -12px rgba(16, 185, 129, 0.15);
}
.bento-card:hover::after { opacity: 1; transform: translateX(100%); }
.bento-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

/* ─── Step number circle ─── */
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
}

/* ─── Pricing card ─── */
.pricing-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.pricing-card--featured {
  border: 2px solid var(--brand-500);
  box-shadow:
    0 0 0 8px rgba(16, 185, 129, 0.08),
    0 24px 60px -20px rgba(16, 185, 129, 0.3);
}
.pricing-card__badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.4);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.5);
}
.btn--secondary {
  background: #fff;
  color: var(--slate-900);
  border: 1px solid var(--slate-300);
}
.btn--secondary:hover { border-color: var(--slate-400); background: var(--slate-50); }
.btn--ghost {
  background: transparent;
  color: var(--slate-700);
}
.btn--ghost:hover { color: var(--slate-900); }
.btn--lg { padding: 14px 28px; font-size: 16px; }

/* ─── FAQ accordion ─── */
.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-900);
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 300;
  color: var(--brand-600);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  color: var(--slate-600);
  font-size: 14.5px;
  line-height: 1.7;
  padding-bottom: 20px;
  padding-right: 32px;
}

/* ─── Section utilities ─── */
.section { padding: 96px 0; }
.section--compact { padding: 64px 0; }
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.h-display {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--slate-900);
}
.h-display .gradient-text {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h-section {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--slate-900);
}
.lead {
  font-size: 18px;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ─── Animations ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .8s cubic-bezier(0.4, 0, 0.2, 1) both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* ─── Lang switcher ─── */
.lang-switcher {
  display: inline-flex;
  background: var(--slate-100);
  border-radius: 8px;
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
}
.lang-switcher a {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--slate-500);
  text-decoration: none;
}
.lang-switcher a.active {
  background: #fff;
  color: var(--slate-900);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 56px 0 32px;
}
.site-footer a { color: var(--slate-300); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brand-400); }

/* ─── Responsive helpers ─── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .browser-frame { transform: none; }
  .browser-frame:hover { transform: none; }
}
