/* ==========================================================================
   NVHCloud — Remote & Stream · site vitrine
   Palette et langage visuel alignés sur l'application.
   ========================================================================== */
:root {
  --bg: #0a0e15;
  --bg-raise: #10151f;
  --bg-sink: #070a10;
  --stroke: rgba(230, 240, 255, 0.08);
  --stroke-strong: rgba(230, 240, 255, 0.16);
  --text: #eef2fa;
  --muted: #8e99ad;
  --accent: #38b6ff;
  --accent2: #5b6cff;
  --grad: linear-gradient(135deg, #38b6ff 0%, #2a8cff 55%, #5b6cff 100%);
  --danger: #ff4d5e;
  --ok: #4ade80;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(56, 182, 255, 0.35); }

#bg3d {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================ Navigation ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 34px;
  padding: 14px 42px;
  background: rgba(10, 14, 21, 0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 17px; letter-spacing: 0.2px;
}
.brand img { width: 26px; height: 26px; }
.brand b { color: var(--accent); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav nav a:hover { color: var(--text); }

/* ============================ Boutons ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 14px; text-decoration: none;
  font-weight: 700; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn.primary {
  background: var(--grad); color: #041226;
  box-shadow: 0 10px 34px rgba(52, 140, 255, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(52, 140, 255, 0.5); }
.btn.ghost {
  color: var(--text);
  border: 1px solid var(--stroke-strong);
  background: rgba(230, 240, 255, 0.03);
}
.btn.ghost:hover { border-color: rgba(56, 182, 255, 0.6); transform: translateY(-2px); }
.btn.big { padding: 16px 30px; font-size: 16px; }
.btn.small { padding: 9px 18px; font-size: 13.5px; background: var(--grad); color: #041226; }

/* ============================ Hero ============================ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
  line-height: 1.02; font-weight: 800; letter-spacing: -2px;
  margin-bottom: 26px;
}
.lede {
  max-width: 640px; font-size: 19px; line-height: 1.65; color: var(--muted);
  margin-bottom: 40px;
}
.cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.meta { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
#version-badge {
  color: var(--accent); font-weight: 700;
  font-family: "Cascadia Code", Consolas, monospace;
}
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--stroke-strong); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 3px; background: var(--accent);
  animation: scrollhint 1.8s var(--ease) infinite;
}
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============================ Sections ============================ */
section { position: relative; z-index: 1; padding: 110px 24px; }
section h2 {
  text-align: center;
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.section-lede {
  text-align: center; max-width: 600px; margin: 0 auto 60px;
  color: var(--muted); font-size: 17px; line-height: 1.6;
}

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ Aperçu application ============================ */
.app-window {
  max-width: 1040px; margin: 0 auto;
  background: var(--bg-raise);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 182, 255, 0.06);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.aw-titlebar {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 18px;
  background: var(--bg-sink);
  border-bottom: 1px solid var(--stroke);
}
.aw-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.aw-brand img { width: 18px; height: 18px; }
.aw-brand b { color: var(--accent); }
.aw-brand em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 500; }
.aw-tabs { display: flex; gap: 6px; margin: 0 auto; }
.aw-tabs span {
  padding: 6px 16px; border-radius: 20px; font-size: 12.5px; color: var(--muted);
}
.aw-tabs span.on { background: var(--grad); color: #041226; font-weight: 700; }
.aw-dots { display: flex; gap: 7px; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(230, 240, 255, 0.15); }

.aw-body {
  display: grid; grid-template-columns: 180px 1fr 200px; gap: 12px;
  padding: 14px;
}
.aw-card {
  background: var(--bg-sink);
  border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.aw-card h4 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 9px;
  display: flex; justify-content: space-between; align-items: center;
}
.aw-on { color: var(--danger); font-size: 10px; letter-spacing: 0; text-transform: none; }
.aw-item {
  padding: 7px 9px; border-radius: 8px; color: var(--text);
  border: 1px solid transparent; margin-bottom: 5px;
}
.aw-item.sel { border-color: rgba(56, 182, 255, 0.5); background: rgba(56, 182, 255, 0.08); }
.aw-mini { color: var(--muted); font-size: 10.5px; margin-top: 8px; }

.aw-canvas {
  position: relative; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--stroke);
  background: #05070c;
}
.aw-scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 70%, rgba(91, 108, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 25%, rgba(56, 182, 255, 0.3), transparent 50%),
    linear-gradient(160deg, #0b1322 0%, #060911 100%);
  animation: scenefloat 9s ease-in-out infinite alternate;
}
@keyframes scenefloat { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1%); } }
.aw-live {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 20px;
  background: rgba(7, 10, 16, 0.82); border: 1px solid rgba(255, 77, 94, 0.5);
  font-size: 11.5px; font-weight: 700;
}
.aw-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.aw-live span { color: var(--muted); font-weight: 500; font-family: "Cascadia Code", Consolas, monospace; font-size: 10.5px; }
.aw-cam {
  position: absolute; left: 14px; bottom: 14px;
  width: 26%; aspect-ratio: 16/10; border-radius: 10px;
  border: 2px solid rgba(56, 182, 255, 0.7);
  background:
    radial-gradient(circle at 50% 42%, rgba(238, 242, 250, 0.16) 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 90%, rgba(238, 242, 250, 0.12) 0 34%, transparent 35%),
    linear-gradient(180deg, #131b2c, #0a0f1a);
}

.aw-mixer {
  margin-top: 12px;
  background: var(--bg-sink); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 10px 14px;
}
.aw-track {
  display: grid; grid-template-columns: 110px 1fr 44px;
  align-items: center; gap: 12px;
  padding: 6px 0; font-size: 12px;
}
.aw-track b { color: var(--muted); font-weight: 500; font-size: 11px; text-align: right; }
.vu { height: 5px; border-radius: 4px; background: rgba(230, 240, 255, 0.07); overflow: hidden; }
.vu i {
  display: block; height: 100%; width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, #4ade80 0%, #4ade80 55%, #ffc24b 75%, #ff4d5e 100%);
  transition: width 0.12s linear;
}

.aw-plats { display: flex; gap: 8px; margin-bottom: 10px; }
.aw-plats i { width: 30px; height: 30px; border-radius: 9px; background: rgba(230, 240, 255, 0.06); }
.aw-plats i.tw { background: #9146ff; }
.aw-plats i.yt { background: rgba(230, 240, 255, 0.06); position: relative; }
.aw-plats i.kk { background: rgba(230, 240, 255, 0.06); }
.aw-btn-live {
  text-align: center; padding: 9px; border-radius: 9px;
  background: rgba(255, 77, 94, 0.12); color: #ff8091;
  border: 1px solid rgba(255, 77, 94, 0.4); font-weight: 700; font-size: 12px;
}
.aw-chat #aw-chat-box { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.aw-msg { font-size: 11px; line-height: 1.45; animation: msgin 0.35s var(--ease); }
.aw-msg b { margin-right: 5px; }
.aw-msg.alert {
  padding: 6px 8px; border-radius: 8px;
  background: rgba(56, 182, 255, 0.1); border: 1px solid rgba(56, 182, 255, 0.35);
  font-weight: 600;
}
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================ Fonctionnalités ============================ */
.features .grid {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.features .card {
  background: var(--bg-raise);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.8s var(--ease);
}
.features .card:hover { transform: translateY(-6px); border-color: rgba(56, 182, 255, 0.45); }
.features .ic { font-size: 30px; margin-bottom: 16px; }
.features h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.3px; }
.features p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ============================ SmartScreen ============================ */
.ss-steps {
  max-width: 1080px; margin: 0 auto 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.ss-step { position: relative; padding-top: 26px; }
.ss-num {
  position: absolute; top: 0; left: 22px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  background: var(--grad); color: #041226;
  box-shadow: 0 10px 26px rgba(52, 140, 255, 0.4);
}
.ss-dialog {
  background: #f3f5f9; color: #1a2433;
  border-radius: 12px;
  padding: 46px 24px 20px;
  min-height: 210px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-size: 13.5px; line-height: 1.55;
}
.ssd-head {
  font-size: 16px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 9px; color: #0b3f8f;
}
.ssd-shield {
  width: 18px; height: 20px; flex: none;
  background: #2f6fde;
  clip-path: polygon(50% 0, 100% 18%, 100% 60%, 50% 100%, 0 60%, 0 18%);
}
.ssd-link { color: #2f6fde; text-decoration: underline; margin-top: 10px; font-weight: 600; }
.ssd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ssd-btn {
  padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 600;
  background: #dde3ee; color: #1a2433; border: 1px solid #c3cbd9;
}
.ssd-btn.on { background: #2f6fde; color: #fff; border-color: #2f6fde; }
.ssd-btn.go { background: #1a7f37; color: #fff; border-color: #1a7f37; }
.ssd-ok { background: #eef7f0; }
.ssd-ok .ssd-head { color: #1a7f37; }
.ss-help { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.ss-help b { color: var(--text); }

.ss-notes {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-raise); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 26px 30px;
  color: var(--muted); font-size: 14.5px; line-height: 1.7;
}
.ss-notes p + p { margin-top: 14px; }
.ss-notes b { color: var(--text); }
.ss-notes a { color: var(--accent); }

/* ============================ Final + footer ============================ */
.final { text-align: center; padding-bottom: 140px; }
.final .cta { margin-top: 34px; }
#version-badge2 { font-family: "Cascadia Code", Consolas, monospace; opacity: 0.8; margin-left: 4px; }

footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 26px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--stroke);
  background: var(--bg-sink);
}
footer b { color: var(--accent); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-note { opacity: 0.6; }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .nav { padding: 12px 18px; gap: 16px; }
  .nav nav { display: none; }
  .aw-body { grid-template-columns: 1fr; }
  .aw-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .aw-card { margin-bottom: 0; }
}
