/* SOSCALE — site vitrine prototype */

:root {
  --bg: #07070C;
  --bg-1: #0C0C14;
  --bg-2: #11111C;
  --bg-card: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --fg: #F4F4F8;
  --fg-1: rgba(244, 244, 248, 0.72);
  --muted: rgba(244, 244, 248, 0.5);
  --dim: rgba(244, 244, 248, 0.32);

  --blue: #3B5BFF;
  --blue-2: #5B73FF;
  --purple: #8B5CFF;
  --purple-2: #A87BFF;
  --pink: #FF4DA8;

  --grad: linear-gradient(110deg, #3B5BFF 0%, #6F4DFF 50%, #B85CFF 100%);
  --grad-soft: linear-gradient(110deg, rgba(59, 91, 255, 0.18) 0%, rgba(139, 92, 255, 0.18) 100%);
  --grad-text: linear-gradient(100deg, #ffffff 0%, #ffffff 35%, #B49BFF 60%, #5B73FF 100%);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --pad-x: clamp(20px, 5vw, 96px);

  --font-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1100px 600px at 88% -10%, rgba(139, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 540px at 0% 4%, rgba(59, 91, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(91, 115, 255, 0.4); color: white; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-x);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 7, 12, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13.5px; color: var(--fg-1);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  box-shadow: 0 6px 24px -8px rgba(91, 115, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 32px -8px rgba(91, 115, 255, 0.75); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Containers ──────────────────────────────────── */
.section {
  padding: clamp(60px, 9vw, 140px) var(--pad-x);
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-1);
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px #4ADE80;
}
.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(44px, 7.2vw, 104px);
  margin: 0;
}
.h-section {
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.04;
  font-size: clamp(32px, 4.4vw, 60px);
  margin: 0;
}
.lede {
  font-size: clamp(15px, 1.35vw, 19px);
  color: var(--fg-1);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(900px 700px at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 700px at 50% 35%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.hero-orb.a { background: #3B5BFF; left: -180px; top: 100px; animation: float1 16s ease-in-out infinite; }
.hero-orb.b { background: #8B5CFF; right: -180px; top: 280px; animation: float2 20s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(120px, 60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-100px, -40px); } }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.hero h1 { margin-top: 24px; max-width: 17ch; }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--fg-1);
  max-width: 58ch;
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--grad);
  color: white;
  font-size: 15px; font-weight: 500;
  border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(91, 115, 255, 0.7), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px -10px rgba(139, 92, 255, 0.8), 0 0 0 1px rgba(255,255,255,0.08) inset; }
.btn-ghost {
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  color: var(--fg);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.hero-trust {
  margin-top: 56px;
  display: flex; align-items: center; gap: 24px;
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em;
}
.hero-trust .label { text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; }
.hero-trust .logos { display: flex; gap: 28px; align-items: center; opacity: 0.85; }
.trust-logo { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--fg-1); }

/* ── Hero compare module ─────────────────────────── */
.compare-wrap {
  margin-top: 64px;
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border-2);
  padding: 28px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(12px);
}
.compare-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.compare-head .live {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg-1);
}
.compare-head .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 10px #4ADE80;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .compare-cols { grid-template-columns: 1fr; } }
.compare-col {
  padding: 24px 28px;
  background: var(--bg-1);
  min-height: 280px;
  position: relative;
}
.compare-col.after {
  background: linear-gradient(180deg, rgba(59, 91, 255, 0.08), rgba(139, 92, 255, 0.05));
}
.compare-tag {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
  font-weight: 500;
}
.compare-col.after .compare-tag { color: var(--blue-2); }
.compare-stat {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
  font-feature-settings: "tnum";
}
.compare-col.after .compare-stat {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.compare-label { margin-top: 12px; font-size: 13px; color: var(--fg-1); }
.compare-delta {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.12); color: #4ADE80;
  font-size: 12px; font-weight: 500;
  font-family: var(--font-mono);
}
.compare-bars { margin-top: 18px; display: flex; gap: 4px; align-items: end; height: 32px; }
.compare-bars span {
  flex: 1; background: rgba(255,255,255,0.08); border-radius: 2px;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s;
}
.compare-col.after .compare-bars span { background: var(--blue); box-shadow: 0 0 8px rgba(91,115,255,0.5); }

/* ── KPI section ─────────────────────────────────── */
.kpi-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.kpi-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(91, 115, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.kpi-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.kpi-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.kpi-title { font-size: 13.5px; color: var(--fg-1); font-weight: 500; }
.kpi-id {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--dim);
  letter-spacing: 0.06em;
}
.kpi-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.kpi-side .small {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 6px;
}
.kpi-side .value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
  font-feature-settings: "tnum";
}
.kpi-side.before .value { color: var(--fg-1); }
.kpi-side.after .value {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpi-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(91, 115, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-2);
}
.kpi-bars {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.kpi-bar-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.kpi-bar-row .tag { width: 60px; }
.kpi-bar {
  flex: 1; height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.kpi-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kpi-bar-fill.before { background: rgba(255,255,255,0.22); }
.kpi-bar-fill.after { background: var(--grad); box-shadow: 0 0 18px rgba(91,115,255,0.5); }
.kpi-bar-row .pct { font-family: var(--font-mono); width: 64px; text-align: right; color: var(--fg-1); }

/* ── ROI Simulator ───────────────────────────────── */
.roi-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}
@media (max-width: 980px) { .roi-wrap { grid-template-columns: 1fr; } }
.roi-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 32px;
}
.roi-card.result {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(139, 92, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(59, 91, 255, 0.12), rgba(139, 92, 255, 0.05));
  border-color: rgba(139, 92, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.roi-field { margin-bottom: 22px; }
.roi-field:last-child { margin-bottom: 0; }
.roi-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  font-size: 13px; color: var(--fg-1);
}
.roi-label .v {
  font-family: var(--font-mono);
  font-size: 18px; color: var(--fg);
  font-weight: 500;
}
.roi-slider {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  outline: none;
  margin: 0;
  position: relative;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91, 115, 255, 0.6);
  transition: transform 0.1s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.roi-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91, 115, 255, 0.6);
}
.roi-meta {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 11px; color: var(--dim);
  font-family: var(--font-mono);
}
.roi-headline {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.roi-big {
  font-family: var(--font-mono);
  font-size: clamp(44px, 6.5vw, 84px);
  letter-spacing: -0.045em;
  font-weight: 500;
  line-height: 0.95;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.roi-sub-big { margin-top: 8px; color: var(--fg-1); font-size: 14px; }
.roi-split {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.roi-split-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.roi-split-card .lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.roi-split-card .val {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.roi-cta {
  margin-top: 24px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.roi-cta input {
  flex: 1; min-width: 200px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-2);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
}
.roi-cta input::placeholder { color: var(--dim); }
.roi-cta input:focus { border-color: rgba(91,115,255,0.5); }
.roi-cta .btn-primary { padding: 12px 18px; font-size: 14px; }

/* ── Section header ─────────────────────────────── */
.section-head {
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  max-width: 800px;
}
.section-head .h-section { max-width: 18ch; }

/* ── Footer ─────────────────────────────────────── */
.footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--muted);
}
.footer-links { display: flex; gap: 18px; }

/* ── Logo lab ───────────────────────────────────── */
.logo-lab {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .logo-lab { grid-template-columns: 1fr; } }
.logo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.logo-card .stage {
  height: 180px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.logo-card .name {
  font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.logo-card .title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.logo-card .desc { margin-top: 8px; font-size: 13px; color: var(--fg-1); line-height: 1.5; }
.logo-mini {
  margin-top: 16px;
  display: flex; gap: 8px;
}
.logo-mini .chip {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mini .chip.light { background: #FAFAF7; }
.logo-mini .chip.dark { background: #07070C; }
.logo-mini .chip.icon { background: var(--grad); }

/* ── Scroll reveal helpers ──────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
