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

:root {
  --obsidian-void: #0B0C10;
  --ether-teal: #66FCF1;
  --celestial-gold: #C5C6C7;
  --astral-violet: #45A29E;
  --deep-teal: #1F2833;
  
  --bg-dark: var(--obsidian-void);
  --accent-primary: var(--ether-teal);
  --accent-secondary: var(--astral-violet);
  --text-main: var(--celestial-gold);
  --text-muted: #8E9092;
  
  --glass-bg: rgba(11, 12, 16, 0.8);
  --glass-border: rgba(102, 252, 241, 0.1);
  --glass-glow: rgba(102, 252, 241, 0.03);
  
  --font-brand: 'Space Grotesk', sans-serif;
  --font-ui: 'Inter', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 15px rgba(102, 252, 241, 0.2);
  --card-radius: 4px;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(102, 252, 241, 0.05), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(69, 162, 158, 0.05), transparent 50%),
    url('../assets/svg/grid-pattern.svg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover, cover, 80px 80px;
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.8;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--deep-teal);
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

h1, h2, h3, .logo {
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: -0.02em; /* Tighter for modern business look */
  font-weight: 700;
}

/* Joorgi Patterns */
.scanner-container {
  position: relative;
  overflow: hidden;
}

.scanner-line {
  position: absolute;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: scan 6s linear infinite;
  box-shadow: 0 0 10px var(--accent-primary);
  z-index: 5;
  pointer-events: none;
}

@keyframes scan {
  0% { top: -20%; opacity: 0; filter: blur(10px); }
  20% { opacity: 1; filter: blur(0px); }
  80% { opacity: 1; filter: blur(0px); }
  100% { top: 120%; opacity: 0; filter: blur(10px); }
}

@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(102, 252, 241, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 30px rgba(102, 252, 241, 0.6)); transform: scale(1.02); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.pulse-glow {
  animation: breathe 5s ease-in-out infinite;
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Overlapping Layouts */
.overlap-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 2rem;
}

.overlap-image {
  grid-column: 1 / 8;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.overlap-image img {
  width: 100%;
  height: auto;
  display: block;
}

.overlap-card {
  grid-column: 7 / 13;
  z-index: 10;
  margin-left: -15%;
  padding: 5rem 4rem;
  background: rgba(11, 12, 16, 0.9);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(102, 252, 241, 0.05);
  position: relative;
}

.overlap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 40px; height: 40px;
  border-top: 2px solid var(--accent-primary);
  border-left: 2px solid var(--accent-primary);
}

.overlap-card h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(to bottom, #fff, var(--celestial-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overlap-layout.reverse .overlap-image {
  grid-column: 6 / 13;
}

.overlap-layout.reverse .overlap-card {
  grid-column: 1 / 7;
  margin-left: 0;
  margin-right: -5%;
}

.image-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(135deg, rgba(102, 252, 241, 0.2), transparent);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: -15px;
  background: url('../assets/svg/data-node.svg') no-repeat;
  background-size: 100px;
  opacity: 0.3;
  z-index: -1;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.3;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(102, 252, 241, 0.05), transparent 60%);
  pointer-events: none;
}

.glass-card {
  padding: 3rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(102, 252, 241, 0.05), transparent);
}

.glass-card img.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--accent-primary));
}

.glass-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px 0 rgba(0, 242, 255, 0.15);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

.btn-launch {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  background: transparent;
  color: var(--accent-primary);
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 600;
  border-radius: 100px; /* Modern pill shape for business */
  text-transform: none; /* Less "shouting" than uppercase */
  letter-spacing: 0;
  transition: var(--transition);
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-launch::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  transition: var(--transition);
  z-index: -1;
}

.btn-launch:hover {
  color: #0b0c10;
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.3);
}

.btn-launch:hover::before {
  left: 0;
}

.btn-launch-solid {
  background: var(--accent-primary);
  color: #0b0c10;
  border: none;
}

.btn-launch-solid:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(102, 252, 241, 0.4);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

/* Glowing energy line along the bottom edge once scrolled */
nav.scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.logo {
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  transition: var(--transition);
}

.logo-icon {
  width: 50px;
  height: 50px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background: var(--bg-dark);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
  animation: halo-pulse 4s ease-in-out infinite;
}

.logo-icon img {
  width: 130%;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 0 8px var(--accent-primary));
  mix-blend-mode: screen;
}

@keyframes halo-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(102, 252, 241, 0.2), inset 0 0 5px rgba(102, 252, 241, 0.1); }
  50% { box-shadow: 0 0 25px rgba(102, 252, 241, 0.6), inset 0 0 15px rgba(102, 252, 241, 0.3); }
}

.hero-brand-logo {
  width: 220px;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 15px rgba(102, 252, 241, 0.4));
  animation: logo-float 6s ease-in-out infinite, logo-halo 4s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes logo-halo {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(102, 252, 241, 0.4)); }
  50% { filter: drop-shadow(0 0 35px rgba(102, 252, 241, 0.8)); }
}

.logo span, .omega-symbol {
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-primary);
}

.omega-symbol {
  font-weight: 300;
  margin: 0 2px;
  opacity: 0.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator span {
  display: block;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
  transform: rotate(45deg);
  animation: scrollDown 2s infinite;
  opacity: 0;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollDown {
  0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.burger-menu span {
  width: 30px;
  height: 2px;
  background-color: var(--accent-primary);
  transition: var(--transition);
}

/* ===== Futuristic HUD Navigation ===== */
.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 100px;
  background: linear-gradient(145deg, rgba(102, 252, 241, 0.06), rgba(11, 12, 16, 0.5));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 0 22px rgba(102, 252, 241, 0.04);
  position: relative;
  counter-reset: navindex;
}

/* HUD corner ticks framing the console */
.nav-links::before,
.nav-links::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0.7;
}

.nav-links::before {
  top: -3px;
  left: -3px;
  border-top: 1px solid var(--accent-primary);
  border-left: 1px solid var(--accent-primary);
}

.nav-links::after {
  bottom: -3px;
  right: -3px;
  border-bottom: 1px solid var(--accent-primary);
  border-right: 1px solid var(--accent-primary);
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55rem 1.15rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
  border-radius: 100px;
  overflow: hidden;
  transition: var(--transition);
  isolation: isolate;
}

/* Indexed digit prefix (01, 02, ...) — HUD telemetry look */
.nav-links a::before {
  counter-increment: navindex;
  content: counter(navindex, decimal-leading-zero);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-primary);
  opacity: 0.45;
  transform: translateY(-1px);
  transition: var(--transition);
}

/* Energy sweep that crosses the link on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 35%, rgba(102, 252, 241, 0.25) 50%, transparent 65%);
  background-size: 220% 100%;
  background-position: 200% 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(145deg, rgba(102, 252, 241, 0.18), rgba(69, 162, 158, 0.05));
  box-shadow: inset 0 0 0 1px rgba(102, 252, 241, 0.45), 0 0 20px rgba(102, 252, 241, 0.22);
  text-shadow: 0 0 12px rgba(102, 252, 241, 0.55);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
}

.nav-links a:hover::after {
  opacity: 1;
  animation: nav-sweep 0.85s ease forwards;
}

/* Active link gets a glowing underline node */
.nav-links a.active::after {
  opacity: 1;
  background: none;
  box-shadow: none;
}

.nav-links a.active {
  position: relative;
}

@keyframes nav-sweep {
  from { background-position: 200% 0; }
  to { background-position: -60% 0; }
}

/* Scroll progress energy line at the very top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  box-shadow: 0 0 12px var(--accent-primary), 0 0 4px var(--accent-primary);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Overlapping Layouts Responsive */
@media (max-width: 992px) {
  .overlap-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .overlap-image, .overlap-card {
    grid-column: auto !important;
    margin: 0 !important;
    width: 100%;
  }

  .overlap-card {
    order: -1;
  }

  .reverse .overlap-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(160deg, rgba(31, 40, 51, 0.55), rgba(11, 12, 16, 0.97));
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.6rem;
    padding: 2.5rem;
    border-radius: 0;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    border-left: 1px solid var(--glass-border);
  }

  /* HUD ticks become a glowing vertical rail on mobile */
  .nav-links::before {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    border: none;
    border-radius: 0;
    background: linear-gradient(180deg, transparent, var(--accent-primary), transparent);
    opacity: 0.6;
  }

  .nav-links::after {
    display: none;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    font-size: 1rem;
    letter-spacing: 0.22em;
    padding: 1rem 1.2rem;
    border-radius: 10px;
  }

  .nav-links a::before {
    font-size: 0.8rem;
    margin-right: 0.4rem;
  }
}

/* Narrative Cards */
.narrative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.narrative-card {
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--glass-border);
}

.narrative-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark) 20%, transparent 80%);
}

.narrative-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.narrative-card h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 5, 5, 0.5);
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-links h4 {
  margin-bottom: 2rem;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  letter-spacing: 1px;
}
