/* siroon.app home: the pre-launch experience. Loaded on the home page only (legal pages stay light).
   Motion uses transform and opacity only, and stops under prefers-reduced-motion. */

.home {
  --accent: #fdbd8d;
  --accent-2: #ffb1c0;
  --accent-glow: rgba(253, 189, 141, 0.35);
  --mode-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.home[data-atmosphere='passion'] {
  --accent: #ff7d9b;
  --accent-2: #ff4f78;
  --accent-glow: rgba(255, 79, 120, 0.35);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Header over the hero ------------------------------------------------------------------- */

.site-header.overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.overlay.scrolled {
  background: rgba(21, 18, 25, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

/* ---- Hero ----------------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 72px;
  text-align: center;
}
.atmos {
  position: absolute;
  inset: -6%;
  z-index: -1;
  will-change: transform;
}
.atmos-layer,
.atmos-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atmos-love img {
  object-position: 50% 62%;
}
.atmos-passion img {
  object-position: 50% 20%;
}
.atmos-layer {
  transition: opacity 1.4s var(--mode-ease), transform 1.8s var(--mode-ease), filter 1.4s;
}
.atmos-passion {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(6px);
}
.hero[data-mode='passion'] .atmos-passion {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.hero[data-mode='passion'] .atmos-love {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
}
.atmos-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(21, 18, 25, 0.2), rgba(21, 18, 25, 0.75) 70%),
    linear-gradient(180deg, rgba(21, 18, 25, 0.55) 0%, rgba(21, 18, 25, 0.35) 40%, var(--bg) 100%);
}
.atmos-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .display {
  font-size: clamp(42px, 10vw, 92px);
  line-height: 1.04;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.hero .display em {
  color: var(--accent);
  transition: color 1.2s var(--mode-ease);
}
.hero .eyebrow {
  color: #e6d6cf;
}

/* The orbit behind the title: the SIROON mark, alive. */
.orbit-system {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 150vw);
  aspect-ratio: 1;
  transform: translate(-50%, -54%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}
.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  animation: spin 60s linear infinite;
}
.ring-1 {
  width: 46%;
  height: 46%;
  animation-duration: 38s;
}
.ring-2 {
  width: 70%;
  height: 70%;
  animation-duration: 64s;
  animation-direction: reverse;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.ring-3 {
  width: 96%;
  height: 96%;
  animation-duration: 96s;
}
.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px 4px var(--accent-glow);
  transition: background 1.2s, box-shadow 1.2s;
}
.n1 { top: -5px; left: calc(50% - 5px); }
.n2 { bottom: 12%; left: 6%; width: 7px; height: 7px; }
.n3 { top: 8%; right: 14%; background: var(--accent-2); }
.n4 { top: 22%; left: 2%; width: 6px; height: 6px; }
.n5 { bottom: 4%; right: 26%; width: 8px; height: 8px; background: var(--accent-2); }
.core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Love / Passion switch */
.mode-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mode-switch button {
  position: relative;
  z-index: 1;
  min-width: 120px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.5s;
}
.mode-switch button[aria-pressed='true'] {
  color: #1b1320;
}
.mode-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 30px var(--accent-glow);
  transition: transform 0.7s var(--mode-ease), background 1.2s, box-shadow 1.2s;
}
.hero[data-mode='passion'] .mode-thumb {
  transform: translateX(100%);
}
.mode-line {
  min-height: 3.3em;
  max-width: 520px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--text-soft);
}
.mode-line span {
  display: block;
  animation: line-in 0.8s var(--mode-ease) both;
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.hero-cta {
  width: 100%;
  max-width: 560px;
  margin-top: 26px;
}
.hero .availability {
  margin-top: 22px;
  background: rgba(21, 18, 25, 0.35);
}
.hero .availability .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transition: background 1.2s, box-shadow 1.2s;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}
@media (max-height: 700px) {
  .scroll-cue { display: none; }
}

/* Entrance: the hero's lines arrive one after another. */
.reveal-now {
  animation: rise 1s var(--mode-ease) both;
}
.hero-inner > .reveal-now:nth-child(2) { animation-delay: 0.05s; }
.hero-inner > .reveal-now:nth-child(3) { animation-delay: 0.15s; }
.hero-inner > .reveal-now:nth-child(4) { animation-delay: 0.3s; }
.hero-inner > .reveal-now:nth-child(5) { animation-delay: 0.42s; }
.hero-inner > .reveal-now:nth-child(6) { animation-delay: 0.55s; }
.hero-inner > .reveal-now:nth-child(7) { animation-delay: 0.68s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---- Waitlist form ------------------------------------------------------------------------- */

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(21, 18, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.field {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  min-width: 0;
  text-align: left;
}
.field-label {
  padding: 0 14px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field select option {
  background: var(--surface-2);
  color: var(--text);
}
.field input::placeholder {
  color: #9a8c93;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.field input[aria-invalid='true'] {
  border-color: var(--danger);
}
.waitlist-row .button {
  flex: 0 0 auto;
  min-height: 52px;
  border-radius: 18px;
  align-self: flex-end;
}
.button.glow {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  color: #1b1320;
  box-shadow: 0 10px 36px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.4s, background 1.2s;
}
.button.glow:hover {
  transform: translateY(-1px);
  color: #1b1320;
  box-shadow: 0 14px 44px var(--accent-glow);
}
.button.glow:disabled {
  transform: none;
}
@media (max-width: 560px) {
  .waitlist-row .button {
    width: 100%;
  }
  .field {
    flex-basis: 100%;
  }
}
.waitlist-full .waitlist-row {
  padding: 12px;
}
.waitlist-full .field {
  flex-basis: 200px;
}
.consent {
  margin: 12px 4px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.consent a {
  color: var(--text-soft);
}
.form-status:empty {
  display: none;
}
.form-status {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  text-align: left;
}
.form-status.error {
  background: rgba(255, 154, 154, 0.1);
  border: 1px solid rgba(255, 154, 154, 0.35);
  color: #ffd2d2;
}
.waitlist.done .waitlist-row,
.waitlist.done .consent {
  display: none;
}
.form-status.success {
  padding: 22px;
  background: rgba(21, 18, 25, 0.55);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--text);
  text-align: center;
  font-size: 17px;
  animation: rise 0.8s var(--mode-ease) both;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---- Story ---------------------------------------------------------------------------------- */

.story {
  position: relative;
  padding: 96px 0;
}
@media (min-width: 900px) {
  .story {
    padding: 140px 0;
  }
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 1.2s;
}
.section-title.big {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.08;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  transition: color 1.2s;
}
.center-head {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.center-head .lede {
  margin-top: 18px;
}
.lede-left {
  max-width: 460px;
  margin: 20px 0 0;
  font-size: 19px;
  color: var(--text-soft);
}

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* Orbit diagram: a few people around you, never a stack. */
.orbit-diagram {
  position: relative;
  width: min(460px, 86vw);
  aspect-ratio: 1;
  margin: 0 auto;
}
.od-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.od-r1 { width: 36%; height: 36%; }
.od-r2 { width: 66%; height: 66%; border-style: dashed; }
.od-r3 { width: 96%; height: 96%; opacity: 0.6; }
.od-you {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 60%, #fff 10%), var(--accent-2));
  color: #1b1320;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 60px var(--accent-glow);
}
.od-person {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 60%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: float 7s ease-in-out infinite;
}
.p1 { top: 4%; left: 44%; }
.p2 { top: 30%; right: 6%; animation-delay: -1.5s; }
.p3 { bottom: 12%; right: 20%; animation-delay: -3s; width: 38px; height: 38px; }
.p4 { bottom: 20%; left: 8%; animation-delay: -4.2s; }
.p5 { top: 22%; left: 12%; animation-delay: -5.4s; width: 34px; height: 34px; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -10px); }
}
.orbit-diagram.in .p1 { animation: float 7s ease-in-out infinite, glow 7s ease-in-out infinite; }
@keyframes glow {
  0%, 60%, 100% { box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent); }
  75% { box-shadow: 0 0 48px var(--accent); }
}

/* Modes */
.story-modes .modes {
  margin-top: 48px;
}
.mode img {
  transition: transform 1.2s var(--mode-ease);
}
.mode:hover img {
  transform: scale(1.04);
}
.mode h3 {
  font-size: 40px;
}
.mode-love .badge { color: #fdbd8d; }
.mode-passion .badge { color: #ff9cb4; }
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.words li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  color: var(--text);
}

/* Chemistry */
.features {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  transition: transform 0.4s var(--mode-ease), border-color 0.4s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.feature h3 {
  margin: 20px 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.feature-art {
  position: relative;
  width: 72px;
  height: 72px;
}
.feature-art span {
  position: absolute;
  border-radius: 50%;
}
.art-pulse span {
  inset: 0;
  border: 2px solid var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
.art-pulse span:nth-child(2) { animation-delay: 0.8s; }
.art-pulse span:nth-child(3) {
  inset: 26px;
  border: 0;
  background: var(--accent);
  animation: none;
  box-shadow: 0 0 20px var(--accent-glow);
}
@keyframes pulse {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(1.1); opacity: 0; }
}
.art-games span {
  width: 34px;
  height: 34px;
  top: 19px;
  background: var(--accent);
  opacity: 0.85;
  animation: meet 3.4s var(--mode-ease) infinite;
}
.art-games span:first-child { left: 0; }
.art-games span:last-child {
  right: 0;
  background: var(--accent-2);
  animation-name: meet-r;
}
@keyframes meet {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}
@keyframes meet-r {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-14px); }
}
.art-reveal span {
  inset: 8px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 48%);
  mask: radial-gradient(circle, transparent 46%, #000 48%);
  animation: spin 5s linear infinite;
}
.art-style span {
  top: 24px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
}
.art-style span:first-child { left: 6px; }
.art-style span:last-child {
  left: 40px;
  background: var(--accent);
  animation: breathe 3s ease-in-out infinite;
}

/* Safety */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 880px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 15px;
}
.center-link {
  margin-top: 28px;
  text-align: center;
}

/* Join */
.story-join {
  overflow: hidden;
  text-align: center;
}
.join-glow {
  position: absolute;
  inset: 10% -20% auto;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
  transition: background 1.2s;
}
.join-inner {
  max-width: 720px;
}
.join-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  animation: breathe 6s ease-in-out infinite;
}
.join-inner .lede {
  margin-bottom: 30px;
}
.join-inner .consent {
  text-align: center;
}

/* Scroll reveal (set up by home.js; without it, everything simply shows). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s var(--mode-ease), transform 1s var(--mode-ease), filter 1s var(--mode-ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.features [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.features [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.features [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.modes [data-reveal]:nth-child(2) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .ring,
  .core,
  .od-person,
  .art-pulse span,
  .art-games span,
  .art-reveal span,
  .art-style span,
  .join-mark,
  .scroll-cue span {
    animation: none !important;
  }
  .reveal-now,
  .mode-line span,
  .form-status.success {
    animation: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .atmos-layer,
  .mode-thumb,
  .mode img {
    transition-duration: 0.01s;
  }
}

/* Small screens: the header keeps only the brand and the call to action (legal links stay in the footer). */
@media (max-width: 520px) {
  .home .nav a:not(.nav-cta) {
    display: none;
  }
  .hero .availability {
    border-radius: 18px;
    font-size: 13px;
  }
}
/* Passion's photograph is darker: lift it a little. */
.hero[data-mode='passion'] .atmos-tint {
  opacity: 0.82;
}
.atmos-tint {
  transition: opacity 1.4s;
}

/* Pre-launch call to action (waitlist closed): the form's glass, nothing to fill in. */
.prelaunch {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 24px;
  background: rgba(21, 18, 25, 0.55);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: border-color 1.2s;
}
.prelaunch-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
  animation: breathe 3s ease-in-out infinite;
  transition: background 1.2s, box-shadow 1.2s;
}
.prelaunch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prelaunch-text strong {
  font-size: 17px;
  color: var(--text);
}
.prelaunch-text span {
  font-size: 14px;
  color: var(--muted);
}
.join-inner .prelaunch {
  max-width: 460px;
  margin: 0 auto;
}
@media (prefers-reduced-motion: reduce) {
  .prelaunch-dot {
    animation: none;
  }
}
