:root {
    --ink: #123f48;
    --ink-soft: #275660;
    --teal: #2c7f91;
    --teal-bright: #2b9db4;
    --line: #2b8397;
    --page: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    color-scheme: only light;
    background: #ffffff;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    font-family: Arial, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #6ab0b6;
    outline-offset: 3px;
}

.site-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 18px 0 22px;
    background: #ffffff;
    overflow: clip;
}

.site-header {
    width: min(calc(100% - 48px), 1072px);
    min-height: 132px;
    margin: 0 auto;
    padding: 18px 28px 18px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: white;
    background: linear-gradient(105deg, #123f48 0%, #164e58 52%, #2d91aa 100%);
    border-radius: 34px;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.brand-title {
    overflow: hidden;
    font-size: clamp(2.3rem, 5.2vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-mark {
    flex: 0 0 auto;
    width: 84px;
    min-width: 84px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.brand-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.brand-icon-frame {
    width: 80px;
    height: 72px;
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.menu-icon,
.close-menu {
    color: white;
    background: transparent;
    cursor: pointer;
}

.menu-icon {
    display: none;
}

.menu-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    line-height: 1;
}

.hero {
    min-height: clamp(600px, 72svh, 760px);
    padding: 72px 24px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    color: var(--ink-soft);
    font-size: clamp(2rem, 3.7vw, 3.2rem);
    font-weight: 300;
    line-height: 1.27;
}

.download-button {
    width: min(100%, 430px);
    min-height: 118px;
    margin-top: 124px;
    padding: 18px 26px;
    color: white;
    background: linear-gradient(145deg, #2d8193, #24778a);
    border-radius: 20px;
    box-shadow: 0 12px 2px rgba(18, 63, 72, 0.14), 0 16px 26px rgba(33, 104, 117, 0.18);
    cursor: pointer;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.18;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.download-button:hover {
    background: linear-gradient(145deg, #3694a6, #2c8192);
    box-shadow: 0 9px 2px rgba(18, 63, 72, 0.14), 0 14px 23px rgba(33, 104, 117, 0.2);
    transform: translateY(2px);
}

.download-button:active {
    box-shadow: 0 4px 1px rgba(18, 63, 72, 0.15), 0 8px 16px rgba(33, 104, 117, 0.18);
    transform: translateY(7px);
}

.benefits {
    position: relative;
    min-height: 286px;
    width: min(calc(100% - 120px), 1000px);
    margin: 0 auto 56px;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 28px;
}

.benefits-ribbon {
    min-height: 286px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(150deg, #176376, #2faec6);
    border-radius: 36px;
    clip-path: polygon(0 0, 56% 0, 100% 87%, 89% 100%, 0 100%);
}

.benefits-ribbon span {
    transform: rotate(-90deg);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-right: 12px;
}

.benefit-item {
    padding: 0 0 18px;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--line);
    font-size: clamp(1.35rem, 2.7vw, 2.15rem);
    font-weight: 300;
    line-height: 1.15;
}

.benefit-item:last-child {
    border-bottom: 0;
}

.benefit-accent {
    color: var(--teal-bright);
    font-weight: 400;
}

.site-footer {
    width: min(calc(100% - 48px), 1072px);
    min-height: 132px;
    margin: 0 auto;
    padding: 23px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    color: white;
    background: var(--ink);
    border-radius: 34px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.site-footer p:last-child {
    align-self: flex-start;
}

nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    color: white;
    background: rgba(0, 111, 127, 0.96);
    transform: translateX(0);
    transition: transform 0.3s ease, visibility 0.3s ease;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    text-align: center;
}

nav a {
    color: white;
    font-size: clamp(1.25rem, 3vw, 2rem);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav .close-menu {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2rem;
}

nav.hidden {
    visibility: hidden;
    transform: translateX(-100%);
}

.download-notice {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.download-notice.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.download-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 58, 62, 0.58);
    backdrop-filter: blur(4px);
}

.download-notice-card {
    position: relative;
    width: min(100%, 440px);
    padding: 34px 28px 28px;
    color: #20474b;
    text-align: center;
    background: linear-gradient(145deg, #f7ffff, #d9f1f1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(20, 70, 76, 0.3);
}

.download-notice-card h2 {
    margin-bottom: 14px;
    color: #2c4e52;
    font-size: 24px;
}

.download-notice-card p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.5;
}

.download-notice-close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 9px;
    color: #2c4e52;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.download-notice-close:hover {
    color: #006f7f;
    background: transparent;
}

.download-notice-action {
    min-width: 130px;
    padding: 12px 24px;
    color: white;
    background: #006f7f;
    border-radius: 8px;
    cursor: pointer;
}

.download-notice-action:hover {
    background: #004d56;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.motion-ready .hero .download-button {
    transition-delay: 0.12s;
}

.motion-ready .benefits-list {
    transition-delay: 0.1s;
}

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

    .motion-ready .reveal,
    .motion-ready .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    .site-shell {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: clamp(6px, 1.2dvh, 12px);
    }

    .motion-ready .reveal,
    .motion-ready .reveal.is-visible {
        transform: none;
    }

    .site-header {
        width: calc(100% - 24px);
        min-height: clamp(64px, 10.5dvh, 86px);
        margin: 0 auto;
        padding: clamp(8px, 1.6dvh, 12px) 14px clamp(8px, 1.6dvh, 12px) 20px;
        border-radius: clamp(22px, 3.5dvh, 27px);
    }

    .brand {
        gap: 8px;
    }

    .brand-title {
        flex: 1 1 auto;
        min-width: 0;
        font-size: clamp(1rem, 5vw, 1.35rem);
        text-overflow: clip;
    }

    .brand-mark {
        width: 54px;
        min-width: 54px;
    }

    .brand-icon {
        border-radius: 12px;
    }

    .brand-icon-frame {
        width: clamp(44px, 13vw, 50px);
        height: clamp(41px, 12vw, 46px);
        border-radius: 12px;
    }

    .menu-icon {
        display: none;
    }

    main {
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: clamp(5px, 1dvh, 10px);
    }

    .hero {
        min-height: 0;
        padding: clamp(10px, 2.5dvh, 24px) 18px;
        justify-content: space-evenly;
    }

    .hero-text {
        font-size: clamp(1rem, 4.25vw, 1.45rem);
        line-height: 1.25;
    }

    .desktop-break {
        display: block;
    }

    .download-button {
        width: min(100%, 330px);
        min-height: clamp(58px, 9.5dvh, 78px);
        margin-top: clamp(14px, 3.5dvh, 34px);
        padding: clamp(10px, 1.8dvh, 15px) 18px;
        border-radius: clamp(14px, 2.4dvh, 17px);
        font-size: clamp(0.88rem, 3.7vw, 1.05rem);
    }

    .benefits {
        width: calc(100% - 16px);
        min-height: clamp(146px, 24dvh, 210px);
        margin: 0 auto;
        display: grid;
        grid-template-columns: clamp(94px, 31vw, 122px) minmax(0, 1fr);
        align-items: stretch;
        gap: clamp(10px, 3vw, 14px);
    }

    .benefits-ribbon {
        min-height: 0;
        border-radius: clamp(20px, 3dvh, 26px);
        clip-path: polygon(0 0, 56% 0, 100% 87%, 89% 100%, 0 100%);
    }

    .benefits-ribbon span {
        transform: rotate(-90deg);
        font-size: 0.82rem;
        line-height: 1.05;
    }

    .benefits-list {
        justify-content: center;
        gap: clamp(7px, 1.6dvh, 12px);
        padding: 0;
    }

    .benefit-item {
        padding-bottom: clamp(5px, 1dvh, 8px);
        border-bottom-width: 1px;
        font-size: clamp(0.78rem, 3.45vw, 1rem);
        line-height: 1.2;
    }

    .site-footer {
        width: calc(100% - 24px);
        min-height: clamp(68px, 11dvh, 94px);
        margin: 0 auto;
        padding: clamp(12px, 2dvh, 18px) 20px;
        gap: clamp(8px, 1.6dvh, 16px);
        border-radius: clamp(21px, 3.5dvh, 27px);
        font-size: clamp(0.75rem, 3.25vw, 0.85rem);
    }
}

@media (max-width: 430px) {
    .site-header {
        width: calc(100% - 24px);
    }

    .site-footer {
        width: calc(100% - 24px);
    }
}

@media (max-width: 760px) and (max-height: 620px) {
    .site-shell {
        gap: 5px;
        padding-top: max(5px, env(safe-area-inset-top));
        padding-bottom: max(5px, env(safe-area-inset-bottom));
    }

    .site-header {
        min-height: 58px;
        padding-block: 6px;
    }

    .brand-icon-frame {
        width: 42px;
        height: 39px;
    }

    main {
        gap: 4px;
    }

    .hero {
        padding-block: 5px;
    }

    .hero-text {
        font-size: 0.94rem;
    }

    .download-button {
        min-height: 52px;
        margin-top: 8px;
        padding-block: 8px;
        font-size: 0.82rem;
    }

    .benefits {
        min-height: 128px;
    }

    .site-footer {
        min-height: 60px;
        padding-block: 8px;
        gap: 5px;
    }
}

@media (prefers-color-scheme: dark) {
    html,
    body,
    .site-shell {
        color-scheme: only light;
        color: var(--ink);
        background: #ffffff !important;
    }
}
