/* UNIK BTP — public landing page. Fully self-contained, independent from the app's styles.css. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #0a0b14;
  --ink-soft: #454761;
  --muted: #6b6e88;
  --line: #e7e8f2;
  --line-soft: #f0f1f8;
  --paper: #ffffff;
  --paper-tint: #f7f7fb;
  --blue: #2f80ed;
  --blue-2: #23b7ff;
  --violet: #7b4dff;
  --purple: #8b3adf;
  --pink: #ec2f9a;
  --magenta: #d6067a;
  --gradient: linear-gradient(135deg, #2f80ed 0%, #7b4dff 46%, #ec2f9a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(47,128,237,0.10) 0%, rgba(123,77,255,0.10) 46%, rgba(236,47,154,0.10) 100%);
  --gradient-text: linear-gradient(100deg, #2f80ed 0%, #7b4dff 45%, #ec2f9a 100%);
  --shadow-lg: 0 30px 80px -20px rgba(20, 20, 50, 0.25);
  --shadow-md: 0 16px 40px -12px rgba(20, 20, 50, 0.18);
  --shadow-sm: 0 4px 14px rgba(20, 20, 50, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="scale"] { transform: translateY(20px) scale(0.96); }
[data-reveal="scale"].is-visible { transform: translateY(0) scale(1); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.14s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.23s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.32s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.41s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(20,20,50,0.06), 0 12px 30px -18px rgba(20,20,50,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 20px -8px rgba(10,11,20,0.45);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(10,11,20,0.5); }
.nav-mobile-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 190px 0 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  z-index: -1;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.blob-1 { width: 560px; height: 560px; top: -140px; left: 6%; background: radial-gradient(circle, #7b4dff, transparent 70%); animation: float1 22s ease-in-out infinite; }
.blob-2 { width: 480px; height: 480px; top: 40px; right: 4%; background: radial-gradient(circle, #ec2f9a, transparent 70%); animation: float2 26s ease-in-out infinite; }
.blob-3 { width: 420px; height: 420px; top: 300px; left: 38%; background: radial-gradient(circle, #23b7ff, transparent 70%); opacity: 0.4; animation: float3 30s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.08); } }

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid rgba(123,77,255,0.18);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 28px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
}
.hero h1 .grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 42px;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 16px 34px -12px rgba(123,77,255,0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 22px 44px -14px rgba(123,77,255,0.6); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-trust {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Hero product mockup */
.hero-mockup {
  margin: 88px auto 0;
  max-width: 960px;
  position: relative;
}
.mockup-frame {
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateX(4deg);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-tint);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-body { padding: 28px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.mockup-side { display: grid; gap: 10px; }
.mockup-pill { height: 12px; border-radius: 6px; background: var(--line-soft); }
.mockup-pill.active { background: var(--gradient-soft); position: relative; overflow: hidden; }
.mockup-pill.w60 { width: 60%; } .mockup-pill.w80 { width: 80%; } .mockup-pill.w40 { width: 40%; }
.mockup-main { display: grid; gap: 16px; }
.mockup-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mockup-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--paper);
}
.mockup-card .num {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mockup-card .lbl { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.mockup-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
}
.mockup-chart span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--gradient);
  opacity: 0.85;
  animation: growbar 1.4s var(--ease) both;
}

@keyframes growbar { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

@media (max-width: 720px) {
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
}

/* ---------- Section shell ---------- */

.section { padding: 130px 0; }
.section-tight { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.section-head p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 500;
}
.bg-tint { background: var(--paper-tint); }

/* ---------- Pain points ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pain-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(214,6,122,0.1), rgba(236,47,154,0.06));
  margin-bottom: 20px;
}
.pain-card h3 { font-size: 1.12rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.pain-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 70px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row + .feature-row { border-top: 1px solid var(--line-soft); }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0 0 18px;
}
.feature-copy p {
  font-size: 1.04rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 500;
  margin: 0 0 22px;
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.96rem; font-weight: 600; color: var(--ink);
}
.feature-list svg { flex-shrink: 0; margin-top: 2px; }

.feature-visual {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.feature-visual:hover { transform: translateY(-4px); }

@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
}

/* --- illustration bits shared across visuals --- */
.viz-glow {
  position: absolute; inset: 0; z-index: 0;
  background: var(--gradient-soft);
  opacity: 0.6;
  filter: blur(40px);
}
.viz-content { position: relative; z-index: 1; }

.phone-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.phone-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; }
.phone-meta strong { display: block; font-size: 0.92rem; }
.phone-meta span { font-size: 0.78rem; color: var(--muted); }
.phone-badge {
  margin-left: auto; padding: 4px 10px; border-radius: 999px;
  background: #e8faf1; color: #1f9d6c; font-size: 0.72rem; font-weight: 800;
}
.waveform { display: flex; align-items: center; gap: 3px; height: 34px; margin: 20px 0; }
.waveform span { width: 4px; border-radius: 4px; background: var(--gradient); animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }

.doc-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 20px; box-shadow: var(--shadow-sm); }
.doc-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 0.86rem; }
.doc-line:last-child { border: none; }
.doc-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 6px; font-weight: 800; font-size: 1.05rem; }
.doc-total .grad { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.kanban-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kanban-col { background: var(--paper-tint); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.kanban-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 2px 4px 4px; font-weight: 800; }
.kanban-chip { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.kanban-chip .chip-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }

.photo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-frame { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; position: relative; border: 1px solid var(--line); }
.photo-frame span { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(10,11,20,0.6); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.photo-fill-before { background: linear-gradient(135deg, #b9bccb, #7d8096); }
.photo-fill-after { background: var(--gradient); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.stat-box .num { font-size: 1.4rem; font-weight: 800; }
.stat-box .lbl { font-size: 0.74rem; color: var(--muted); font-weight: 700; margin-top: 2px; }
.stat-box .delta { font-size: 0.74rem; font-weight: 800; color: #1f9d6c; margin-left: 6px; }

.network-wrap { position: relative; height: 320px; }
.network-node {
  position: absolute; width: 52px; height: 52px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.network-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 22px; background: var(--gradient);
  box-shadow: 0 20px 40px -14px rgba(123,77,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 0.95rem;
}

/* ---------- Groupement band ---------- */

.groupement {
  border-radius: 40px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 90px 60px;
}
.groupement::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(123,77,255,0.35), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(236,47,154,0.3), transparent 45%);
}
.groupement-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.groupement h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 20px; }
.groupement p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.78); font-weight: 500; margin: 0 0 28px; }
.groupement-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.groupement-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.98rem; }
.groupement-list svg { flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .groupement { padding: 56px 28px; border-radius: 26px; }
  .groupement-inner { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */

.cta-band { text-align: center; padding: 130px 0 150px; }
.cta-band h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; margin: 0 0 22px; }
.cta-band p { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 40px; font-weight: 500; }
.cta-email { margin-top: 20px; font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.cta-email a { color: var(--violet); font-weight: 800; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-meta { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ---------- Counters ---------- */
.counter { font-variant-numeric: tabular-nums; }
.footer-legal-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
