:root {
  --bg: #fcf5f7;
  --bg-top: #fffafc;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(242, 146, 182, 0.28);
  --text: #2d1c24;
  --muted: #7d6674;
  --accent: #f12674;
  --accent-strong: #b72eb4;
  --shadow: 0 24px 60px rgba(228, 114, 156, 0.16);
  --shadow-strong: 0 30px 72px rgba(220, 91, 144, 0.26);
  --max-width: 1240px;
  --heading-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html:lang(ja) {
  --body-font: "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  --heading-font: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}

html:lang(ko) {
  --body-font: "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --heading-font: "Batang", Georgia, serif;
}

html:lang(ar),
html:lang(he) {
  --body-font: Tahoma, "Segoe UI", Arial, sans-serif;
  --heading-font: Georgia, "Times New Roman", serif;
}

html[data-theme="sunrise"] {
  --bg: #100c16;
  --bg-top: #191222;
  --surface: rgba(34, 24, 42, 0.8);
  --surface-strong: rgba(37, 26, 47, 0.92);
  --line: rgba(255, 177, 209, 0.18);
  --text: #fff5f8;
  --muted: #d9bfd0;
  --accent: #ff4b93;
  --accent-strong: #c145df;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.42);
}

html[data-theme="romance"] {
  --bg: #fcf5f7;
  --bg-top: #fffafc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 10% 16%, rgba(228, 192, 242, 0.42), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(249, 175, 202, 0.5), transparent 18%),
    radial-gradient(circle at 80% 50%, rgba(245, 210, 225, 0.52), transparent 25%),
    linear-gradient(180deg, var(--bg-top), var(--bg));
  overflow-x: hidden;
}

body.is-rtl {
  text-align: right;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-main,
.download-rail {
  position: relative;
  z-index: 1;
}

.site-main {
  padding-bottom: 28px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
}

.ambient-a {
  top: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(234, 200, 246, 0.52), transparent 72%);
}

.ambient-b {
  top: 160px;
  right: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 181, 208, 0.48), transparent 70%);
}

.ambient-c {
  bottom: 180px;
  left: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 215, 232, 0.44), transparent 72%);
}

.ambient-d {
  bottom: 40px;
  right: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240, 190, 244, 0.38), transparent 72%);
}

.hero,
.romantic-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.06fr) minmax(420px, 0.94fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: 92vh;
  padding: clamp(96px, 12vw, 142px) 0 88px;
}

.hero-copy {
  min-width: 0;
  max-width: 640px;
}

body.is-rtl .hero-copy,
body.is-rtl .preview-copy {
  text-align: right;
}

.hero-badge-row {
  display: flex;
}

.soft-badge,
.hero-stat-card,
.journey-step,
.story-card,
.store-button,
.download-rail {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 220, 232, 0.82);
}

.romance-title,
.section-heading h2,
.cta-section h2 {
  margin: 20px 0 0;
  font-family: var(--heading-font);
  font-size: clamp(3.3rem, 8vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.romance-title {
  white-space: normal;
}

.romance-line {
  display: block;
  white-space: nowrap;
}

.romance-line + .romance-line {
  margin-top: 4px;
}

.romance-line .gradient-text,
.romance-line .heart-mark,
.romance-line > span {
  display: inline-block;
}

.section-heading h2,
.cta-section h2 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1.05;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heart-mark {
  color: var(--accent);
}

.hero-text,
.section-copy,
.preview-feature p,
.journey-step p,
.story-card p,
.download-rail p,
.cta-copy {
  color: var(--muted);
}

.hero-text,
.section-copy {
  margin: 24px 0 0;
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions,
.hero-stats-row,
.journey-steps,
.preview-feature-list,
.cta-chip-row,
.rail-actions,
.phone-action-row,
.call-controls,
.group-controls {
  display: flex;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

body.is-rtl .hero-actions,
body.is-rtl .hero-stats-row,
body.is-rtl .preview-feature,
body.is-rtl .story-user {
  flex-direction: row-reverse;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.store-button:hover,
.store-button:focus-visible,
.dock-button:hover,
.dock-button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff8fb;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 32px rgba(234, 43, 117, 0.28);
}

.button-outline {
  border-color: rgba(241, 128, 172, 0.42);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 24px rgba(225, 111, 153, 0.08);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.hero-stats-row {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 152px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.hero-stat-card strong {
  display: block;
  font-size: 1.04rem;
  color: var(--accent);
}

.hero-stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.hero-stat-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 133, 180, 0.18), rgba(221, 132, 255, 0.14));
  color: var(--accent);
}

.hero-visual {
  min-width: 0;
}

.hero-soft-stage {
  position: relative;
  min-height: 560px;
}

.hero-soft-stage::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 181, 207, 0.78), transparent 72%);
  filter: blur(10px);
}

.hero-soft-stage::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: 280px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 191, 243, 0.46), transparent 72%);
  filter: blur(8px);
}

.hero-soft-orb {
  position: absolute;
  inset: 64px 56px 110px 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 40%, rgba(255, 255, 255, 0.84), rgba(255, 232, 240, 0.42) 36%, rgba(248, 207, 224, 0.16) 58%, transparent 74%);
}

.hero-photo-frame {
  position: absolute;
  top: 12px;
  right: 96px;
  width: min(360px, calc(100% - 132px));
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 210, 227, 0.82);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 40px 90px rgba(225, 117, 157, 0.2);
  backdrop-filter: blur(18px);
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  box-shadow: 0 28px 56px rgba(74, 38, 54, 0.12);
}

.hero-photo-badge {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(38, 24, 31, 0.62);
  color: #fff8fb;
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
}

.floating-hearts {
  position: absolute;
  top: 86px;
  right: 42px;
  display: flex;
  gap: 12px;
  color: rgba(241, 38, 116, 0.46);
  z-index: 2;
}

.floating-hearts span,
.cta-floating-hearts span {
  animation: drift 6.2s ease-in-out infinite;
}

.floating-hearts span:nth-child(2),
.cta-floating-hearts span:nth-child(2n) {
  animation-delay: -1.6s;
}

.floating-hearts span:nth-child(2) {
  color: rgba(182, 65, 219, 0.62);
}

.floating-hearts span:nth-child(3) {
  color: rgba(241, 38, 116, 0.34);
}

.hero-action-dock {
  position: absolute;
  right: 70px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.dock-button {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(241, 128, 172, 0.34);
  font-size: 1.7rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dock-button-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.dock-button-main {
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff8fb;
  box-shadow: var(--shadow-strong);
  animation: pulseGlow 4.4s ease-in-out infinite;
}

.romantic-section {
  padding: 72px 0 42px;
}

.center-heading {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.romance-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.journey-track {
  position: relative;
  min-height: 240px;
  margin-top: 34px;
}

.journey-line {
  position: absolute;
  top: 106px;
  left: 24%;
  right: 24%;
  height: 2px;
  background: linear-gradient(90deg, #ff73ab, #bf4fd9);
  opacity: 0.82;
}

.journey-node {
  position: absolute;
  top: 64px;
  width: 84px;
  height: 84px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.9rem;
  box-shadow: var(--shadow-strong);
}

.journey-node-left {
  left: 29%;
  background: linear-gradient(145deg, #f4408c, #ef276a);
}

.journey-node-center {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #ec2f85, #a73ddb);
}

.journey-node-right {
  right: 29%;
  background: linear-gradient(145deg, #b146d7, #9249d9);
}

.journey-steps {
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.journey-step {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 24px 20px 26px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
}

.step-marker {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(241, 38, 116, 0.22);
}

.journey-icon {
  width: 86px;
  height: 86px;
  margin: 6px auto 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--accent), #ef4b82);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: var(--shadow-strong);
}

.journey-step:nth-child(2) .journey-icon,
.journey-step:nth-child(3) .journey-icon {
  background: linear-gradient(145deg, #d02c98, #aa3ed0);
}

.journey-step h3 {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-size: 1.55rem;
}

.journey-step p {
  margin: 0;
  line-height: 1.7;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}

.preview-feature-list {
  flex-direction: column;
  gap: 26px;
  margin-top: 36px;
}

.preview-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.preview-feature-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(252, 120, 171, 0.2), rgba(231, 157, 240, 0.26));
  color: var(--accent);
  font-size: 1.25rem;
}

.preview-feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.28rem;
  font-family: var(--heading-font);
}

.preview-feature p {
  margin: 0;
  line-height: 1.75;
}

.preview-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 30px;
  justify-items: center;
}

.preview-phone {
  margin: 0;
  text-align: center;
}

.preview-phone-shell {
  width: 148px;
  padding: 10px;
  border-radius: 32px;
  border: 6px solid #3b2832;
  background: #fff;
  box-shadow: 0 28px 58px rgba(223, 118, 160, 0.18);
}

.preview-phone-top {
  width: 54px;
  height: 12px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #3b2832;
}

.preview-phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  border-radius: 16px;
  background: #fff;
}

.photo-screen {
  background: linear-gradient(180deg, #dc338e, #8f2bb8);
}

.photo-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen-overlay {
  position: absolute;
  right: 14px;
  bottom: 52px;
  left: 14px;
  color: #fff;
  text-align: left;
}

body.is-rtl .phone-screen-overlay,
body.is-rtl .chat-screen,
body.is-rtl .chat-header,
body.is-rtl .group-screen,
body.is-rtl .story-card,
body.is-rtl .store-copy small,
body.is-rtl .store-copy strong {
  text-align: right;
}

.phone-screen-overlay strong,
.group-header strong,
.chat-header strong {
  display: block;
  font-size: 1.18rem;
}

.phone-screen-overlay small {
  color: rgba(255, 255, 255, 0.88);
}

.group-header small,
.chat-header small,
.preview-phone figcaption {
  color: var(--muted);
}

.phone-action-row,
.group-controls,
.call-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  align-items: center;
  justify-content: space-between;
}

.phone-action-row span,
.group-controls span,
.call-controls span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

.phone-heart,
.call-end {
  background: linear-gradient(145deg, var(--accent), var(--accent-strong)) !important;
  color: #fff !important;
}

.chat-screen {
  padding: 12px;
  text-align: left;
}

.chat-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(242, 146, 182, 0.16);
}

.chat-header small {
  color: #49b856;
}

.chat-bubble {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.chat-bubble-light {
  background: #f5edf1;
  color: var(--text);
}

.chat-bubble-main {
  display: block;
  width: fit-content;
  margin-left: auto;
  background: linear-gradient(145deg, var(--accent), #ff4d89);
  color: #fff;
}

body.is-rtl .chat-bubble-main {
  margin-right: auto;
  margin-left: 0;
}

.chat-input-bar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f6edf1;
  color: #a78090;
  font-size: 0.78rem;
}

.call-screen {
  background: linear-gradient(180deg, #da4b92, #8b4878);
  color: #fff;
}

.call-avatar {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--heading-font);
  font-size: 1.6rem;
}

.call-time {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
}

.group-screen {
  padding: 12px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.group-grid span {
  min-height: 82px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  border-radius: 16px;
  color: #fff;
  font-size: 0.78rem;
  background: linear-gradient(145deg, #d63289, #f08bad);
}

.group-grid span:nth-child(2) {
  background: linear-gradient(145deg, #a941d8, #d184da);
}

.group-grid span:nth-child(3) {
  background: linear-gradient(145deg, #f09dbf, #ef4d87);
}

.group-grid span:nth-child(4) {
  background: linear-gradient(145deg, #f16ea3, #f8b6d0);
}

.preview-phone figcaption {
  margin-top: 10px;
}

.story-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.story-card {
  position: relative;
  padding: 34px 28px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.story-card-highlight {
  border-color: rgba(241, 38, 116, 0.34);
  box-shadow: var(--shadow-strong);
}

.story-quote {
  position: absolute;
  top: -14px;
  left: 26px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--shadow);
}

.story-stars {
  margin-bottom: 18px;
  color: #ffb223;
  letter-spacing: 0.16em;
}

.story-card p {
  margin: 0;
  line-height: 1.74;
}

.story-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.story-avatar {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
}

.story-user strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.story-user small {
  color: var(--muted);
}

body.is-rtl .story-quote {
  right: 26px;
  left: auto;
}

.story-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  padding: 30px 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.story-stats-bar article {
  text-align: center;
}

.story-stats-bar strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--heading-font);
}

.story-stats-bar span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.cta-section {
  position: relative;
  text-align: center;
  padding-bottom: 140px;
}

.cta-heart {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 2rem;
  box-shadow: var(--shadow-strong);
  animation: pulseGlow 4.8s ease-in-out infinite;
}

.cta-button-wrap {
  margin-top: 38px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-radius: 20px;
  background: #2f2328;
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 18px 40px rgba(73, 44, 57, 0.22);
}

.store-icon {
  font-size: 1.8rem;
}

.store-copy small,
.store-copy strong {
  display: block;
  text-align: left;
}

.store-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.store-copy strong {
  margin-top: 4px;
  font-size: 1.32rem;
}

.cta-chip-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cta-chip-row span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 238, 245, 0.82);
  color: var(--accent);
}

.cta-floating-hearts span {
  position: absolute;
  color: rgba(241, 38, 116, 0.76);
  font-size: 1.28rem;
}

.cta-floating-hearts span:nth-child(1) {
  top: 74px;
  left: 28px;
}

.cta-floating-hearts span:nth-child(2) {
  top: 24px;
  left: 112px;
}

.cta-floating-hearts span:nth-child(3) {
  top: 88px;
  left: 252px;
}

.cta-floating-hearts span:nth-child(4) {
  top: 76px;
  right: 310px;
}

.cta-floating-hearts span:nth-child(5) {
  top: 198px;
  right: 164px;
}

.cta-floating-hearts span:nth-child(6) {
  top: 150px;
  right: 52px;
}

.download-rail {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 24px), 580px);
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
}

.download-rail strong {
  color: var(--text);
}

.download-rail p {
  margin: 6px 0 0;
}

.rail-actions {
  align-items: center;
  gap: 10px;
}

.rail-dismiss {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.toggle-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #ffc8dd);
  box-shadow: 0 6px 12px rgba(222, 95, 151, 0.24);
  transition: transform 220ms ease;
}

html[data-theme="sunrise"] .toggle-thumb {
  transform: translateX(20px);
  background: linear-gradient(180deg, #ff8db9, #c54ce1);
}

.toggle-label {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: var(--shadow-strong);
  }

  50% {
    box-shadow: 0 34px 80px rgba(221, 76, 142, 0.36);
  }
}

@media (max-width: 1080px) {
  .hero,
  .preview-section,
  .story-card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-soft-stage {
    min-height: 720px;
  }

  .journey-steps {
    flex-wrap: wrap;
  }

  .journey-step {
    min-width: calc(50% - 12px);
  }

  .story-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero,
  .romantic-section {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    padding-top: 78px;
    gap: 30px;
  }

  .hero-soft-stage {
    min-height: 620px;
  }

  .hero-photo-frame {
    right: 50%;
    width: min(360px, 86%);
    transform: translateX(50%);
  }

  .hero-action-dock {
    right: 50%;
    bottom: 26px;
    transform: translateX(50%);
  }

  .floating-hearts {
    top: 54px;
    right: 50%;
    transform: translateX(94%);
  }

  .journey-line {
    left: 10%;
    right: 10%;
  }

  .journey-node-left {
    left: 16%;
  }

  .journey-node-right {
    right: 16%;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .romance-title {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .romance-line {
    white-space: normal;
  }

  .hero-actions,
  .rail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats-row,
  .journey-steps,
  .preview-device-grid {
    flex-direction: column;
  }

  .journey-track {
    min-height: 130px;
  }

  .journey-line,
  .journey-node-left,
  .journey-node-right {
    display: none;
  }

  .journey-node-center {
    top: 18px;
    left: 50%;
  }

  .journey-step {
    min-width: 100%;
  }

  .story-card-grid,
  .story-stats-bar {
    grid-template-columns: 1fr;
  }

  .hero-soft-stage {
    min-height: 520px;
  }

  .hero-photo-frame {
    top: 6px;
    width: calc(100% - 24px);
    padding: 10px;
  }

  .hero-photo-badge {
    bottom: 16px;
    font-size: 0.8rem;
  }

  .floating-hearts {
    top: 28px;
    transform: translateX(84%);
  }

  .download-rail {
    display: flex;
  }

  .cta-section {
    padding-bottom: 176px;
  }
}
