:root {
  color-scheme: light dark;
  --primary: #9d3d62;
  --primary-strong: #6a1738;
  --on-primary: #ffffff;
  --secondary: #67586d;
  --background: #fff8fa;
  --surface: #fffafd;
  --surface-variant: #f5eef7;
  --accent-soft: #ffd9e4;
  --text: #211a1e;
  --text-muted: #655c62;
  --border: #ded4da;
  --focus: #154b8b;
  --shadow: 0 22px 64px rgba(64, 27, 44, .11);
  --radius-lg: 32px;
  --radius-md: 22px;
  --page: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 194, 213, .42), transparent 24rem),
    radial-gradient(circle at 8% 30%, rgba(221, 218, 244, .55), transparent 26rem),
    var(--background);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--on-primary);
  background: var(--primary-strong);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  width: var(--page);
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.studio-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.studio-brand img, .footer-brand img { border-radius: 14px; object-fit: cover; background: white; }
.studio-brand span, .footer-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.studio-brand strong { font-size: 20px; letter-spacing: -.02em; }
.studio-brand small, .footer-brand small { color: var(--text-muted); }
nav { display: flex; gap: 8px; }
nav a { padding: 12px 14px; border-radius: 14px; color: var(--text-muted); font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--primary-strong); background: var(--accent-soft); }

.section-shell, .feature-section, .screens-section, .support-section, footer { width: var(--page); margin-inline: auto; }
.hero { min-height: min(820px, calc(100dvh - 80px)); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding-block: 64px 88px; }
.eyebrow { display: inline-flex; color: var(--primary-strong); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 720px; font-size: clamp(42px, 6vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
h1 span { color: var(--primary); }
.hero__lead { max-width: 660px; margin-bottom: 32px; color: var(--text-muted); font-size: clamp(18px, 2vw, 22px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 800; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; touch-action: manipulation; }
.button--primary { color: var(--on-primary); background: var(--primary-strong); box-shadow: 0 12px 30px rgba(106, 23, 56, .22); }
.button--primary:hover { background: #531129; box-shadow: 0 15px 34px rgba(106, 23, 56, .28); }
.button--secondary { color: var(--primary-strong); border-color: var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); }
.button--secondary:hover { border-color: var(--primary); background: var(--accent-soft); }
.support-inline { margin: 18px 0 0; color: var(--text-muted); }
.support-inline strong { color: var(--primary-strong); font-variant-numeric: tabular-nums; letter-spacing: .03em; }

.hero__visual { position: relative; min-height: 640px; display: grid; place-items: center; }
.hero__visual::before { content: ""; position: absolute; inset: 10% 3% 4%; border-radius: 50%; background: linear-gradient(145deg, rgba(255, 211, 225, .9), rgba(229, 225, 244, .8)); filter: blur(2px); }
.hero-phone { position: relative; z-index: 1; width: min(390px, 83vw); filter: drop-shadow(0 28px 35px rgba(31, 18, 25, .18)); }
.app-badge { position: absolute; z-index: 2; left: 0; bottom: 14%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: rgba(255, 250, 253, .88); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.app-badge img { width: 64px; height: 64px; border-radius: 18px; }
.app-badge span { display: flex; flex-direction: column; }
.app-badge strong { font-size: 19px; }
.app-badge small { color: #655c62; }


.feature-section, .screens-section { padding-block: 88px; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .support-section h2, .final-cta h2, .legal-page h1 { margin: 8px 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { color: var(--text-muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature-grid article { position: relative; overflow: hidden; grid-column: span 2; min-height: 250px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 10px 32px rgba(64, 27, 44, .06); }
.feature-grid article:nth-child(4) { grid-column: 2 / span 2; }
.feature-grid article > svg { width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: var(--primary-strong); background: var(--accent-soft); }
.story-index { float: right; color: var(--primary); font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.feature-grid h3 { margin: 24px 0 10px; font-size: 22px; }
.feature-grid p { margin: 0; color: var(--text-muted); }

.screens-section { width: 100%; padding-inline: max(16px, calc((100% - 1180px) / 2)); background: var(--surface-variant); }
.screens-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); }
.screens-grid figure { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: 0 14px 36px rgba(64, 27, 44, .08); }
.screens-grid img { display: block; width: 100%; aspect-ratio: 654 / 1366; object-fit: contain; }
.screens-grid figcaption { padding: 12px 4px 4px; color: var(--text-muted); font-size: 14px; font-weight: 700; text-align: center; }

.support-section { margin-block: 96px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: white; background: linear-gradient(135deg, #6a1738, #9d3d62); box-shadow: 0 22px 54px rgba(106, 23, 56, .25); }
.support-section .eyebrow { color: #ffd9e4; }
.support-section h2 { max-width: 700px; margin-bottom: 10px; }
.support-section p { margin: 0; color: #ffe9ef; font-size: 18px; }
.button--light { color: #6a1738; background: white; white-space: nowrap; }
.button--light:hover { background: #ffeaf0; }

.final-cta { margin-block: 72px 96px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; background: var(--surface); }
.final-cta > img { border-radius: 18px; }
.final-cta h2 { margin: 0 0 5px; font-size: clamp(26px, 4vw, 38px); }
.final-cta p { margin: 0; color: var(--text-muted); }

footer { min-height: 140px; padding-block: 34px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; color: var(--text-muted); }
.footer-links a:hover, .back-link:hover { color: var(--primary); }

.legal-page { width: min(820px, calc(100% - 32px)); margin: 42px auto 96px; }
.legal-page article { padding: clamp(24px, 5vw, 56px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.legal-page h1 { margin-top: 22px; }
.legal-page h2 { margin-top: 34px; margin-bottom: 8px; font-size: 22px; }
.legal-page p { color: var(--text-muted); }
.legal-date { font-variant-numeric: tabular-nums; }
.back-link { display: inline-flex; min-height: 48px; align-items: center; color: var(--primary-strong); font-weight: 750; }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .46s cubic-bezier(.2,.75,.25,1), transform .46s cubic-bezier(.2,.75,.25,1);
  transition-delay: calc(var(--reveal-order, 0) * 45ms);
}
.motion-ready [data-reveal="hero"] { transform: translateY(10px); transition-duration: .52s; }
.motion-ready [data-reveal="hero-visual"] { transform: translateY(20px) scale(.985); transition-duration: .58s; transition-delay: 90ms; }
.motion-ready [data-reveal].is-revealed { opacity: 1; transform: translateY(0) scale(1); }
.motion-ready .feature-grid article.is-revealed::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform-origin: left;
  animation: story-line .48s .18s both cubic-bezier(.2,.75,.25,1);
}
@keyframes story-line { from { opacity: 0; transform: scaleX(.15); } to { opacity: .8; transform: scaleX(1); } }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero__visual { min-height: 590px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid article, .feature-grid article:nth-child(4) { grid-column: auto; }
  .feature-grid article:last-child { grid-column: 1 / -1; min-height: auto; }
  .screens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --page: min(100% - 24px, 1180px); --radius-lg: 26px; }
  .site-header { min-height: 72px; }
  .studio-brand img { width: 42px; height: 42px; }
  .hero { min-height: auto; padding-block: 48px 68px; gap: 22px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero__visual { min-height: 520px; }
  .hero-phone { width: min(330px, 86vw); }
  .app-badge { left: 2px; bottom: 7%; padding: 9px 12px; }
  .app-badge img { width: 52px; height: 52px; }
  .feature-section, .screens-section { padding-block: 68px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:last-child { grid-column: auto; min-height: auto; }
  .screens-grid { gap: 8px; }
  .screens-grid figure { padding: 6px; border-radius: 18px; }
  .screens-grid figcaption { padding-top: 8px; font-size: 12px; }
  .support-section { margin-block: 68px; align-items: stretch; flex-direction: column; }
  .final-cta { grid-template-columns: auto 1fr; }
  .final-cta .button { grid-column: 1 / -1; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ffb0c9;
    --primary-strong: #ffd9e4;
    --on-primary: #4a0a26;
    --background: #171216;
    --surface: #211a20;
    --surface-variant: #29232e;
    --accent-soft: #51293a;
    --text: #f7eef2;
    --text-muted: #d3c4cb;
    --border: #554850;
    --focus: #9fc9ff;
    --shadow: 0 22px 64px rgba(0, 0, 0, .32);
  }
  body { background: radial-gradient(circle at 88% 8%, rgba(122, 37, 72, .38), transparent 24rem), radial-gradient(circle at 8% 30%, rgba(72, 62, 100, .42), transparent 26rem), var(--background); }
  .button--primary { color: #4a0a26; background: #ffb0c9; }
  .button--primary:hover { background: #ffd0dd; }
  .button--secondary { color: var(--text); }
  .app-badge { color: #211a1e; background: rgba(255, 250, 253, .92); }
  .support-section { color: white; background: linear-gradient(135deg, #6a1738, #8f3156); }
}

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