/* ========================================
   COHESIF ENERGY — DESIGN SYSTEM
   Modern, refined, Stripe/Linear-inspired
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* === DESIGN TOKENS === */
:root {
  /* Brand colors */
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-500: #10b981;
  --brand-600: #0f7c4a;
  --brand-700: #0c5e38;
  --brand-800: #0a4a2c;

  /* Accent blue */
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --accent-600: #0f4c81;
  --accent-700: #0c3d68;

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

  /* Layout */
  --container: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 20px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--ink-600); }
strong, b { color: var(--ink-800); font-weight: 600; }
.gradient-text {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }
@media (min-width: 768px) {
  .section { padding: 120px 0; }
  .section-lg { padding: 160px 0; }
}
.section-subtle { background: var(--ink-50); }
.section-dark { background: var(--ink-950); color: var(--ink-100); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p { color: var(--ink-300); }

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.logo span.brand-accent { color: var(--brand-700); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  transition: all 0.15s ease;
}
.nav-desktop a:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-desktop a.active { color: var(--brand-700); }

.header-cta {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 1024px) {
  .nav-desktop, .header-cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink-800);
}
.menu-toggle:hover { background: var(--ink-100); }
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 100;
  display: none;
  flex-direction: column;
  animation: fade-in 0.2s ease-out;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ink-200);
}
.mobile-menu-body { padding: 24px; overflow-y: auto; flex: 1; }
.mobile-menu-body a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
}
.mobile-menu-body a:hover { background: var(--ink-50); }
.mobile-menu-footer {
  padding: 24px;
  border-top: 1px solid var(--ink-200);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }

.btn-primary { background: var(--brand-600); color: white; }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--ink-900); color: white; }
.btn-secondary:hover { background: var(--ink-800); }
.btn-outline {
  background: white;
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--ink-300); background: var(--ink-50); }
.btn-ghost { color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-arrow svg { transition: transform 0.2s ease; }
.btn-arrow:hover svg { transform: translateX(2px); }

.btn-block { width: 100%; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.badge-accent { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.badge-neutral { background: var(--ink-100); color: var(--ink-700); border-color: var(--ink-200); }

/* === EYEBROW === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-700);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* === HERO === */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: white;
  background-image:
    radial-gradient(at 12% 20%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(15, 124, 74, 0.05) 0px, transparent 50%);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 120px 0 140px; }
}
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--ink-600);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  gap: 12px 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-600);
}
.hero-trust-item svg { color: var(--brand-600); }

/* === SECTION INTRO === */
.section-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-intro h2 { margin-bottom: 16px; }
.section-intro p { font-size: 1.125rem; }

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
  position: relative;
}
.feature-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-card a { display: block; color: inherit; text-decoration: none; }
.feature-card:has(a) { cursor: pointer; }
.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--brand-100);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.feature-card p { font-size: 15px; color: var(--ink-600); }
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
}
.feature-card.highlighted {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.5), white);
  border-color: var(--brand-200);
}
.feature-card .feature-badge {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Feature card variant — subtle */
.feature-card-subtle {
  background: var(--ink-50);
  border-color: transparent;
}

/* === STATS === */
.stats {
  display: grid;
  gap: 1px;
  background: var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
}
@media (min-width: 640px) {
  .stats-2 { grid-template-columns: repeat(2, 1fr); }
  .stats-3 { grid-template-columns: repeat(3, 1fr); }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .stats-4 { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  padding: 40px 32px;
  background: white;
}
.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 15px; color: var(--ink-600); }

/* === FAQ === */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--ink-200);
}
.faq-item:first-child { border-top: 1px solid var(--ink-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  text-align: left;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink-900);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--brand-700); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink-300);
  background: white;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px;
  color: var(--ink-600);
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 56px 24px 0;
}

/* === CTA BAND === */
.cta-band {
  background: var(--ink-950);
  color: white;
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-band { padding: 80px 64px; }
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.4), transparent);
  pointer-events: none;
}
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p { color: var(--ink-300); font-size: 1.125rem; max-width: 600px; margin: 0 auto 32px; }
.cta-band .footnote { color: var(--ink-400); font-size: 14px; margin-top: 24px; }

/* === PROCESS STEPS === */
.process-steps {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
.process-step {
  position: relative;
}
.process-step-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.process-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-step-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 14px; }

/* === LOGO CLOUD === */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 640px) {
  .logo-cloud { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .logo-cloud { grid-template-columns: repeat(6, 1fr); }
}
.logo-cloud-item {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-500);
  opacity: 0.8;
  text-align: center;
}

/* === FOOTER === */
.footer {
  background: var(--ink-950);
  color: var(--ink-300);
  padding: 80px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr repeat(4, 1fr); gap: 32px; }
}
.footer-brand .logo { color: white; }
.footer-brand p { font-size: 14.5px; color: var(--ink-400); margin: 16px 0; max-width: 300px; }
.footer-contact { font-size: 14px; }
.footer-contact a { color: var(--ink-300); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-contact a:hover { color: white; }
.footer-contact svg { color: var(--brand-500); flex-shrink: 0; }

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-400); transition: color 0.15s; }
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--ink-800);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-legal a:hover { color: var(--ink-300); }

.footer-poles {
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--ink-800);
}
.footer-poles-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 12px;
}
.footer-poles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
.footer-poles-list a.current { color: var(--brand-400, #34d399); }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.flex-row-mobile-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === ANIMATIONS === */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s ease-out both; }

/* === ALERT / NOTE BLOCKS === */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  border-left: 3px solid var(--brand-600);
  margin: 24px 0;
}
.alert strong { color: var(--brand-800); }
.alert p { font-size: 15px; color: var(--ink-700); }
.alert-warning { background: #fef3c7; border-left-color: #d97706; }
.alert-warning strong { color: #92400e; }
.alert-info { background: var(--accent-50); border-left-color: var(--accent-600); }
.alert-info strong { color: var(--accent-700); }

/* === TABLE === */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
}
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ink-200);
}
.table th { background: var(--ink-50); font-weight: 600; color: var(--ink-800); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: none; }

/* === PAGE PLACEHOLDER (pour pages stub) === */
.page-placeholder {
  text-align: center;
  padding: 60px 32px;
  border: 2px dashed var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--ink-50);
  max-width: 720px;
  margin: 0 auto;
}
.page-placeholder h3 { margin-bottom: 12px; }
.page-placeholder p { max-width: 480px; margin: 0 auto; }
