/* ═══════════════════════════════════════════
   DESIGN SYSTEM — BLCTV SUPPORT
   Tokens → Base → Components → Layout
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Colors */
  --c-bg:         #060a14;
  --c-surface:    #0c1220;
  --c-surface-2:  #111827;
  --c-border:     rgba(255,255,255,.07);
  --c-border-md:  rgba(255,255,255,.12);

  --c-blue:       #2b8fff;
  --c-blue-dim:   rgba(43,143,255,.12);
  --c-pink:       #e0189f;
  --c-pink-dim:   rgba(224,24,159,.10);
  --c-purple:     #8b22d6;
  --c-green:      #22c55e;
  --c-green-dim:  rgba(34,197,94,.12);

  --c-white:      #ffffff;
  --c-text:       #c4d4ec;
  --c-muted:      #6b82a8;

  /* Typography */
  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 999px;

  /* Shadow */
  --shadow-card: 0 2px 0 rgba(255,255,255,.04) inset, 0 1px 40px rgba(0,0,0,.4);
  --shadow-btn:  0 4px 20px rgba(34,197,94,.3);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: inherit; }

/* ── LAYOUT ── */
.wrap         { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section      { padding: 110px 0; }
.section-alt  { background: var(--c-surface); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--f-head); color: var(--c-white); font-weight: 700; line-height: 1.1; }

.text-gradient {
  background: linear-gradient(100deg, var(--c-blue) 0%, var(--c-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  border-radius: var(--r-full); padding: 11px 24px;
  border: none; cursor: pointer; transition: all .18s ease;
  white-space: nowrap; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, #2ec76a 0%, #16a34a 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3ddc76 0%, #22c55e 100%);
  box-shadow: 0 6px 28px rgba(34,197,94,.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; color: var(--c-text);
  border: 1.5px solid var(--c-border-md);
}
.btn-outline:hover { border-color: var(--c-blue); color: var(--c-white); }

.btn-ghost-sm {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  transition: all .15s;
}
.btn-ghost-sm:hover { color: var(--c-white); border-color: var(--c-border-md); }

.btn-xl { padding: 15px 34px; font-size: 17px; }
.btn-xl svg { width: 20px; height: 20px; }

.btn-tg {
  background: linear-gradient(135deg, #2ea5ff 0%, #0088cc 100%);
  color: #fff; font-size: 14px; padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(0,136,204,.3);
}
.btn-tg svg { width: 17px; height: 17px; }
.btn-tg:hover { box-shadow: 0 6px 22px rgba(0,136,204,.45); transform: translateY(-1px); }

/* ── CHIP / PILL ── */
.chip {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-blue); background: var(--c-blue-dim);
  border: 1px solid rgba(43,143,255,.2);
  border-radius: var(--r-full); padding: 5px 14px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--c-green);
  background: var(--c-green-dim); border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r-full); padding: 6px 16px;
  margin-bottom: 28px;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,10,20,.8);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 28px; height: 66px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 20px; font-weight: 700; color: var(--c-white);
}
.nav-brand img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(43,143,255,.4); object-fit: cover;
}
.nav-brand em { color: var(--c-blue); font-style: normal; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--c-muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--c-white); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding-top: 66px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

/* Orbs */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.hero-orb--blue   { width: 700px; height: 700px; background: rgba(43,143,255,.11); top: -100px; left: -100px; }
.hero-orb--pink   { width: 500px; height: 500px; background: rgba(224,24,159,.09); bottom: -60px; right: 200px; }
.hero-orb--purple { width: 400px; height: 400px; background: rgba(139,34,214,.07); top: 200px; right: -80px; }

/* Grid overlay */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(43,143,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,143,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 80%);
}

/* Conteneur centré du hero */
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 28px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative; z-index: 2;
}

.hero-left {
  flex: 1; min-width: 0;
}

.hero-left h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -.02em; margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px; color: var(--c-muted);
  max-width: 540px; margin-bottom: 40px; line-height: 1.8;
}
.hero-desc strong { color: var(--c-text); font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 20px 28px; gap: 0;
  backdrop-filter: blur(12px);
}
.hstat { text-align: center; flex: 1; }
.hstat strong { display: block; font-family: var(--f-head); font-size: 22px; font-weight: 700; color: var(--c-white); }
.hstat span   { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .07em; }
.hstat-div    { width: 1px; background: var(--c-border); align-self: stretch; margin: 0 4px; }

/* ── PHONE MOCKUP ── */
.hero-right {
  flex-shrink: 0; width: 340px;
  display: flex; align-items: center; justify-content: center;
}

.phone-wrap { position: relative; }

.phone-glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.phone-glow--blue { width: 280px; height: 280px; background: rgba(43,143,255,.18); top: -30px; left: -40px; }
.phone-glow--pink { width: 200px; height: 200px; background: rgba(224,24,159,.14); bottom: 20px; right: -30px; }

.phone {
  width: 300px;
  background: #1c1c1e;
  border-radius: 44px;
  overflow: hidden;
  position: relative; z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 40px 100px rgba(0,0,0,.7),
    0 0 0 8px #0f0f11,
    0 0 0 9px rgba(255,255,255,.06);
}

/* Status bar */
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 6px; background: #1c1c1e;
  font-size: 12px; font-weight: 600; color: #fff;
}
.phone-icons { display: flex; align-items: center; gap: 6px; }

/* Chat header */
.phone-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pch-back { width: 28px; display: flex; align-items: center; }
.pch-back svg { width: 20px; height: 20px; }
.pch-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pch-info { flex: 1; min-width: 0; }
.pch-name { font-size: 15px; font-weight: 600; color: #fff; }
.pch-sub  { font-size: 11px; color: #8e8e93; }
.pch-actions svg { width: 20px; height: 20px; color: #8e8e93; }

/* Chat body */
.phone-body {
  position: relative; min-height: 420px; max-height: 420px; overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.phone-body::-webkit-scrollbar { display: none; }

.tg-wallpaper {
  position: absolute; inset: 0;
  background-color: #c8daea;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.3) 0%, transparent 40%);
  /* Motif floral Telegram simplifié */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='8' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='10' cy='10' r='5' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='70' cy='10' r='5' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='10' cy='70' r='5' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='70' cy='70' r='5' fill='rgba(255,255,255,0.18)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #b8d4e8 0%, #c8daea 50%, #b0cce0 100%);
}

.tg-messages { position: relative; z-index: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }

/* Bubble bot */
.tg-bubble {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 10px 10px 6px;
  max-width: 96%;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.tg-bubble--sm { padding: 8px 8px 6px; }

.tg-bubble-header {
  font-size: 11px; font-weight: 700; color: #1d7ecf;
  margin-bottom: 6px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.tg-bubble-code { color: #888; font-weight: 500; }
.tg-bubble-label {
  font-size: 11.5px; font-weight: 700; color: #1d7ecf; margin-bottom: 4px;
}
.tg-bubble-time {
  font-size: 10px; color: #aaa; text-align: right; margin-top: 4px;
}

/* Keyboard buttons Telegram */
.tg-bubble-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px;
}
.tg-kb-col { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }

.tg-kb-btn {
  background: linear-gradient(135deg, #6a8e7a 0%, #5a7a68 100%);
  color: #fff; border: none; border-radius: 7px;
  padding: 7px 5px; font-size: 10px; font-weight: 600;
  cursor: pointer; line-height: 1.3; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: filter .15s;
}
.tg-kb-btn:hover { filter: brightness(1.1); }
.tg-kb-btn--full { grid-column: 1/-1; }
.tg-kb-btn--cancel { background: linear-gradient(135deg, #c0392b, #a93226) !important; }

/* Input bar */
.phone-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #2c2c2e;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #8e8e93;
}
.phone-input-field {
  flex: 1; font-size: 14px; color: #636366;
  background: #3a3a3c; border-radius: 20px;
  padding: 8px 14px;
}

/* ══════════════════════════════════════════
   SECTION HEAD
══════════════════════════════════════════ */
.section-head { margin-bottom: 60px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: 12px; }
.section-head p  { font-size: 16px; color: var(--c-muted); max-width: 520px; }

/* ══════════════════════════════════════════
   PANELS
══════════════════════════════════════════ */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.panel-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 32px;
  transition: transform .22s ease, box-shadow .22s ease;
  var(--shadow-card);
}
.panel-card:hover { transform: translateY(-6px); }
.panel-card[data-accent="green"]:hover { box-shadow: 0 20px 60px rgba(34,197,94,.12); border-color: rgba(34,197,94,.2); }
.panel-card[data-accent="yellow"]:hover { box-shadow: 0 20px 60px rgba(234,179,8,.08); border-color: rgba(234,179,8,.15); }
.panel-card[data-accent="purple"]:hover { box-shadow: 0 20px 60px rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); }

.panel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

.panel-badge-chip {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--r-full); padding: 4px 12px; border: 1px solid;
}

.panel-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.panel-desc    { font-size: 14px; color: var(--c-muted); margin-bottom: 22px; line-height: 1.6; }

.panel-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.panel-card li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--c-text);
}
.panel-card li svg { width: 18px; height: 18px; flex-shrink: 0; }
.panel-card li strong { color: var(--c-white); }

.panel-trial {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04); border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r-md); padding: 12px 18px;
}
.panel-trial span  { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.panel-trial strong{ font-family: var(--f-head); font-size: 16px; color: var(--c-green); }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feat-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: var(--c-border-md); transform: translateY(-3px); }

.feat-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-icon svg { width: 22px; height: 22px; }

.feat-icon--green  { background: rgba(34,197,94,.12);  color: #22c55e; }
.feat-icon--blue   { background: rgba(43,143,255,.12);  color: var(--c-blue); }
.feat-icon--purple { background: rgba(139,34,214,.12);  color: #a855f7; }
.feat-icon--pink   { background: rgba(224,24,159,.12);  color: var(--c-pink); }
.feat-icon--orange { background: rgba(249,115,22,.12);  color: #f97316; }
.feat-icon--cyan   { background: rgba(6,182,212,.12);   color: #06b6d4; }
.feat-icon--red    { background: rgba(239,68,68,.12);   color: #ef4444; }

.feat-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-card p  { font-size: 14px; color: var(--c-muted); line-height: 1.6; }

/* ══════════════════════════════════════════
   STEPS
══════════════════════════════════════════ */
.steps-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 36px 30px;
  flex: 1; min-width: 220px; max-width: 310px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.step-card:hover { border-color: var(--c-border-md); transform: translateY(-4px); }

.step-num {
  font-family: var(--f-head); font-size: 56px; font-weight: 900;
  background: linear-gradient(135deg, var(--c-blue), var(--c-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 20px; opacity: .8;
}

.step-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-pink));
  border-radius: 0 0 4px 4px;
}

.step-ico {
  width: 40px; height: 40px; color: var(--c-blue); margin-bottom: 16px;
  stroke: var(--c-blue);
}

.step-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--c-muted); line-height: 1.6; }

.step-arrow { flex-shrink: 0; color: var(--c-muted); }
.step-arrow svg { width: 28px; height: 28px; }

/* ══════════════════════════════════════════
   CTA
══════════════════════════════════════════ */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
.cta-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.cta-orb--blue { width: 600px; height: 600px; background: rgba(43,143,255,.1); top: 50%; left: 50%; transform: translate(-80%,-50%); }
.cta-orb--pink { width: 400px; height: 400px; background: rgba(224,24,159,.09); top: 50%; left: 50%; transform: translate(-10%,-50%); }

.cta-logo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(43,143,255,.35);
  box-shadow: 0 0 0 8px rgba(43,143,255,.07), 0 0 50px rgba(43,143,255,.2);
  margin-bottom: 28px;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px;
}
.cta-section p {
  font-size: 17px; color: var(--c-muted); max-width: 480px; margin-bottom: 36px;
}
.cta-section p strong { color: var(--c-text); }
.cta-meta {
  margin-top: 18px; font-size: 13px; color: var(--c-muted);
  display: flex; align-items: center; gap: 6px;
}
.cta-meta::before, .cta-meta::after {
  content: '·'; opacity: .4;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 28px 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-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--c-white);
}
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-brand em  { color: var(--c-blue); font-style: normal; }
.footer p { font-size: 13px; color: var(--c-muted); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .hero-inner { flex-direction: column; gap: 48px; padding: 80px 28px 60px; }
  .hero-left { max-width: 100%; text-align: center; }
  .hero-left .pill { margin: 0 auto 28px; }
  .hero-ctas { justify-content: center; }
  .hero-right { width: 100%; }
  .hero-stats { gap: 4px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero-left h1 { font-size: 2rem; }
  .hero-stats { padding: 16px 18px; }
  .hstat strong { font-size: 18px; }
  .steps-row { flex-direction: column; align-items: stretch; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .step-card  { max-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .phone { width: 280px; }
}

@media (max-width: 480px) {
  .btn-xl { padding: 13px 24px; font-size: 15px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
}
