:root {
  /* Colors */
  --bg-color: #000000;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --accent-viridian: #3F76A1;
  /* User-specified Steel Blue */

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Prevent scroll on breathe animation */
  position: relative;
}

/* Background */
/* Background */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  /* Fallback static image for when video is hidden or loading */
  background-image: url('assets/Ocean.png');
  background-size: cover;
  background-position: center;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight scale to prevent edge artifacts */
  transform: scale(1.05);
  filter: brightness(0.8) contrast(1.1);
}

/* Hide video on mobile to save bandwidth */
@media (max-width: 768px) {
  .background-video {
    display: none;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker overlay for text readability on video */
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}



/* Top Navigation */
.top-nav {
  width: 100%;
  padding: 12vh 2rem 2rem 2rem;
  /* Push down significantly from top */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: slideDown 1s ease-out;
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* More space between logos */
}

.nav-logo {
  height: 42px;
  /* Bigger general height */
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  /* increased visibility */
  transition: opacity 0.3s;
}

.wingspan {
  height: 52px;
  /* Bigger Wingspan logo */
}

.nav-arrow {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 1rem;
  width: 32px;
  /* Larger arrow */
  height: 32px;
}

/* Hero Section */
.hero-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  z-index: 10;
}

.hero-content {
  max-width: 1000px;
  /* Wider for the grid */
  width: 100%;
  animation: fadeIn 1.2s ease-out;
}

h1 {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  /* Massive impact */
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.headline {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.headline strong {
  color: var(--accent-viridian);
  /* Highlight 'AI' in Viridian */
  font-weight: 500;
}

strong {
  font-weight: 600;
  color: #fff;
}

/* Pillars Grid */
.grid-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  text-align: left;
}

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  /* Top line accent */
  transition: transform 0.3s ease;
}

.pillar:hover {
  border-color: var(--accent-viridian);
  transform: translateY(-5px);
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pillar p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  font-weight: 300;
}

/* Action Area */
.action-area {
  margin-top: 2rem;
}

.btn-hero {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(4px);
}

.btn-hero:hover {
  background-color: var(--accent-viridian);
  border-color: var(--accent-viridian);
  color: #fff;
  box-shadow: 0 0 30px rgba(63, 118, 161, 0.4);
  transform: translateY(-2px);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 850px) {
  h1 {
    font-size: 2.5rem;
  }

  .grid-pillars {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .pillar {
    border-top: none;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    /* Side line on mobile */
    padding-top: 0;
    padding-left: 1.5rem;
    text-align: left;
  }

  .pillar:hover {
    border-color: var(--accent-viridian);
  }
}

@media (max-width: 480px) {
  .top-nav {
    padding: 1.5rem;
  }

  /* Shrink logos for mobile portrait to fit width */
  .nav-logos {
    gap: 0.75rem;
    /* Much tighter gap */
  }

  .nav-logo {
    height: 24px;
    /* Smaller logos */
  }

  .wingspan {
    height: 30px;
    /* Smaller Wingspan logo */
  }

  .nav-arrow {
    width: 20px;
    height: 20px;
    margin: 0 0.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  .headline {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
}