:root {
  --bg-1: #04111d;
  --bg-2: #0a2742;
  --panel: rgba(8, 33, 55, 0.72);
  --text: #e6f0f8;
  --muted: #9cb5cb;
  --brand: #005893;
  --accent: #f6c12a;
  --highlight: #f84747;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 85% 15%, rgba(248, 71, 71, 0.2), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(246, 193, 42, 0.2), transparent 38%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  backdrop-filter: blur(12px);
  background: rgba(3, 12, 24, 0.6);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--brand);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 320px;
  padding: 0.6rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(3, 12, 24, 0.98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-menu a {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--text);
  font-weight: 500;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--text);
  background: rgba(0, 88, 147, 0.24);
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  background: transparent;
  color: var(--text);
  border: 0;
}

main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 6vw;
}

#scene3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-content {
  max-width: 760px;
  text-align: center;
  animation: reveal 1s ease forwards;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
}

h1,
h2 {
  font-family: "Orbitron", sans-serif;
}

.hero h1 {
  margin: 0.6rem 0 0.8rem;
  line-height: 1.1;
  font-size: clamp(1.9rem, 5vw, 3.8rem);
}

.hero p {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.membership-badge {
  margin: 1.2rem auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(246, 193, 42, 0.45);
  border-radius: 0.7rem;
  background: rgba(5, 22, 36, 0.82);
}

.membership-badge p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.membership-badge a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.membership-badge a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), #0b6fb3);
  color: #e9f4fb;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.glow {
  position: absolute;
  width: 34vw;
  height: 34vw;
  filter: blur(72px);
  z-index: -1;
}

.glow-1 {
  background: rgba(248, 71, 71, 0.28);
  top: 8%;
  left: -10%;
  animation: drift 6.5s ease-in-out infinite alternate;
}

.glow-2 {
  background: rgba(246, 193, 42, 0.3);
  right: -8%;
  bottom: -12%;
  animation: drift 7.2s ease-in-out infinite alternate-reverse;
}

.mini-slider {
  width: min(1200px, 90vw);
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 21, 36, 0.72);
}

.mini-slider-track {
  display: flex;
  width: max-content;
  gap: 0.8rem;
  padding: 0.6rem;
  animation: softSlide 26s linear infinite;
}

.mini-slider:hover .mini-slider-track {
  animation-play-state: paused;
}

.mini-slide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, rgba(0, 88, 147, 0.32), rgba(248, 71, 71, 0.2));
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.grid-section,
.references-grid,
.contact-layout,
.stats {
  width: min(1200px, 90vw);
  margin: 2.5rem auto;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.reference-card,
.contact-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  backdrop-filter: blur(8px);
}

.card p,
.reference-card p,
.page-hero p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.stats div {
  text-align: center;
  background: rgba(6, 30, 50, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
}

.stats span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.page-wrap {
  padding: 2rem 0 3rem;
}

.page-hero {
  width: min(900px, 90vw);
  margin: 0 auto 1.6rem;
  text-align: center;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reference-card span {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--brand);
  font-size: 0.9rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1rem;
}

.contact-card a {
  color: var(--brand);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover {
  text-decoration: underline;
}

.product-layout,
.product-metrics,
.product-problems,
.product-features,
.product-flow,
.product-visuals,
.product-impact,
.product-faq,
.product-cta,
.product-roadmap {
  width: min(1200px, 90vw);
  margin: 0 auto 1.2rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
}

.product-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.3rem;
}

.product-panel p,
.feature-card p,
.impact-card p,
.faq-card p,
.roadmap-card p {
  color: var(--muted);
}

.product-checks {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
}

.product-checks span {
  display: block;
  padding-left: 1.25rem;
  position: relative;
}

.product-checks span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-metrics div {
  background: rgba(6, 30, 50, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
}

.product-metrics span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.product-problems {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.problem-card,
.feature-card,
.impact-card,
.faq-card,
.roadmap-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
}

.problem-card h3,
.feature-card h3,
.impact-card h3,
.faq-card h3,
.roadmap-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-flow {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.flow-step {
  background: rgba(5, 22, 36, 0.75);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.9rem;
}

.flow-step strong {
  color: var(--brand);
  display: block;
  margin-bottom: 0.35rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visual-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.75rem;
}

.visual-card img {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 22, 36, 0.82);
}

.visual-card p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.product-impact,
.product-faq,
.product-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-cta {
  text-align: center;
  background: linear-gradient(120deg, rgba(0, 88, 147, 0.2), rgba(248, 71, 71, 0.12));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.product-cta p {
  color: var(--muted);
}

.contact-card p {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(6, 20, 33, 0.72);
  color: var(--text);
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

@keyframes drift {
  from {
    transform: translateY(-12px) scale(0.95);
  }
  to {
    transform: translateY(14px) scale(1.05);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 960px) {
  .grid-section,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .references-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 0.9rem 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    display: none;
    flex-direction: column;
    width: 200px;
    padding: 0.75rem;
    background: rgba(3, 12, 24, 0.96);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.45rem;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: grid;
  }

  .product-layout,
  .product-metrics,
  .product-problems,
  .product-features,
  .flow-track,
  .product-visuals,
  .product-impact,
  .product-faq,
  .product-roadmap {
    grid-template-columns: 1fr;
  }

  .site-nav.open {
    display: flex;
  }

  .grid-section,
  .stats {
    grid-template-columns: 1fr;
  }

  .membership-badge {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-slider-track {
    animation: none;
  }
}
