:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eeedff;
  background: #0b0d1d;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: #bba8ff; }
.hidden { display: none !important; }

.ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 580px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 22%, rgba(116, 77, 236, .16), transparent 64%);
}
.home-shell { max-width: 1160px; margin: auto; padding: 0 28px; }
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #252840;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #eeedff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .2em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #7655ed;
  font-size: 25px;
  letter-spacing: 0;
}
.brand-dot { color: #a6f5ee; }
.topbar-label, .section-label, #progress, .eyebrow,
.step-label, .friend-kicker, .card-footer {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
}
.topbar-label, #progress { color: #b2b0ce; }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #a788ff;
  box-shadow: 0 0 15px rgba(167, 136, 255, .6);
}
.hero {
  text-align: center;
  padding: 95px 0 76px;
}
.eyebrow { color: #b9a6ff; }
.spark { font-size: 20px; vertical-align: middle; }
.hero h1 {
  max-width: 850px;
  margin: 30px auto;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.07;
  letter-spacing: -.065em;
  font-weight: 850;
}
.hero h1 em { color: #a688ff; font-style: normal; }
.hero p {
  max-width: 660px;
  margin: auto;
  color: #a9a9c4;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  color: #c4c2dc;
  font-size: 14px;
}
.meta-icon { color: #a98cff; margin-right: 6px; }
.experiment { max-width: 900px; margin: 0 auto; }
.experiment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label { color: #c1b1ff; }
#notice:empty { display: none; }
#notice:not(:empty) {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #715a95;
  border-radius: 12px;
  color: #e3d9ff;
  background: #29203e;
}
.question-card {
  padding: 54px 56px;
  border: 1px solid #393b60;
  border-radius: 30px;
  background: linear-gradient(145deg, #20223e, #191b35);
}
.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pill {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #504570;
  border-radius: 999px;
  background: #342d54;
  color: #c6b5f6;
  font-size: 14px;
  font-weight: 700;
}
.question-symbol { font-size: 38px; color: #605587; font-weight: 800; }
.question-card h2 {
  margin: 42px 0 44px;
  font-size: clamp(29px, 4.3vw, 54px);
  line-height: 1.24;
  letter-spacing: -.045em;
}
.choices { display: flex; gap: 16px; }
.choices button, .primary-action {
  min-height: 70px;
  padding: 16px 25px;
  border: 0;
  border-radius: 17px;
  color: white;
  background: #7654ee;
  font-size: 20px;
  font-weight: 750;
  transition: transform .15s, filter .15s;
}
.choices button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.choices button.alt { background: #353c61; }
button:hover { filter: brightness(1.09); }
button:active { transform: scale(.985); }
button:disabled { opacity: .55; cursor: not-allowed; }
.step-label, .friend-kicker { color: #b9a6ff; }
.subheading { font-size: clamp(23px, 3vw, 34px); font-weight: 700; line-height: 1.4; }
.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 34px 0 20px;
  color: #aaa9c7;
}
.slider-labels strong { color: #eeedff; font-size: 44px; }
input[type=range] { width: 100%; accent-color: #8767ff; cursor: pointer; }
.primary-action { margin-top: 38px; display: inline-flex; align-items: center; gap: 30px; }
.result { font-size: clamp(25px, 3vw, 37px); font-weight: 800; }
.result-track { height: 22px; overflow: hidden; background: #343959; border-radius: 99px; }
.result-fill { width: 0; height: 100%; background: linear-gradient(90deg, #7953ee, #b49bff); border-radius: 99px; transition: width .5s; }
.result-labels { display: flex; justify-content: space-between; margin-top: 12px; color: #aaa9c7; font-size: 13px; font-weight: 800; }
.score { margin: 35px 0 0; color: #b5b4cf; font-size: 19px; line-height: 1.6; }
.sample-note { color: #b5b4cf; font-size: 14px; line-height: 1.5; }
.friend-section { margin-top: 44px; padding-top: 40px; border-top: 1px solid #3a3c60; }
.friend-section h3 { font-size: clamp(25px, 3vw, 35px); letter-spacing: -.03em; margin: 20px 0; }
.friend-section p { color: #b1b0cb; font-size: 18px; line-height: 1.6; }
.friend-section .choices button { font-size: 17px; min-height: 65px; }
.share { margin-top: 20px; overflow-wrap: anywhere; }
.share a { display: inline-block; margin: 10px 0; }
.share button { border: 0; border-radius: 12px; padding: 12px 18px; background: #7654ee; color: white; font-weight: 700; }
.card-footer { display: flex; justify-content: space-between; gap: 12px; padding: 24px 0; color: #9999b9; }
footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 90px; padding: 32px 0; border-top: 1px solid #292b44; color: #8788a8; font-size: 13px; letter-spacing: .06em; }

@media (max-width: 640px) {
  .home-shell { padding: 0 16px; }
  .topbar { height: 75px; }
  .brand { font-size: 10px; letter-spacing: .12em; }
  .brand-mark { width: 39px; height: 39px; }
  .topbar-label { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(38px, 10vw, 58px); margin: 20px auto; }
  .hero p { font-size: 16px; line-height: 1.55; }
  .hero-meta { flex-wrap: wrap; gap: 10px 20px; font-size: 12px; }
  .experiment-top { font-size: 10px; }
  .section-label, #progress { font-size: 10px; letter-spacing: .09em; }
  .question-card { padding: 25px 22px; border-radius: 23px; }
  .question-card h2 { margin: 28px 0 32px; font-size: clamp(27px, 7.5vw, 40px); }
  .pill { font-size: 12px; padding: 8px 12px; }
  .choices { gap: 10px; }
  .choices button { min-height: 62px; padding: 14px 15px; font-size: 18px; }
  .primary-action { min-height: 60px; font-size: 17px; padding: 14px 19px; }
  .slider-labels strong { font-size: 34px; }
  .friend-section .choices button { font-size: 14px; }
  .card-footer { flex-wrap: wrap; justify-content: center; text-align: center; font-size: 9px; letter-spacing: .09em; }
  footer { margin-top: 55px; flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* V2 mobile sharing improvements */
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.share-actions button {
  min-height: 52px;
}

@media (max-width: 640px) {
  .share-actions {
    flex-direction: column;
  }

  .share-actions button {
    width: 100%;
    text-align: center;
  }
}

/* Mobile homepage spacing refinement */
@media (max-width: 640px) {
  .hero {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .hero h1 {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .hero-meta {
    margin-top: 18px;
  }
}

/* Create & Community Experiments */

.community-section {
  margin: 48px 0 56px;
}

.community-heading {
  margin-bottom: 26px;
}

.community-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin: 16px 0 12px;
}

.community-heading p {
  color: #bdb0d4;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: linear-gradient(145deg, #211936, #171329);
  border: 1px solid #49365f;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  border-color: #a78bfa;
}

.community-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(167, 139, 250, .14);
  color: #c4b5fd;
  border-radius: 12px;
  font-size: 25px;
  margin-bottom: 22px;
}

.community-card h3 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.community-card p {
  color: #bdb0d4;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.community-link {
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
}

@media (max-width: 650px) {
  .community-section {
    margin: 36px 0 44px;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .community-card {
    padding: 24px;
  }

  .community-card h3 {
    font-size: 20px;
  }
}
