:root {
  color-scheme: light;
  --red: #EF4444;
  --dark: #0B0D12;
  --ink: #111827;
  --muted: #6B7280;
  --soft: #F7F7F8;
  --white: #FFFFFF;
  --line: #E5E7EB;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --dark-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff 0%, var(--soft) 48%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Inter", sans-serif;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(229, 231, 235, .76);
  backdrop-filter: blur(18px);
}

.brand,
.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 19px;
  font-weight: 850;
}

.brand img,
.hero-logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(239, 68, 68, .12);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--red);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 6vw, 78px) clamp(20px, 6vw, 88px) 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 14%, rgba(239, 68, 68, .1), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(15, 23, 42, .06), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fafafa 52%, #f2f3f5 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.hero-copy-block {
  max-width: 700px;
}

.hero-logo {
  padding: 8px 14px 8px 8px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-logo strong,
.hero-logo span {
  display: block;
}

.hero-logo strong {
  line-height: 1.1;
}

.hero-logo span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
}

.eyebrow-light {
  color: #fff;
  opacity: .72;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 22px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
  font-size: 14px;
  font-weight: 800;
}

.qr-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.qr-card:hover {
  border-color: rgba(239, 68, 68, .38);
  box-shadow: 0 24px 70px rgba(239, 68, 68, .18);
  transform: translateY(-2px);
}

.qr-card img {
  width: 116px;
  height: 116px;
  padding: 8px;
  background: #fff;
  border-radius: 20px;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.qr-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-screens {
  position: relative;
  min-height: 600px;
}

.phone-frame {
  position: relative;
  overflow: visible;
  padding: 10px;
  background:
    linear-gradient(145deg, #2b3039 0%, #07090d 48%, #1b2028 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 46px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 -2px 8px rgba(0, 0, 0, .5);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 4;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 1px 2px rgba(255, 255, 255, .08);
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 118px;
  left: -5px;
  z-index: -1;
  width: 5px;
  height: 70px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #20242b, #090b10);
  box-shadow:
    0 96px 0 #0b0d12,
    calc(var(--phone-button-width, 100%) + 10px) 44px 0 #0b0d12;
}

.phone-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .72),
    0 0 0 1px rgba(0, 0, 0, .42);
}

.hero-phone {
  position: absolute;
  width: 276px;
  height: 540px;
  --phone-button-width: 276px;
}

.hero-phone-home {
  right: 13%;
  top: 8px;
  z-index: 3;
}

.hero-phone-share {
  left: 0;
  top: 92px;
  z-index: 2;
  transform: rotate(-5deg);
}

.hero-phone-ledger {
  right: 0;
  bottom: 0;
  z-index: 1;
  transform: rotate(5deg);
}

.section,
.download-section,
.app-main,
.legal-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.photo-intro h2,
.download-copy h2,
.info-panel h2,
.legal-main h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.photo-intro p,
.download-copy p,
.screen-card p,
.feature-card p,
.app-detail p,
.legal-main p,
.info-panel dd {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.screen-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card {
  min-height: 280px;
  padding: 28px;
}

.feature-card:hover,
.screen-card:hover {
  border-color: rgba(239, 68, 68, .26);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .12);
  transform: translateY(-6px);
}

.line-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 36px;
  color: var(--red);
  background: rgba(239, 68, 68, .08);
  border-radius: 16px;
}

.line-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3,
.screen-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
}

.feature-card p,
.screen-card p {
  font-weight: 620;
}

.screen-section {
  overflow: hidden;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.screen-card {
  padding: 22px;
}

.screen-card .phone-frame {
  width: min(280px, 100%);
  height: 520px;
  margin: 0 auto 24px;
  --phone-button-width: 280px;
}

.photo-section {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
}

.photo-intro {
  position: sticky;
  top: 116px;
}

.photo-intro h2 {
  margin-bottom: 18px;
}

.photo-intro p {
  font-size: 18px;
  font-weight: 620;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.photo-card:nth-child(2),
.photo-card:nth-child(5) {
  transform: translateY(34px);
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .45s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(11, 13, 18, .56);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.download-section {
  padding: 86px 0 96px;
}

.download-glass {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 34px;
  align-items: center;
  min-height: 360px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 13, 18, .98), rgba(31, 20, 23, .94)),
    radial-gradient(circle at 82% 20%, rgba(239, 68, 68, .3), transparent 34%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  box-shadow: var(--dark-shadow);
}

.download-copy h2 {
  max-width: 780px;
  margin-bottom: 18px;
}

.download-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
  font-size: 19px;
  font-weight: 650;
}

.download-qr {
  flex-direction: column;
  justify-self: end;
  width: 240px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}

.download-qr img {
  width: 188px;
  height: 188px;
  border-radius: 20px;
}

.download-qr strong {
  color: #fff;
}

.download-qr span {
  color: rgba(255, 255, 255, .62);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 30px 20px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.reveal-card,
.reveal-photo {
  opacity: 0;
  transform: translateY(24px);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

.simple-page {
  background: #f7f8fb;
}

.app-main,
.legal-main {
  padding: 74px 0 92px;
}

.app-detail,
.info-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.app-detail {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  margin-bottom: 22px;
}

.app-detail-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.app-detail h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

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

.app-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  margin-top: 20px;
  color: var(--red);
  background: rgba(239, 68, 68, .08);
  border-radius: 999px;
  font-weight: 850;
}

.app-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr;
  gap: 16px;
  margin-bottom: 22px;
}

.app-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.info-panel {
  padding: 30px 36px;
}

.info-panel dl {
  margin: 0;
}

.info-panel div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.info-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  word-break: break-all;
}

.legal-main {
  max-width: 860px;
}

.legal-main h2 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.legal-main a {
  color: var(--red);
  font-weight: 750;
}

@keyframes floatPhone {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.float-shot {
  animation: floatPhone 6.8s ease-in-out infinite;
}

.hero-phone-share {
  animation-delay: -1.8s;
}

.hero-phone-ledger {
  animation-delay: -3.1s;
}

@media (max-width: 1199px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-screens {
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-section {
    grid-template-columns: 1fr;
  }

  .photo-intro {
    position: static;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 118px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding: 42px 14px 64px;
  }

  .hero-logo {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .tag-list span {
    min-height: 34px;
    font-size: 13px;
  }

  .hero-qr {
    align-items: flex-start;
    width: 100%;
  }

  .hero-qr img {
    width: 98px;
    height: 98px;
  }

  .hero-screens {
    min-height: 510px;
    overflow: hidden;
  }

  .hero-phone {
    width: 220px;
    height: 430px;
    --phone-button-width: 220px;
  }

  .hero-phone-home {
    right: 7%;
    top: 12px;
  }

  .hero-phone-share {
    left: -42px;
    top: 82px;
  }

  .hero-phone-ledger {
    right: -48px;
    bottom: 12px;
  }

  .section,
  .download-section,
  .app-main,
  .legal-main {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .photo-grid,
  .download-glass,
  .app-gallery {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .line-icon {
    margin-bottom: 24px;
  }

  .screen-row {
    display: flex;
    gap: 16px;
    margin: 0 -14px;
    padding: 0 14px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screen-card {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: center;
  }

  .screen-card .phone-frame {
    height: 470px;
  }

  .photo-card:nth-child(2),
  .photo-card:nth-child(5) {
    transform: none;
  }

  .download-glass {
    gap: 28px;
    min-height: auto;
  }

  .download-qr {
    justify-self: start;
    width: 100%;
  }

  .download-qr img {
    width: 180px;
    height: 180px;
  }

  .app-detail,
  .info-panel {
    padding: 24px;
  }

  .app-detail,
  .info-panel div {
    grid-template-columns: 1fr;
  }

  .info-panel div {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
