:root {
    color-scheme: light dark;
    --page: #fff;
    --surface: rgba(255, 255, 255, 0.72);
    --text: #101221;
    --muted: #50536a;
    --line: rgba(30, 32, 55, 0.12);
    --pink: #eb2f85;
    --violet: #7548f4;
    --pink-soft: rgba(235, 47, 133, 0.08);
    --violet-soft: rgba(117, 72, 244, 0.08);
    --header: rgba(255, 255, 255, 0.84);
    --shadow: 0 18px 50px rgba(50, 46, 85, 0.08);
    --focus: rgba(117, 72, 244, 0.42);
    --content-width: 1390px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #060914;
        --surface: rgba(13, 17, 31, 0.78);
        --text: #f6f5f8;
        --muted: #b7b7c5;
        --line: rgba(226, 226, 244, 0.14);
        --pink-soft: rgba(235, 47, 133, 0.12);
        --violet-soft: rgba(117, 72, 244, 0.14);
        --header: rgba(6, 9, 20, 0.88);
        --shadow: 0 22px 68px rgba(0, 0, 0, 0.38);
        --focus: rgba(235, 47, 133, 0.5);
    }
}

html[data-theme="light"] {
    color-scheme: light;
    --page: #fff;
    --surface: rgba(255, 255, 255, 0.72);
    --text: #101221;
    --muted: #50536a;
    --line: rgba(30, 32, 55, 0.12);
    --pink-soft: rgba(235, 47, 133, 0.08);
    --violet-soft: rgba(117, 72, 244, 0.08);
    --header: rgba(255, 255, 255, 0.84);
    --shadow: 0 18px 50px rgba(50, 46, 85, 0.08);
    --focus: rgba(117, 72, 244, 0.42);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page: #060914;
    --surface: rgba(13, 17, 31, 0.78);
    --text: #f6f5f8;
    --muted: #b7b7c5;
    --line: rgba(226, 226, 244, 0.14);
    --pink-soft: rgba(235, 47, 133, 0.12);
    --violet-soft: rgba(117, 72, 244, 0.14);
    --header: rgba(6, 9, 20, 0.88);
    --shadow: 0 22px 68px rgba(0, 0, 0, 0.38);
    --focus: rgba(235, 47, 133, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at 76% 22%, var(--violet-soft), transparent 31rem), radial-gradient(circle at 16% 4%, var(--pink-soft), transparent 26rem), var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header {
    width: min(calc(100% - 110px), var(--content-width));
    height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 16px; font-size: 28px; font-weight: 760; letter-spacing: -0.03em; }
.brand img { width: 54px; height: 54px; border-radius: 13px; }
.site-navigation { display: flex; align-items: center; gap: 48px; }
.site-navigation a, .site-footer nav a { color: var(--muted); font-size: 16px; font-weight: 520; transition: color 160ms ease; }
.site-navigation a:hover, .site-footer nav a:hover { color: var(--text); }
.site-header-controls { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; }
.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.theme-toggle:hover { color: var(--text); border-color: rgba(117, 72, 244, 0.38); transform: translateY(-1px); }
.theme-toggle i { font-size: 15px; }
.theme-toggle i[hidden] { display: none; }
.language-toggle {
    min-width: 66px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 560;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.language-toggle:hover { color: var(--text); border-color: rgba(117, 72, 244, 0.38); }
.language-toggle [data-language-option].is-active { color: var(--text); font-weight: 760; }
.language-divider { opacity: 0.45; }

.button {
    min-height: 58px;
    padding: 0 36px;
    border: 1px solid var(--line);
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(117, 72, 244, 0.4); }
.button-primary { color: #fff; border-color: transparent; background: linear-gradient(115deg, var(--pink), var(--violet)); box-shadow: 0 12px 28px rgba(158, 49, 171, 0.2); }
.button-primary:hover { box-shadow: 0 15px 34px rgba(158, 49, 171, 0.28); }
.button-android { color: var(--muted); }
.button-android:hover { color: var(--text); }

.site-notice {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 100;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: var(--header);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(-50%);
    text-align: center;
    font-size: 14px;
    font-weight: 650;
}
.site-notice[hidden] { display: none; }

body.download-dialog-open { overflow: hidden; }
.download-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 16, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.download-dialog-backdrop[hidden] { display: none; }
.download-dialog {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    padding: 34px 36px 32px;
    border: 1px solid var(--line);
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    background: var(--page);
    box-shadow: 0 28px 90px rgba(4, 5, 13, 0.34);
    text-align: center;
}
.download-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}
.download-dialog-app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 28px rgba(117, 72, 244, 0.18); }
.download-dialog h2 { margin: 20px 0 0; font-size: 27px; letter-spacing: -0.035em; }
.download-dialog > p { max-width: 320px; margin: 10px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.download-dialog-qr-frame { width: 238px; height: 238px; padding: 11px; border: 1px solid rgba(16, 18, 33, 0.1); border-radius: 22px; background: #fff; box-shadow: 0 16px 38px rgba(36, 32, 67, 0.1); }
.download-dialog-qr { width: 100%; height: 100%; display: block; border-radius: 12px; }
.download-dialog-store-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; color: var(--violet); font-size: 14px; font-weight: 650; }
.download-dialog-store-link:hover { text-decoration: underline; text-underline-offset: 4px; }

main { width: 100%; }
.hero {
    width: min(calc(100% - 110px), var(--content-width));
    height: 474px;
    margin: 0 auto;
    padding: 46px 18px 54px;
    display: grid;
    grid-template-columns: minmax(550px, 0.9fr) minmax(650px, 1.1fr);
    align-items: center;
    gap: 50px;
}
.hero-copy { max-width: 570px; }
h1 { margin: 0; font-size: clamp(54px, 4.8vw, 70px); line-height: 1.12; letter-spacing: -0.052em; font-weight: 760; }
html[lang="en"] h1 { font-size: clamp(50px, 3.75vw, 56px); }
.accent-text { color: transparent; background: linear-gradient(100deg, var(--pink), var(--violet)); background-clip: text; -webkit-background-clip: text; }
.hero-description { max-width: 560px; margin: 25px 0 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.signal-preview {
    height: 360px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.preview-grid { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preview-card { position: relative; padding: 8px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.preview-card + .preview-card::before { content: ""; position: absolute; left: 0; top: 22%; width: 1px; height: 56%; background: var(--line); }
.preview-label { margin: 0 0 20px; color: var(--text); font-size: 16px; font-weight: 600; }
.preview-icon, .step-icon, .privacy-icon { display: inline-flex; align-items: center; justify-content: center; }
.preview-icon { width: 78px; height: 78px; margin-bottom: 20px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 32px; }
.preview-icon-pink { color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 22px var(--pink-soft); }
.preview-icon-violet { color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 22px var(--violet-soft); }
.preview-icon-blue { color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 22px var(--violet-soft); }
.preview-card h3, .preview-card blockquote { max-width: 190px; margin: 0; font-size: 17px; line-height: 1.55; font-weight: 520; letter-spacing: -0.018em; }
.preview-card blockquote { color: var(--violet); }

.process {
    height: 226px;
    padding: 34px max(70px, calc((100% - var(--content-width)) / 2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.process > h2 { margin: 0; text-align: center; font-size: 31px; letter-spacing: -0.04em; }
.process-list { max-width: 1200px; height: 104px; margin: 27px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.process-list li { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; }
.process-list li + li::before { content: ""; position: absolute; left: 0; top: 17%; width: 1px; height: 66%; background: var(--line); }
.step-icon { width: 60px; height: 60px; color: var(--pink); border: 2px solid currentColor; border-radius: 18px; font-size: 24px; }
.process-list li:nth-child(2) .step-icon { color: var(--violet); border-radius: 50%; }
.process-list li:nth-child(3) .step-icon { color: var(--violet); border: 0; font-size: 46px; }
.process-list h3 { margin: 0; font-size: 18px; font-weight: 560; letter-spacing: -0.02em; }

.privacy-band { min-height: 160px; padding: 28px 40px; display: flex; align-items: center; justify-content: center; gap: 28px; text-align: left; }
.privacy-icon { width: 58px; height: 64px; color: var(--violet); font-size: 45px; }
.privacy-band h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.privacy-band p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.site-footer { height: 68px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.site-footer nav { display: flex; gap: 0; }
.site-footer nav a { min-width: 140px; text-align: center; }
.site-footer nav a + a { border-left: 1px solid var(--line); }

@media (min-width: 1121px) {
    body.official-home {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }
    body.official-home > main {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }
    body.official-home .hero {
        height: auto;
        min-height: 474px;
        flex: 1 0 474px;
    }
    body.official-home .process,
    body.official-home .privacy-band,
    body.official-home > .site-footer {
        flex: 0 0 auto;
    }
}

@media (max-width: 1120px) {
    .site-header, .hero { width: min(calc(100% - 48px), var(--content-width)); }
    .site-navigation { gap: 26px; }
    .hero { height: auto; min-height: 760px; padding-block: 70px; grid-template-columns: 1fr; gap: 54px; }
    .hero-copy { max-width: 680px; }
    .signal-preview { max-width: 900px; }
}

@media (max-width: 760px) {
    .site-header { position: relative; z-index: 20; width: 100%; height: 70px; padding: 0 16px; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
    .brand { gap: 10px; font-size: 19px; }
    .brand img { width: 38px; height: 38px; border-radius: 10px; }
    .site-header-controls { margin-left: auto; gap: 8px; }
    .theme-toggle, .menu-button { width: 42px; height: 42px; }
    .menu-button { border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text); cursor: pointer; }
    .site-navigation { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; padding: 10px; display: none; flex-direction: column; align-items: stretch; gap: 3px; border: 1px solid var(--line); border-radius: 15px; background: var(--page); box-shadow: var(--shadow); }
    .site-navigation.is-open { display: flex; }
    .site-navigation a { padding: 12px 13px; border-radius: 10px; }
    .site-navigation .language-toggle { width: 100%; min-height: 43px; padding: 0 13px; border: 0; justify-content: flex-start; background: transparent; }
    .hero { width: calc(100% - 28px); min-height: 0; padding: 64px 0 66px; gap: 46px; }
    h1 { font-size: clamp(42px, 13vw, 58px); line-height: 1.06; }
    .hero-description { margin-top: 20px; font-size: 17px; }
    .hero-actions { align-items: stretch; margin-top: 28px; gap: 10px; }
    .store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .button { min-height: 52px; padding-inline: 14px; font-size: 15px; }
    .hero-actions .button-primary, .store-actions .button { width: 100%; }
    .signal-preview { height: auto; padding: 14px 22px; border-radius: 21px; }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-card { min-height: 220px; padding: 24px 12px; }
    .preview-card + .preview-card::before { left: 15%; top: 0; width: 70%; height: 1px; }
    .preview-label { margin-bottom: 15px; }
    .preview-icon { width: 68px; height: 68px; margin-bottom: 15px; }
    .process { height: auto; padding: 58px 14px 62px; }
    .process > h2 { font-size: 28px; }
    .process-list { width: 100%; height: auto; margin-top: 28px; grid-template-columns: 1fr; }
    .process-list li { min-height: 100px; justify-content: flex-start; padding: 0 32px; }
    .process-list li + li::before { left: 18%; top: 0; width: 64%; height: 1px; }
    .step-icon { width: 54px; height: 54px; }
    .privacy-band { min-height: 220px; padding: 42px 28px; flex-direction: column; gap: 18px; text-align: center; }
    .privacy-band h2 { font-size: 24px; }
    .privacy-band p { max-width: 310px; line-height: 1.7; }
    .site-footer { height: 80px; }
    .site-footer nav a { min-width: 102px; font-size: 14px; }
    .download-dialog-backdrop { padding: 16px; }
    .download-dialog { padding: 30px 22px 28px; }
}

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