* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(76, 0, 255, 0.12), transparent 40%),
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.10), transparent 35%),
    #070b14;
  color: #eef5ff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* LOVE MODAL */

.love-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.35s ease;
}

.love-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.love-modal {
  width: min(640px, calc(100% - 30px));
  background:
    linear-gradient(
      180deg,
      rgba(20, 28, 48, 0.96),
      rgba(10, 14, 24, 0.98)
    );
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 42px;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    0 0 40px rgba(180,90,255,0.08);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.love-overlay.active .love-modal {
  transform: scale(1);
}

.love-header {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 26px;
}

.love-content {
  line-height: 1.9;
  color: rgba(235,245,255,0.88);
}

.love-signature {
  margin-top: 24px;
  font-weight: 700;
}

.love-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: transparent;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* BACKGROUND */

.aurora {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,255,255,0.08), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(140,0,255,0.12), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(0,120,255,0.08), transparent 35%);
  animation: auroraMove 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -4;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -3;
}

.ambient1 {
  width: 280px;
  height: 280px;
  background: rgba(0, 200, 255, 0.10);
  top: 15%;
  left: 10%;
  animation: drift1 18s infinite alternate ease-in-out;
}

.ambient2 {
  width: 320px;
  height: 320px;
  background: rgba(140, 0, 255, 0.10);
  right: 10%;
  bottom: 15%;
  animation: drift2 20s infinite alternate ease-in-out;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(8, 14, 28, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand-wrap {
  position: relative;
  cursor: pointer;
}

.brand-glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(0,200,255,0.14), transparent 65%);
  filter: blur(18px);
  animation: pulseGlow 4s infinite ease-in-out;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.brand-symbol {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8ae6ff, #b56cff);
  box-shadow:
    0 0 18px rgba(0,200,255,0.22);
  animation:
    symbolRotate 8s linear infinite,
    symbolPulse 3s ease-in-out infinite;
}

.brand-text,
.brand-text-inline {
  font-weight: 900;
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, #8ae6ff, #ffffff, #b56cff, #8ae6ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s linear infinite;
}

.navlinks {
  display: flex;
  gap: 22px;
}

.navlinks a:hover {
  color: white;
}

/* HERO */

.hero {
  padding: 70px 0 30px;
}

.panel {
  position: relative;
  padding: 70px;
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(20,28,48,0.82),
      rgba(8,12,22,0.90)
    );
  border: 1px solid rgba(255,255,255,0.08);
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff, #8ae6ff, #b56cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main {
  font-size: 1.4rem;
}

.hero-sub,
.muted {
  color: rgba(220,235,255,0.72);
}

.chips {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* CARDS */

section {
  padding: 40px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card,
.ecosystem,
.legal,
.philo {
  background: rgba(14,20,36,0.72);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(18px);
}

.glowcard {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.glowcard:hover {
  box-shadow: 0 22px 50px rgba(0,200,255,0.16);
}

/* ECOSYSTEM */

.ecosystem-map {
  position: relative;
  min-height: 620px;
}

.eco-line {
  position: absolute;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.eco-line::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.7), transparent);
  animation: dataFlow 4s linear infinite;
}

.line-vertical-top {
  width: 3px;
  height: 150px;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
}

.line-horizontal {
  height: 3px;
  width: 60%;
  left: 20%;
  top: 220px;
}

.line-vertical-bottom {
  width: 3px;
  height: 220px;
  left: 50%;
  top: 220px;
  transform: translateX(-50%);
}

.eco-node {
  position: absolute;
  padding: 16px;
  border-radius: 20px;
  min-width: 180px;
  text-align: center;
  background: rgba(18,28,48,0.92);
}

.eco-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  background: rgba(10,14,24,0.95);
  padding: 14px;
  border-radius: 16px;
  transition: opacity 0.2s ease;
}

.eco-node:hover .eco-popup {
  opacity: 1;
}

.eco-dot {
  width: 18px;
  height: 18px;
  margin: 0 auto 12px;
  border-radius: 50%;
}

.eco-dot.online {
  background: #00d67a;
}

.eco-dot.warning {
  background: #ffb300;
}

.eco-dot.offline {
  background: #ff4d4d;
}

.eco-ai { top: 0; left: 50%; transform: translateX(-50%); }
.eco-smart { top: 170px; left: 0; }
.eco-core { top: 170px; left: 50%; transform: translateX(-50%); }
.eco-monitoring { top: 170px; right: 0; }
.eco-gaming { top: 430px; left: 50%; transform: translateX(-50%); }
.eco-bots { top: 540px; left: 50%; transform: translateX(-50%); }

.identity-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.identity-values span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0,200,255,0.08);
}

.footer {
  padding: 60px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footerlinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ANIMATIONS */

@keyframes auroraMove {
  from { transform: scale(1); }
  to { transform: scale(1.15) translate(40px,-20px); }
}

@keyframes gradientFlow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes pulseGlow {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes symbolRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes symbolPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes drift1 {
  from { transform: translate(0,0); }
  to { transform: translate(80px,-40px); }
}

@keyframes drift2 {
  from { transform: translate(0,0); }
  to { transform: translate(-60px,60px); }
}

@keyframes dataFlow {
  from { transform: translateX(-120px); }
  to { transform: translateX(900px); }
}

@media (max-width: 900px) {
  .navin,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ecosystem-map {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .eco-line {
    display: none;
  }

  .eco-node {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .eco-popup {
    position: relative;
    opacity: 1;
    transform: none;
    left: auto;
    bottom: auto;
    margin-top: 10px;
  }
}