:root {
    --bg: #f4f7fc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-strong: #edf4ff;
    --text: #12233d;
    --muted: #627086;
    --border: #d7e1ef;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success: #166534;
    --success-soft: #ecfdf3;
    --warning: #92400e;
    --warning-soft: #fff7ed;
    --shadow-lg: 0 32px 70px rgba(18, 35, 61, 0.12);
    --shadow-md: 0 18px 40px rgba(18, 35, 61, 0.08);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --font-sans: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #f3f7fd 100%);
    font-family: var(--font-sans);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.noscript-banner {
    padding: 12px 18px;
    text-align: center;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 0.92rem;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(215, 225, 239, 0.9);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
}

.nav-shell {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.06rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-owner {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links,
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.nav-links a,
.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.nav-links a.is-active,
.footer-links a.is-active {
    color: var(--primary);
}

.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
}

.language-picker label {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.language-select {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    outline: none;
}

.hero-section,
.page-hero {
    padding: 88px 0 74px;
}

.hero-grid,
.page-hero-grid,
.portal-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.05em;
}

h1 {
    font-size: clamp(2.85rem, 6.5vw, 5.2rem);
    line-height: 0.96;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.02;
}

h3 {
    font-size: 1.15rem;
}

.hero-text,
.section-heading p,
.policy-copy p,
.policy-copy li,
.panel-copy,
.card-note,
.support-copy,
.field-help {
    color: var(--muted);
    line-height: 1.72;
}

.hero-text {
    max-width: 680px;
    margin: 24px 0 0;
    font-size: 1.09rem;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin-top: 34px;
}

.btn {
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.96rem;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 100%);
}

.btn.secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.92);
}

.btn.secondary:hover {
    border-color: rgba(37, 99, 235, 0.38);
}

.btn.danger {
    color: #ffffff;
    background: linear-gradient(135deg, #d92d20 0%, #b42318 100%);
    box-shadow: 0 16px 28px rgba(185, 28, 28, 0.2);
}

.btn.ghost {
    border-color: var(--border);
    background: transparent;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.trust-note {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 22px 0;
}

.device-frame {
    width: min(100%, 380px);
    padding: 18px;
    border-radius: 36px;
    background: linear-gradient(180deg, #13213a 0%, #0f172a 100%);
    box-shadow: var(--shadow-lg);
}

.device-screen {
    min-height: 540px;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
}

.device-chip {
    width: 92px;
    height: 8px;
    margin: 0 auto 24px;
    border-radius: 999px;
    background: rgba(18, 35, 61, 0.18);
}

.device-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.device-row span:first-child {
    width: 132px;
    height: 16px;
    border-radius: 999px;
    background: var(--primary);
}

.device-row span:last-child {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #dce9ff;
}

.device-card {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(215, 225, 239, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
}

.device-card-strong {
    margin-top: 28px;
}

.line {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: #d7e5fb;
}

.line-short {
    width: 42%;
}

.line-medium {
    width: 72%;
}

.line-tiny {
    width: 28%;
}

.line-input {
    height: 44px;
    background: #eef4ff;
}

.device-pills {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.device-pills span {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    background: #dcebff;
}

.floating-note {
    position: absolute;
    right: -10px;
    bottom: 34px;
    width: min(230px, 62%);
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.floating-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.floating-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.section {
    padding: 78px 0;
}

.surface-tint {
    background: rgba(255, 255, 255, 0.66);
    border-top: 1px solid rgba(215, 225, 239, 0.9);
    border-bottom: 1px solid rgba(215, 225, 239, 0.9);
}

.section-heading {
    max-width: 820px;
}

.section-heading.narrow {
    max-width: 760px;
}

.section-heading p {
    margin: 18px 0 0;
}

.feature-grid,
.link-card-grid,
.content-grid,
.policy-grid,
.summary-grid,
.portal-grid {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.link-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
}

.feature-card,
.link-card,
.policy-card,
.info-card,
.portal-card,
.summary-card,
.side-card,
.step-card {
    border: 1px solid rgba(215, 225, 239, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
}

.feature-card,
.policy-card,
.info-card,
.portal-card,
.summary-card,
.side-card,
.step-card {
    padding: 28px;
}

.feature-card p,
.policy-card p,
.policy-card li,
.portal-card p,
.summary-card p,
.side-card p,
.step-card p,
.link-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.68;
}

.link-card {
    display: block;
    padding: 26px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.34);
}

.link-card-kicker,
.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.link-card strong {
    display: block;
    margin-top: 18px;
    font-size: 1.16rem;
    letter-spacing: -0.04em;
}

.notice-panel,
.message-box,
.inline-warning {
    padding: 20px 22px;
    border-radius: 22px;
}

.notice-panel {
    margin-top: 34px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.notice-panel strong {
    display: block;
    margin-bottom: 8px;
}

.notice-panel p,
.message-box p,
.inline-warning p {
    margin: 0;
    line-height: 1.68;
}

.page-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.page-intro {
    max-width: 760px;
}

.page-intro p {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.72;
}

.page-badge {
    padding: 24px;
    border: 1px solid rgba(215, 225, 239, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.page-badge strong {
    display: block;
    margin-bottom: 10px;
}

.page-badge p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
}

.policy-copy {
    display: grid;
    gap: 18px;
}

.policy-copy h2 {
    font-size: 1.6rem;
}

.policy-copy ul {
    margin: 16px 0 0;
    padding-left: 20px;
}

.policy-copy li + li {
    margin-top: 10px;
}

.side-card strong,
.summary-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.side-card p + p {
    margin-top: 12px;
}

.support-link,
.inline-link {
    color: var(--primary);
    font-weight: 900;
}

.step-card strong,
.summary-card strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.summary-item {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-soft);
}

.summary-item span:last-child {
    display: block;
    margin-top: 6px;
    font-size: 0.96rem;
    font-weight: 800;
    word-break: break-word;
}

.portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

#account-portal-grid {
    grid-template-columns: minmax(0, 1fr);
}

#account-portal-grid.is-delete-visible {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card header,
.summary-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.portal-card h2,
.summary-card h2 {
    font-size: 1.7rem;
}

.panel-copy {
    margin: 0 0 20px;
}

.account-action-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-soft);
}

.account-action-panel .panel-copy {
    margin-bottom: 18px;
}

.field-group {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.field-group label,
.checkbox-row label {
    font-weight: 800;
}

.input,
.textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.input:focus,
.textarea:focus,
.language-select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.54);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
}

.checkbox-row input {
    margin-top: 4px;
}

.message-box {
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.message-box.error {
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.18);
    background: var(--danger-soft);
}

.message-box.success {
    color: var(--success);
    border-color: rgba(22, 101, 52, 0.18);
    background: var(--success-soft);
}

.message-box.info {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(37, 99, 235, 0.08);
}

.inline-warning {
    margin: 0 0 22px;
    color: var(--warning);
    border: 1px solid rgba(146, 64, 14, 0.16);
    background: var(--warning-soft);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.12);
    color: var(--success);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill.is-muted {
    color: #475467;
    background: rgba(98, 112, 134, 0.12);
}

.deletion-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.93rem;
}

.site-footer {
    padding: 28px 0 36px;
    border-top: 1px solid rgba(215, 225, 239, 0.92);
    background: rgba(255, 255, 255, 0.88);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-copy,
.footer-email {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.footer-email {
    display: inline-block;
    margin-top: 8px;
    color: var(--text);
    font-weight: 800;
}

@media (max-width: 1024px) {
    .hero-grid,
    .page-hero-grid,
    .content-grid,
    .portal-grid,
    .feature-grid,
    .link-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        padding-top: 8px;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 18px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .nav-shell,
    .nav-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-shell {
        padding: 18px 0;
    }

    .nav-links {
        gap: 14px;
    }

    .language-picker {
        width: 100%;
        justify-content: space-between;
    }

    h1 {
        font-size: clamp(2.55rem, 14vw, 4.1rem);
    }

    .hero-section,
    .page-hero {
        padding: 64px 0 56px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-actions,
    .action-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}
