* {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --muted: #64748b;
    --bg: #f4f7fb;
    --card: #ffffff;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;
}

html,
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--dark);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1150px, calc(100% - 32px));
    margin: 0 auto;
}

.public-header {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-weight: 900;
    font-size: 20px;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 11px 15px;
    border-radius: 12px;
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: var(--primary);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
}

.hero {
    padding: 70px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 35px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -1.5px;
}

.hero p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 26px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border: none;
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-light {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: #f8fafc;
}

.hero-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .10);
}

.wallet-preview {
    background: linear-gradient(135deg, #2563eb, #0f172a);
    color: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
}

.wallet-preview small {
    opacity: .85;
    font-weight: 800;
}

.wallet-preview h2 {
    font-size: 34px;
    margin: 8px 0;
}

.preview-list {
    display: grid;
    gap: 12px;
}

.preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 16px;
}

.preview-item strong {
    font-size: 14px;
}

.preview-item span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 55px 0;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 30px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 10px;
}

.section-title p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 14px;
}

.feature-card h3 {
    margin: 0 0 8px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}

.network-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.network-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    text-align: center;
}

.network-card h3 {
    font-size: 24px;
    margin: 0 0 8px;
}

.network-card p {
    color: var(--muted);
    margin: 0;
}

.cta {
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: white;
    border-radius: 28px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.cta p {
    margin: 0;
    opacity: .85;
    line-height: 1.7;
}

.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 28px 0;
    margin-top: 50px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer a {
    color: #cbd5e1;
    font-weight: 700;
    margin-left: 14px;
}

.page-hero {
    padding: 55px 0 25px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    margin: 0 0 10px;
}

.page-hero p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    line-height: 1.8;
}

.content-card h2 {
    margin-top: 0;
}

.content-card h3 {
    margin-top: 28px;
}

.content-card p,
.content-card li {
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 22px;
    align-items: start;
}

.contact-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
}

.contact-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.contact-item strong {
    font-size: 17px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 7px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    outline: none;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.error-box {
    max-width: 560px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .10);
}

.error-code {
    font-size: 76px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.error-box h1 {
    margin: 12px 0 10px;
}

.error-box p {
    color: var(--muted);
    line-height: 1.7;
}

.maintenance-box {
    max-width: 620px;
}

.status-dot {
    width: 13px;
    height: 13px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 74px;
        left: 16px;
        right: 16px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 20px 50px rgba(15, 23, 42, .15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
        border-radius: 12px;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .network-row {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 45px 0;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1150px);
    }

    .hero-actions .btn,
    .cta .btn {
        width: 100%;
    }

    .wallet-preview h2 {
        font-size: 28px;
    }

    .content-card,
    .contact-box,
    .error-box {
        padding: 20px;
        border-radius: 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer a {
        margin-left: 0;
        margin-right: 12px;
    }
}