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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}


:root {
  /* Brand core */
  --fire: #ff6a00;
  --fire-soft: #ff9660;
  --ice: #0099ff;
  --ice-soft: #6cc7ff;

  /* Light theme */
  --color-bg: #ffffff;
  --color-bg-elevated: #f6f7fb;
  --color-bg-soft: #f1f3f7;
  --color-border: #dde1eb;
  --color-text: #111319;
  --color-text-soft: #4b4f5d;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);

  /* UI */
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-pill: 999px;
  --gap-section: 4.5rem;
  --nav-height: 4.5rem;
}

html[data-theme="dark"] {
  --color-bg: #050814;
  --color-bg-elevated: #0d1224;
  --color-bg-soft: #111827;
  --color-border: #1f2937;
  --color-text: #f9fafb;
  --color-text-soft: #9ca3af;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.8);
}


.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

main {
  flex: 1;
}

.section {
  padding-block: var(--gap-section);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 2.3vw, 2.2rem);
}

.section-header p {
  margin: 0;
  color: var(--color-text-soft);
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.header-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 52px;
  width: auto;
}

/* Light/dark logo control */
html[data-theme="light"] .logo-dark {
  display: block;
}
html[data-theme="light"] .logo-light {
  display: none;
}
html[data-theme="dark"] .logo-dark {
  display: none;
}
html[data-theme="dark"] .logo-light {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.nav-links a.active {
  background: linear-gradient(120deg, var(--fire), var(--ice));
  color: #ffffff;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-drop-toggle {
  border: none;
  background: none;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-drop-toggle:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.nav-drop-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 11rem;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  display: none;
  z-index: 15;
}

.nav-dropdown:hover .nav-drop-menu {
  display: block;
}

/* When the dropdown is toggled open via JavaScript, force the menu to show */
.nav-dropdown.open .nav-drop-menu {
  display: block;
}

/* Give the toggle a subtle background when open to indicate its state */
.nav-dropdown.open .nav-drop-toggle {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

/* Highlight the Services button when the user is on one of the service pages.
   Adding the `active` class to the parent `.nav-dropdown` will apply this
   gradient background and white text, matching the styling of other active
   navigation links. */
.nav-dropdown.active .nav-drop-toggle {
  background: linear-gradient(120deg, var(--fire), var(--ice));
  color: #ffffff;
}

.nav-drop-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.nav-drop-menu a:hover {
  background: var(--color-bg-soft);
}

/* Theme toggle */
.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding: 0.2rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.theme-icon {
  font-size: 0.9rem;
  opacity: 0.35;
}

html[data-theme="light"] .theme-icon-light,
html[data-theme="dark"] .theme-icon-dark {
  opacity: 1;
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}


/* Base form container */
.form {
  max-width: 420px;
  margin-top: 1rem;
}

/* Spacing for form groups */
.form-group {
  margin-bottom: 1rem;
}

/* Form labels */
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Text inputs and selects */
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-size: 1rem;
}

/* Disabled inputs appear muted */
.form-group input:disabled {
  opacity: 0.6;
}

/* Checkbox alignment within labels */
.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Inline form group for checkbox + label */
.form-group-inline {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.form-group-inline input[type="checkbox"] {
  margin: 0;
}


.hero {
  padding-block: 4.5rem 4rem;
  background: radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--fire-soft) 25%, transparent),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      color-mix(in srgb, var(--ice-soft) 25%, transparent),
      transparent 60%
    );
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  color: var(--color-text-soft);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-orbit {
  position: relative;
  width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffffff22, transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-orbit-ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border-width: 3px;
  border-style: solid;
  border-color: transparent;
}

.hero-orbit-ring-hot {
  border-top-color: var(--fire);
  border-left-color: color-mix(in srgb, var(--fire-soft) 75%, transparent);
}

.hero-orbit-ring-cold {
  inset: 22%;
  border-bottom-color: var(--ice);
  border-right-color: color-mix(in srgb, var(--ice-soft) 75%, transparent);
}

.hero-orbit-core {
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--fire), var(--ice));
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  gap: 0.25rem;
}

.hero-orbit-core span:nth-child(2) {
  opacity: 0.8;
}

.hero-visual-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--fire), var(--ice));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--color-border) 70%, transparent);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-bg-soft);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ice-soft);
}

.btn-ghost:hover {
  color: var(--ice);
}

/* Small button variant for inline purchase links */
.btn-small {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1;
}

/* Make buttons inside membership cards full width with spacing */
.membership-card .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--color-bg-soft) 80%, transparent);
  color: var(--color-text-soft);
}

.pill-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--color-border) 80%, transparent);
}


.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.card-list li + li {
  margin-top: 0.25rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ice-soft);
}

.card-link:hover {
  color: var(--ice);
}


.section-science {
  background: var(--color-bg-soft);
}

.science-inner {
  display: grid;
  gap: 1rem 2rem;
  align-items: center;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) auto;
}

.science-inner > div:first-child p {
  color: var(--color-text-soft);
}

.science-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.section-founders {
  border-top: 1px solid var(--color-border);
}

.founders-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.8fr);
  gap: 2rem;
  align-items: center;
}

.founders-copy h2 {
  margin: 0 0 0.6rem;
}

.founders-copy p {
  margin: 0;
  color: var(--color-text-soft);
}

.founders-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.fine-print {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-soft);
}


.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  margin-top: 3rem;
}

/* Style the references section to look like a polished reference list near the bottom of a page.
   It uses a soft elevated background, subtle border and smaller font size to distinguish it
   from primary content. The list is indented and links are underlined for clarity. */
.references {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding-block: calc(var(--gap-section) * 0.75);
  margin-block: var(--gap-section) 0;
  /* Use a slightly smaller font size than the rest of the site so the references
     stand out as auxiliary material. A muted text colour further differentiates
     it from main content. */
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.references h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.references ol {
  margin: 0;
  padding-left: 1.25rem;
}

.references li + li {
  margin-top: 0.5rem;
}

.references a {
  color: var(--fire);
  text-decoration: underline;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1.2fr));
  gap: 2rem;
  padding-block: 2.5rem;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.footer-heading {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-links a {
  color: var(--color-text-soft);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 0.6rem;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: center;
}


@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .science-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .founders-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: var(--nav-height);
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.18s ease;
  }
  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav {
    gap: 0.75rem;
  }
  .nav-dropdown:hover .nav-drop-menu {
    display: none;
  }
  .nav-dropdown .nav-drop-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1.1rem;
  }
  .nav-dropdown .nav-drop-toggle .caret {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-block: 3.25rem 3rem;
  }
  .section {
    padding-block: 3rem;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ========== MEMBERSHIP PAGE STYLES ========== */
/* Display larger prices and subtle taglines for membership tiers */
.membership-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.membership-tagline {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* Style for drop‑in and package lists */
.one-time-options h3 {
  margin-bottom: 0.75rem;
}
.one-time-options h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}
.one-time-options ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.one-time-options li {
  margin-bottom: 0.25rem;
}
.small-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Error message for form validation */
.error-message {
  font-size: 0.85rem;
  color: #d83c3c;
  margin-bottom: 0.75rem;
}
/* Force remove list bullets for navigation lists to prevent default discs */
.main-nav ul,
.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Force remove list bullets for navigation lists to prevent default discs */
.main-nav ul,
.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
