/* =====================================================
   K-PLANET THEME — Design System & Components
   Colors from brand: navy #1A3055, orange #00E5FF → #8B5CF6
   ===================================================== */

:root {
  --lh-bg: #1A3055;
  --lh-bg-alt: #1E3A5F;
  --lh-bg-card: #243B5C;
  --lh-bg-footer: #12243F;
  --lh-accent: #8B5CF6;
  --lh-accent-2: #00E5FF;
  --lh-text: #FFFFFF;
  --lh-muted: #A0AEC0;
  --lh-border: rgba(255, 255, 255, 0.08);
  --lh-radius: 16px;
  --lh-radius-sm: 8px;
  --lh-font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --lh-container: 1200px;
  --lh-header-h: 85px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--lh-font);
  background: var(--lh-bg);
  color: var(--lh-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--lh-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--lh-radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--lh-accent), var(--lh-accent-2));
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-block { width: 100%; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--lh-accent), var(--lh-accent-2));
  color: #fff;
  margin-bottom: 16px;
}

.badge-outline {
  background: transparent;
  border: 1px solid rgba(255, 170, 0, 0.5);
  color: var(--lh-accent-2);
}

/* ---------- Cards ---------- */
.lion-card {
  background: var(--lh-bg-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius);
  padding: 32px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
}

.lion-card .card-icon {
  font-size: 36px;
  color: var(--lh-accent);
  margin-bottom: 16px;
}

.lion-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lion-card .card-sub {
  font-size: 14px;
  color: var(--lh-muted);
  margin-bottom: 16px;
}

.lion-card .price {
  margin: 12px 0 20px;
}

.lion-card .price .from {
  display: block;
  font-size: 13px;
  color: var(--lh-muted);
}

.lion-card .price .amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--lh-accent-2);
  line-height: 1.2;
}

.lion-card .price .period {
  font-size: 14px;
  color: var(--lh-muted);
  font-weight: 500;
}

.lion-card .features {
  flex: 1;
  margin: 16px 0 24px;
  text-align: left;
}

.lion-card .features li {
  font-size: 14px;
  color: #E2E8F0;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.lion-card .features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lh-accent);
  font-weight: 700;
}

.lion-card.popular {
  border: 1.5px solid var(--lh-accent);
  position: relative;
}

.lion-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--lh-accent), var(--lh-accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lh-border);
  height: var(--lh-header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--lh-container);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo span { color: var(--lh-accent-2); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-main > li { position: relative; }

.nav-main > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: color 0.25s ease;
}

.nav-main > li > a:hover,
.nav-main > li:hover > a { color: var(--lh-accent-2); }

.nav-main .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0F1C2E;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 8px 0;
  z-index: 100;
}

.nav-main > li:hover .submenu { display: block; }

.nav-main .submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #E2E8F0;
}

.nav-main .submenu a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--lh-accent-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-right: 8px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lh-muted);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-switch a .flag {
  font-size: 16px;
  line-height: 1;
}

.lang-switch a.active {
  color: var(--lh-accent-2);
  border-color: rgba(255, 170, 0, 0.35);
  background: rgba(139, 92, 246, 0.08);
}

.lang-switch a:hover {
  color: var(--lh-accent-2);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}

.section-alt { background: var(--lh-bg-alt); }

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

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--lh-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(91, 141, 239, 0.15) 0%, transparent 45%),
    linear-gradient(160deg, #1A3055 0%, #152A48 40%, #12243F 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

/* Soft galaxy glow behind hero visual */
.hero::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 12%),
    radial-gradient(ellipse 70% 45% at 50% 50%, rgba(139, 92, 246, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 90% 55% at 50% 55%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: galaxy-pulse 12s ease-in-out infinite alternate;
}

@keyframes galaxy-pulse {
  from { opacity: 0.75; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.04); }
}

.hero .container,
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--lh-accent), var(--lh-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .lead {
  font-size: 18px;
  color: var(--lh-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--lh-muted);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .shield {
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.25), transparent 60%),
              radial-gradient(circle at 60% 60%, rgba(139, 92, 246, 0.2), transparent 50%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.2), 0 0 120px rgba(139, 92, 246, 0.12);
}

/* ---------- Domain Search ---------- */
.domain-search-box {
  background: var(--lh-bg-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius);
  padding: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.domain-form {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.domain-form input {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  background: #1A3055;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: 12px 0 0 12px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.domain-form input:focus {
  border-color: var(--lh-accent);
}

.domain-form button {
  height: 56px;
  padding: 0 28px;
  border-radius: 0 12px 12px 0;
  border: none;
  background: linear-gradient(90deg, var(--lh-accent), var(--lh-accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.tld-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tld-pills span {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--lh-border);
  font-size: 13px;
  color: var(--lh-muted);
}

.tld-pills strong { color: var(--lh-accent-2); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lh-accent), var(--lh-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

/* ---------- Testimonials ---------- */
.testimonial .quote {
  font-size: 15px;
  color: #E2E8F0;
  margin-bottom: 20px;
  flex: 1;
}

.testimonial .author {
  font-size: 14px;
  font-weight: 600;
}

.testimonial .role {
  font-size: 13px;
  color: var(--lh-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--lh-bg-footer);
  padding: 70px 0 0;
  border-top: 1px solid var(--lh-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--lh-muted);
  margin: 16px 0 20px;
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  color: var(--lh-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s;
}

.socials a:hover { color: var(--lh-accent-2); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--lh-muted);
  padding: 5px 0;
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--lh-accent-2); }

.footer-col .contact-line {
  font-size: 14px;
  color: var(--lh-muted);
  padding: 5px 0;
}

.footer-bottom {
  border-top: 1px solid var(--lh-border);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--lh-muted);
}

.footer-bottom a {
  color: var(--lh-muted);
  margin-left: 16px;
}

.footer-bottom a:hover { color: var(--lh-accent-2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 60px 0 50px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--lh-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 17px;
}

/* ---------- Legal content ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--lh-accent-2);
}

.legal-content p,
.legal-content li {
  color: var(--lh-muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li {
  list-style: disc;
  margin-left: 8px;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--lh-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--lh-bg-card);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius-sm);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--lh-accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-main { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-actions .lang-switch { display: flex; }

  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--lh-header-h);
    left: 0;
    right: 0;
    background: var(--lh-bg);
    border-bottom: 1px solid var(--lh-border);
    padding: 16px 20px 28px;
    align-items: stretch;
    max-height: calc(100vh - var(--lh-header-h));
    overflow-y: auto;
  }

  .nav-main.open > li > a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--lh-border);
  }

  .nav-main.open .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #0F1C2E;
    border-radius: 0;
  }

  .nav-main.open > li.open .submenu { display: block; }

  .nav-main.open .mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .nav-main.open .mobile-ctas .btn { display: flex; width: 100%; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .shield { width: 220px; font-size: 72px; }

  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .steps { grid-template-columns: 1fr; }

  .domain-form { flex-direction: column; gap: 10px; }
  .domain-form input,
  .domain-form button {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
  }

  .lion-card:hover { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* Mobile nav helper when JS adds .open on header */
.site-header { position: sticky; }


/* ---------- Cookie consent bar ---------- */
#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(18, 32, 51, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  color: var(--lh-muted);
  font-size: 14px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#cookie-bar.cookie-bar--hide {
  transform: translateY(100%);
  opacity: 0;
}

#cookie-bar .cookie-inner {
  max-width: var(--lh-container);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#cookie-bar p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  line-height: 1.5;
}

#cookie-bar a {
  color: var(--lh-accent-2);
  text-decoration: underline;
}

#cookie-bar #cookie-accept {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
}

@media (max-width: 767px) {
  #cookie-bar .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  #cookie-bar #cookie-accept {
    width: 100%;
  }
}


#cookie-bar .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#cookie-bar .cookie-actions .btn {
  padding: 10px 16px;
  font-size: 14px;
  white-space: nowrap;
}

#cookie-bar .cookie-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

@media (max-width: 767px) {
  #cookie-bar .cookie-actions {
    width: 100%;
  }
  #cookie-bar .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }
}


/* Photo cards */
.card-media {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin: -24px -24px 16px -24px;
  width: calc(100% + 48px);
  max-width: none;
}
.lion-card.has-media {
  padding-top: 0;
  overflow: hidden;
}
.section-photo {
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.section-photo img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}
.hero-visual .shield {
  background: url('../images/server-racks.jpg') center/cover;
  color: transparent;
  text-shadow: none;
  border: 2px solid rgba(255,170,0,0.35);
  box-shadow: 0 0 40px rgba(0,229,255,0.25);
  position: relative;
}
.hero-visual .shield::after {
  content: '🦁';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: rgba(10,22,40,0.45);
  border-radius: inherit;
}


.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: #fff;
}
.logo-text span {
  background: linear-gradient(90deg, #8B5CF6, #00E5FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* When image logo includes wordmark, hide duplicate text on desktop optional */

@media (max-width: 400px) {
  .logo-img { height: 32px; }
}





.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}








/* logo */
.logo { display:flex!important;align-items:center;gap:10px;flex-shrink:0; }
.logo-img,.logo-img--badge { width:40px!important;height:40px!important;border-radius:50%;object-fit:cover; }
.logo-text { display:inline-block!important;font-weight:800;font-size:1.15rem;color:#fff; }
.logo-text span { background:linear-gradient(90deg,#00E5FF,#8B5CF6);-webkit-background-clip:text;background-clip:text;color:transparent; }
.hero-logo { width:min(380px,85vw)!important;height:auto!important;border-radius:0!important;object-fit:contain!important;border:none!important;filter:drop-shadow(0 8px 32px rgba(0,229,255,0.35)); }


/* === Header v6 === */
.nav-main > li > a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  padding: 12px 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2;
}
.nav-main > li > a .caret {
  font-size: 10px;
  opacity: 0.8;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 6px 10px !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lh-muted);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.lang-switch a .flag {
  font-size: 16px;
  line-height: 1;
}
.lang-switch a .lang-code {
  letter-spacing: 0.04em;
}
.lang-switch a.active {
  background: rgba(255,107,0,0.2);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,170,0,0.35);
}
.lang-switch a:hover {
  color: #fff;
}
@media (max-width: 1200px) {
  .nav-main > li > a {
    padding: 10px 8px !important;
    font-size: 14px !important;
  }
}


/* === Mobile menu harden v7 === */
.site-header { position: sticky; top: 0; z-index: 1000; }
.header-inner { position: relative; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .menu-toggle { display: block !important; order: 3; }
  .header-inner { flex-wrap: nowrap; }
  .logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .nav-main { order: 4; }
  .nav-main.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #1A3055;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 16px 24px;
    max-height: min(80vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .nav-main.open > li > a {
    padding: 14px 8px !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    justify-content: space-between;
  }
  .nav-main.open .submenu a {
    padding: 12px 16px;
    font-size: 15px;
  }
  .nav-main.open .mobile-ctas {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .nav-main.open .mobile-ctas .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .header-actions .btn { display: none !important; }
  .hero-logo { width: min(280px, 80vw) !important; }
}


/* === Logo + flags v8 === */
.logo-img,
.logo-img--badge {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  border-radius: 50%;
  object-fit: contain !important;
  object-position: center;
  border: none !important;
  background: transparent !important;
}
.logo-text {
  font-size: 1.25rem !important;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 10px !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #A0AEC0;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.lang-switch a .flag-img {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.lang-switch a .lang-code {
  letter-spacing: 0.03em;
}
.lang-switch a.active {
  background: rgba(255,107,0,0.22);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,170,0,0.4);
}
.lang-switch a:hover { color: #fff; }


/* === Logo size v9 === */
.logo {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  flex-shrink: 0;
}
.logo-img,
.logo-img--badge {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: none !important;
  background: transparent !important;
  display: block !important;
}
.logo-text {
  display: inline-block !important;
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  letter-spacing: 0.3px;
  color: #fff !important;
  line-height: 1;
}
.logo-text span {
  background: linear-gradient(90deg, #8B5CF6, #00E5FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 767px) {
  .logo-img, .logo-img--badge {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }
  .logo-text { font-size: 1.35rem !important; }
}


/* Mobile submenu: only visible when parent .open */
@media (max-width: 1024px) {
  .nav-main .submenu {
    display: none !important;
    pointer-events: none;
  }
  .nav-main > li.open > .submenu {
    display: block !important;
    pointer-events: auto;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: #0F1C2E !important;
    padding: 4px 0 8px 8px !important;
  }
  .nav-main > li > a {
    cursor: pointer;
  }
}

/* === Mobile center + no side bleed v11 === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0 auto;
}
.container,
.header-inner {
  width: 100%;
  max-width: var(--lh-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
}
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}
.hero-inner,
.section-photo,
.grid-2, .grid-3, .grid-4, .grid-5,
.pricing-grid, .cards {
  max-width: 100%;
}
@media (max-width: 767px) {
  .container,
  .header-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .hero {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-inner {
    padding-left: 0;
    padding-right: 0;
    justify-items: center;
  }
  .hero-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
  }
  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }
  .section-photo {
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
  }
  .section-photo img {
    width: 100%;
    display: block;
  }
}

/* === Header layout FINAL v12 === */
:root {
  --lh-header-h: 72px;
}
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  height: var(--lh-header-h) !important;
  min-height: var(--lh-header-h);
  max-height: var(--lh-header-h);
  display: flex !important;
  align-items: center !important;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: visible;
}
.header-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  height: var(--lh-header-h) !important;
  box-sizing: border-box !important;
}
.logo {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  order: 0 !important;
  text-decoration: none !important;
}
.logo-img,
.logo-img--badge {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  display: block !important;
  border: none !important;
}
.logo-text {
  display: inline-block !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  color: #fff !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.logo-text span {
  background: linear-gradient(90deg, #8B5CF6, #00E5FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-main {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  order: 0 !important;
  position: static !important;
}
.nav-main > li {
  position: relative;
  flex: 0 0 auto;
}
.nav-main > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.2 !important;
}
.header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  order: 0 !important;
  margin-left: 0 !important;
}
.menu-toggle {
  display: none !important;
}
@media (max-width: 1024px) {
  .menu-toggle {
    display: block !important;
    order: 3 !important;
    margin-left: 8px;
  }
  .logo { order: 1 !important; }
  .header-actions { order: 2 !important; margin-left: auto !important; }
  .nav-main {
    display: none !important;
    order: 4 !important;
  }
  .nav-main.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: var(--lh-header-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #1A3055 !important;
    padding: 8px 16px 24px !important;
    max-height: min(80vh, 640px);
    overflow-y: auto;
    z-index: 999;
  }
  .header-actions .btn {
    display: none !important;
  }
}

/* === Align left v13 === */
.header-inner {
  justify-content: flex-start !important;
  gap: 20px !important;
  padding-left: 12px !important;
  padding-right: 16px !important;
  max-width: 100% !important;
}
.logo {
  margin-right: 4px !important;
}
.nav-main {
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
}
.header-actions {
  margin-left: auto !important;
}
.container {
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero .container,
.hero-inner {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
@media (max-width: 1024px) {
  .header-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .nav-main.open {
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: left !important;
    align-items: stretch !important;
  }
  .nav-main.open > li > a {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}
@media (min-width: 1280px) {
  .header-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* === Hero balance v14 === */
.hero {
  width: 100%;
}
.hero .container,
.hero-inner {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
}
.hero-inner {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  align-items: center !important;
  gap: 40px !important;
  text-align: left !important;
}
.hero-content {
  text-align: left !important;
  justify-self: start;
  max-width: 560px;
}
.hero-visual {
  justify-self: end !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding-right: 8px;
}
.hero-logo { width: auto; }
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    gap: 28px !important;
  }
  .hero-content {
    text-align: center !important;
    justify-self: center;
    max-width: 100%;
  }
  .hero-visual {
    justify-self: center !important;
    justify-content: center !important;
    order: -1;
    padding-right: 0;
  }
  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center !important;
  }
}

/* === Mobile menu box v15 === */
@media (max-width: 1024px) {
  .site-header {
    overflow: visible !important;
  }
  .header-inner {
    overflow: visible !important;
  }
  .nav-main.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--lh-header-h, 72px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 12px 16px 28px !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    background: #1A3055 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45) !important;
    max-height: calc(100vh - var(--lh-header-h, 72px)) !important;
    max-height: calc(100dvh - var(--lh-header-h, 72px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 1001 !important;
    box-sizing: border-box !important;
  }
  .nav-main.open > li {
    width: 100% !important;
  }
  .nav-main.open > li > a {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    font-size: 16px !important;
  }
  .nav-main.open .submenu {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nav-main.open .submenu a {
    padding: 12px 16px !important;
  }
  body.nav-open {
    overflow: visible !important;
  }
}

/* === Hamburger inside screen v16 === */
@media (max-width: 1024px) {
  .header-inner {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .logo {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    max-width: calc(100% - 140px) !important;
  }
  .logo-text {
    font-size: 1.05rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 6px !important;
  }
  .header-actions .btn {
    display: none !important;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    order: 3 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .lang-switch {
    transform: scale(0.92);
    transform-origin: center right;
  }
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .site-header {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

/* === Logo enlarge ONLY v17 === */
.logo-img,
.logo-img--badge {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  object-fit: contain !important;
}
.logo-text {
  font-size: 1.35rem !important;
}
@media (max-width: 1024px) {
  .logo-img,
  .logo-img--badge {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
  .logo-text {
    font-size: 1.15rem !important;
  }
}

/* === Header fit long labels v20 === */
.header-inner {
  overflow: visible !important;
  min-width: 0 !important;
}
.nav-main {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: visible !important;
}
.nav-main > li > a {
  padding: 10px 11px !important;
  font-size: 14.5px !important;
}
.header-actions {
  flex-shrink: 0 !important;
}
.header-actions .btn {
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
}
.logo {
  flex-shrink: 0 !important;
}
@media (max-width: 1280px) {
  .nav-main > li > a {
    padding: 8px 6px !important;
    font-size: 12.5px !important;
  }
  .header-actions .btn-outline {
    display: none !important; /* keep Get started, hide Client Area on mid width */
  }
}
@media (max-width: 1100px) {
  .nav-main > li > a {
    padding: 8px 5px !important;
    font-size: 12px !important;
  }
}

/* === Menu font restore v21 === */
.nav-main > li > a {
  padding: 10px 11px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
}
@media (max-width: 1280px) {
  .nav-main > li > a {
    padding: 9px 8px !important;
    font-size: 13.5px !important;
  }
}
@media (max-width: 1100px) {
  .nav-main > li > a {
    padding: 8px 6px !important;
    font-size: 13px !important;
  }
}

/* === Submenu visible v22 === */
.site-header {
  overflow: visible !important;
}
.header-inner {
  overflow: visible !important;
}
.nav-main {
  overflow: visible !important;
}
.nav-main > li {
  position: relative !important;
}
.nav-main > li > .submenu {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 240px !important;
  background: #0F1C2E !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4) !important;
  padding: 8px 0 !important;
  z-index: 2000 !important;
}
.nav-main > li:hover > .submenu,
.nav-main > li:focus-within > .submenu {
  display: block !important;
}
.nav-main > li > .submenu a {
  display: block !important;
  padding: 10px 18px !important;
  color: #E2E8F0 !important;
  white-space: nowrap !important;
  font-size: 14px !important;
}
.nav-main > li > .submenu a:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #fff !important;
}
/* Mobile: only when li.open */
@media (max-width: 1024px) {
  .nav-main > li > .submenu {
    display: none !important;
    position: static !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #0F1C2E !important;
  }
  .nav-main > li.open > .submenu,
  .nav-main.open > li.open > .submenu {
    display: block !important;
  }
  .nav-main > li:hover > .submenu {
    display: none !important; /* don't use hover on touch */
  }
  .nav-main.open > li.open > .submenu {
    display: block !important;
  }
}


/* ========== SPACE SCENE (FINAL) ========== */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050814 url('../images/galaxy-bg.jpg') center center / cover no-repeat;
  animation: galaxy-drift 90s ease-in-out infinite alternate;
}
.stars::before,
.stars::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 2px;
  background: transparent;
  border-radius: 50%;
  box-shadow:
    40px 80px #fff, 120px 40px #fff, 200px 180px #fff, 280px 30px #fff,
    360px 220px #fff, 440px 90px #fff, 520px 300px #fff, 600px 50px #fff,
    680px 160px #fff, 760px 280px #fff, 840px 20px #fff, 920px 200px #fff,
    1000px 110px #fff, 1080px 260px #fff, 80px 350px #fff, 300px 480px #fff,
    580px 450px #fff, 880px 540px #fff, 150px 250px #c7d2e0, 500px 380px #c7d2e0,
    850px 350px #c7d2e0, 400px 60px #fff, 750px 400px #fff, 250px 700px #fff;
  animation: twinkle 3s infinite ease-in-out;
}
.stars::after {
  width: 3px; height: 3px;
  box-shadow:
    90px 100px #fff, 250px 50px #fff, 420px 190px #fff, 590px 80px #fff,
    770px 240px #fff, 950px 30px #fff, 160px 400px #fff, 610px 510px #fff,
    700px 300px #c7d2e0, 200px 280px #fff;
  animation: twinkle 4.5s infinite ease-in-out reverse;
}
@keyframes galaxy-drift {
  from { transform: scale(1.05) translate(0,0); }
  to   { transform: scale(1.1) translate(-2%,1%); }
}
@keyframes twinkle {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.site-header, .hero, .section, .site-footer, .page-hero {
  position: relative;
  z-index: 1;
}
.site-header {
  background: rgba(5, 8, 20, 0.9) !important;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

/* --- PERFECT CIRCLE EARTH --- */
.hero-visual {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero-planet-wrap {
  position: relative !important;
  width: 420px !important;
  height: 420px !important;
  max-width: 80vw !important;
  max-height: 80vw !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.earth-system {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 320px !important;
  height: 320px !important;
  max-width: 72vw !important;
  max-height: 72vw !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  aspect-ratio: 1 / 1 !important;
}
.hero-earth {
  display: block !important;
  width: 320px !important;
  height: 320px !important;
  max-width: 72vw !important;
  max-height: 72vw !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  -webkit-clip-path: circle(50% at 50% 50%) !important;
  filter: drop-shadow(0 0 28px rgba(80, 160, 255, 0.45)) !important;
  animation: earth-float 8s ease-in-out infinite alternate !important;
  position: relative !important;
  z-index: 2 !important;
  /* kill any stretch */
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}
@keyframes earth-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.moon-orbit {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 420px !important;
  height: 420px !important;
  margin: -160px 0 0 -160px !important;
  border-radius: 50% !important;
  animation: moon-orbit 18s linear infinite !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
.hero-moon {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 58px !important;
  height: 58px !important;
  margin-left: -29px !important;
  margin-top: -6px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  clip-path: circle(50%) !important;
  filter: drop-shadow(0 0 8px rgba(200,210,230,0.5)) !important;
  animation: moon-counter 18s linear infinite !important;
}
@keyframes moon-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes moon-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.hero-planet-wrap::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 1;
}
.hero-planet-wrap::after { content: none !important; }
/* sun enabled */

.hero-ship {
  position: absolute !important;
  width: 150px !important;
  height: auto !important;
  left: 0 !important;
  bottom: 10% !important;
  z-index: 4 !important;
  animation: ship-fly 22s linear infinite !important;
  filter: drop-shadow(0 0 10px rgba(0,229,255,0.4)) !important;
  pointer-events: none !important;
}
@keyframes ship-fly {
  0%   { transform: translate(0,0) rotate(-6deg); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(70%, -40%) rotate(6deg); opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(110%, 10%) rotate(-8deg); opacity: 0; }
}

@media (max-width: 767px) {
  .hero-planet-wrap {
    width: 300px !important;
    height: 300px !important;
  }
  .earth-system,
  .hero-earth {
    width: 220px !important;
    height: 220px !important;
    max-width: 62vw !important;
    max-height: 62vw !important;
  }
  .moon-orbit {
    width: 300px !important;
    height: 300px !important;
    margin: -150px 0 0 -150px !important;
  }
  .hero-moon {
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
  }
  .hero-ship { width: 100px !important; }
  .hero-planet-wrap::before {
    width: 280px; height: 280px; margin: -140px 0 0 -140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars, .hero-earth, .moon-orbit, .hero-moon, .hero-ship {
    animation: none !important;
  }
}

/* --- Hero extras: sun, nebula, distant planets, shooting star, NASA ship --- */
.hero-sun {
  display: block !important;
  position: absolute !important;
  top: 2% !important;
  right: 0 !important;
  width: 72px !important;
  height: 72px !important;
  z-index: 0 !important;
  opacity: 0.85 !important;
  filter: blur(0.3px) drop-shadow(0 0 20px rgba(255, 200, 100, 0.45)) !important;
  animation: sun-soft 7s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}
@keyframes sun-soft {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 0.95; transform: scale(1.06); }
}

.hero-nebula {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(0, 180, 255, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: nebula-breathe 12s ease-in-out infinite alternate;
}
@keyframes nebula-breathe {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

.hero-distant {
  position: absolute;
  top: 8%;
  left: 0;
  width: 55%;
  height: auto;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: distant-drift 40s ease-in-out infinite alternate;
}
@keyframes distant-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(6px, -8px); }
}

.shooting-star {
  position: absolute;
  top: 18%;
  left: -10%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  border-radius: 2px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  animation: shoot 11s linear infinite;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.shooting-star::after {
  content: "";
  position: absolute;
  right: 0;
  top: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}
@keyframes shoot {
  0%, 78% { opacity: 0; transform: translate(0, 0) rotate(25deg); }
  80% { opacity: 1; transform: translate(0, 0) rotate(25deg); }
  92% { opacity: 1; transform: translate(280px, 90px) rotate(25deg); }
  95%, 100% { opacity: 0; transform: translate(320px, 105px) rotate(25deg); }
}

.hero-ship {
  width: 150px !important;
  height: auto !important;
}

/* Moon orbit — radius large enough to clear Earth (320px earth + margin) */
.moon-orbit {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 460px !important;
  height: 460px !important;
  margin: -230px 0 0 -230px !important;
  border-radius: 50% !important;
  animation: moon-orbit 22s linear infinite !important;
  z-index: 3 !important;
  pointer-events: none !important;
  /* keep circular path — no scale transforms */
}
.hero-moon {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 52px !important;
  height: 52px !important;
  margin-left: -26px !important;
  margin-top: -26px !important; /* center on orbit path */
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  clip-path: circle(50%) !important;
  filter: drop-shadow(0 0 8px rgba(200,210,230,0.5)) !important;
  animation: moon-counter 22s linear infinite !important;
  /* never scale */
  transform-origin: center center !important;
}
@keyframes moon-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes moon-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* denser CSS stars */
.stars::before {
  box-shadow:
    20px 40px #fff, 60px 120px #fff, 100px 20px #e0e7ff, 140px 200px #fff,
    180px 80px #fff, 220px 300px #c7d2e0, 260px 50px #fff, 300px 180px #fff,
    340px 260px #fff, 380px 30px #e0e7ff, 420px 150px #fff, 460px 320px #fff,
    500px 90px #fff, 540px 210px #c7d2e0, 580px 40px #fff, 620px 280px #fff,
    660px 130px #fff, 700px 350px #fff, 740px 70px #e0e7ff, 780px 190px #fff,
    820px 250px #fff, 860px 15px #fff, 900px 160px #c7d2e0, 940px 310px #fff,
    980px 100px #fff, 1020px 230px #fff, 1060px 55px #fff, 1100px 290px #e0e7ff,
    50px 400px #fff, 150px 450px #fff, 250px 500px #c7d2e0, 350px 420px #fff,
    450px 480px #fff, 550px 520px #fff, 650px 440px #e0e7ff, 750px 510px #fff,
    850px 470px #fff, 950px 530px #fff, 1050px 410px #fff, 1150px 490px #c7d2e0,
    80px 600px #fff, 200px 650px #fff, 400px 620px #fff, 600px 680px #e0e7ff,
    800px 640px #fff, 1000px 700px #fff, 1200px 120px #fff, 1300px 400px #fff !important;
  animation: twinkle 2.6s infinite ease-in-out !important;
}
.stars::after {
  box-shadow:
    90px 100px #fff, 250px 50px #fff, 420px 190px #fff, 590px 80px #fff,
    770px 240px #fff, 950px 30px #fff, 160px 400px #fff, 610px 510px #fff,
    700px 300px #c7d2e0, 200px 280px #fff, 1100px 180px #fff, 350px 600px #fff,
    880px 700px #e0e7ff, 50px 250px #fff, 500px 100px #fff !important;
  animation: twinkle 4s infinite ease-in-out reverse !important;
}

/* space noise overlay on hero only */
.hero-planet-wrap {
  overflow: visible !important;
}
.hero-noise {
  position: absolute;
  inset: -30%;
  background: url('../images/space-noise.png');
  background-size: 180px 180px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 6;
  animation: noise-shift 8s steps(6) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0,0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
  100% { transform: translate(0,0); }
}

.hero-sun {
  width: 88px !important;
  height: 88px !important;
  opacity: 0.9 !important;
  filter: drop-shadow(0 0 24px rgba(255, 190, 80, 0.55)) !important;
}
.hero-distant {
  opacity: 0.75 !important;
  width: 60% !important;
}

@media (max-width: 767px) {
  .moon-orbit {
    width: 300px !important;
    height: 300px !important;
    margin: -150px 0 0 -150px !important;
  }
  .hero-moon {
    width: 36px !important;
    height: 36px !important;
    margin-left: -18px !important;
    margin-top: -18px !important;
  }
}

/* === STARS VISIBLE FIX v18 === */
.stars {
  z-index: 0 !important;
  background-color: #050814 !important;
  background-image: url('../images/galaxy-bg.jpg?v=18') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
/* bright CSS stars ABOVE galaxy image (same element, pseudo on top) */
.stars::before {
  width: 3px !important;
  height: 3px !important;
  opacity: 1 !important;
  animation: twinkle 2.2s infinite ease-in-out !important;
  box-shadow:
    30px 60px #fff, 90px 30px #fff, 150px 140px #fff, 210px 20px #fff,
    270px 180px #fff, 330px 70px #fff, 390px 220px #fff, 450px 40px #fff,
    510px 160px #fff, 570px 250px #fff, 630px 15px #fff, 690px 190px #fff,
    750px 100px #fff, 810px 230px #fff, 870px 55px #fff, 930px 170px #fff,
    990px 90px #fff, 1050px 210px #fff, 1110px 35px #fff, 50px 300px #fff,
    120px 380px #fff, 200px 450px #fff, 280px 350px #fff, 360px 420px #fff,
    440px 500px #fff, 520px 360px #fff, 600px 480px #fff, 680px 400px #fff,
    760px 520px #fff, 840px 370px #fff, 920px 460px #fff, 1000px 340px #fff,
    80px 550px #fff, 180px 600px #fff, 300px 580px #fff, 420px 640px #fff,
    540px 560px #fff, 660px 620px #fff, 780px 590px #fff, 900px 650px #fff,
    1020px 570px #fff, 40px 100px #e8eeff, 400px 80px #fff, 800px 120px #fff,
    1100px 300px #fff, 200px 200px #fff, 600px 200px #fff, 950px 280px #fff !important;
}
.stars::after {
  width: 4px !important;
  height: 4px !important;
  opacity: 1 !important;
  box-shadow:
    70px 90px #fff, 200px 40px #fff, 380px 160px #fff, 550px 60px #fff,
    720px 200px #fff, 900px 25px #fff, 140px 320px #fff, 480px 400px #fff,
    650px 450px #fff, 850px 380px #fff, 100px 500px #fff, 350px 550px #fff,
    580px 600px #fff, 820px 540px #fff, 1050px 150px #fff, 250px 250px #fff !important;
}

/* Hero must not cover stars with solid paint */
.hero {
  background: transparent !important;
  background-color: transparent !important;
}
.hero .container,
.hero-inner {
  background: transparent !important;
}

/* sections: slight transparency so galaxy/stars peek */
.section {
  background-color: rgba(10, 18, 36, 0.82) !important;
}
.section-alt {
  background-color: rgba(8, 14, 28, 0.88) !important;
}

/* Extra star field only in hero visual area */
.hero-planet-wrap::after {
  content: "" !important;
  position: absolute !important;
  inset: -40% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 60%, #fff, transparent),
    radial-gradient(2px 2px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 70% 40%, #e0e7ff, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent),
    radial-gradient(1px 1px at 20% 80%, #fff, transparent),
    radial-gradient(2px 2px at 60% 85%, #fff, transparent),
    radial-gradient(1px 1px at 40% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, #fff, transparent),
    radial-gradient(1px 1px at 15% 45%, #e0e7ff, transparent);
  opacity: 0.9;
  animation: twinkle 3s infinite ease-in-out;
}

/* === HERO TEXT + ROUND STARS v19 === */
.hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 0 40px rgba(0, 180, 255, 0.15) !important;
}
.hero-content h1 em {
  background: linear-gradient(90deg, #7DD3FC, #C4B5FD, #67E8F9) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.hero-content .lead {
  color: #E8EEF8 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  text-shadow: 0 1px 14px rgba(0,0,0,0.65), 0 0 2px rgba(0,0,0,0.4) !important;
  max-width: 520px !important;
  opacity: 1 !important;
}
.hero-trust {
  color: #B8C5D6 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5) !important;
}

/* Replace square box-shadow stars with circular radial-gradients */
.stars::before,
.stars::after {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 15% 40%, #fff, transparent),
    radial-gradient(2px 2px at 22% 8%, #fff, transparent),
    radial-gradient(1px 1px at 28% 55%, #e8eeff, transparent),
    radial-gradient(1.5px 1.5px at 35% 22%, #fff, transparent),
    radial-gradient(2px 2px at 42% 70%, #fff, transparent),
    radial-gradient(1px 1px at 48% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #e8eeff, transparent),
    radial-gradient(2px 2px at 62% 80%, #fff, transparent),
    radial-gradient(1px 1px at 68% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 75% 60%, #fff, transparent),
    radial-gradient(2px 2px at 82% 18%, #fff, transparent),
    radial-gradient(1px 1px at 88% 50%, #e8eeff, transparent),
    radial-gradient(1.5px 1.5px at 93% 75%, #fff, transparent),
    radial-gradient(2px 2px at 5% 65%, #fff, transparent),
    radial-gradient(1px 1px at 12% 85%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 25% 92%, #fff, transparent),
    radial-gradient(2px 2px at 40% 5%, #fff, transparent),
    radial-gradient(1px 1px at 58% 90%, #e8eeff, transparent),
    radial-gradient(1.5px 1.5px at 70% 8%, #fff, transparent),
    radial-gradient(2px 2px at 85% 88%, #fff, transparent),
    radial-gradient(1px 1px at 95% 35%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 33% 38%, #fff, transparent),
    radial-gradient(1px 1px at 47% 62%, #fff, transparent),
    radial-gradient(2px 2px at 78% 42%, #fff, transparent) !important;
  background-repeat: repeat !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  animation: twinkle 3s infinite ease-in-out !important;
  opacity: 0.95 !important;
}
.stars::after {
  background-image:
    radial-gradient(2px 2px at 10% 25%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 60%, #fff, transparent),
    radial-gradient(2.5px 2.5px at 38% 18%, #fff, transparent),
    radial-gradient(1px 1px at 52% 48%, #e8eeff, transparent),
    radial-gradient(2px 2px at 66% 72%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 28%, #fff, transparent),
    radial-gradient(2px 2px at 90% 55%, #fff, transparent),
    radial-gradient(1px 1px at 14% 78%, #fff, transparent),
    radial-gradient(2px 2px at 45% 88%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 12%, #fff, transparent) !important;
  animation: twinkle 4.2s infinite ease-in-out reverse !important;
  opacity: 0.85 !important;
}

/* kill square star field on hero-planet-wrap if any */
.hero-planet-wrap::after {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 40% 55%, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 70% 15%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(232,238,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 25% 80%, rgba(255,255,255,0.85), transparent) !important;
  box-shadow: none !important;
}

