:root {
  color-scheme: light dark;
  --bg: #080810;
  --bg-alt: rgba(19, 19, 40, 0.85);
  --card-bg: rgba(21, 21, 42, 0.8);
  --accent: #ff6b3d;
  --accent-soft: rgba(255, 107, 61, 0.2);
  --accent-gradient: linear-gradient(135deg, #ff6b3d, #ff3366);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gradient-bg: radial-gradient(circle at top, rgba(255, 107, 61, 0.4), rgba(8, 8, 16, 0.95));
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--gradient-bg), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 5rem;
}

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

a:hover,
button:hover {
  cursor: pointer;
}

.hero {
  padding: 3rem clamp(1.5rem, 5vw, 6rem) 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 20% -40% -40% -20%;
  background: radial-gradient(circle, rgba(255, 107, 61, 0.6), transparent 60%);
  opacity: 0.4;
  filter: blur(100px);
  z-index: -1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
}

.nav-cta {
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 99, 71, 0.4);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 1.5rem 0;
}

.hero p {
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent-gradient);
  color: #0a0a12;
  box-shadow: 0 16px 34px rgba(255, 99, 71, 0.35);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.hero-stats .stat {
  font-size: 2rem;
  font-weight: 700;
}

.hero-stats .label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.hero-visual {
  display: grid;
  place-items: center;
  text-align: center;
}

.orbital {
  position: relative;
  width: clamp(260px, 40vw, 380px);
  aspect-ratio: 1;
}

.core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 40px rgba(255, 107, 61, 0.6);
}

.ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulse 8s infinite ease-in-out;
}

.ring-2 {
  inset: 0;
  animation-delay: 1.6s;
}

.ring-3 {
  inset: -12%;
  animation-delay: 3.2s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.visual-caption {
  margin-top: 1rem;
  color: var(--text-muted);
}

.section {
  padding: 6rem clamp(1.5rem, 5vw, 6rem);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0.35;
  pointer-events: none;
}

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

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0;
}

.section p {
  color: var(--text-muted);
}

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

.card {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 1.2rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-6px);
  border: 1px solid rgba(255, 107, 61, 0.5);
  box-shadow: 0 25px 60px rgba(255, 107, 61, 0.2);
}

.card[data-discipline]:hover::after {
  content: attr(data-discipline) " ignition";
  display: block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.roadmap {
  background: rgba(8, 8, 16, 0.6);
}

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

.roadmap-card {
  padding: 2rem;
  background: rgba(12, 12, 24, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.roadmap-card h3 {
  margin-bottom: 0.75rem;
}

.roadmap-card ul {
  margin-top: 1rem;
  list-style: none;
  color: var(--text-muted);
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.progress-card {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(16, 16, 32, 0.9);
  border: 1px solid var(--border);
  display: grid;
  gap: 1.5rem;
}

.progress-card .btn {
  margin-top: 1.25rem;
}

#scoreboard.celebrate {
  animation: glow 0.9s ease;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 rgba(255, 107, 61, 0);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 107, 61, 0.5);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 107, 61, 0);
  }
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1.5rem;
}

.checkbox-grid label {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  transition: border 0.2s ease;
}

.checkbox-grid input {
  width: 18px;
  height: 18px;
}

.checkbox-grid label.checked {
  border-color: rgba(255, 107, 61, 0.6);
  color: var(--accent);
}

.scoreboard-summary {
  font-weight: 600;
}

.manifesto {
  background: rgba(255, 255, 255, 0.02);
}

.manifesto-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

blockquote {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  padding-left: 2rem;
}

blockquote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
}

.principles {
  list-style: none;
  display: grid;
  gap: 1rem;
  color: var(--text-muted);
}

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: baseline;
  font-size: 1.05rem;
}

.principles span {
  color: var(--accent);
  font-weight: 700;
}

.token {
  background: radial-gradient(circle at top right, rgba(255, 107, 61, 0.15), transparent 50%), rgba(8, 8, 16, 0.8);
}

.token-content {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.token-copy {
  display: grid;
  gap: 1.5rem;
}

.token-copy .btn {
  margin-top: 1.25rem;
}

.token-card {
  background: rgba(12, 12, 24, 0.85);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  text-align: center;
}

.token-meter {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.token-progress {
  height: 100%;
  width: 18%;
  background: var(--accent-gradient);
  border-radius: inherit;
  transition: width 0.5s ease;
}

.token-level {
  font-weight: 600;
}

.action {
  background: radial-gradient(circle at top, rgba(255, 107, 61, 0.08), rgba(8, 8, 16, 0.95));
}

.share-wrapper {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.share-card {
  background: rgba(8, 8, 16, 0.9);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(255, 107, 61, 0.15);
  display: grid;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.share-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% 30% 60%;
  background: radial-gradient(circle, rgba(255, 107, 61, 0.35), transparent 60%);
  opacity: 0.7;
  filter: blur(80px);
  pointer-events: none;
}

.share-card > * {
  position: relative;
  z-index: 1;
}

.pill-highlight {
  background: rgba(255, 107, 61, 0.18);
  color: #ffd9cc;
}

.share-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.05;
}

.share-subtitle {
  color: rgba(245, 245, 247, 0.75);
  font-size: 1.05rem;
}

.share-btn {
  width: min(100%, 320px);
  justify-self: flex-start;
}

.share-output {
  min-height: 3rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(255, 107, 61, 0.35);
}

.share-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  width: 100%;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(12, 12, 24, 0.8);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.share-link:hover,
.share-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 61, 0.6);
  box-shadow: 0 18px 30px rgba(255, 107, 61, 0.25);
}

.share-insight {
  background: rgba(12, 12, 24, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(2rem, 3vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-self: stretch;
}

.share-insight h3 {
  font-size: 1.6rem;
}

.share-insight ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.share-insight ul li {
  position: relative;
  padding-left: 1.6rem;
}

.share-insight ul li::before {
  content: "✷";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.share-note {
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 720px) {
  .share-btn {
    justify-self: stretch;
  }

  .share-links {
    grid-template-columns: 1fr 1fr;
  }
}

.footer {
  padding: 4rem clamp(1.5rem, 5vw, 6rem);
  background: rgba(4, 4, 12, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.footer h4 {
  margin-bottom: 1rem;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
}

.to-top {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
