/* ═══════════════════════════════════════════════════════════════
   MERCURIAL SOFTWARE SOLUTIONS — Marketing Site
   4IR Edition: dark, glass, particle, glow
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --primary:       #3b82f6;
  --primary-dark:  #2563eb;
  --primary-light: rgba(59,130,246,0.12);
  --accent:        #06b6d4;
  --purple:        #8B5CF6;
  --success:       #10b981;

  --bg:            #060b18;
  --bg-2:          #080d1e;
  --surface:       #0d1628;
  --surface-2:     #111d35;
  --surface-3:     #172240;
  --glass:         rgba(13,22,40,0.75);
  --border:        rgba(59,130,246,0.10);
  --border-strong: rgba(59,130,246,0.22);

  --text:          #e8edf7;
  --text-2:        #b8c4d8;
  --text-muted:    #6b7fa0;

  --radius:        16px;
  --radius-sm:     10px;
  --t:             all 0.25s cubic-bezier(0.4,0,0.2,1);

  --shadow-md: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--border-strong);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border-strong);
  --glow-blue: 0 0 30px rgba(59,130,246,0.30), 0 0 80px rgba(59,130,246,0.12);
  --glow-cyan: 0 0 30px rgba(6,182,212,0.25), 0 0 80px rgba(6,182,212,0.10);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
button { font-family:inherit; border:none; background:none; cursor:pointer; }

.container { max-width:1200px; margin:0 auto; padding:0 24px; }

/* ── Particle canvas ── */
#net {
  position:fixed; top:0; left:0;
  width:100%; height:100vh;
  z-index:-2; pointer-events:none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black, transparent 75%);
}

/* ── Background ambience ── */
body::before {
  content:''; position:fixed; inset:0; z-index:-3;
  background:
    radial-gradient(ellipse 900px 600px at 15% 0%,  rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 20%, rgba(6,182,212,0.13),  transparent 60%),
    radial-gradient(ellipse 800px 700px at 50% 100%,rgba(139,92,246,0.11), transparent 60%),
    var(--bg);
}
body::after {
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 70%);
}

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:var(--radius-sm);
  font-weight:600; font-size:0.95rem;
  border:1px solid transparent; cursor:pointer;
  transition:var(--t); white-space:nowrap;
}
.btn-primary {
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff; box-shadow:var(--glow-blue);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 0 40px rgba(59,130,246,0.5),0 0 100px rgba(59,130,246,0.2); }
.btn-ghost {
  background:var(--glass); color:var(--text);
  border-color:var(--border-strong); backdrop-filter:blur(20px);
}
.btn-ghost:hover { border-color:var(--primary); background:var(--primary-light); }

/* ── Navbar ── */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(6,11,24,0.82);
  backdrop-filter:blur(24px) saturate(160%);
  border-bottom:1px solid var(--border);
}
.navbar .container {
  display:flex; align-items:center;
  justify-content:space-between; height:72px;
}
.brand-logo {
  height:42px; width:auto;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 12px rgba(59,130,246,0.4));
  transition:var(--t);
}
.brand-logo:hover { filter:drop-shadow(0 0 20px rgba(6,182,212,0.6)); }
.nav-links { display:flex; align-items:center; gap:36px; }
.nav-links a { font-size:0.92rem; font-weight:500; color:var(--text-2); transition:var(--t); }
.nav-links a:hover { color:var(--accent); }
.nav-contact-trigger { cursor:pointer; }

/* ── Hero ── */
.hero { padding:160px 0 110px; position:relative; }
.hero-grid {
  display:grid; grid-template-columns:1.1fr 0.9fr;
  gap:56px; align-items:center;
}

.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:999px;
  background:var(--primary-light); border:1px solid var(--border-strong);
  color:var(--accent); font-size:0.8rem; font-weight:600;
  letter-spacing:0.5px; margin-bottom:28px;
}
.eyebrow .dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 8px var(--accent);
  animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size:clamp(2.4rem,5.5vw,4rem);
  font-weight:800; line-height:1.1;
  letter-spacing:-0.02em; max-width:900px; margin-bottom:24px;
}
.hero h1 .grad {
  background:linear-gradient(135deg,var(--primary),var(--accent) 45%,var(--purple) 80%,var(--primary));
  background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:grad-shift 6s ease-in-out infinite;
}
@keyframes grad-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.hero p.lead { font-size:1.1rem; color:var(--text-2); max-width:600px; margin-bottom:36px; }
.hero p.lead strong { color:var(--text); }
.hero-cta { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:48px; }
.hero-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:480px; }
.stat { border-left:2px solid var(--border-strong); padding-left:16px; }
.stat .num {
  font-size:1.9rem; font-weight:800;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat .label { color:var(--text-muted); font-size:0.82rem; margin-top:4px; }

/* ── Hero visual mockup ── */
.hero-visual { position:relative; }
.hv-panel {
  background:var(--glass); border:1px solid var(--border-strong);
  border-radius:20px; padding:28px;
  backdrop-filter:blur(24px); box-shadow:var(--shadow-lg);
}
.hv-dots { display:flex; gap:6px; margin-bottom:24px; }
.hv-dots span { width:10px; height:10px; border-radius:50%; }
.hv-dots span:nth-child(1) { background:#ef4444; opacity:.6; }
.hv-dots span:nth-child(2) { background:#F59E0B; opacity:.6; }
.hv-dots span:nth-child(3) { background:#10b981; opacity:.6; }
.hv-row { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.hv-bar { height:12px; border-radius:6px; background:linear-gradient(90deg,var(--primary),var(--primary-dark)); box-shadow:0 0 16px rgba(59,130,246,0.3); }
.hv-pill { font-size:0.7rem; font-weight:700; color:var(--success); background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.3); padding:3px 10px; border-radius:999px; }
.hv-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:20px 0; }
.hv-card { background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:16px; }
.hv-mini-num { font-size:1.3rem; font-weight:800; color:var(--text); }
.hv-mini-label { font-size:0.75rem; color:var(--text-muted); margin-top:4px; }
.hv-float {
  position:absolute;
  background:var(--glass); border:1px solid var(--border-strong);
  backdrop-filter:blur(16px); border-radius:10px;
  padding:8px 14px; font-size:0.78rem; font-weight:600;
  box-shadow:var(--shadow-md); animation:float 5s ease-in-out infinite;
}
.hv-float-1 { top:-18px; right:30px; color:var(--accent); animation-delay:0s; }
.hv-float-2 { bottom:40px; left:-28px; color:var(--purple); animation-delay:1.2s; }
.hv-float-3 { bottom:-16px; right:60px; color:var(--primary); animation-delay:2.4s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── Scroll cue ── */
.scroll-cue {
  position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid var(--border-strong); border-radius:14px;
}
.scroll-cue span {
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px;
  background:var(--accent); box-shadow:0 0 8px var(--accent);
  animation:scue 1.8s ease-in-out infinite;
}
@keyframes scue { 0%{top:8px;opacity:1} 70%{top:22px;opacity:0} 100%{top:22px;opacity:0} }

/* ── Marquee ── */
.marquee {
  border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong);
  background:var(--surface); overflow:hidden; padding:18px 0;
}
.marquee-track {
  display:flex; gap:14px; white-space:nowrap;
  width:max-content; animation:scroll-left 32s linear infinite;
}
.marquee-track span { font-size:0.82rem; font-weight:700; letter-spacing:1.5px; color:var(--text-muted); }
.marquee-track span:nth-child(odd) { color:var(--accent); }
@keyframes scroll-left { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Section shared ── */
section { padding:110px 0; position:relative; }
.section-head { text-align:center; max-width:720px; margin:0 auto 64px; }
.section-tag { color:var(--accent); font-weight:700; font-size:0.82rem; letter-spacing:1.5px; margin-bottom:14px; }
.section-head h2 { font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:800; letter-spacing:-0.01em; margin-bottom:16px; }
.section-head p { color:var(--text-2); font-size:1.05rem; }

/* ── Vision ── */
.vision { background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.vision-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.vision-copy h2 { font-size:clamp(1.8rem,3.2vw,2.4rem); font-weight:800; margin-bottom:20px; letter-spacing:-0.01em; }
.vision-copy p { color:var(--text-2); margin-bottom:18px; font-size:1.04rem; }
.vision-copy strong { color:var(--text); }
.vision-card {
  background:var(--glass); border:1px solid var(--border-strong);
  border-radius:var(--radius); padding:36px;
  backdrop-filter:blur(20px); box-shadow:var(--shadow-md);
}
.vision-card .quote-mark { font-size:3rem; color:var(--primary); line-height:1; opacity:.5; }
.vision-card p.quote { font-size:1.15rem; color:var(--text); font-style:italic; margin:12px 0 20px; }
.vision-card .who { color:var(--text-muted); font-size:0.88rem; }
.vision-card .who strong { color:var(--text-2); }

/* ── Products ── */
.products-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }

.product-card {
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  backdrop-filter:blur(20px);
  transition:var(--t);
  position:relative;
}
.product-card::after {
  content:''; position:absolute; inset:0; border-radius:20px;
  background:linear-gradient(135deg, rgba(59,130,246,0.06), transparent 60%);
  opacity:0; transition:var(--t); pointer-events:none;
}
.product-card:hover { transform:translateY(-8px); border-color:var(--border-strong); box-shadow:var(--shadow-lg); }
.product-card:hover::after { opacity:1; }

.product-card--one:hover { border-color:rgba(6,182,212,0.35); box-shadow:0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(6,182,212,0.12); }
.product-card--pos:hover { border-color:rgba(139,92,246,0.35); box-shadow:0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139,92,246,0.12); }
.product-card--connect:hover { border-color:rgba(59,130,246,0.35); box-shadow:0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(59,130,246,0.12); }

.product-logo-wrap {
  width:100%; aspect-ratio:1/0.7;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; position:relative;
  background:radial-gradient(ellipse 80% 80% at 50% 50%, rgba(59,130,246,0.06), transparent);
}
.product-logo {
  width:75%; height:auto;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 24px rgba(59,130,246,0.35)) drop-shadow(0 0 8px rgba(6,182,212,0.2));
  transition:var(--t);
}
.product-card:hover .product-logo {
  filter:drop-shadow(0 0 36px rgba(59,130,246,0.5)) drop-shadow(0 0 16px rgba(6,182,212,0.35));
  transform:scale(1.04);
}

.product-body { padding:0 28px 28px; }
.product-desc { color:var(--text-2); font-size:0.97rem; margin-bottom:20px; }
.product-modules { display:flex; flex-wrap:wrap; gap:8px; }
.mod-tag {
  font-size:0.73rem; font-weight:600;
  padding:5px 12px; border-radius:999px;
  background:var(--surface-3); color:var(--text-muted);
  border:1px solid var(--border-strong);
  letter-spacing:0.3px;
}

/* ── Mercurial ONE deep dive ── */
.one-deep { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.one-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.one-module {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  backdrop-filter: blur(16px);
  transition: var(--t);
}
.one-module:hover {
  border-color: var(--border-strong);
  background: rgba(13,22,40,0.9);
  transform: translateX(4px);
}
.one-mod-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(59,130,246,0.25);
  color: #fff;
}
.one-module h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.one-module p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Integrations block */
.integrations-block {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 16px;
}
.int-header { margin-bottom: 32px; }
.int-header h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.int-header p { color: var(--text-muted); font-size: 0.95rem; }
.int-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.int-cat-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; color: var(--accent);
  margin-bottom: 12px;
}
.int-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.int-tag {
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid var(--border-strong);
  color: var(--text-2); transition: var(--t);
}
.int-tag:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .int-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .one-modules-grid { grid-template-columns: 1fr; }
  .int-categories { grid-template-columns: 1fr; }
  .integrations-block { padding: 24px; }
}

/* ── Why ── */
.why-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.why-item .num { font-size:0.82rem; font-weight:700; color:var(--accent); letter-spacing:1px; margin-bottom:14px; }
.why-item h3 { font-size:1.05rem; font-weight:700; margin-bottom:10px; }
.why-item p { color:var(--text-2); font-size:0.93rem; }

/* ── CTA Band ── */
.cta-band {
  background:linear-gradient(135deg,rgba(59,130,246,0.10),rgba(6,182,212,0.07));
  border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong);
  text-align:center; padding:100px 0;
}
.cta-band h2 { font-size:clamp(1.9rem,3.6vw,2.8rem); font-weight:800; margin-bottom:18px; letter-spacing:-0.01em; }
.cta-band p { color:var(--text-2); font-size:1.08rem; margin-bottom:36px; max-width:520px; margin-left:auto; margin-right:auto; }
.cta-row { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ── Footer ── */
footer { background:var(--bg-2); border-top:1px solid var(--border); padding:64px 0 32px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-logo {
  height:52px; width:auto; margin-bottom:16px;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 12px rgba(59,130,246,0.3));
}
.footer-brand p { color:var(--text-muted); font-size:0.9rem; max-width:300px; }
.footer-col h4 { font-size:0.82rem; font-weight:700; letter-spacing:0.5px; margin-bottom:18px; color:var(--text); }
.footer-col a { display:block; color:var(--text-muted); font-size:0.9rem; margin-bottom:12px; transition:var(--t); }
.footer-col a:hover { color:var(--accent); }
.footer-col a.contact-trigger { cursor:pointer; }
.footer-bottom {
  border-top:1px solid var(--border); padding-top:28px;
  display:flex; justify-content:space-between; align-items:center;
  color:var(--text-muted); font-size:0.82rem; flex-wrap:wrap; gap:12px;
}

/* ── Contact Modal ── */
.modal-overlay {
  position:fixed; inset:0; z-index:1000;
  background:rgba(4,7,16,0.85); backdrop-filter:blur(12px);
  display:flex; align-items:center; justify-content:center;
  padding:24px; opacity:0; pointer-events:none; transition:opacity 0.3s ease;
}
.modal-overlay.open { opacity:1; pointer-events:all; }

.modal {
  background:var(--surface);
  border:1px solid var(--border-strong);
  border-radius:24px; padding:40px;
  width:100%; max-width:520px;
  box-shadow:var(--shadow-lg), 0 0 60px rgba(59,130,246,0.10);
  position:relative;
  transform:translateY(20px); transition:transform 0.3s ease;
  max-height:90vh; overflow-y:auto;
}
.modal-overlay.open .modal { transform:translateY(0); }

.modal-close {
  position:absolute; top:20px; right:20px;
  width:36px; height:36px; border-radius:10px;
  background:var(--surface-2); color:var(--text-muted);
  display:flex; align-items:center; justify-content:center;
  transition:var(--t);
}
.modal-close:hover { background:var(--surface-3); color:var(--text); }

.modal-logo {
  height:44px; width:auto; margin:0 auto 20px;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 12px rgba(59,130,246,0.4));
}
.modal-head { text-align:center; margin-bottom:32px; }
.modal-head h3 { font-size:1.4rem; font-weight:800; margin-bottom:8px; }
.modal-head p { color:var(--text-muted); font-size:0.95rem; }

.form-group { margin-bottom:20px; }
.form-group label { display:block; font-size:0.85rem; font-weight:600; color:var(--text-2); margin-bottom:8px; }
.form-group input,
.form-group textarea {
  width:100%; padding:12px 16px;
  background:var(--surface-2); border:1px solid var(--border-strong);
  border-radius:var(--radius-sm); color:var(--text);
  font-family:inherit; font-size:0.95rem; transition:var(--t);
  outline:none; resize:vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}

.form-success {
  display:none; flex-direction:column; align-items:center;
  gap:12px; text-align:center; padding:24px 0;
  color:var(--success);
}
.form-success p { color:var(--text-2); font-size:0.95rem; }

/* ── Reveal animation ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity:1; transform:translateY(0); }

/* ── Responsive ── */
@media (max-width:1024px) {
  .products-grid { grid-template-columns:1fr; max-width:560px; margin:0 auto; }
  .product-logo-wrap { aspect-ratio:1/0.6; }
  .why-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:900px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-visual { max-width:460px; margin:48px auto 0; }
  .vision-grid { grid-template-columns:1fr; gap:40px; }
}
@media (max-width:640px) {
  .nav-links { display:none; }
  section { padding:72px 0; }
  .hero { padding:130px 0 80px; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .modal { padding:28px 20px; }
}
