/* ============================================================
   ALVO SYSTEMS — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ---- Variables ------------------------------------------- */
:root {
  --color-navy:    #0A0E1A;
  --color-blue:    #0880C4;
  --color-cyan:    #06C6F0;
  --color-white:   #FFFFFF;
  --color-muted:   rgba(255, 255, 255, 0.55);
  --color-border:  rgba(255, 255, 255, 0.08);
  --color-surface: rgba(255, 255, 255, 0.04);
  --gradient:      linear-gradient(135deg, #06C6F0, #0880C4);
  --gradient-r:    linear-gradient(135deg, #0880C4, #06C6F0);

  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'Space Mono', monospace;

  --header-h:      72px;
  --max-w:         1160px;
  --radius:        8px;
  --radius-pill:   100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Typography ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(3.5rem, 10vw, 9rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h4 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Layout ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ---- Header ---------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.header-nav a:hover {
  color: var(--color-white);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--color-white);
}

/* ---- Footer ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-logo img {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: none;
}

/* ---- Loader ---------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ---- Gradient text --------------------------------------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section label (Space Mono) -------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 20px;
}

/* ---- Marquee --------------------------------------------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 0;
  will-change: transform;
}

.marquee-text {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.marquee-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--color-cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
