/* ===== NEXORA DEVELOPMENT – Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg:          #0a0a0a;
  --bg-card:     #111111;
  --bg-hover:    #1a1a1a;
  --bg-elevated: #161616;
  --border:      #222222;
  --border-light:#2a2a2a;
  --text:        #f5f5f5;
  --text-sub:    #888888;
  --text-dim:    #444444;
  --white:       #ffffff;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
  --transition:  all 0.22s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section   { padding: 100px 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-container {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

.nav-logo-img {
  width: 34px; height: 34px;
  object-fit: contain; border-radius: var(--radius-sm);
}

.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--white); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--bg);
}

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-links a {
  padding: 7px 14px; color: var(--text-sub); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-links a:hover  { color: var(--text); background: var(--bg-hover); }
.nav-links a.active { color: var(--text); background: var(--bg-hover); }

.nav-cta {
  padding: 8px 18px !important;
  background: var(--white) !important;
  color: var(--bg) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85 !important; background: var(--white) !important; color: var(--bg) !important; }

.nav-panel-btn {
  font-size: 0.82rem !important;
  padding: 7px 14px !important;
  gap: 6px; margin-left: 8px;
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-sub); border-radius: 2px; transition: var(--transition);
}

/* ===== SECTION HEADER ===== */
.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem; color: var(--text-sub); max-width: 500px; line-height: 1.72;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: var(--transition);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--white); color: var(--bg);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary {
  background: transparent; color: var(--text-sub);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: #3a3a3a; color: var(--text);
  background: var(--bg-hover); transform: translateY(-1px);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== DIVIDER ===== */
.divider {
  width: 32px; height: 2px;
  background: var(--white); border-radius: 2px; margin: 14px 0; opacity: 0.15;
}
.divider.center { margin: 14px auto; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 96px 0 60px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 1rem; color: var(--text-sub);
  max-width: 500px; margin: 0 auto; line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-sub); font-size: 0.87rem;
  line-height: 1.7; margin: 14px 0 22px; max-width: 240px;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); text-decoration: none; font-size: 0.78rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--bg-elevated); color: var(--text); border-color: var(--border-light);
}

.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--text-sub); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.82rem; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--text-sub); }

/* ===== SCROLL TOP ===== */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 38px; height: 38px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); color: var(--text-sub); font-size: 0.9rem;
  cursor: pointer; z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: var(--transition); pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scroll-top:hover   { background: var(--bg-hover); color: var(--text); border-color: #3a3a3a; }

/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: 0.06em;
}
.loader-sub {
  font-size: 0.68rem; color: var(--text-dim);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.loader-bar-wrap {
  width: 160px; height: 1px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; background: var(--white); border-radius: 2px;
  animation: loader-fill 1.1s ease forwards;
}

/* ===== CTA CARD ===== */
.cta-section { padding: 0 0 100px; }
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 72px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-visual { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.cta-grid-visual { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.cta-dot {
  width: 38px; height: 38px;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm); animation: cta-pulse 3s ease-in-out infinite var(--d);
}
@keyframes cta-pulse { 0%,100%{opacity:0.3} 50%{opacity:0.8} }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(20px);  transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }
.reveal-delay-5 { transition-delay: 0.35s; }

/* ===== ANIMATIONS ===== */
@keyframes loader-fill { from{width:0} to{width:100%} }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ===== SELECTION ===== */
::selection { background: rgba(255,255,255,0.12); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-card { grid-template-columns: 1fr; padding: 48px 36px; }
  .cta-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
    align-items: center; justify-content: center;
    gap: 18px; z-index: 999;
  }
  .nav-links.mobile-open a { font-size: 1.3rem; font-weight: 700; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 72px 0 48px; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 36px 24px; }
}
