/* ============================================ */
/* AIONN — DESIGN SYSTEM                         */
/* ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg: #02040B;
  --bg-soft: #0A1020;
  --gold: #F5B841;
  --gold-soft: #FFD470;
  --text: #F5F7FA;
  --muted: #9AA3B2;
  --glass: rgba(10, 16, 32, 0.48);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow: rgba(245, 184, 65, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* BACKGROUND LAYER                              */
/* ============================================ */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 11, 0.35);
}

/* Optional subtle stars */
.stars-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 85% 40%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 15% 60%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 30% 85%, rgba(255,255,255,0.15), transparent);
}

/* ============================================ */
/* UI OVERLAY                                    */
/* ============================================ */
.ui-overlay {
  position: relative;
  z-index: 2;
}

/* ============================================ */
/* NAVBAR                                        */
/* ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(2, 4, 11, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 101;
}

/* Wordmark SVG has a 192mm intrinsic width — without an explicit size it
   overflowed the navbar and pushed the mobile menu toggle off-screen. */
.logo-full {
  display: block;
  height: 40px;
  width: auto;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 24px;
  letter-spacing: 6px;
  font-weight: 500;
  color: var(--text);
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

/* --- Nav CTA Button --- */
.nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 184, 65, 0.35);
  color: var(--gold);
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(245, 184, 65, 0.08);
  border-color: var(--gold);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s ease;
}

/* ============================================ */
/* HERO SECTION                                  */
/* ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  max-width: 720px;
}

/* --- Eyebrow --- */
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

/* --- Heading --- */
.hero-heading {
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -4px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
}

/* --- Description --- */
.hero-description {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 32px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #000;
  border: none;
  box-shadow: 0 0 30px rgba(245, 184, 65, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(245, 184, 65, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Right Side --- */
.hero-right {
  /* Intentionally empty — eclipse shows through background */
}

/* ============================================ */
/* SERVICE CARDS                                 */
/* ============================================ */
.services {
  position: relative;
  padding: 0 40px 80px;
  margin-top: -40px;
  z-index: 10;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Individual Card --- */
.card {
  background: rgba(10, 16, 32, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 184, 65, 0.28);
  box-shadow: 0 0 40px rgba(245, 184, 65, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.card-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================ */
/* RESPONSIVE                                    */
/* ============================================ */
@media (max-width: 1024px) {
  .hero-heading {
    font-size: 64px;
    letter-spacing: -3px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 4, 11, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 100;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 24px;
  }
  
  .nav-btn {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-left {
    max-width: 100%;
  }
  
  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-heading {
    font-size: 48px;
    letter-spacing: -2px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-right {
    display: none;
  }
  
  .services {
    margin-top: 0;
    padding-top: 60px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 20px;
  }

  .logo-full {
    height: 32px;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-heading {
    font-size: 36px;
    letter-spacing: -1px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .services {
    padding: 60px 20px 40px;
  }
}
