* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f17;
  --surface: rgba(255, 255, 255, .07);
  --surface-strong: rgba(255, 255, 255, .11);
  --stroke: rgba(255, 255, 255, .12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #d8b75a;
  --gold-soft: rgba(216, 183, 90, .22);
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

body.light {
  --bg: #f5f2ea;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .9);
  --stroke: rgba(15, 23, 42, .1);
  --text: #111827;
  --muted: #64748b;
  --shadow: 0 24px 80px rgba(15, 23, 42, .12);
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 183, 90, .22), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, .18), transparent 30%),
    var(--bg);
  color: var(--text);
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.app-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: linear-gradient(90deg, var(--gold) 0 48%, transparent 48% 52%, var(--surface-strong) 52%);
  box-shadow: var(--shadow);
}

.logo-mark span {
  display: block;
  width: 1px;
  height: 28px;
  margin: 9px auto;
  background: rgba(255, 255, 255, .55);
}

.brand-name {
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 15px;
}

.brand-subtitle,
.eyebrow,
.card-label {
  color: var(--muted);
  font-size: 13px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(44px, 8vw, 92px);
  line-height: .9;
  margin: 10px 0 18px;
  letter-spacing: -.06em;
}

.lead {
  max-width: 590px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.progress-orb {
  width: 220px;
  height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px);
}

.progress-orb svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.progress-orb circle {
  fill: none;
  stroke-width: 9;
}

.track { stroke: rgba(255, 255, 255, .12); }
.fill {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 105;
}

.orb-text {
  position: absolute;
  text-align: center;
}

.orb-text strong {
  display: block;
  font-size: 38px;
}

.orb-text span {
  color: var(--muted);
}

.mirror-card,
.module-card {
  border: 1px solid var(--stroke);
  background: var(--surface);
  backdrop-filter: blur(22px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.mirror-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  margin-bottom: 18px;
}

.mirror-card h2 {
  margin: 5px 0 0;
  font-size: 30px;
}

.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.proof-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.proof-list span {
  color: var(--gold);
  margin-right: 8px;
}

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

.module-card {
  padding: 24px;
  min-height: 170px;
  transition: .25s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
}

.module-card span {
  font-size: 30px;
}

.module-card h3 {
  margin: 18px 0 8px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.fab {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  color: #111827;
  background: var(--gold);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 20px 55px var(--gold-soft);
  transition: .25s ease;
}

.fab.open {
  transform: rotate(45deg) scale(1.03);
}

.radial-menu {
  position: fixed;
  right: 67px;
  bottom: 67px;
  z-index: 9;
  pointer-events: none;
}

.radial-menu button {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text);
  backdrop-filter: blur(18px);
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  transition: .3s cubic-bezier(.2,.9,.2,1.25);
}

.radial-menu.open {
  pointer-events: auto;
}

.radial-menu.open button {
  opacity: 1;
  transform:
    translate(
      calc(cos((var(--i) * 45deg) - 170deg) * 138px - 50%),
      calc(sin((var(--i) * 45deg) - 170deg) * 138px - 50%)
    )
    scale(1);
}

.radial-menu button::after {
  content: attr(data-label);
  position: absolute;
  right: 66px;
  top: 17px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  color: var(--text);
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .app-shell { padding: 20px; }
  .hero { grid-template-columns: 1fr; }
  .progress-orb { width: 180px; height: 180px; }
  .mirror-card { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .radial-menu.open button {
    transform:
      translate(
        calc(cos((var(--i) * 45deg) - 180deg) * 112px - 50%),
        calc(sin((var(--i) * 45deg) - 180deg) * 112px - 50%)
      )
      scale(1);
  }
}

@media (max-width: 440px) {
  .modules-grid { grid-template-columns: 1fr; }
  .fab { right: 22px; bottom: 22px; }
}
