@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&family=Roboto+Serif:ital,wght@0,300;0,400;1,300&display=swap');

/* ════════════════════════════════════════════
   EDVERGENCEX — PREMIUM TECH DESIGN SYSTEM
   ════════════════════════════════════════════ */

:root {
  --engine-black: #080B10;
  --surface-1: #0D1117;
  --surface-2: #131920;
  --surface-3: #1A2230;
  --machine-grey: #2A313C;
  --core-cyan: #19D3FF;
  --core-cyan-dim: rgba(25,211,255,0.08);
  --core-cyan-glow: rgba(25,211,255,0.35);
  --vector-blue: #1740FF;
  --protocol-white: #F5F7FA;
  --mid-gray: #6B7A8A;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(25,211,255,0.2);
  --body-text: #8A94A0;
  --nav-h: 70px;

  /* Refined shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --glow-cyan: 0 0 40px rgba(25,211,255,0.2);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Urbanist', sans-serif;
  background: var(--engine-black);
  color: var(--protocol-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CUSTOM CURSOR ── */
* { cursor: none !important; }
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 99999;
  width: 8px; height: 8px;
  background: var(--core-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99998;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(25,211,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s;
}
.cursor-ring.hovering {
  width: 48px; height: 48px;
  border-color: var(--core-cyan);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--engine-black); }
::-webkit-scrollbar-thumb { background: rgba(25,211,255,0.3); border-radius: 2px; }

/* ── GLOBAL NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  background: rgba(8,11,16,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(8,11,16,0.92);
  border-bottom-color: rgba(25,211,255,0.1);
  box-shadow: 0 1px 0 rgba(25,211,255,0.05), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-logo {
  text-decoration: none;
  display: flex; align-items: center;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {     height: auto;
    width: 300px; display: block;
    padding: 20px;}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--core-cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--protocol-white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--core-cyan) !important;
  color: var(--engine-black) !important;
  font-weight: 700 !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: white !important;
  color: var(--engine-black) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(25,211,255,0.35) !important;
}
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--protocol-white); border-radius: 1px;
  transition: all 0.3s;
}

/* ── PAGE WRAPPER ── */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; position: relative; z-index: 1; }

/* ── SECTION BASE ── */
.section { padding: 112px 60px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--core-cyan);
  border: 1px solid rgba(25,211,255,0.2);
  background: rgba(25,211,255,0.04);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--core-cyan);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.08; margin-bottom: 16px;
}

.section-desc {
  font-family: 'Roboto Serif', serif;
  font-size: 16px; font-weight: 300;
  color: var(--body-text); line-height: 1.8;
  max-width: 580px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Urbanist', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.25s;
  position: relative; overflow: hidden;
}

.btn-primary {
  background: var(--core-cyan); color: var(--engine-black);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: white;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 0;
}
.btn-primary span, .btn-primary { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(25,211,255,0.3);
  color: var(--engine-black);
}

.btn-outline {
  background: transparent; color: var(--protocol-white);
  border: 1px solid rgba(245,247,250,0.15);
}
.btn-outline:hover {
  border-color: var(--core-cyan); color: var(--core-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(25,211,255,0.1);
}

/* ── DIVIDER ── */
.cyan-divider {
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--core-cyan), var(--vector-blue));
  margin-bottom: 40px; border-radius: 1px;
}

/* ── CARD ── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(25,211,255,0.04), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { border-color: rgba(25,211,255,0.15); transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow-cyan); }
.card:hover::before { opacity: 1; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── STAT ── */
.stat-num {
  font-size: 42px; font-weight: 800;
  color: var(--core-cyan); letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--body-text); margin-top: 6px; line-height: 1.5; }

/* ── PILL ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(25,211,255,0.07);
  border: 1px solid rgba(25,211,255,0.15);
  color: var(--core-cyan);
  padding: 5px 12px; border-radius: 100px;
}

/* ── TAG ── */
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid rgba(25,211,255,0.2);
  color: var(--core-cyan);
}

/* ── HERO CANVAS ── */
.hero-canvas, canvas.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: all;
  display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25,211,255,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(25,211,255,0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

.anim-up { animation: fadeUp 0.7s ease both; }
.anim-up-1 { animation: fadeUp 0.7s 0.1s ease both; }
.anim-up-2 { animation: fadeUp 0.7s 0.2s ease both; }
.anim-up-3 { animation: fadeUp 0.7s 0.3s ease both; }
.anim-up-4 { animation: fadeUp 0.7s 0.4s ease both; }

/* ── MARQUEE ── */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: rgba(25,211,255,0.02);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid-gray);
  flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  transition: color 0.2s;
}
.marquee-item span { color: var(--core-cyan); font-size: 8px; }
.marquee-item:hover { color: var(--protocol-white); }

/* ── FOOTER ── */
footer {
  background: #050709;
  border-top: 1px solid var(--border);
  padding: 72px 60px 36px;
  position: relative; z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-tagline {
  font-family: 'Roboto Serif', serif;
  font-size: 13px; color: var(--mid-gray);
  line-height: 1.75; margin-bottom: 24px; max-width: 280px;
}
.footer-col h4 {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: var(--mid-gray); text-decoration: none;
  margin-bottom: 12px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--protocol-white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── CTA BANNER ── */
.cta-banner {
  padding: 120px 60px;
  text-align: center;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-banner-inner {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(23,64,255,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(25,211,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(25,211,255,0.04) 0%, transparent 60%);
}
.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.cta-banner p {
  font-family: 'Roboto Serif', serif;
  font-size: 16px; font-weight: 300;
  color: var(--body-text); margin-bottom: 40px;
}
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(5,7,9,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  padding: 48px 36px;
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 28px; font-weight: 700;
  color: var(--mid-gray); text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a:last-child { color: var(--core-cyan); }

/* ── PAGE HERO GRID ── */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}

/* ── SCREEN MOCKUP ── */
.platform-screen {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(25,211,255,0.07);
  animation: float 6s ease-in-out infinite;
}
.screen-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.screen-url {
  margin-left: 10px;
  font-size: 11px; color: var(--mid-gray);
  background: var(--surface-3);
  padding: 4px 12px; border-radius: 4px;
  letter-spacing: 0.03em;
}
.screen-body { padding: 24px; }
.screen-header { margin-bottom: 18px; }
.screen-header h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.screen-header p { font-size: 12px; color: var(--mid-gray); }
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.screen-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
  transition: border-color 0.2s;
}
.screen-card:hover { border-color: rgba(25,211,255,0.15); }
.screen-card-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--core-cyan);
  margin-bottom: 5px;
}
.screen-card-title { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.screen-card-desc { font-size: 11px; color: var(--mid-gray); line-height: 1.4; }
.screen-stats {
  display: flex; gap: 0;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.screen-stat {
  flex: 1; padding: 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.screen-stat:last-child { border-right: none; }
.screen-stat-num {
  font-size: 14px; font-weight: 800;
  color: var(--core-cyan); letter-spacing: -0.02em;
}
.screen-stat-label { font-size: 10px; color: var(--mid-gray); margin-top: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 10px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 72px 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-banner { padding: 80px 24px; }
  .section-tag::before { display: none; }
  .section-title { font-size: clamp(24px, 5vw, 44px); }
  .section-desc { font-size: 15px; }
  * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 56px 16px; }
  .section-title { font-size: clamp(22px, 6vw, 36px); line-height: 1.2; margin-bottom: 12px; }
  .section-desc { font-size: 14px; line-height: 1.75; }
  .btn { padding: 12px 24px; font-size: 11px; }
}
