/* ============================================
   DagoCloud — Premium hosting site styles
   ============================================ */

:root {
  --bg: #07070d;
  --bg-2: #0c0c18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #ecedf2;
  --text-dim: #b6bac9;
  --text-muted: #8a90a4;
  --primary: #7c5cff;
  --primary-2: #00d9ff;
  --accent: #ff5cb8;
  --green: #2ee6a8;
  --orange: #ffb05c;
  --warn: #ff7a59;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -20px rgba(124, 92, 255, 0.35),
            0 10px 40px -15px rgba(0, 217, 255, 0.25);

  /* Motion design tokens (Motion-Driven style) */
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 520ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.45, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id], .hero { scroll-margin-top: 88px; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Visible focus rings for keyboard nav */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.tab:focus-visible,
.folder:focus-visible,
.faq-list summary:focus-visible {
  outline-offset: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ============ Background ============ */
.bg-grid {
  position: fixed;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
  /* Force a dedicated GPU layer so the heavy blur isn't repainted on scroll */
  transform: translateZ(0);
  will-change: transform, translate;
  contain: layout paint style;
}
.bg-glow-1 { width: 480px; height: 480px; background: #7c5cff; top: -120px; left: -120px; }
.bg-glow-2 { width: 420px; height: 420px; background: #00d9ff; top: 30%; right: -150px; animation-delay: -6s; }
.bg-glow-3 { width: 380px; height: 380px; background: #ff5cb8; bottom: -160px; left: 25%; animation-delay: -12s; opacity: .35; }

/* On mobile/lower-end: drop one glow and ease the blur further */
@media (max-width: 768px) {
  .bg-glow { filter: blur(60px); }
  .bg-glow-3 { display: none; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============ Hosting/network background overlays ============ */

/* Constellation of nodes (suggère un réseau de serveurs) */
.bg-nodes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0,217,255,0.55) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 0% 0%,   rgba(124,92,255,0.45) 0 1px,   transparent 1.4px),
    radial-gradient(circle at 100% 100%, rgba(124,92,255,0.45) 0 1px, transparent 1.4px);
  background-size: 90px 90px, 90px 90px, 90px 90px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 85%);
  opacity: .55;
}

/* Data beams (trafic réseau) */
.bg-beams {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.beam {
  position: absolute;
  height: 1px;
  width: 220px;
  background: linear-gradient(90deg, transparent, #00d9ff 50%, transparent);
  filter: drop-shadow(0 0 6px rgba(0,217,255,.55));
  animation: beam-travel 14s linear infinite;
  opacity: 0;
}
.beam-1 { top: 16%; animation-delay: 0s; }
.beam-2 { top: 38%; animation-delay: -4s; background: linear-gradient(90deg, transparent, #7c5cff 50%, transparent); filter: drop-shadow(0 0 6px rgba(124,92,255,.55)); }
.beam-3 { top: 64%; animation-delay: -8s; }
.beam-4 { top: 84%; animation-delay: -11s; background: linear-gradient(90deg, transparent, #ff5cb8 50%, transparent); filter: drop-shadow(0 0 6px rgba(255,92,184,.45)); }

@keyframes beam-travel {
  0%   { transform: translateX(-240px); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .9; }
  100% { transform: translateX(calc(100vw + 240px)); opacity: 0; }
}

/* Circuit traces (motherboard-like) en bas */
.bg-circuit {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%237c5cff' stroke-width='0.8' opacity='0.55'><path d='M0 110 L60 110 L70 100 L120 100 L130 110 L220 110'/><path d='M30 0 L30 60 L40 70 L40 130 L30 140 L30 220'/><path d='M150 220 L150 170 L160 160 L210 160'/><path d='M0 40 L80 40 L90 50 L160 50'/></g><g fill='%2300d9ff' opacity='0.7'><circle cx='60' cy='110' r='2'/><circle cx='130' cy='110' r='2'/><circle cx='40' cy='70' r='2'/><circle cx='40' cy='130' r='2'/><circle cx='160' cy='50' r='2'/><circle cx='160' cy='160' r='2'/></g></svg>");
  background-size: 220px 220px;
  background-repeat: repeat-x;
  background-position: bottom center;
}

@media (max-width: 768px) {
  .bg-nodes { background-size: 60px 60px, 60px 60px, 60px 60px; }
  .beam { width: 140px; }
  .bg-circuit { height: 140px; opacity: .25; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, #7c5cff 0%, #00d9ff 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(124, 92, 255, 0.85),
              inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  color: #fff;
}
.btn.full { width: 100%; justify-content: center; }

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 7, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 13, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.logo-mark { display: inline-flex; }
.logo-text span {
  background: linear-gradient(135deg, #7c5cff, #00d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============ Hero ============ */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46,230,168,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46,230,168,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(46,230,168,0.04); }
}
.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #fff;
}
.grad-text {
  background: linear-gradient(135deg, #7c5cff 0%, #00d9ff 50%, #ff5cb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 60px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
}
.trust-item strong {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a8b0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust-item span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero card mockup */
.hero-card {
  margin: 50px auto 0;
  max-width: 920px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: perspective(1200px) rotateX(2deg);
  transition: transform .6s ease;
}
.hero-card:hover { transform: perspective(1200px) rotateX(0); }
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.dots { display: flex; gap: 7px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.dots span:nth-child(1) { background: #ff6058; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #28c941; }
.addr {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 6px 12px;
  border-radius: 8px;
  text-align: left;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.status .ok {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat-card {
  padding: 22px 20px;
  background: var(--bg-2);
  text-align: left;
}
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-value { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c5cff, #00d9ff);
  border-radius: 6px;
  animation: barGrow 1.4s ease-out;
}
.bar-fill.alt { background: linear-gradient(90deg, #2ee6a8, #00d9ff); }
.bar-fill.warn { background: linear-gradient(90deg, #ffb05c, #ff5cb8); }
@keyframes barGrow { from { width: 0 !important; } }
.spark { margin-top: 8px; height: 28px; }
.spark svg { width: 100%; height: 100%; }

/* ============ Logos strip ============ */
.logos {
  padding: 30px 0 60px;
}
.logos-title { text-align: center; color: var(--text-muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 30px; }
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  opacity: .55;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: opacity .2s, color .2s;
}
.logo-item svg { opacity: .8; }
.logo-item:hover { opacity: 1; color: #fff; }

/* ============ Section heads ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.2);
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-dim);
}

/* ============ Features ============ */
.features { padding: 100px 0; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(124,92,255,0.4) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}
.icon-purple { background: linear-gradient(135deg, #7c5cff, #4b32d9); box-shadow: 0 6px 20px -6px rgba(124,92,255,0.6); }
.icon-cyan { background: linear-gradient(135deg, #00d9ff, #0090ff); box-shadow: 0 6px 20px -6px rgba(0,217,255,0.6); }
.icon-pink { background: linear-gradient(135deg, #ff5cb8, #d935b6); box-shadow: 0 6px 20px -6px rgba(255,92,184,0.6); }
.icon-green { background: linear-gradient(135deg, #2ee6a8, #11a37b); box-shadow: 0 6px 20px -6px rgba(46,230,168,0.6); }
.icon-orange { background: linear-gradient(135deg, #ffb05c, #ff7a59); box-shadow: 0 6px 20px -6px rgba(255,176,92,0.6); }
.icon-blue { background: linear-gradient(135deg, #5c8dff, #3958d9); box-shadow: 0 6px 20px -6px rgba(92,141,255,0.6); }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { color: var(--text-dim); font-size: 15px; }

/* ============ Split sections ============ */
.split { padding: 100px 0; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-grid.reverse > div:first-child { order: 2; }
.split-text .eyebrow { margin-bottom: 18px; }
.split-text h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.split-text p { color: var(--text-dim); font-size: 17px; margin-bottom: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.check-list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ee6a8, #00d9ff);
  color: #021226;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 12px -4px rgba(46, 230, 168, 0.5);
}
.check-list code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.3);
  padding: 1px 8px;
  border-radius: 6px;
  color: #c0b3ff;
  font-size: 13px;
}

/* Terminal */
.terminal {
  background: #0b0b16;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}
.term-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); margin: 0 auto; }
.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text);
}
.terminal-body p { margin: 0; }
.prompt { color: var(--primary-2); margin-right: 8px; font-weight: 600; }
.muted { color: var(--text-muted); }
.ok-text { color: var(--green); margin-right: 8px; }
.link { color: #c0b3ff; text-decoration: underline; }
.cursor { color: var(--primary-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Mailbox */
.mailbox {
  display: grid;
  grid-template-columns: 230px 1fr;
  background: #0b0b16;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 480px;
}
.mailbox-side {
  background: rgba(0,0,0,0.3);
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  padding: 10px 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  word-break: break-all;
}
.brand-dot {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, #7c5cff, #00d9ff);
  border-radius: 50%;
  flex-shrink: 0;
}
.folder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.folder:hover { background: rgba(255,255,255,0.04); color: #fff; }
.folder.active {
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(0,217,255,0.12));
  color: #fff;
  border: 1px solid rgba(124,92,255,0.3);
}
.folder .badge {
  margin-left: auto;
  background: linear-gradient(135deg, #7c5cff, #00d9ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.folder .badge.muted { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.storage { margin-top: auto; padding: 12px 8px; }
.storage-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.storage-fill { width: 6.4%; height: 100%; background: linear-gradient(90deg, #7c5cff, #00d9ff); border-radius: 6px; }
.storage small { color: var(--text-muted); font-size: 11px; }

.mailbox-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mail {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
  border: 1px solid transparent;
}
.mail:hover { background: rgba(255,255,255,0.03); border-color: var(--border); }
.mail.unread .mail-subj { color: #fff; font-weight: 600; }
.mail.unread::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  align-self: center;
  margin-left: -8px;
  margin-right: 4px;
  box-shadow: 0 0 6px var(--primary-2);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.a1 { background: linear-gradient(135deg, #7c5cff, #ff5cb8); }
.a2 { background: linear-gradient(135deg, #00d9ff, #2ee6a8); }
.a3 { background: linear-gradient(135deg, #ffb05c, #ff5cb8); }
.a4 { background: linear-gradient(135deg, #5c8dff, #00d9ff); }
.mail-body { flex: 1; min-width: 0; }
.mail-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mail-row strong { color: #fff; font-weight: 600; }
.mail-row span { color: var(--text-muted); font-size: 12px; }
.mail-subj { font-size: 13px; color: var(--text); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-snip { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ Pricing ============ */
.pricing { padding: 100px 0; }
.tabs {
  display: inline-flex;
  margin: 0 auto 50px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s, background .2s;
}
.tab.active {
  background: linear-gradient(135deg, #7c5cff, #00d9ff);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(124,92,255,0.6);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.plans.four {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plans.four .plan { padding: 28px 22px; }
.plans.four .plan h3 { font-size: 1.1rem; }
.plans.four .plan-price .amt { font-size: 2rem; }
.plans.hidden { display: none; }
.plan {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-2); }
.plan.featured {
  background: linear-gradient(180deg, rgba(124,92,255,0.18) 0%, rgba(0,217,255,0.06) 100%);
  border: 1px solid rgba(124,92,255,0.4);
  box-shadow: 0 30px 60px -20px rgba(124,92,255,0.4);
  transform: scale(1.04);
}
.plan.featured:hover { transform: scale(1.04) translateY(-4px); }
.badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c5cff, #00d9ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px -4px rgba(124,92,255,0.6);
}
.plan h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.plan-tag { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.plan-price .amt { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.plan-price .cur { font-size: 22px; color: var(--text-dim); font-weight: 600; }
.plan-price .per { font-size: 13px; color: var(--text-muted); margin-left: 6px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
}
.plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46,230,168,0.15);
  border-radius: 50%;
  font-size: 11px;
}
.pricing-foot { text-align: center; margin-top: 30px; color: var(--text-muted); font-size: 13px; }

/* ============ Metrics ============ */
.metrics { padding: 80px 0; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 50px;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(0,217,255,0.08));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.metric { text-align: center; }
.metric .num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c0b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.metric-label { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ============ Testimonials ============ */
.testimonials { padding: 100px 0; }
.testi {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s, border-color .3s;
}
.testi:hover { transform: translateY(-4px); border-color: var(--border-2); }
.stars { color: #ffb05c; display: inline-flex; gap: 3px; }
.testi blockquote { color: var(--text); font-size: 15px; line-height: 1.6; }
.testi figcaption { display: flex; gap: 12px; align-items: center; }
.testi figcaption strong { display: block; font-size: 14px; color: #fff; }
.testi figcaption span { font-size: 12px; color: var(--text-muted); }

/* ============ FAQ ============ */
.faq { padding: 100px 0; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq-list details[open] {
  border-color: rgba(124,92,255,0.3);
  background: linear-gradient(180deg, rgba(124,92,255,0.07), rgba(0,217,255,0.03));
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-2);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-list code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124,92,255,0.12);
  padding: 1px 6px;
  border-radius: 4px;
  color: #c0b3ff;
  font-size: 13px;
}

/* ============ CTA Final ============ */
.cta-final { padding: 60px 0 100px; }
.cta-box {
  position: relative;
  border-radius: 28px;
  padding: 60px;
  background:
    radial-gradient(at 20% 20%, rgba(124,92,255,0.45), transparent 50%),
    radial-gradient(at 80% 80%, rgba(0,217,255,0.35), transparent 50%),
    linear-gradient(135deg, #14112a, #0a1428);
  border: 1px solid var(--border-2);
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cta-grid h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
}
.cta-grid p { color: var(--text-dim); font-size: 16px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: center; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  background: rgba(0,0,0,0.3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.foot-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 18px 0 22px;
  max-width: 320px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dim);
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover {
  background: linear-gradient(135deg, #7c5cff, #00d9ff);
  color: #fff;
  border-color: transparent;
}
.footer h4 { font-size: 13px; color: #fff; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-dim); }
.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 50px; }
  .split-grid.reverse > div:first-child { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .plans.four { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .plans.four .plan { padding: 30px 26px; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-4px); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { align-items: center; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-card-grid { grid-template-columns: repeat(2, 1fr); }
  .mailbox { grid-template-columns: 1fr; min-height: auto; }
  .mailbox-side { border-right: none; border-bottom: 1px solid var(--border); }
  .cta-box { padding: 36px 24px; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    background: rgba(7, 7, 13, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a:last-child { border-bottom: none; }
}

/* ============================================
   MOTION DRIVEN — additional animations
   ============================================ */

/* Scroll progress bar (top of page) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #7c5cff, #00d9ff, #ff5cb8);
  z-index: 100;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
  transition: width 80ms linear;
}

/* Animated grad text (subtle gradient sweep) */
.grad-text {
  background: linear-gradient(
    120deg,
    #7c5cff 0%,
    #00d9ff 35%,
    #ff5cb8 70%,
    #7c5cff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* Hero badge dot pulse already pulses; add a soft entrance */
.hero-badge { animation: floatIn 700ms var(--ease-out) both; }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero card: gentle floating loop + scroll-driven release effect.
   Uses 'scale' + 'translate' (independent of 'transform') so they
   compose with the keyframe animation and the mouse-parallax transform. */
.hero-card {
  animation: heroFloat 7s ease-in-out infinite;
  scale: var(--scroll-scale, 1);
  translate: 0 var(--scroll-ty, 0);
  opacity: var(--scroll-opacity, 1);
  transition: opacity 200ms linear;
}
@keyframes heroFloat {
  0%, 100% { transform: perspective(1200px) rotateX(2deg) translateY(0); }
  50%      { transform: perspective(1200px) rotateX(2deg) translateY(-10px); }
}

/* Button shine sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.45) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary > * { position: relative; z-index: 2; }

/* Scale feedback on press (tappable cards/buttons) */
.btn:active { transform: translateY(0) scale(0.97); }
.feature-card:active,
.plan:active,
.testi:active { transform: scale(0.99); }

/* Card tilt: prepared for JS (smooth restore) */
.feature-card,
.plan,
.testi {
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
}
.feature-card.tilt,
.plan.tilt,
.testi.tilt { transition: transform 80ms linear, border-color var(--dur-base), box-shadow var(--dur-base); }

/* Spotlight under cursor on feature cards */
.feature-card { --mx: 50%; --my: 50%; }
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    400px circle at var(--mx) var(--my),
    rgba(124, 92, 255, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }

/* Magnetic CTA — JS sets --tx/--ty */
.btn.magnetic {
  --tx: 0px; --ty: 0px;
  transform: translate(var(--tx), var(--ty));
  transition: transform 300ms var(--ease-spring);
}
.btn.magnetic:hover { transition: transform 80ms var(--ease-out); }

/* Logos marquee (infinite scroll, pause on hover) */
.logos-row {
  position: relative;
  flex-wrap: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  gap: 0;
}
.logos-track {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-shrink: 0;
  padding-right: 56px;
  animation: marquee 35s linear infinite;
}
.logos-row:hover .logos-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Featured plan: animated gradient border */
.plan.featured {
  position: relative;
}
.plan.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    rgba(124,92,255,0.9),
    rgba(0,217,255,0.9),
    rgba(255,92,184,0.9),
    rgba(124,92,255,0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spinAngle 6s linear infinite;
  pointer-events: none;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spinAngle {
  to { --angle: 360deg; }
}

/* Stagger reveal — children appear one by one when their parent enters */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.stagger.in > *:nth-child(6) { transition-delay: 300ms; }

/* Crossfade for pricing tab panels (state-transition rule) */
.plans {
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.plans.hidden {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}
.plans.fadein {
  animation: panelIn var(--dur-slow) var(--ease-out) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FAQ open: smoother content reveal */
.faq-list details[open] summary ~ p { animation: faqOpen 360ms var(--ease-out); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mailbox unread indicator: gentle pulse */
.mail.unread::before { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px var(--primary-2); }
  50%      { box-shadow: 0 0 14px var(--primary-2); }
}

/* Hero glows: parallax-friendly anchors set by JS via CSS vars.
   Uses the 'translate' property (independent of 'transform') so the
   keyframe float() can keep animating transform. */
.bg-glow {
  --mx: 0px; --my: 0px; --sy: 0px;
  translate: var(--mx) calc(var(--my) + var(--sy));
  transition: translate 600ms var(--ease-out);
}

/* ============================================
   "REAL" ANIMATIONS — cursor, terminal, mailbox,
   live counter, animated globe
   ============================================ */

/* ---- Custom cursor (desktop only, hover-capable) ---- */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 250ms ease, width 200ms var(--ease-spring),
              height 200ms var(--ease-spring), background 200ms;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.6);
  margin: -18px 0 0 -18px;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  margin: -3px 0 0 -3px;
}
.cursor-active .cursor-ring,
.cursor-active .cursor-dot { opacity: 1; }
.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.6);
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* When custom cursor is active, fade native cursor */
.cursor-active, .cursor-active * { cursor: none !important; }
.cursor-active a, .cursor-active button, .cursor-active input, .cursor-active textarea { cursor: none !important; }

/* ---- Live pill (LIVE indicator) ---- */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(46, 230, 168, 0.14);
  color: #2ee6a8;
  border: 1px solid rgba(46, 230, 168, 0.3);
  margin-left: 6px;
  vertical-align: middle;
}
.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2ee6a8;
  box-shadow: 0 0 6px #2ee6a8;
  animation: liveDot 1.4s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Number flip when ticker increments */
.stat-value.flip {
  animation: numFlip 600ms var(--ease-spring);
}
@keyframes numFlip {
  0%   { transform: translateY(0)  scale(1); color: #fff; }
  35%  { transform: translateY(-6px) scale(1.04); color: #00d9ff; text-shadow: 0 0 18px rgba(0,217,255,0.7); }
  100% { transform: translateY(0)  scale(1); color: #fff; }
}

/* Spark draws itself */
.spark-path { animation: drawLine 2.4s var(--ease-out) .6s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ---- Terminal: typewriter caret ---- */
#terminalBody p { margin: 0; min-height: 1.4em; }
#terminalBody p.typing::after {
  content: '▋';
  display: inline-block;
  margin-left: 4px;
  color: var(--primary-2);
  animation: blink 1s steps(1) infinite;
}

/* ---- Mailbox: email slide-in ---- */
.mail.arriving {
  animation: mailIn 600ms var(--ease-out);
  background: linear-gradient(90deg, rgba(124,92,255,0.18), transparent 60%);
}
@keyframes mailIn {
  from { opacity: 0; transform: translateX(-30px); max-height: 0; padding: 0 14px; margin: 0; }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: translateX(0);     max-height: 90px; padding: 14px; }
}
.mail.leaving {
  animation: mailOut 400ms var(--ease-in) forwards;
}
@keyframes mailOut {
  to { opacity: 0; transform: translateX(40px); max-height: 0; padding: 0 14px; margin: 0; }
}

/* ---- Network section ---- */
.network { padding: 100px 0; }
.network-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.network-sub { color: var(--text-dim); font-size: 17px; margin: 18px 0 30px; }
.net-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  max-width: 480px;
}
.net-stats li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.net-stats li:nth-child(3) { grid-column: span 2; }
.net-stats strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c0b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.net-stats span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.globe-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-left: auto;
}
.globe {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(124, 92, 255, 0.4));
}
.globe .meridians { animation: globeSpin 80s linear infinite; transform-origin: 200px 200px; }
@keyframes globeSpin {
  to { transform: rotate(360deg); }
}

/* Connections drawing themselves */
.net-links .link {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLink 4s var(--ease-out) infinite;
}
.net-links .link:nth-child(1) { animation-delay: 0s; }
.net-links .link:nth-child(2) { animation-delay: 0.6s; }
.net-links .link:nth-child(3) { animation-delay: 1.2s; }
.net-links .link:nth-child(4) { animation-delay: 1.8s; }
.net-links .link:nth-child(5) { animation-delay: 2.4s; }
@keyframes drawLink {
  0%   { stroke-dashoffset: 600; opacity: 0; }
  10%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { stroke-dashoffset: -600; opacity: 0.4; }
  100% { stroke-dashoffset: -600; opacity: 0; }
}

/* Pulsing nodes */
.net-nodes .node circle:first-child {
  animation: nodePulse 2.6s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes nodePulse {
  0%   { opacity: 0.8; transform: scale(0.6); }
  60%  { opacity: 0;   transform: scale(2.6); }
  100% { opacity: 0;   transform: scale(2.6); }
}
.net-nodes .node.primary circle:first-child { animation: nodePulseStrong 1.8s ease-out infinite; }
@keyframes nodePulseStrong {
  0%   { opacity: 1; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(3); }
}

/* Particles travelling along paths */
.particle {
  offset-rotate: 0deg;
  filter: drop-shadow(0 0 6px #00d9ff);
}
.particle.p1 { offset-path: path('M120 90 Q 200 200 290 130'); animation: travel 5s linear infinite; }
.particle.p2 { offset-path: path('M80 220 Q 200 200 320 250'); animation: travel 6s linear infinite 1.5s; }
.particle.p3 { offset-path: path('M150 320 Q 200 200 270 70'); animation: travel 7s linear infinite 3s; }
@keyframes travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (max-width: 960px) {
  .network-grid { grid-template-columns: 1fr; }
  .globe-wrap { margin: 0 auto; max-width: 380px; }
  .net-stats { grid-template-columns: 1fr; max-width: none; }
  .net-stats li:nth-child(3) { grid-column: span 1; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-glow,
  .hero-card,
  .grad-text,
  .plan.featured::before,
  .logos-track,
  .mail.unread::before,
  .live-dot,
  .globe .meridians,
  .net-links .link,
  .net-nodes .node circle:first-child,
  .particle,
  .beam,
  .spark-path { animation: none !important; }
  .beam { display: none !important; }
  .cursor-ring, .cursor-dot { display: none !important; }
  .hero-card { transform: none !important; }
  .reveal,
  .stagger > * { opacity: 1 !important; transform: none !important; }
  .cursor { animation: none !important; }
  .scroll-progress { display: none; }
  .btn-primary::after { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 50px 0 40px; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .plans.four { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logos-row { gap: 30px; }
  .features, .split, .pricing, .testimonials, .faq { padding: 70px 0; }
  .terminal-body { padding: 18px; font-size: 12px; }
  .hero-card-top .addr { font-size: 11px; }
}

/* =====================================================
   PROMO BANNER (top sticky bar, dismissible)
   ===================================================== */
.promo-banner {
  position: relative;
  z-index: 90;
  background: linear-gradient(90deg, #7c5cff 0%, #9d6bff 50%, #00d9ff 100%);
  background-size: 200% 100%;
  animation: promoShift 8s ease infinite;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  padding: 11px 0;
  overflow: hidden;
}
.promo-banner.is-hidden { display: none !important; }
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}
.promo-emoji { font-size: 1.05rem; line-height: 1; }
.promo-text { line-height: 1.4; }
.promo-text strong { font-weight: 800; }
.promo-text code {
  background: rgba(0,0,0,.28);
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-left: 4px;
}
.promo-cta {
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.32);
  transition: background .2s, transform .2s;
}
.promo-cta:hover { background: rgba(255,255,255,.32); transform: translateY(-1px); }
.promo-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
  margin-left: 4px;
}
.promo-close:hover { opacity: 1; }
@keyframes promoShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (max-width: 720px) {
  .promo-banner { font-size: .8rem; padding: 9px 12px; }
  .promo-cta { padding: 4px 12px; font-size: .76rem; }
  .promo-text { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner { animation: none; }
}

/* =====================================================
   PRICING — featured plan extra emphasis
   ===================================================== */
.plan.featured {
  /* override existing .featured to push it further forward */
  background: linear-gradient(180deg, rgba(124,92,255,0.22) 0%, rgba(0,217,255,0.08) 100%) !important;
  border: 1px solid rgba(124,92,255,0.55) !important;
  box-shadow:
    0 0 0 1px rgba(124,92,255,.4),
    0 30px 80px -20px rgba(124,92,255,.55),
    0 8px 30px -8px rgba(0,217,255,.3) !important;
  transform: scale(1.06) !important;
  z-index: 2;
}
.plan.featured:hover { transform: scale(1.06) translateY(-6px) !important; }
.plan.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,92,255,.7), rgba(0,217,255,.7), rgba(124,92,255,.7));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: featuredGlow 4s linear infinite;
}
@keyframes featuredGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.plan.featured .badge-top {
  font-size: 12px;
  padding: 7px 18px;
  box-shadow:
    0 6px 20px -4px rgba(124,92,255,0.7),
    0 0 0 4px rgba(124,92,255,.18);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 6px 20px -4px rgba(124,92,255,0.7), 0 0 0 4px rgba(124,92,255,.18); }
  50%      { box-shadow: 0 8px 28px -4px rgba(0,217,255,0.7),  0 0 0 8px rgba(0,217,255,.14); }
}
.plan.featured .plan-price .amt {
  background: linear-gradient(135deg, #fff 0%, #d4c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) {
  .plan.featured { transform: scale(1) !important; }
  .plan.featured:hover { transform: translateY(-4px) !important; }
  .plan.featured::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plan.featured::after,
  .plan.featured .badge-top { animation: none; }
}
