:root {
  --bg-deep: #070a12;
  --bg-card: rgba(14, 20, 34, 0.76);
  --bg-card-hover: rgba(20, 29, 48, 0.88);
  --border-subtle: rgba(126, 243, 255, 0.14);
  --border-glow: rgba(0, 212, 245, 0.42);
  --cyan-bright: #7ef3ff;
  --cyan-core: #00d4f5;
  --cyan-deep: #0062a3;
  --gold-warm: #ffd88a;
  --gold-amber: #ff9d42;
  --text-main: #f2f6ff;
  --text-muted: #98a7c4;
  --text-dim: #63728f;
  --radius-lg: 22px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 174, 239, 0.14), transparent 42%),
    radial-gradient(circle at 82% 24%, rgba(255, 180, 92, 0.10), transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(0, 128, 192, 0.12), transparent 48%),
    linear-gradient(180deg, #060911 0%, #0b1120 52%, #070a12 100%);
}

/* Subtle architectural grid backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(126, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(126, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 80%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.78);
  border-bottom: 1px solid rgba(126, 243, 255, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 212, 245, 0.28);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 212, 245, 0.14);
  border: 1px solid rgba(126, 243, 255, 0.3);
  color: var(--cyan-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan-bright);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 212, 245, 0.2), rgba(0, 114, 188, 0.35));
  border: 1px solid rgba(126, 243, 255, 0.38);
  color: var(--text-main) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(0, 212, 245, 0.16);
}

.nav-cta:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 4px 22px rgba(0, 212, 245, 0.32);
}

/* Hero Section */
.hero {
  padding: 84px 0 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 245, 0.10);
  border: 1px solid rgba(126, 243, 255, 0.24);
  color: var(--cyan-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-warm);
  box-shadow: 0 0 10px var(--gold-warm);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #7ef3ff 52%, #ffd88a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00d4f5 0%, #0077c8 100%);
  color: #04101c;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 212, 245, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 212, 245, 0.48);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 14px;
  background: rgba(16, 24, 42, 0.78);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(24, 35, 60, 0.92);
  border-color: var(--border-glow);
}

.release-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(11, 17, 30, 0.72);
  border: 1px solid rgba(126, 243, 255, 0.12);
  max-width: fit-content;
}

.release-pill strong {
  color: var(--gold-warm);
}

/* Portal Showcase Card */
.portal-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 25, 44, 0.88), rgba(9, 13, 24, 0.94));
  border: 1px solid rgba(126, 243, 255, 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(0, 212, 245, 0.12);
  text-align: center;
}

.portal-emblem-wrap {
  width: 176px;
  height: 176px;
  margin: 0 auto 22px;
  border-radius: 38px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(126, 243, 255, 0.35), rgba(255, 216, 138, 0.25));
  box-shadow: 0 16px 44px rgba(0, 212, 245, 0.25);
}

.portal-emblem-wrap svg {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  display: block;
}

.portal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.portal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(126, 243, 255, 0.12);
  padding-top: 18px;
}

.stat-box {
  background: rgba(7, 11, 20, 0.6);
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(126, 243, 255, 0.08);
}

.stat-val {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--cyan-bright);
}

.stat-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Section Headers */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* Two Living Worlds */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.world-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.world-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.world-card.bund {
  background:
    radial-gradient(circle at 88% 16%, rgba(0, 212, 245, 0.16), transparent 48%),
    var(--bg-card);
}

.world-card.forest {
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 180, 92, 0.18), transparent 48%),
    var(--bg-card);
}

.world-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.world-card.bund .world-tag {
  background: rgba(0, 212, 245, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(126, 243, 255, 0.3);
}

.world-card.forest .world-tag {
  background: rgba(255, 180, 92, 0.16);
  color: var(--gold-warm);
  border: 1px solid rgba(255, 216, 138, 0.32);
}

.world-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.world-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.96rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--text-main);
}

.feature-list li::before {
  content: "✦";
  color: var(--cyan-bright);
  font-size: 0.85rem;
}

.world-card.forest .feature-list li::before {
  color: var(--gold-warm);
}

/* Companions Grid */
.companions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.companion-card {
  border-radius: var(--radius-md);
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.companion-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.companion-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  background: rgba(0, 212, 245, 0.14);
  color: var(--cyan-bright);
  border: 1px solid rgba(126, 243, 255, 0.28);
}

.companion-card:nth-child(2) .companion-avatar {
  background: rgba(255, 180, 92, 0.14);
  color: var(--gold-warm);
  border-color: rgba(255, 216, 138, 0.28);
}

.companion-card:nth-child(3) .companion-avatar {
  background: rgba(196, 145, 255, 0.14);
  color: #dbb8ff;
  border-color: rgba(196, 145, 255, 0.28);
}

.companion-card:nth-child(4) .companion-avatar {
  background: rgba(255, 122, 162, 0.14);
  color: #ff9ebb;
  border-color: rgba(255, 122, 162, 0.28);
}

.companion-card h4 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.companion-role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-bright);
  margin-bottom: 10px;
  display: block;
}

.companion-card p {
  font-size: 0.89rem;
  color: var(--text-muted);
}

/* Capabilities */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tech-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.tech-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Download Banner */
.download-banner {
  margin: 36px 0 80px;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 50%, rgba(0, 212, 245, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(14, 23, 42, 0.94), rgba(8, 12, 22, 0.96));
  border: 1px solid rgba(126, 243, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.download-banner h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-banner p {
  color: var(--text-muted);
  max-width: 540px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(126, 243, 255, 0.10);
  padding: 32px 0 48px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 36px;
  }
  .worlds-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .companions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .companions-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .download-banner {
    padding: 28px 22px;
  }
}
