/* ============================================================
   EVOR — Global Stylesheet
   Design: Refined Monochrome Futurism
   Font: Syne (display) + DM Sans (body)
   ============================================================ */

/* ── Imports ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:           #050505;
  --bg-2:         #0a0a0a;
  --bg-3:         #111;
  --fg:           #fff;
  --muted:        rgba(255,255,255,.55);
  --faint:        rgba(255,255,255,.3);
  --ghost:        rgba(255,255,255,.08);
  --line:         rgba(255,255,255,.09);
  --line-2:       rgba(255,255,255,.16);
  --glow:         rgba(255,255,255,.06);

  --display:      'Poppins', sans-serif;
  --body:         'DM Sans', sans-serif;

  --ease:         cubic-bezier(.22,1,.36,1);
  --ease-back:    cubic-bezier(.34,1.56,.64,1);
  --ease-smooth:  cubic-bezier(.4,0,.2,1);

  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  --nav-h: 68px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }

/* ── Page-transition overlay ─────────────────────────────── */
#page-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
#page-overlay.out {
  opacity: 1;
  transform: scaleY(1);
}
#page-overlay.in {
  transform-origin: bottom;
  opacity: 0;
  transform: scaleY(0);
}

/* ── Custom cursor ───────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .15s var(--ease-smooth), width .3s var(--ease), height .3s var(--ease), opacity .3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: transform .5s var(--ease), width .4s var(--ease), height .4s var(--ease), border-color .3s;
}
body.cursor-hover .cursor { width: 50px; height: 50px; }
body.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: rgba(255,255,255,.2); }

/* ── Navigation ──────────────────────────────────────────── */
.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 clamp(20px,4vw,60px);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,5,5,.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity .3s;
}
.nav-logo:hover { opacity: .7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #fff;
  transition: width .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  transition: all .35s var(--ease);
}
.nav-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all .4s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(5,5,5,.97);
  backdrop-filter: blur(40px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--display);
  font-size: clamp(32px,7vw,56px);
  font-weight: 700;
  color: var(--muted);
  transition: color .3s;
  letter-spacing: -.02em;
}
.nav-mobile a:hover { color: #fff; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px clamp(20px,5vw,80px) 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 240px;
  line-height: 1.7;
}
.footer-logo-text {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .1em;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color .3s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 12.5px;
  color: var(--faint);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--faint); transition: color .3s; }
.footer-legal a:hover { color: #fff; }

/* Social links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s var(--ease);
  flex-shrink: 0;
}
.footer-social a svg { width: 15px; height: 15px; stroke: var(--muted); transition: stroke .3s; fill: none; }
.footer-social a:hover { background: #fff; border-color: #fff; }
.footer-social a:hover svg { stroke: #000; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Reusable Section Layout ─────────────────────────────── */
.section {
  padding: clamp(80px,11vw,160px) clamp(20px,5vw,80px);
  max-width: 1400px;
  margin: 0 auto;
}
.section-full {
  padding: clamp(80px,11vw,160px) clamp(20px,5vw,80px);
}
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--faint);
  flex-shrink: 0;
}

.display {
  font-family: var(--display);
  font-size: clamp(40px,5.5vw,80px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.0;
}
.display-xl {
  font-family: var(--display);
  font-size: clamp(56px,9vw,140px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.0;
  overflow: visible;
  /* Ensure gradient text isn't clipped */
  padding-bottom: .08em;
}
.display-sm {
  font-family: var(--display);
  font-size: clamp(28px,3.5vw,48px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.lead {
  font-size: clamp(16px,1.4vw,19px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
}

/* Gradient text */
.grad-text {
  background: linear-gradient(160deg, #fff 30%, rgba(255,255,255,.45));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Fix clipping on descenders and sides */
  padding: .05em .02em;
  margin: -.05em -.02em;
  display: inline-block;
  overflow: visible;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(100%); }
.btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,255,255,.18); }
.btn-ghost {
  color: #fff;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--ghost); border-color: var(--line-2); transform: translateY(-2px); }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--ghost);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all .5s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.07), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  border-radius: inherit;
}
.card:hover { border-color: var(--line-2); transform: translateY(-6px); }
.card:hover::after { opacity: 1; }

/* Glass card */
.card-glass {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}

/* ── Tag / Badge ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── Icon box ────────────────────────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s var(--ease);
  flex-shrink: 0;
}
.icon-box svg { width: 20px; height: 20px; stroke: var(--fg); transition: stroke .4s; }
.card:hover .icon-box { background: #fff; border-color: #fff; }
.card:hover .icon-box svg { stroke: #000; }

/* ── Noise texture overlay ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9996;
}

/* ── Grid BG pattern ─────────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.grid-bg-fade {
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ── Scroll animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.reveal-fade.visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Delays */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
.d6 { transition-delay: .48s; }
.d7 { transition-delay: .56s; }
.d8 { transition-delay: .64s; }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-wrap {
  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);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 52px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .3s;
}
.marquee-item:hover { color: #fff; }
.marquee-item svg { width: 22px; height: 22px; }

/* ── Hero shared ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: visible;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(60px,8vw,120px) clamp(20px,5vw,80px);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Glow orb */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ── Stats ───────────────────────────────────────────────── */
.stat-num {
  font-family: var(--display);
  font-size: clamp(40px,6vw,80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── Stars ───────────────────────────────────────────────── */
.stars { color: #fff; font-size: 14px; letter-spacing: 2px; }

/* ── Process step ────────────────────────────────────────── */
.step-num {
  font-family: var(--display);
  font-size: 72px;
  font-weight: 800;
  color: var(--ghost);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: -8px; right: 24px;
}

/* ── Horizontal rule ─────────────────────────────────────── */
hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Loading animation ───────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .2em;
  overflow: hidden;
}
.loader-logo span {
  display: inline-block;
  animation: loaderReveal .8s var(--ease-back) both;
}
.loader-logo span:nth-child(1) { animation-delay: .1s; }
.loader-logo span:nth-child(2) { animation-delay: .2s; }
.loader-logo span:nth-child(3) { animation-delay: .3s; }
.loader-logo span:nth-child(4) { animation-delay: .4s; }
@keyframes loaderReveal {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Floating shapes ─────────────────────────────────────── */
.shape-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
@keyframes float-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,60px) scale(1.1); }
}
@keyframes float-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-60px,-40px) scale(1.12); }
}
@keyframes float-c {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-50px) scale(.9); }
}


/* ============================================================
   EXTRA RESPONSIVE IMPROVEMENTS
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  line-height: 1.15;
}

.nav-logo {
  font-family: 'Syne', sans-serif !important;
}

section,
.hero,
.container,
.content,
.grid,
.cards,
.features {
  max-width: 100%;
}

iframe,
video,
img {
  max-width: 100%;
  height: auto;
}

/* Tablets */
@media (max-width: 992px) {

  .nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .hero,
  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .grid,
  .cards,
  .features {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .nav-burger {
    display: flex !important;
  }

  h1 {
    font-size: 2.2rem !important;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  p {
    font-size: 0.96rem;
  }

  .hero,
  section,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .grid,
  .cards,
  .features,
  .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  button,
  .btn,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {

  h1 {
    font-size: 1.9rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  p {
    font-size: 0.92rem;
  }

  .nav {
    height: auto;
    min-height: 68px;
  }
}
