/* ============================================================
   NEURONEX AI SYSTEMS — Main Stylesheet
   ============================================================ */

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

:root {
  --color-bg:       #0a0e14;
  --color-surface:  #0d1117;
  --color-accent:   #4a9eda;
  --color-white:    #ffffff;
  --color-gray:     #8a9bb0;
  --color-border:   rgba(255,255,255,0.15);
  --nav-height:     72px;
  --font:           'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-white);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: transparent;
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 14, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  cursor: pointer;
}

.nav__logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-white);
}

.nav__logo-sub {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--color-gray);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav__links a:hover { opacity: 1; }

/* Language switcher */
.nav__lang { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.lang-btn:hover { opacity: 1; }

.lang-btn .chevron {
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #111820;
  border: 1px solid var(--color-border);
  list-style: none;
  min-width: 130px;
  border-radius: 2px;
  overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
  transition: background 0.15s, opacity 0.15s;
}

.lang-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── MOBILE MENU ─────────────────────────────────────────── */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 14, 20, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open { display: flex; }

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.mobile-menu ul li a:hover { opacity: 1; }

/* ── PAGE HERO (shared) ──────────────────────────────────── */

.page-hero {
  position: relative;
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #07101e 0%, #0c1e36 50%, #081628 100%);
  z-index: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 10, 20, 0.5) 0%,
    rgba(4, 10, 20, 0.2) 50%,
    rgba(4, 10, 20, 0.7) 100%
  );
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 64px 40px;
  width: 100%;
}

.page-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-white);
  line-height: 1.1;
}

/* Active nav link (dark pages) */
.nav__links a.active {
  opacity: 1;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}

/* ── HERO ────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-image: url('../assets/images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Fallback gradient when no image present */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 40%, #091525 100%);
  z-index: 0;
}

/* Grid texture overlay for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,158,218,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,218,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 13, 22, 0.78) 0%,
    rgba(8, 13, 22, 0.4) 60%,
    rgba(8, 13, 22, 0.15) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 0 48px;
  margin-top: 0;
}

.hero__body {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
}

.hero__cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-white);
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-white);
  transition: opacity 0.2s, border-color 0.2s;
}

.hero__cta:hover {
  opacity: 0.7;
  border-color: rgba(255,255,255,0.4);
}

/* ── TICKER ──────────────────────────────────────────────── */

.hero__ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 13, 22, 0.45);
}

.hero__ticker {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: ticker 30s linear infinite;
}

.hero__ticker span {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  padding-right: 0;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── COOKIE BANNER ───────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 48px;
  background: rgba(245, 245, 245, 0.97);
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid #ddd;
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner p {
  flex: 1;
  max-width: 900px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-manage {
  background: none;
  border: 1px solid #333;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: var(--font);
  color: #1a1a1a;
  transition: background 0.2s;
}

.btn-cookie-manage:hover { background: rgba(0,0,0,0.06); }

.btn-cookie-accept {
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: var(--font);
  color: #fff;
  transition: opacity 0.2s;
}

.btn-cookie-accept:hover { opacity: 0.8; }

/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  background: #060b12;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 300;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 64px;
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Brand block */
.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-white);
}

.footer-logo__sub {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 220px;
  font-style: italic;
}

/* Nav columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav__heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 16px;
}

.footer-nav__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__col a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav__col a:hover { color: var(--color-white); }

.footer-nav__location {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* Bottom bar */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 64px;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-badges span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(74,158,218,0.55);
  border: 1px solid rgba(74,158,218,0.2);
  padding: 3px 8px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav {
    padding: 0 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero__content {
    padding: 0 24px;
    max-width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .site-footer__bottom {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
}
