:root {
  --bg: #0c0c0c;
  --fg: #fafafa;
  --fg-muted: #bdbdbd;
  --accent-from: #00e0ff;
  --accent-to: #0077ff;
  --content-max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky footer: main content grows, footer stays at bottom */
main,
.content-overlay-wrapper {
  flex: 1 0 auto;
}

a {
  color: var(--accent-from);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-to);
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  /* use a static frame from your video */
  background-image: url('jellyfish-frame.jpg');
  background-size: cover;
  background-position: center;

  /* Existing styles */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: brightness(0.6) contrast(1);
}

/* --------------------------------------------------
        UTILS
    -------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--content-max);
  margin-inline: auto;
}
.flex {
  display: flex;
}
.between {
  justify-content: space-between;
  align-items: center;
}
/* Narrow wrapper → centres block while keeping left‑aligned text */
.centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}
.centered .section-intro {
  text-align: left;
  margin-inline: 0;
}

/* --------------------------------------------------
        NAVBAR
    -------------------------------------------------- */
nav.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 20;
  background: rgba(2, 2, 12, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.7rem 0;
}
.logo {
  height: 32px; /* smaller logo icon */
  width: auto;
}
@media (min-width: 820px) {
  /* tablet + desktop */
  .logo {
    height: 44px;
  }
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 600;
  color: var(--fg-muted);
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--fg);
}

/* New container styles for nav split */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-right {
  display: flex;
  align-items: center;
}

/* Ensure nav-right links receive the same styling as nav-links */
.nav-right a {
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-right a:hover {
  color: var(--fg);
}

/* Company name styling */
.company-name {
  margin-left: 0.4rem; /* adjusted spacing */
  font-size: 1rem; /* reduced from 1.25rem */
  font-weight: bold;
  color: var(--accent-to);
  align-content: center;
  align-self: center;
}

/* --------------------------------------------------
        HERO
    -------------------------------------------------- */
header.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 5rem;
  overflow: hidden;
  /* No overlay background for hero - let video show through */
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  /* White text with black border */
  text-stroke: 1px #000000;
  /* Fallback shadow for browsers that don't support text-stroke */
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 8px rgba(0, 0, 0, 0.8);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.hero p {
  font-size: 1.125rem;
  max-width: 640px;
  margin-inline: auto;
  color: #ffffff;
}

/* Animated background gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: -75% -75%;
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Floating blobs */
.blob {
  position: absolute;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-from), var(--accent-to));
  opacity: 0.15;
  filter: blur(60px);
  animation: drift 22s ease-in-out infinite alternate;
}
.blob:nth-child(1) {
  top: 8%;
  left: 12%;
  animation-duration: 26s;
}
.blob:nth-child(2) {
  bottom: 6%;
  right: 10%;
  animation-duration: 20s;
}
@keyframes drift {
  from {
    transform: translateY(-30px) translateX(-20px) scale(1);
  }
  to {
    transform: translateY(30px) translateX(20px) scale(1.15);
  }
}

/* --------------------------------------------------
        CTA Button
    -------------------------------------------------- */
.cta {
  display: inline-block;
  margin: 1.25rem 0.5rem 0;
  padding: 0.9rem 1.9rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #000;
  transition: transform 0.2s;
  will-change: transform;
}
.cta.alt {
  background: #fff;
  color: #000;
}
.cta:hover {
  transform: translateY(-3px) scale(1.03);
}

/* --------------------------------------------------
        CONTENT OVERLAY SECTIONS
    -------------------------------------------------- */

/* Create continuous overlay background for all content sections except hero */
.content-overlay-wrapper {
  /* medium-strength purple overlay */
  background: rgba(2, 2, 12, 0.8);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Individual sections within the overlay */
.content-overlay-wrapper section {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.content-overlay-wrapper section:first-of-type {
  border-top: none;
}

/* --------------------------------------------------
        SECTIONS
    -------------------------------------------------- */
section {
  padding: 4rem 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.section-intro {
  max-width: 680px;
  color: var(--fg-muted);
}

/* Feature list */
.features {
  list-style: none;
  margin-block: 2rem;
  display: grid;
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.feature-item svg {
  flex-shrink: 0;
  width: 22px;
  margin-top: 0.15rem;
  stroke-width: 2.2;
  stroke: var(--accent-from);
}
.feature-item p {
  margin: 0;
}

/* --------------------------------------------------
        VALUE PROMISE CARDS
-------------------------------------------------- */
.value-cards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 3rem 0;
}

.value-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.value-content h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.value-content ul {
  list-style: none;
  padding-left: 1.5rem;
}
.value-content ul li::marker {
  content: '';
}

/* style “Powered by …” as a subtitle under each use-case title */
.value-content .powered-by {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--fg-muted);
  margin: -0.5rem 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .value-card {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------
        FOOTER
    -------------------------------------------------- */
footer {
  position: relative;
  padding: 2rem 1rem 3rem;
  background: rgba(2, 2, 12, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  margin-top: auto;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-from),
    transparent
  );
  opacity: 0.4;
}

footer p {
  margin: 0;
  padding: 0;
  font-weight: 500;
}

footer p a {
  margin-left: 2rem;
  color: var(--accent-from);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer p a:hover {
  color: var(--accent-to);
  text-decoration: underline;
}

footer .cta {
  margin: 0 0.5rem 2rem;
}

footer .footer-ctas {
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------
        RESPONSIVE
    -------------------------------------------------- */
@media (max-width: 820px) {
  .nav-links {
    gap: 1.25rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Reduce base font-size for more compact text */
  body {
    font-size: 14px; /* adjust as needed */
  }

  .hero .container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  /* Adjust CTA button sizing */
  .cta {
    padding: 0.75rem 0.3rem;
    font-size: 0.85rem;
  }
  .topbar {
    flex-direction: row; /* align items in one row */
    padding: 0.5rem;
  }
  .topbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    width: 32px; /* reduced for mobile */
    height: auto;
  }
  .company-name {
    font-size: 0.9rem; /* adjust if needed to align with nav items */
  }
  .nav-links {
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
  }
  .nav-links li {
    margin: 0;
    font-size: 0.8rem;
  }
  header.hero {
    padding-top: 1rem;
  }
}

/* Hero positioning variants - add these to test different layouts */

/* Variant 1: Top positioned */
.hero-variant-top {
  align-items: flex-start;
  padding-top: 8rem;
}

/* Variant 2: Left positioned */
.hero-variant-left {
  text-align: left;
}
.hero-variant-left .container {
  max-width: 50%;
  margin-left: 5%;
}

/* Variant 3: Bottom positioned */
.hero-variant-bottom {
  align-items: flex-end;
  padding-bottom: 8rem;
}

/* Variant 4: With minimal backdrop only behind text */
.hero-variant-backdrop .container {
  position: relative;
}
.hero-variant-backdrop .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 224, 255, 0.1),
    rgba(0, 119, 255, 0.1)
  );
  z-index: -1;
}

/* CLOSING  – minimal, gradient halo + clear hierarchy */
#closing {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

#closing .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#closing .manifesto {
  /* one-liner, lighter weight */
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600; /* reduced from 800 */
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-inline: auto;
  max-width: 100%;
  line-height: 1.4;
  /* Enhanced highlighting */
  text-shadow:
    0 0 20px rgba(0, 224, 255, 0.4),
    0 0 40px rgba(0, 224, 255, 0.2);
  /* White text with subtle border for fallback */
  color: #ffffff;
  -webkit-text-stroke: 1px rgba(0, 224, 255, 0.3);
  text-stroke: 1px rgba(0, 224, 255, 0.3);
}

#closing .final-message {
  /* calmer supporting copy, lighter weight */
  font-size: 1.4rem;
  font-weight: 400; /* reduced from 600 */
  color: var(--fg);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-align: center;
  /* Subtle highlighting */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

#closing .footer-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* Loading overlay styles */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: none; /* initially hidden on navigation */
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.5s;
}

/* Improved Login Modal Styles */
.login-form input {
  font-size: 1rem; /* increased for better readability */
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid var(--fg-muted);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent-from);
  box-shadow: 0 0 5px var(--accent-from);
}

.login-form button {
  font-size: 1rem; /* consistent font size */
  padding: 0.75rem;
  margin-top: 1rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-form button:hover {
  background: linear-gradient(135deg, var(--accent-to), var(--accent-from));
}
.value-content ul {
  list-style: none;
  padding-left: 1.5rem;
}
.value-content ul li::marker {
  content: '';
}

/* Alliance logo carousel */
.alliance-logos {
  margin: 2rem 0;
  padding: 1rem 0;
  /*background: rgba(255,255,255,0.1);*/
  overflow-x: hidden;
}

/* Display logos in a responsive grid instead of a carousel */
.logo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem 2.5rem;
  justify-items: center;
  align-items: center;
}

.alliance-logo {
  display: block;
  max-width: 180px;
  max-height: 70px;
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0.5rem;
  border-radius: 8px;
  background: none;
  margin: 0 auto;
}

.alliance-logo-large {
  max-width: 260px;
  max-height: 110px;
}
