/* =========================
   EVERCORE - GLOBAL STYLES
   Dark Apple + Cloudflare Inspired
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #050505;
  color: #ffffff;
  overflow-x: hidden;
}

/* =========================
   BACKGROUND GLOW
========================= */

.bg-glow {
  position: fixed;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  top: -250px;
  left: -250px;
  filter: blur(90px);
  z-index: 0;
}

/* =========================
   GLASS EFFECT SYSTEM
========================= */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

/* =========================
   NAVBAR
========================= */

.nav {
  position: fixed;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.nav-inner {
  width: 90%;
  max-width: 1100px;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 2px;
}

.dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

/* =========================
   NAV LINKS
========================= */

.links {
  display: flex;
}

.links a {
  color: #aaa;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  transition: 0.2s ease;
}

.links a:hover {
  color: white;
}

.active-link {
  color: white !important;
}

/* =========================
   HERO
========================= */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-inner h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
}

.hero-inner p {
  margin-top: 20px;
  color: #aaa;
  font-size: 16px;
}

/* =========================
   BUTTONS
========================= */

.cta {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  margin: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.2s ease;
}

.btn:hover {
  border-color: white;
}

.btn.primary {
  background: white;
  color: black;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 900px;
  padding: 40px;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.section p {
  color: #aaa;
  line-height: 1.6;
}

/* =========================
   GRID (PRINCIPLES)
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

/* =========================
   SYSTEMS
========================= */

.systems {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.system-item {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 120px;
  padding: 60px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: auto;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #aaa;
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  font-size: 12px;
  color: #666;
}

/* =========================
   LOADER (PART 4)
========================= */

#loader {
  position: fixed;
  inset: 0;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-dot {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.2s infinite ease-in-out;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 1; }
}

/* =========================
   SCROLL REVEAL
========================= */

.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MOBILE MENU
========================= */

.menu-btn {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {

  .hero-inner h1 {
    font-size: 36px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: block;
  }

  .links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .links.active {
    display: flex;
  }

  .links a {
    margin: 10px 0;
  }
}

/* =========================
   UX POLISH
========================= */

::selection {
  background: white;
  color: black;
}