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

:root {
  --bg0: #faf7f2;
  --bg1: #f5efe6;
  --card: #ffffff;
  --card-stroke: rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 12px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-btn: 0 8px 24px rgba(234, 88, 12, 0.22);
  --text: #1c1917;
  --muted: #64748b;
  --accent: #0d9488;
  --accent-warm: #ea580c;
  --radius: 22px;
  --radius-pill: 999px;
  --font: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(13, 148, 136, 0.12);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(45, 212, 191, 0.14), transparent 55%),
    radial-gradient(ellipse 120% 70% at 12% 8%, rgba(253, 186, 116, 0.22), transparent 52%),
    radial-gradient(ellipse 90% 60% at 92% 12%, rgba(45, 212, 191, 0.16), transparent 48%),
    radial-gradient(ellipse 85% 45% at 50% 105%, rgba(251, 191, 36, 0.12), transparent 55%),
    linear-gradient(168deg, #fffcf7 0%, var(--bg0) 42%, #f0fdfa 100%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

@media (prefers-color-scheme: dark) {
  .bg-grain {
    mix-blend-mode: soft-light;
    opacity: 0.12;
  }
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.top {
  padding: calc(1.25rem + var(--safe-top)) 0 0.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c2410c;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(251, 146, 60, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.title {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #0f766e 0%, #0d9488 45%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 0 0.25rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.main {
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  padding-top: 0.35rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.feat-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: rgba(13, 148, 136, 0.12);
}

.hero-card {
  position: relative;
  text-align: center;
  padding-top: 1.6rem;
  padding-bottom: 1.65rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(45, 212, 191, 0.1), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #fffcf9 50%, #fff8f0 100%);
  border: 1px solid rgba(253, 186, 116, 0.28);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.08), transparent 65%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in {
    animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .app-icon.hero-in {
    animation-delay: 0.04s;
  }

  .version.hero-in {
    animation-delay: 0.12s;
  }

  .btn.hero-in {
    animation-delay: 0.2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in {
    animation: none;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-icon {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.85rem;
  max-width: 100%;
}

.app-icon-frame {
  position: relative;
  padding: 0.45rem;
  border-radius: 28px;
  background: linear-gradient(150deg, #ffffff, #fffcf7);
  box-shadow:
    0 0 0 1px rgba(13, 148, 136, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 20px 50px rgba(13, 148, 136, 0.12),
    0 6px 20px rgba(234, 88, 12, 0.07);
}

.app-icon-img {
  display: block;
  position: relative;
  z-index: 1;
  width: min(100%, 232px);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
}

.version {
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  color: #57606a;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.82rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  touch-action: manipulation;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.btn-ico {
  flex-shrink: 0;
  opacity: 0.95;
}

.btn.primary {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, #fb7c1b 0%, #f97316 30%, #fb923c 70%, #fbbf24 100%);
  box-shadow: var(--shadow-btn), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(234, 88, 12, 0.32), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  filter: brightness(1.03);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.primary:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 3px;
}

.micro {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.95;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.section-title-mark {
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, #2dd4bf, #f97316);
  flex-shrink: 0;
}

.feat-card .section-title {
  margin-bottom: 1rem;
  justify-content: center;
  text-align: center;
}

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

.feature {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.06), rgba(255, 251, 245, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 0.95));
  border-color: rgba(13, 148, 136, 0.14);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.feature-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #0d9488;
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.2), rgba(251, 191, 36, 0.12));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.feature-ico svg {
  display: block;
  flex-shrink: 0;
}

.feature-body {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-top: 0.1rem;
}

.features strong {
  color: #0f766e;
  font-weight: 600;
}

.foot {
  text-align: center;
  padding: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.foot p {
  margin: 0;
}

.foot-line {
  width: 48px;
  height: 3px;
  margin: 0 auto 0.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.35), rgba(249, 115, 22, 0.35), transparent);
  opacity: 0.85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.r2-hint {
  text-align: left;
  border-color: rgba(234, 88, 12, 0.22);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 60%);
}

.r2-hint .section-title {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.r2-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #57534e;
  line-height: 1.65;
}

.r2-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: #44403c;
  line-height: 1.65;
}

.r2-steps li {
  margin-bottom: 0.55rem;
}

.r2-steps code,
.r2-lead code {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  word-break: break-all;
}

.r2-more {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.r2-more a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 480px) {
  .wrap {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg0: #1c1917;
    --bg1: #292524;
    --card: rgba(41, 37, 36, 0.86);
    --card-stroke: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-btn: 0 8px 28px rgba(234, 88, 12, 0.35);
    --text: #f5f5f4;
    --muted: #a8a29e;
  }

  body {
    color: var(--text);
  }

  .bg {
    background:
      radial-gradient(ellipse 100% 80% at 50% -18%, rgba(45, 212, 191, 0.08), transparent 55%),
      radial-gradient(ellipse 120% 70% at 12% 8%, rgba(234, 88, 12, 0.1), transparent 52%),
      radial-gradient(ellipse 90% 60% at 90% 12%, rgba(45, 212, 191, 0.08), transparent 48%),
      linear-gradient(168deg, #1c1917 0%, #292524 48%, #1c2e2a 100%);
  }

  .tag {
    color: #5eead4;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(251, 146, 60, 0.08));
    border-color: rgba(45, 212, 191, 0.25);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  }

  .badge {
    color: #fdba74;
    background: linear-gradient(180deg, rgba(67, 20, 7, 0.6), rgba(67, 20, 7, 0.45));
    border-color: rgba(251, 146, 60, 0.35);
  }

  .title {
    background: linear-gradient(120deg, #5eead4 0%, #2dd4bf 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-card {
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(45, 212, 191, 0.08), transparent 58%),
      linear-gradient(180deg, rgba(41, 37, 36, 0.96) 0%, rgba(28, 25, 23, 0.92) 100%);
    border-color: rgba(45, 212, 191, 0.2);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }

  .hero-card::before {
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.06), transparent 65%);
  }

  .app-icon-frame {
    background: linear-gradient(150deg, rgba(41, 37, 36, 0.95), rgba(28, 25, 23, 0.98));
    box-shadow:
      0 0 0 1px rgba(45, 212, 191, 0.2),
      0 0 0 1px rgba(0, 0, 0, 0.35) inset,
      0 20px 50px rgba(0, 0, 0, 0.35);
  }

  .version {
    color: #a8a29e;
  }

  .section-title {
    color: #e7e5e4;
  }

  .section-title-mark {
    background: linear-gradient(180deg, #2dd4bf, #f97316);
    opacity: 0.9;
  }

  .feature {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.06), rgba(28, 25, 23, 0.6));
    border-color: rgba(255, 255, 255, 0.06);
    color: #d6d3d1;
  }

  .feature:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(41, 37, 36, 0.75));
    border-color: rgba(45, 212, 191, 0.15);
  }

  .feature-ico {
    color: #5eead4;
    background: linear-gradient(160deg, rgba(45, 212, 191, 0.16), rgba(120, 53, 15, 0.2));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  }

  .features strong {
    color: #5eead4;
  }

  .foot {
    color: #78716c;
  }

  .foot-line {
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), rgba(249, 115, 22, 0.35), transparent);
  }

  .micro {
    color: #a8a29e;
  }

  .r2-hint {
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.25) 0%, rgba(28, 25, 23, 0.95) 45%);
    border-color: rgba(251, 146, 60, 0.2);
  }

  .r2-lead {
    color: #d6d3d1;
  }

  .r2-steps {
    color: #e7e5e4;
  }

  .r2-steps code,
  .r2-lead code {
    background: rgba(45, 212, 191, 0.12);
    color: #5eead4;
  }

  .r2-more a {
    color: #fdba74;
  }
}
