:root {
  --black: #060608;
  --white: #F8F6F1;
  --teal: #00C896;
  --border: rgba(255, 255, 255, 0.07);
  --card: #0D0D1A;
  --muted: rgba(248, 246, 241, 0.45);
  --teal-deep: #0E5D4F;
  --teal-dim: rgba(0, 200, 150, 0.08);
  --util-bg: #0B2436;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  background: #EFF8F4;
  color: var(--white);
}

/* HINT */
.hint-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(6, 6, 8, 0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 300;
  pointer-events: none;
  transition: opacity 0.4s;
  text-align: center;
}

.hint-bar.hidden {
  opacity: 0;
}

.hint-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: hpulse 1.5s infinite;
}

@keyframes hpulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* SOLAR CANVAS */
#solarCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: none;
}

/* CURSOR */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  mix-blend-mode: difference;
  transition: transform 0.1s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 200, 150, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s, height 0.2s;
}

/* DETAIL PANEL */
.detail-panel {
  position: fixed;
  right: 0;
  top: 64px;
  bottom: 0;
  width: 380px;
  background: rgba(248, 246, 241, 0.97);
  border-left: 1px solid rgba(6, 6, 8, 0.08);
  backdrop-filter: blur(30px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.detail-panel.open {
  transform: translateX(0);
}

.panel-inner {
  padding: 90px 2rem 2rem 2rem;
  flex: 1;
}

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 6, 8, 0.05);
  border: 1px solid rgba(6, 6, 8, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(6, 6, 8, 0.5);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.panel-close:hover {
  background: rgba(6, 6, 8, 0.1);
  color: var(--black);
}

.panel-planet-ico {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.panel-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.85rem;
  margin-right: 0.5rem;
}

.panel-soon-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: none;
  background: rgba(245, 166, 35, 0.12);
  color: #F5A623;
  border: 1px solid rgba(245, 166, 35, 0.35);
  margin-bottom: 0.85rem;
}

.panel-soon-badge.show {
  display: inline-block;
}

.panel-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.panel-desc {
  font-size: 0.85rem;
  color: rgba(6, 6, 8, 0.65);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.subs-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(6, 6, 8, 0.45);
  margin-bottom: 0.65rem;
}

.subs-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 6, 8, 0.08);
  background:
    radial-gradient(120% 100% at 15% 15%, rgba(94, 234, 212, 0.9), transparent 60%),
    radial-gradient(100% 100% at 90% 10%, rgba(34, 211, 238, 0.75), transparent 55%),
    radial-gradient(120% 120% at 75% 85%, rgba(45, 212, 191, 0.85), transparent 60%),
    radial-gradient(100% 100% at 5% 90%, rgba(13, 148, 136, 0.9), transparent 55%),
    #2dd4bf;
  cursor: pointer;
  transition: all 0.25s;
}

.sub-item:hover {
  border-color: rgba(6, 6, 8, 0.15);
  transform: translateX(4px);
}

.sub-item-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(6, 6, 8, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sub-item-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
}

.sub-item-desc {
  font-size: 0.72rem;
  color: rgba(6, 6, 8, 0.6);
  margin-top: 1px;
  line-height: 1.4;
}

.panel-btn {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  text-decoration: none;
}

.panel-btn:hover {
  transform: translateY(-2px);
}

/* MOON TOOLTIP */
.moon-tip {
  position: fixed;
  background: rgba(13, 13, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  color: var(--white);
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.moon-tip.show {
  opacity: 1;
}

/* RESPONSIVE — tablet */
@media (max-width: 900px) {
  nav {
    padding: 0 1.5rem;
  }

  .detail-panel {
    width: 320px;
  }

  .hint-bar {
    bottom: 1.25rem;
    font-size: 0.68rem;
    padding: 0 1rem;
  }
}

/* RESPONSIVE — mobile */
@media (max-width: 600px) {
  .detail-panel {
    top: 56px;
    width: 100%;
  }

  .panel-inner {
    padding: 1.5rem;
  }

  .panel-title {
    font-size: 1.25rem;
  }

  .hint-bar {
    bottom: 1rem;
    font-size: 0.62rem;
    white-space: normal;
    max-width: 90%;
  }
}

/* Cursor: disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

  #solarCanvas,
  .nav-signup,
  .panel-close,
  .sub-item,
  .panel-btn {
    cursor: auto;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }
}

/* PAGE LOADER */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ecg {
  width: 380px;
  height: 100px;
}

.ecg-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecg-track {
  fill: none;
  stroke: rgba(248, 246, 241, 0.1);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ecg-pulse {
  fill: none;
  stroke: url(#ecgFade);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 78;
  stroke-dashoffset: 0;
  animation: ecgSweep 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 200, 150, 0.6));
}

@keyframes ecgSweep {
  to {
    stroke-dashoffset: -100;
  }
}

/* FOOTER (dark, matches contact.css/join-team.css/home.css) */
footer {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4.5rem 3rem 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8F6F1;
}

.footer-logo span {
  color: #00C896;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  line-height: 1.7;
  margin-top: 0.9rem;
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00C896;
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.5);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #00C896;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(248, 246, 241, 0.25);
}

.footer-paypal-form {
  display: inline-block;
}

.footer-paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8F6F1;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #060608;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-paypal-btn img {
  height: 16px;
  width: auto;
  display: block;
}

.footer-paypal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

.footer-paypal-btn-pro {
  background: #00C896;
  color: #060608;
}

.footer-paypal-btn-pro:hover {
  background: #00b085;
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.25);
}

.footer-paypal-btn-pro.is-unlocked {
  background: rgba(0, 200, 150, 0.15);
  color: #00C896;
  cursor: default;
  box-shadow: none;
}

.footer-paypal-btn-pro.is-unlocked:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  footer {
    padding: 3.5rem 1.5rem 0;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    justify-content: center;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
