:root {
  --primary-color: #001c43;
  --secondary-color: #f7f9fc;
  --accent-color: #c5a47e;
  --text-main: #001c43;
  --text-muted: #64748b;
  --font-main: 'Outfit', sans-serif;
  --card-shadow: 0 10px 40px -10px rgba(0, 28, 67, 0.08);
  --card-hover-shadow: 0 20px 50px -10px rgba(0, 28, 67, 0.12);
  --border-light: #e2e8f0;
}

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

body,
html {
  height: 100%;
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--text-main);
  overflow: hidden;
  /* Prevent scrolling for the single page feel */
  -webkit-font-smoothing: antialiased;
}

/* Global Link Reset */
a {
  text-decoration: none;
  color: inherit;
  outline: none;
  /* Remove blue focus ring */
}

a:hover,
a:visited,
a:active {
  text-decoration: none;
  color: inherit;
}

/* Main Container */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

/* Content Wrapper: Vertical Stack */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Center vertically on screen */
  flex: 1;
  gap: 4rem;
  width: 100%;
}

/* Hero Section (Top) */
header {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease-out;
  width: 100%;
}

.hero-logo-container {
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-logo-container a {
  display: inline-block;
  /* Fix for anchor tag wrapping image */
  transition: transform 0.3s ease;
}

.hero-logo-container a:hover {
  transform: scale(1.02);
  /* Subtle zoom on main logo hover */
}

.hero-logo {
  max-width: 100%;
  width: 450px;
  /* Slightly larger for center stage */
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
}

/* Ecosystem Section (Bottom) */
.ecosystem-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.ecosystem-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  font-weight: 600;
  display: block;
  text-align: center;
}

.logos-grid {
  display: flex;
  flex-direction: row;
  /* Horizontal Side-by-Side */
  justify-content: center;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.logo-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  /* Icon top, text bottom */
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
  position: relative;
  min-width: 300px;
  max-width: 350px;
  text-decoration: none;
  /* Ensure no link underline */
  color: inherit;
  /* Ensure text matches design, not blue link color */
}

.logo-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow);
  border-color: transparent;
  z-index: 10;
}

.sub-logo {
  width: 100%;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.logo-card:hover .sub-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--primary-color);
  font-weight: 600;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Footer (Bottom) */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
  width: 100%;
  margin-top: auto;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {

  body,
  html {
    overflow: auto;
    height: auto;
  }

  .main-container {
    height: auto;
    padding: 2rem 1rem;
  }

  .content-wrapper {
    padding-top: 3rem;
    gap: 3rem;
    justify-content: flex-start;
  }

  .hero-logo {
    width: 300px;
  }

  .logos-grid {
    flex-direction: column;
    align-items: center;
  }

  .logo-card {
    width: 100%;
    max-width: 400px;
  }
}