:root {
    --bg: #071422;
    --text: #e7f0fa;
    --muted: #9eb4cc;
    --blue: #4da3ff;
    --line: rgba(130, 186, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 78% 38% at 50% 0%, rgba(36, 126, 230, 0.42), transparent 62%),
        radial-gradient(ellipse 42% 32% at 0% 46%, rgba(14, 78, 170, 0.28), transparent 64%),
        radial-gradient(ellipse 38% 30% at 100% 82%, rgba(18, 110, 210, 0.24), transparent 60%),
        linear-gradient(180deg, #0c2242 0%, #071422 34%, #0a1c36 100%);
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.wrap {
    width: min(1080px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.hero {
    padding: 3.2rem 0 2.2rem;
    text-align: center;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 1.6rem;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 40, 120, 0.35);
}

h1 {
    max-width: 16em;
    margin: 0 auto 0.75rem;
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.slogan {
    margin: 0 auto 0.75rem;
    color: #f4f8ff;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    font-weight: 600;
    line-height: 1.45;
}

.slogan span {
    color: #8ec4ff;
    white-space: nowrap;
}

.why {
    max-width: 40rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.why .keep {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .why .keep {
        font-size: 0.88em;
    }
}

.intro {
    max-width: 42rem;
    margin: 1.15rem auto 0;
    color: #d5e4f4;
    font-size: 1.08rem;
    line-height: 1.65;
}

.lead {
    max-width: 40rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.block {
    padding-bottom: 3.2rem;
}

.block-head {
    max-width: 40rem;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.block-head h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.features,
.hint .row {
    --bs-gutter-y: 2.4rem;
}

.features {
    margin-bottom: 0.4rem;
}

a.btn.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 1.45rem 1.35rem 1.3rem;
    overflow: hidden;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
    color: #e7f0fa;
    text-decoration: none;
    border: 1px solid rgba(150, 200, 255, 0.38);
    border-radius: 18px;
    background: linear-gradient(180deg, #184a80 0%, #0f2b4e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 12px rgba(130, 200, 255, 0.4),
        0 0 6px rgba(190, 225, 255, 0.18);
    transform: none;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

a.btn.tile::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7ec4ff, transparent);
}

a.btn.tile:hover,
a.btn.tile:active,
a.btn.tile:focus:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 12px rgba(130, 200, 255, 0.4),
        0 0 6px rgba(190, 225, 255, 0.18);
    transform: none;
}

a.btn.tile:hover {
    color: #fff;
    background: linear-gradient(180deg, #2a78c8 0%, #1a5088 100%);
    border-color: rgba(180, 220, 255, 0.7);
}

a.btn.tile:active,
a.btn.tile:focus:active {
    color: #d7ecff;
    background: linear-gradient(180deg, #0c335f 0%, #08243f 100%);
    border-color: rgba(90, 150, 210, 0.5);
}

a.btn.tile:focus-visible {
    outline: 2px solid #4da3ff;
    outline-offset: 3px;
}

.mark {
    display: block;
    margin-bottom: 0.7rem;
    padding: 0;
    color: #d6e8fa;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: none;
}

a.btn.tile h2 {
    margin-bottom: 0.45rem;
    color: #f4f8ff;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

a.btn.tile p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.basis {
    margin: 0.4rem 0 2.6rem;
    padding: 1.45rem 1.25rem 1.25rem;
    border: 1px solid rgba(160, 205, 255, 0.38);
    border-radius: 22px;
    background: rgba(6, 20, 42, 0.72);
}

.basis h2 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.basis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.basis-grid a {
    display: block;
    padding: 1rem 1.05rem;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
    background: rgba(28, 78, 140, 0.28);
    border: 1px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.basis-grid strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #f4f8ff;
    font-size: 1.05rem;
}

.basis-grid span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.basis-grid a:hover {
    color: #fff;
    background: rgba(40, 110, 190, 0.4);
    border-color: rgba(170, 215, 255, 0.55);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page .close {
    margin-top: auto;
}

.detail .text {
    max-width: 40rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.detail .text + .text {
    margin-top: 0.85rem;
}

.sheet {
    margin-top: 1.5rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 16px;
    background: rgba(16, 48, 92, 0.5);
    border: 1px solid rgba(130, 186, 255, 0.24);
}

.sheet ul {
    margin-bottom: 0;
}

.more-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.more-links a {
    color: #d7ecff;
    text-decoration: none;
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(130, 186, 255, 0.35);
    border-radius: 999px;
    font-size: 0.9rem;
}

.more-links a:hover {
    color: #fff;
    background: rgba(36, 100, 180, 0.35);
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 1.8rem;
}

.top a {
    color: #b7cbe2;
    font-size: 0.95rem;
    text-decoration: none;
}

.top a:hover {
    color: #fff;
}

.detail {
    max-width: 42rem;
    padding-bottom: 2.5rem;
}

.page h1 {
    max-width: none;
    margin: 0 0 0.85rem;
    text-align: left;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.detail .lead {
    margin: 0 0 1.3rem;
    text-align: left;
}

.detail h2 {
    margin: 1.35rem 0 0.45rem;
    font-size: 1.08rem;
    font-weight: 650;
}

.detail ul {
    margin-left: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
}

.detail li + li {
    margin-top: 0.25rem;
}

.close {
    padding-bottom: 2.6rem;
    text-align: center;
}

.close p {
    margin-bottom: 0.45rem;
    color: #f4f8ff;
    font-size: 1.15rem;
}

.close small {
    color: #7f96b0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.close .legal {
    display: block;
    margin-top: 0.85rem;
    color: #9eb4cc;
    font-size: 0.92rem;
    text-decoration: none;
}

.close .legal:hover {
    color: #fff;
}

@media (max-width: 700px) {
    .hero {
        padding-top: 1.6rem;
    }

    .basis-grid {
        grid-template-columns: 1fr;
    }
}
