:root {
  --bg-start: #030713;
  --bg-end: #10244e;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.66);
  --text: #152033;
  --text-soft: #6b7688;
  --line: rgba(30, 41, 59, 0.08);
  --accent: #d8a94a;
  --accent-soft: rgba(216, 169, 74, 0.16);
  --accent-deep: #8d6826;
  --hero-glow: radial-gradient(circle at top left, rgba(216, 169, 74, 0.22), transparent 40%);
  --shadow-lg: 0 26px 72px rgba(31, 52, 88, 0.12);
  --shadow-md: 0 16px 42px rgba(31, 52, 88, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 169, 74, 0.18), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(47, 93, 155, 0.26), transparent 20%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
}

body.platform-ios {
  --bg-start: #030713;
  --bg-end: #10244e;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-soft: rgba(255, 255, 255, 0.65);
  --text: #182235;
  --text-soft: #6d778a;
  --line: rgba(44, 62, 98, 0.09);
  --accent: #d8a94a;
  --accent-soft: rgba(216, 169, 74, 0.16);
  --accent-deep: #8d6826;
  --hero-glow: radial-gradient(circle at top left, rgba(216, 169, 74, 0.22), transparent 42%);
  --shadow-lg: 0 28px 84px rgba(43, 67, 102, 0.14);
  --shadow-md: 0 18px 44px rgba(43, 67, 102, 0.09);
}

body.platform-android {
  --bg-start: #030713;
  --bg-end: #10244e;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #152033;
  --text-soft: #6b7688;
  --line: rgba(13, 37, 79, 0.1);
  --accent: #d8a94a;
  --accent-soft: rgba(216, 169, 74, 0.16);
  --accent-deep: #8d6826;
  --hero-glow: radial-gradient(circle at top left, rgba(216, 169, 74, 0.18), transparent 42%);
  --shadow-lg: 0 28px 84px rgba(7, 21, 46, 0.14);
  --shadow-md: 0 18px 44px rgba(7, 21, 46, 0.09);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.store-shell {
  width: min(calc(100% - 24px), 1180px);
  margin: 0 auto;
  padding: 10px 0 32px;
}

.store-page {
  display: grid;
  gap: 16px;
}

.hero-surface,
.section-surface,
.guide-modal__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.52)),
    var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(26px);
}

.hero-surface::before,
.section-surface::before,
.guide-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-glow);
  opacity: 0.92;
}

.hero-surface {
  padding: 22px;
}

.section-surface {
  padding: 24px;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-header__brand {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.app-icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 16px 32px rgba(27, 42, 70, 0.14);
  background: #fff;
}

.hero-header__copy,
.hero-actions,
.section-heading,
.stat-rail,
.rating-summary,
.review-list,
.detail-list,
.guide-steps {
  position: relative;
  z-index: 1;
}

.hero-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.store-pill,
.category-pill,
.update-panel__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-header__developer {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-header__summary,
.hero-header__note,
.section-copy,
.update-panel p,
.feature-card p,
.review-card p,
.detail-row span,
.guide-step p {
  color: var(--text-soft);
  line-height: 1.72;
}

.hero-header__summary {
  max-width: 58ch;
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.62;
}

.hero-header__note {
  max-width: 58ch;
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.56;
}

.hero-actions {
  display: grid;
  gap: 10px;
  min-width: 184px;
  justify-items: stretch;
}

.hero-actions__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button-primary {
  background: linear-gradient(180deg, #f4d987 0%, #d8a94a 100%);
  color: #07152e;
  box-shadow: 0 16px 34px var(--accent-soft);
}

.button-primary--full {
  width: 100%;
  margin-top: 16px;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading--tight {
  margin-bottom: 14px;
}

.section-heading__eyebrow,
.guide-modal__eyebrow {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.guide-modal__header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
}

.content-main,
.content-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.update-panel {
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

.update-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.update-panel p,
.section-copy {
  margin: 0;
}

.feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.feature-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 800;
}

.feature-card h3,
.review-card h3 {
  margin: 2px 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
}

.rating-summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

.rating-summary__score {
  display: grid;
  align-content: start;
}

.rating-summary__score strong {
  font-size: 3.2rem;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.rating-summary__score span {
  margin-top: 10px;
  color: #f4b400;
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.rating-summary__score p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.rating-bars {
  display: grid;
  gap: 10px;
  align-content: center;
}

.rating-bars__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rating-bars__row span {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: right;
}

.rating-bars__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.rating-bars__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.review-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.review-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.review-card__top span {
  color: #f4b400;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.review-card p {
  margin: 10px 0 12px;
}

.review-card strong {
  color: var(--text);
  font-size: 0.88rem;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.detail-row strong {
  font-size: 0.98rem;
  line-height: 1.5;
}

.trust-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.64)),
    var(--surface);
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0;
}

.guide-modal.is-open {
  display: block;
}

.guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.guide-modal__panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 840px);
  margin: min(7vh, 56px) auto 0;
  margin-bottom: 16px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
    var(--surface-strong);
}

.guide-modal__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.guide-modal__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.guide-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.guide-step__number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 800;
}

.guide-step h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.guide-step p {
  margin: 0;
}

body.platform-android .hero-surface,
body.platform-android .section-surface,
body.platform-android .guide-modal__panel {
  border-radius: 24px;
  border-color: rgba(13, 37, 79, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow:
    0 10px 26px rgba(24, 83, 44, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: none;
}

body.platform-android .hero-surface::before,
body.platform-android .section-surface::before,
body.platform-android .guide-modal__panel::before {
  background:
    linear-gradient(180deg, rgba(216, 169, 74, 0.06), transparent 36%),
    radial-gradient(circle at top right, rgba(13, 37, 79, 0.08), transparent 42%);
}

body.platform-android .store-shell {
  width: min(calc(100% - 20px), 1120px);
}

body.platform-android .hero-surface {
  padding: 18px 18px 16px;
}

body.platform-android .hero-header {
  gap: 20px;
}

body.platform-android .hero-header__brand {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}

body.platform-android .app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(24, 83, 44, 0.08);
}

body.platform-android .hero-header h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  letter-spacing: -0.045em;
}

body.platform-android .hero-header__developer {
  margin-top: 8px;
  color: #8d6826;
  font-size: 0.95rem;
}

body.platform-android .hero-header__summary {
  margin-top: 10px;
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.58;
}

body.platform-android .hero-header__note {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.platform-android .store-pill,
body.platform-android .category-pill,
body.platform-android .update-panel__meta span {
  min-height: 30px;
  border-color: rgba(216, 169, 74, 0.16);
  background: rgba(216, 169, 74, 0.1);
  color: #8d6826;
}

body.platform-android .hero-actions {
  min-width: 188px;
  gap: 8px;
}

body.platform-android .hero-actions__badge {
  min-height: 34px;
  background: rgba(216, 169, 74, 0.12);
  color: #8d6826;
}

body.platform-android .button-primary {
  min-height: 44px;
  border-radius: 14px;
  background: #d8a94a;
  color: #07152e;
  box-shadow: none;
}

body.platform-android .button-secondary {
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(13, 37, 79, 0.12);
  background: #f8fbf8;
}

body.platform-android .stat-rail {
  gap: 0;
  margin-top: 14px;
  border: 1px solid rgba(13, 37, 79, 0.08);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

body.platform-android .stat-card {
  padding: 12px 10px;
  border: 0;
  border-right: 1px solid rgba(13, 37, 79, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body.platform-android .stat-card:last-child {
  border-right: 0;
}

body.platform-android .stat-card strong {
  font-size: 1.16rem;
}

body.platform-android .stat-card span {
  margin-top: 4px;
  font-size: 0.76rem;
}

body.platform-android .section-surface {
  padding: 22px;
}

body.platform-android .section-heading__eyebrow,
body.platform-android .guide-modal__eyebrow {
  letter-spacing: 0.1em;
}

body.platform-android .section-heading h2,
body.platform-android .guide-modal__header h2 {
  font-size: clamp(1.32rem, 2.5vw, 1.84rem);
}

body.platform-android .update-panel,
body.platform-android .feature-card,
body.platform-android .rating-summary,
body.platform-android .review-card,
body.platform-android .detail-row,
body.platform-android .guide-step {
  border-color: rgba(13, 37, 79, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

body.platform-android .feature-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

body.platform-android .feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(216, 169, 74, 0.12);
}

body.platform-android .rating-summary {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
}

body.platform-android .rating-summary__score strong {
  font-size: 2.8rem;
}

body.platform-android .rating-bars {
  gap: 8px;
}

body.platform-android .rating-bars__track {
  height: 7px;
  background: rgba(216, 169, 74, 0.12);
}

body.platform-android .rating-bars__fill {
  background: #d8a94a;
}

body.platform-android .review-list {
  gap: 10px;
}

body.platform-android .review-card__top span {
  color: #f9ab00;
}

body.platform-android .detail-row {
  gap: 4px;
  padding: 13px 14px;
}

body.platform-android .trust-surface {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

@media (hover: hover) {
  .button-primary:hover,
  .button-secondary:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-header {
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-header__note {
    display: none;
  }
}

@media (max-width: 760px) {
  .store-shell {
    width: min(calc(100% - 16px), 1180px);
    padding-top: 6px;
  }

  .hero-surface,
  .section-surface,
  .guide-modal__panel {
    border-radius: 28px;
  }

  .hero-surface,
  .section-surface,
  .guide-modal__panel {
    padding: 18px;
  }

  .guide-modal {
    padding: 12px 0;
  }

  .guide-modal__panel {
    width: min(calc(100% - 16px), 840px);
    margin-top: 0;
    margin-bottom: 12px;
    max-height: calc(100dvh - 24px);
  }

  .hero-header__brand {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .stat-rail,
  .hero-actions,
  .guide-steps {
    grid-template-columns: 1fr 1fr;
  }

  .rating-summary {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-header__brand,
  .stat-rail,
  .hero-actions,
  .guide-steps,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .hero-header h1 {
    font-size: 1.7rem;
  }

  .hero-header__developer {
    font-size: 0.88rem;
  }

  .hero-header__summary {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .stat-card {
    padding: 12px 10px;
  }

  .stat-card strong {
    font-size: 1.08rem;
  }

  .stat-card span {
    font-size: 0.76rem;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .guide-modal__panel {
    padding: 18px;
  }
}
