/**
 * Arrow Move iOS — layout isolated from other landings:
 * bullseye radial hero, skewed section seams, bento features, gradient rail.
 */
:root {
  --bg-deep: #0f1024;
  --bg-panel: #1a1b3c;
  --accent-violet: #7446e5;
  --accent-coral: #e35162;
  --text: #e8e9f4;
  --text-muted: #a5a8c9;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Russo One", system-ui, sans-serif;
  --font-body: "Chakra Petch", system-ui, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-glow: 0 0 60px rgba(116, 70, 229, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent-coral);
}

:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 3px;
}

/* --- Background layers --- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(116, 70, 229, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(227, 81, 98, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #121331 45%, var(--bg-deep) 100%);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* --- Nav: split rail + glass bar (not capsule / not full drama editorial) --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.25rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(15, 16, 36, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-coral));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

/* Replace with real app icon in images/icon.png when available */
.brand-mark--placeholder {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(26, 27, 60, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(116, 70, 229, 0.5);
  background: rgba(116, 70, 229, 0.15);
}

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

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-violet), #5b35c7);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(116, 70, 229, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(227, 81, 98, 0.25);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(10, 11, 28, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }
}

/* --- Hero: diagonal seam + bullseye (unique vs other templates) --- */
main {
  padding-top: 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: center;
}

.hero__seam {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 42%;
  width: 140%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 48%,
    rgba(116, 70, 229, 0.09) 49.5%,
    rgba(227, 81, 98, 0.06) 50.5%,
    transparent 52%
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.hero__rings {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(55vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(116, 70, 229, 0.2),
    0 0 0 32px rgba(116, 70, 229, 0.04),
    0 0 0 64px rgba(227, 81, 98, 0.03);
  pointer-events: none;
}

.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.hero__rings::after {
  inset: 36%;
  border-style: solid;
  border-color: rgba(227, 81, 98, 0.35);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-coral);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero__accent {
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  background: var(--accent-coral);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 32px rgba(227, 81, 98, 0.35);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(227, 81, 98, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(26, 27, 60, 0.6);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(116, 70, 229, 0.45);
  background: rgba(116, 70, 229, 0.12);
  color: var(--text);
}

.hero__device {
  justify-self: end;
  position: relative;
  width: min(100%, 340px);
}

.phone {
  position: relative;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2d5a, #12142e);
  box-shadow:
    var(--shadow-glow),
    0 40px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(-6deg);
  transition: transform 0.35s ease;
}

.phone:hover {
  transform: rotate(-3deg) translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .phone:hover {
    transform: rotate(-6deg);
  }
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  background: #0a0b18;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone__screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #0a0b18;
}

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

.hero__score-pill {
  position: absolute;
  bottom: 12%;
  left: -12%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 27, 60, 0.95);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-violet);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__device {
    justify-self: center;
    margin-top: 1rem;
  }

  .hero__rings {
    right: 50%;
    transform: translate(50%, -42%);
    opacity: 0.5;
  }

  .hero__seam {
    left: 0;
    width: 200%;
  }

  .hero__score-pill {
    left: 8%;
  }
}

/* --- Features: bento --- */
.section-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.features {
  padding: 3.5rem 0 4rem;
  position: relative;
}

.features::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 1.25rem 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.bento {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1rem;
}

/* Hero 占左列全高；B + C 在右列上下均分 */
.bento--split {
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}

.bento__col-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  min-width: 0;
}

/* 与左侧 Hero 等高：两格均分右列，内部大图区 flex 撑满剩余高度 */
.bento__col-right > .bento__cell--b,
.bento__col-right > .bento__cell--c {
  flex: 1 1 0;
  min-height: 0;
}

@media (max-width: 768px) {
  .bento--split {
    grid-template-columns: 1fr;
  }

  .bento__col-right {
    display: contents;
  }

  .bento__col-right > .bento__cell--b,
  .bento__col-right > .bento__cell--c {
    flex: none;
    height: auto;
  }

  .bento__cell--b .bento__thumb--b-tall,
  .bento__cell--c .bento__thumb--c-tall {
    flex: none;
    height: 0;
    min-height: unset;
    padding-bottom: calc(100% * 13 / 16 + 50px);
  }
}

/* Skins 全宽条带（与 Download 同款 download__band） */
.feature-skins-wrap {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.feature-skins {
  justify-content: flex-start;
}

.feature-skins__lead {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-skins__lead .bento__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.bento__cell {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bento__cell:hover {
  border-color: rgba(116, 70, 229, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .bento__cell:hover {
    transform: none;
  }
}

.bento__cell--hero {
  min-height: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(116, 70, 229, 0.2), transparent 55%),
    var(--bg-panel);
}

.bento__media {
  overflow: hidden;
}

.bento__media--hero {
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  /* Height follows image aspect ratio — full image visible, no crop */
}

.bento__media--hero img {
  display: block;
  width: 100%;
  height: auto;
}

.bento__cell-body {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
}

.bento__thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

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

/* Top 50% of the bitmap only; same outer size as .bento__thumb (16:10) */
.bento__thumb--top-half {
  position: relative;
}

.bento__thumb--top-half img {
  position: absolute;
  top: -44px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Cell B：右列半高内纵向 flex，缩略图区吃掉多余高度与左侧 Hero 对齐 */
.bento__cell--b {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-top: 1rem;
  padding-bottom: 0.65rem;
}

.bento__cell--b .bento__thumb--b-tall {
  position: relative;
  aspect-ratio: unset;
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: 0;
}

/* 可伸缩视口内仍优先展示画面上半 */
.bento__cell--b .bento__thumb--top-half img {
  top: 0px;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Cell C：同上，整图 cover 填满变高的视口 */
.bento__cell--c .bento__thumb--c-tall {
  position: relative;
  aspect-ratio: unset;
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: 0;
}

/*
 * cover 下不要用 top 位移整张图：top 会连同 height:100% 一起下移，底边超出父级，
 * 而 .bento__thumb 有 overflow:hidden，底部会被裁掉。
 * 想「往下看」画面：改 object-position 的垂直百分比（越大越靠下对齐裁切中心）。
 */
.bento__cell--c .bento__thumb--c-tall img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* 文案不压缩；与上图间距略收紧 */
.bento__cell-b-copy {
  flex-shrink: 0;
  margin-top: 0.75rem;
  padding-top: 0.2rem;
}

.bento__cell--b .bento__icon {
  margin-bottom: 0.65rem;
}

.bento__cell--b .bento__cell-b-copy h3 {
  margin: 0 0 0.35rem;
}

.bento__cell--b .bento__cell-b-copy p {
  margin: 0;
  line-height: 1.45;
}
.bento__cell--c {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-bottom: 0.65rem;
}

.bento__cell--c .bento__icon,
.bento__cell--c h3,
.bento__cell--c p {
  flex-shrink: 0;
}

.bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(116, 70, 229, 0.2);
  color: var(--accent-violet);
  margin-bottom: 1rem;
}

.bento__cell--hero .bento__icon {
  background: rgba(227, 81, 98, 0.2);
  color: var(--accent-coral);
}

.bento__cell h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.bento__cell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Download band --- */
.download {
  padding: 3rem 0 4rem;
}

.download__band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-panel), var(--bg-panel)) padding-box,
    linear-gradient(120deg, var(--accent-violet), var(--accent-coral)) border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Download 区块：文案与按钮上下居中排布（不影响 feature-skins 的 download__band） */
.download .download__band {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.35rem;
}

.download .download__band p {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.download .download__actions {
  justify-content: center;
  width: 100%;
}

.download__band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.download__band p {
  margin: 0;
  color: var(--text-muted);
}

.download__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 28, 0.9);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-violet);
}

.footer-meta {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 18, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.modal-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.modal-card p {
  margin: 0;
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(227, 81, 98, 0.2);
}
