:root {
  color-scheme: light;
  --bg: #f8f7f5;
  --surface: #efedf5;
  --surface-strong: #e7e3ef;
  --ink: #25252c;
  --muted: #65656f;
  --primary: #68519a;
  --on-primary: #fff;
  --primary-container: #e9ddff;
  --on-primary-container: #2b174e;
  --secondary: #496c63;
  --secondary-container: #d9eee6;
  --tertiary: #a3545a;
  --tertiary-container: #ffdadc;
  --line: #deddd8;
  --shape-small: 12px;
  --shape-medium: 18px;
  --shape-large: 28px;
  --shape-full: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: "Manrope", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
body, button, a { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 4px; }
.shell { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1001; top: -100px; left: 20px; padding: 10px 14px; border-radius: var(--shape-small); background: var(--bg); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* A short branded entrance, then the quiet product page. */
.opening-screen { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; background: #111116; animation: opening-away .65s ease 1.45s forwards; }
.opening-emblem { width: 166px; animation: emblem-away .45s ease 1.32s forwards; }
.opening-emblem img { width: 100%; filter: drop-shadow(0 0 0 #aa8ee000); animation: emblem-glow 1.1s ease-out .12s forwards; }
.opening-emblem::before { position: absolute; inset: -45%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #a780df45, #a780df00 68%); content: ""; opacity: 0; animation: halo-in .9s ease-out .12s forwards; }
.opening-emblem { position: relative; isolation: isolate; }
@keyframes emblem-glow { 65% { filter: drop-shadow(0 0 26px #af8fe8cc); } 100% { filter: drop-shadow(0 0 17px #af8fe899); } }
@keyframes halo-in { to { opacity: 1; transform: scale(1.08); } }
@keyframes emblem-away { to { opacity: 0; transform: scale(1.04); } }
@keyframes opening-away { to { opacity: 0; visibility: hidden; } }

.site-header { position: sticky; z-index: 30; top: 0; display: flex; height: 82px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgb(248 247 245 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand small { display: block; margin-top: -3px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.main-nav > a, .friends-trigger { transition: color .18s ease; }
.main-nav > a:hover, .friends-trigger:hover { color: var(--primary); }
.nav-download { padding-left: 25px; border-left: 1px solid var(--line); color: var(--primary); font-weight: 700; }
.friends-menu { position: relative; }
.friends-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 10px 0; border: 0; background: transparent; cursor: pointer; font-size: inherit; }
.friends-trigger span { color: var(--muted); font-size: 12px; transition: transform .2s var(--ease); }
.friends-menu.is-open .friends-trigger span { transform: rotate(180deg); }
.friends-dropdown { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: 172px; padding: 7px; border: 1px solid var(--line); border-radius: var(--shape-medium); background: var(--bg); box-shadow: 0 12px 28px #201a3020; opacity: 0; pointer-events: none; transform: translateY(-5px); transition: opacity .18s ease, transform .18s var(--ease); }
.friends-menu.is-open .friends-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.friends-dropdown a { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: var(--shape-small); font-size: 13px; }
.friends-dropdown a:hover { background: var(--surface); color: var(--primary); }
.friends-dropdown a span { color: var(--muted); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 50%; background: var(--primary-container); cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--on-primary-container); }

.hero { display: grid; min-height: 535px; grid-template-columns: 1.35fr .8fr; align-items: center; gap: 64px; padding-block: 76px 82px; }
.hero-copy { animation: rise-in .7s var(--ease) 1.65s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { margin: 0 0 18px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.hero h1 { margin: 0 0 20px; font-size: clamp(37px, 4.2vw, 54px); font-weight: 700; letter-spacing: 0; line-height: 1.38; }
.hero h1 span { color: var(--primary); }
.intro { max-width: 540px; margin: 0 0 27px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 20px; padding: 0 21px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; transition: transform .2s var(--ease), background .2s ease; }
.button:hover { transform: translateY(-2px); background: #574183; }
.text-link { display: block; width: fit-content; margin-top: 17px; color: var(--primary); font-size: 13px; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateY(3px); }
.free-note { display: flex; align-items: center; gap: 9px; margin: 25px 0 0; color: var(--secondary); font-size: 12px; font-weight: 600; }
.free-note span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--secondary-container); }
.hero-art { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; animation: rise-in .75s var(--ease) 1.82s both; }
.hero-icon { width: 220px; }
.hero-icon img { width: 100%; filter: drop-shadow(0 18px 20px #35294b24); }
.art-caption { margin-top: 20px; text-align: center; }
.art-caption strong { display: block; font-size: 22px; line-height: 1.35; }
.art-caption span { color: var(--muted); font-size: 13px; }

.project-note { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; padding-block: 23px; border-block: 1px solid var(--line); animation: rise-in .65s var(--ease) 2s both; }
.note-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--primary-container); color: var(--on-primary-container); font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.project-note p { max-width: 850px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.product-preview { padding-block: 86px 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2, .download h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.4; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; }
.product-images { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: start; }
.product-images figure { min-width: 0; margin: 0; }
.product-images figure:nth-child(2) { margin-top: 30px; }
.product-images figure:nth-child(3) { margin-top: 60px; }
.product-images img { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 15px 15px 15px 5px; background: var(--surface); object-fit: cover; object-position: top; box-shadow: 0 10px 30px #332b3c12; transition: transform .35s var(--ease); }
.product-images figure:hover img { transform: translateY(-5px); }
.product-images figcaption { margin-top: 11px; color: var(--muted); font-size: 12px; }

.features { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; padding-block: 55px 82px; border-top: 1px solid var(--line); }
.features .section-heading { display: block; margin: 0; }
.features .section-heading h2 { font-size: 28px; }
.features .section-heading > p { margin-top: 14px; line-height: 1.8; }
.feature-list article { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 0 0 22px; }
.feature-list article + article { padding-top: 22px; border-top: 1px solid var(--line); }
.feature-index { padding-top: 3px; color: var(--primary); font-size: 12px; font-weight: 600; }
.feature-list h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.feature-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.feature-meta { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: var(--shape-full); background: var(--primary-container); color: var(--on-primary-container); font-size: 10px; }

.download { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 36px; padding: 34px 42px; border-radius: 18px; background: var(--surface); }
.download .eyebrow { margin-bottom: 9px; }
.download h2 { margin-bottom: 9px; }
.download > div:first-child > p:not(.eyebrow) { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; }
.download .button { margin-top: 20px; }
.download-detail { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.download-detail img { width: 62px; height: 62px; object-fit: contain; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px 32px; color: var(--muted); font-size: 12px; }
.footer-brand { gap: 8px; color: var(--ink); font-size: 15px; }
.footer-brand img { width: 27px; height: 27px; }
.site-footer > a:last-child { color: var(--primary); }

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .shell { width: calc(100% - 40px); }
  .site-header { height: 70px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand img { width: 31px; height: 31px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 61px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--shape-medium); background: var(--bg); box-shadow: 0 12px 30px #201a3018; }
  .main-nav.is-open { display: grid; }
  .main-nav > a, .friends-trigger { width: 100%; padding: 12px; text-align: left; }
  .nav-download { margin-top: 3px; padding: 12px; border-top: 1px solid var(--line); border-left: 0; }
  .friends-dropdown { position: static; display: none; width: auto; margin: 0 8px 8px; border: 0; background: var(--surface); box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .friends-menu.is-open .friends-dropdown { display: grid; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 26px; padding-block: 55px 45px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .intro { max-width: 560px; font-size: 15px; }
  .hero-art { min-height: 250px; }
  .hero-icon { width: 158px; }
  .art-caption { margin-top: 12px; }
  .project-note { grid-template-columns: 34px 1fr; gap: 12px; padding-block: 19px; }
  .note-mark { width: 31px; height: 31px; }
  .project-note p { font-size: 11px; }
  .product-preview { padding-block: 61px 50px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading h2, .download h2 { font-size: 26px; }
  .section-heading > p { margin-top: 10px; }
  .product-images { grid-template-columns: 1fr 1fr; gap: 13px; }
  .product-images figure:nth-child(2), .product-images figure:nth-child(3) { margin-top: 0; }
  .product-images figure:nth-child(3) { display: none; }
  .product-images img { height: 285px; border-radius: 12px 12px 12px 4px; }
  .product-images figcaption { font-size: 10px; }
  .features { grid-template-columns: 1fr; gap: 24px; padding-block: 43px 55px; }
  .features .section-heading h2 { font-size: 25px; }
  .feature-list article { grid-template-columns: 86px 1fr; gap: 12px; padding-bottom: 18px; }
  .feature-list article + article { padding-top: 18px; }
  .feature-list h3 { font-size: 15px; }
  .feature-list p { font-size: 12px; }
  .download { grid-template-columns: 1fr; gap: 20px; padding: 25px 22px; border-radius: 16px; }
  .download-detail { justify-content: flex-start; padding-top: 17px; border-top: 1px solid #d5cfe0; }
  .download-detail img { width: 48px; height: 48px; }
  .site-footer { flex-wrap: wrap; padding-block: 23px 28px; }
  .site-footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening-screen { display: none; }
  .hero-copy, .hero-art { animation: none; opacity: 1; }
  .button, .product-images img { transition: none; }
  .button:hover, .product-images figure:hover img { transform: none; }
}
