:root {
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --color-bg: #191a33; /* approx Color(0.1,0.1,0.2) */
  --color-bg-mid: #332643; /* approx Color(0.2,0.15,0.3) */
  --color-bg-deep: #4b305f; /* approx Color(0.3,0.2,0.4) */
  --color-sand: #f4f4f5;
  --color-gold: #eab308;
  --color-gold-soft: #facc15;
  /* AppColors.goldIcon (SharedTypes.swift) */
  --color-gold-icon: #ffe18a;
  --color-ink: #020617;
  --color-muted: #9ca3af;
  --color-accent: #a855f7;
  --color-accent-soft: rgba(168, 85, 247, 0.35);
  --radius-lg: 28px;
  --radius-panel: 32px;
  --radius-full: 999px;
  --shadow-soft: 0 32px 90px rgba(15, 23, 42, 0.78);
  --shadow-panel: 0 28px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --panel-border: 1px solid rgba(148, 163, 184, 0.14);
  --panel-bg: linear-gradient(
    155deg,
    rgba(36, 32, 58, 0.92) 0%,
    rgba(22, 20, 45, 0.94) 45%,
    rgba(12, 14, 28, 0.96) 100%
  );
  --panel-pad: clamp(2rem, 5vw, 3.75rem);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  min-height: 100%;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-mid) 45%, var(--color-bg-deep) 100%);
  background-attachment: fixed;
}

@media (max-width: 540px) {
  html {
    font-size: 17px;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: transparent;
  color: var(--color-sand);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/entry_bg_transparent.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.05;
}

body > * {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.6), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 1rem;
  gap: 1.25rem;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: radial-gradient(circle at 10% 0, #fef9c3 0, #f97316 12%, #7c3aed 40%, #020617 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: #fefce8;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.65);
}

.brand-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.brand-name {
  font-weight: 600;
  font-size: 1.125rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--color-gold-soft), var(--color-accent));
  transition: width 0.18s ease-out;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out,
    border-color 0.12s ease-out;
  text-decoration: none;
}

.btn-outline {
  border-color: rgba(249, 250, 251, 0.1);
  color: var(--color-sand);
  background: rgba(15, 23, 42, 0.5);
}

.btn-outline:hover {
  background: rgba(30, 64, 175, 0.6);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.section {
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.section.muted {
  background: transparent;
}

.section.muted > .container {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--radius-panel);
  padding: var(--panel-pad);
  box-shadow: var(--shadow-panel);
}

.hero {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1.hero-title {
  font-family: "Outfit", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(2.65rem, 5.5vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 1.1rem;
  color: var(--color-gold-icon);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.hero-body {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.92);
  max-width: min(36rem, 100%);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0 0.75rem;
}

#download {
  scroll-margin-top: 110px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  min-width: 11rem;
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.1) 0, rgba(15, 23, 42, 0.94) 50%, #0c1222 100%);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-sand);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.store-button .store-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 600;
}

.store-button .store-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.store-button:hover {
  background: radial-gradient(circle at 0 0, rgba(255, 225, 138, 0.14) 0, rgba(22, 26, 45, 0.96) 52%, #0f1424 100%);
  border-color: rgba(255, 225, 138, 0.28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.store-button:focus-visible {
  outline: none;
  border-color: rgba(255, 225, 138, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.38), 0 0 0 2px rgba(255, 225, 138, 0.25);
}

.small-note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-slider {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 660 / 1434;
  border-radius: 36px;
  padding: 1px;
  background: radial-gradient(circle at 0 0, #fef9c3 0, #f59e0b 10%, #7c3aed 40%, #020617 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 1px;
  border-radius: 34px;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.hero-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at 0 0, #fefce8, #facc15);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.8);
  cursor: pointer;
  padding: 0;
}

.hero-slider-control.prev {
  left: 10px;
}

.hero-slider-control.next {
  right: 10px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hero-slider-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease-out, background 0.15s ease-out;
}

.hero-slider-dots .dot.is-active {
  background: var(--color-gold-soft);
  transform: scale(1.25);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3.4fr) minmax(0, 3fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: flex-start;
}

.two-column h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-gold-icon);
}

.two-column p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.92);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pill-list li {
  font-size: 1.05rem;
  line-height: 1.45;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: var(--panel-border);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(241, 245, 249, 0.95);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-gold-icon);
}

#how-it-works > .container {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--radius-panel);
  padding: var(--panel-pad);
  box-shadow: var(--shadow-panel);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.step {
  border-radius: var(--radius-lg);
  border: var(--panel-border);
  background: rgba(2, 6, 23, 0.45);
  padding: 1.65rem 1.5rem 1.5rem;
  min-height: 11.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
  color: var(--color-gold-icon);
}

.step p {
  font-size: 1.02rem;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.65;
  margin: 0;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4.5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.faq > h2 {
  grid-column: 1;
  grid-row: 1 / -1;
  margin-bottom: 0;
  align-self: start;
}

.faq > .faq-item {
  grid-column: 2;
}

.faq-item + .faq-item {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--color-gold-icon);
}

.faq-item p {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.94);
  line-height: 1.7;
  margin: 0;
}

.page-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(to top, #020617, rgba(2, 6, 23, 0.98));
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 1rem;
  color: rgba(148, 163, 184, 0.95);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.footer-tagline {
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-gold-soft);
}

@media (max-width: 880px) {
  html {
    background-attachment: scroll;
  }

  body::before {
    background-attachment: scroll;
  }

  .nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .card-frame {
    max-width: 320px;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .faq > h2 {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 0.25rem;
  }

  .faq > .faq-item {
    grid-column: 1;
  }

  .section {
    padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  }

  .section.muted > .container,
  #how-it-works > .container {
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 2.25rem);
  }
}

@media (max-width: 540px) {
  .header-inner {
    gap: 0.65rem;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .store-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .store-button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1.hero-title {
    font-size: clamp(2.1rem, 9vw, 2.85rem);
  }
}

