:root {
    --night: #050914;
    --night-raised: #0a1222;
    --surface: rgba(16, 27, 48, 0.82);
    --surface-strong: #101c31;
    --gold: #f3c86d;
    --gold-soft: rgba(243, 200, 109, 0.14);
    --teal: #57d6c6;
    --blue: #6f8dff;
    --ink: #f6f8ff;
    --muted: #aebbd0;
    --line: rgba(210, 225, 255, 0.14);
    --max-width: 1120px;
    --font: "Manrope", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    background:
        radial-gradient(circle at 12% 3%, rgba(74, 127, 198, 0.14), transparent 31rem),
        radial-gradient(circle at 88% 22%, rgba(87, 214, 198, 0.08), transparent 28rem),
        var(--night);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}
img { display: block; height: auto; max-width: 100%; }
.shell { margin: 0 auto; max-width: var(--max-width); width: calc(100% - 48px); }

.header {
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 9, 20, 0.8);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    left: 0;
    min-height: 70px;
    padding: 10px 28px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}
.back-link,
.header-nav a {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 44px;
    text-decoration: none;
}
.back-link:hover,
.header-nav a:hover { color: var(--ink); }
.header-logo {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-decoration: none;
}
.header-logo::before { color: var(--gold); content: "✦"; margin-right: 8px; }
.header-nav { display: flex; gap: 22px; justify-content: flex-end; }

.hero {
    min-height: 720px;
    overflow: hidden;
    padding: 158px 0 86px;
    position: relative;
}
.hero::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.86) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(243,200,109,.72) 0 1px, transparent 1.7px);
    background-position: 0 0, 31px 47px;
    background-size: 92px 92px, 137px 137px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    opacity: .24;
    pointer-events: none;
    position: absolute;
}
.hero::after {
    background: radial-gradient(ellipse, rgba(65, 111, 181, .35), transparent 66%);
    content: "";
    height: 620px;
    pointer-events: none;
    position: absolute;
    right: -180px;
    top: 28px;
    width: 760px;
}
.hero-grid {
    align-items: center;
    display: grid;
    gap: clamp(50px, 8vw, 104px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
    position: relative;
    z-index: 1;
}
.eyebrow {
    color: var(--teal);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(3.2rem, 6.6vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1.12;
    margin: 18px 0 28px;
    text-wrap: balance;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 2; max-width: 580px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.store-cta {
    align-items: center;
    background: linear-gradient(135deg, #f8d889, var(--gold));
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(243, 200, 109, .18);
    color: #171107;
    display: inline-flex;
    font-size: .94rem;
    font-weight: 800;
    min-height: 50px;
    padding: 12px 24px;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}
.store-cta:hover { box-shadow: 0 20px 46px rgba(243, 200, 109, .25); transform: translateY(-2px); }
.store-cta:focus-visible { outline: 3px solid rgba(87, 214, 198, .7); outline-offset: 4px; }
.store-note { color: #8e9db5; font-size: .78rem; }
.icon-stage { align-items: center; display: flex; justify-content: center; min-height: 410px; position: relative; }
.icon-stage::before,
.icon-stage::after { border: 1px solid rgba(243, 200, 109, .16); border-radius: 50%; content: ""; position: absolute; }
.icon-stage::before { height: 390px; width: 390px; }
.icon-stage::after { border-color: rgba(87, 214, 198, .13); height: 300px; width: 300px; }
.hero-icon {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 29%;
    box-shadow: 0 42px 90px rgba(0,0,0,.55), 0 0 80px rgba(87,214,198,.08);
    position: relative;
    width: min(260px, 70vw);
    z-index: 1;
}

.facts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); background: rgba(9, 16, 29, .72); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 22px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { color: var(--gold); display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.fact span { color: var(--muted); font-size: .76rem; font-weight: 700; }

.screenshots { overflow: hidden; padding: 104px 0 116px; }
.section-heading { margin: 0 auto 48px; max-width: 680px; text-align: center; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.25; margin-top: 10px; }
.section-heading p:last-child { color: var(--muted); margin-top: 14px; }
.screenshots-row { align-items: flex-start; display: flex; gap: clamp(14px, 2vw, 26px); justify-content: center; }
.screenshot {
    background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(0,0,0,.36);
    flex: 0 1 330px;
    overflow: hidden;
    padding: 8px;
    transition: border-color .2s ease, transform .25s ease;
}
.screenshot:nth-child(2) { margin-top: 48px; }
.screenshot:hover { border-color: rgba(243,200,109,.36); transform: translateY(-8px); }
.screenshot img { border-radius: 25px; width: 100%; }

.features { background: linear-gradient(180deg, rgba(15, 26, 45, .8), rgba(7, 13, 25, .8)); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 104px 0; }
.features-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
    border: 1px solid var(--line);
    border-radius: 22px;
    min-height: 250px;
    padding: 28px;
}
.feature-icon {
    align-items: center;
    background: var(--gold-soft);
    border: 1px solid rgba(243,200,109,.2);
    border-radius: 14px;
    color: var(--gold);
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    height: 50px;
    justify-content: center;
    margin-bottom: 20px;
    width: 50px;
}
.feature-card:nth-child(2n) .feature-icon { background: rgba(87,214,198,.1); border-color: rgba(87,214,198,.18); color: var(--teal); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .88rem; line-height: 1.85; }

.plans { padding: 108px 0; }
.plan-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin: 0 auto; max-width: 860px; }
.plan-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px;
    position: relative;
}
.plan-card.premium { border-color: rgba(243,200,109,.54); box-shadow: 0 24px 70px rgba(243,200,109,.07); }
.plan-badge { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.premium .plan-badge { color: var(--gold); }
.plan-card h3 { font-size: 1.48rem; margin: 5px 0 8px; }
.plan-card > p { color: var(--muted); font-size: .9rem; }
.plan-card ul { list-style: none; margin-top: 24px; }
.plan-card li { border-top: 1px solid var(--line); color: #d6deec; font-size: .88rem; padding: 10px 0 10px 24px; position: relative; }
.plan-card li::before { color: var(--teal); content: "✓"; left: 0; position: absolute; }
.premium li::before { color: var(--gold); }

.privacy-note { padding: 0 0 108px; }
.privacy-card {
    align-items: center;
    background: linear-gradient(135deg, rgba(87,214,198,.12), rgba(111,141,255,.08));
    border: 1px solid rgba(87,214,198,.2);
    border-radius: 26px;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr auto;
    padding: clamp(30px, 5vw, 48px);
}
.privacy-card h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.privacy-card p { color: var(--muted); margin-top: 10px; max-width: 700px; }
.text-link { align-items: center; border-bottom: 1px solid currentColor; color: var(--teal); display: inline-flex; font-size: .88rem; font-weight: 800; min-height: 44px; text-decoration: none; white-space: nowrap; }

.contact { border-top: 1px solid var(--line); padding: 74px 24px; text-align: center; }
.contact h2 { font-size: 1.65rem; }
.contact p { color: var(--muted); margin-top: 8px; }
.contact a { font-weight: 800; text-decoration: none; }
.footer { background: #03060d; border-top: 1px solid var(--line); color: #75839a; padding: 38px 24px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; margin-bottom: 14px; }
.footer-links a { color: var(--muted); font-size: .8rem; text-decoration: none; }
.footer-copy { font-size: .76rem; }

.legal-hero { background: linear-gradient(160deg, var(--surface-strong), var(--night)); padding: 134px 24px 56px; text-align: center; }
.legal-hero h1 { font-size: clamp(2.05rem, 4vw, 3rem); letter-spacing: -.04em; margin-top: 8px; }
.legal-hero p:last-child { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.legal-content {
    background: rgba(12, 22, 39, .82);
    border: 1px solid var(--line);
    border-radius: 26px;
    margin: 58px auto 96px;
    max-width: 860px;
    padding: clamp(30px, 6vw, 64px);
    width: calc(100% - 48px);
}
.legal-content .lede { color: #dbe3f1; font-size: 1.05rem; margin-bottom: 34px; }
.legal-content h2 { color: var(--ink); font-size: 1.14rem; margin: 38px 0 12px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.legal-content a { text-underline-offset: 3px; }

@media (max-width: 900px) {
    .hero { min-height: auto; padding-top: 132px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 720px; }
    .icon-stage { min-height: 330px; }
    .hero-icon { width: 230px; }
    .icon-stage::before { height: 320px; width: 320px; }
    .icon-stage::after { height: 250px; width: 250px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
    .shell { width: calc(100% - 36px); }
    .header { grid-template-columns: auto 1fr; padding: 10px 18px; }
    .back-link { display: none; }
    .header-logo { justify-self: start; }
    .header-nav { gap: 13px; }
    .header-nav a { font-size: .73rem; }
    .hero { padding: 112px 0 62px; }
    .hero h1 { font-size: clamp(2.65rem, 13vw, 3.8rem); }
    .hero-copy > p:not(.eyebrow) { font-size: .94rem; }
    .icon-stage { min-height: 280px; }
    .hero-icon { width: 190px; }
    .icon-stage::before { height: 260px; width: 260px; }
    .icon-stage::after { height: 210px; width: 210px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .fact:nth-child(4) { border-top: 1px solid var(--line); }
    .screenshots, .features, .plans { padding: 74px 0; }
    .screenshots-row { gap: 8px; margin-inline: -6px; }
    .screenshot { border-radius: 15px; padding: 4px; }
    .screenshot img { border-radius: 11px; }
    .screenshot:nth-child(2) { margin-top: 24px; }
    .features-grid, .plan-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 0; }
    .privacy-note { padding-bottom: 74px; }
    .privacy-card { align-items: start; grid-template-columns: 1fr; }
    .legal-hero { padding: 114px 18px 42px; }
    .legal-content { margin: 36px auto 70px; padding: 30px 24px; width: calc(100% - 36px); }
}

@media (max-width: 540px) {
    .header-nav a:not(:last-child) { display: none; }
}

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