:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #ccfbf1;
    --secondary: #0f172a;
    --muted: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16a34a;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* Header */

.top-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-container {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    color: white;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

    .brand-text span {
        font-size: 13px;
        color: var(--muted);
        font-weight: 600;
    }

    .brand-text strong {
        font-size: 19px;
        color: var(--secondary);
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

    .main-nav a {
        position: relative;
        transition: color 0.2s ease;
    }

        .main-nav a:hover {
            color: var(--primary);
        }

        .main-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.2s ease;
        }

        .main-nav a:hover::after {
            width: 100%;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

.btn-outline {
    border-color: var(--border);
    color: var(--secondary);
    background: white;
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.btn-light {
    background: var(--primary-light);
    color: var(--primary-dark);
}

    .btn-light:hover {
        background: #99f6e4;
    }

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

    .user-menu a {
        color: #334155;
    }

        .user-menu a:hover {
            color: var(--primary);
        }

    .user-menu button {
        border: 0;
        background: transparent;
        color: var(--danger);
        cursor: pointer;
        font-weight: 700;
    }

/* Footer */

.site-footer {
    margin-top: 72px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 54px 0;
}

.footer-brand {
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 8px;
}

.site-footer h4 {
    color: white;
    margin: 0 0 16px;
    font-size: 16px;
}

.site-footer a {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

    .site-footer a:hover {
        color: white;
    }

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    padding: 18px 16px;
    color: #94a3b8;
    font-size: 14px;
}

/* Generic page helpers */

.page-section {
    padding: 72px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    margin: 0 0 12px;
    color: var(--secondary);
}

.section-subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 720px;
    margin: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    background: white;
    color: var(--secondary);
    outline: none;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
    }

/* Responsive */

@media (max-width: 920px) {
    .header-container {
        height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .main-nav {
        gap: 16px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* Home / Hero */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 82px 0 72px;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    color: var(--secondary);
}

.hero-content p {
    margin: 22px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-lg {
    min-height: 50px;
    padding: 0 24px;
    font-size: 15px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 28px;
    margin-top: 38px;
}

    .hero-stats div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .hero-stats strong {
        font-size: 22px;
        color: var(--secondary);
    }

    .hero-stats span {
        color: var(--muted);
        font-size: 14px;
    }

.hero-card {
    position: relative;
}

    .hero-card::before {
        content: "";
        position: absolute;
        inset: 28px -18px -18px 28px;
        border-radius: 32px;
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 118, 110, 0.08));
        z-index: 0;
    }

.payment-widget {
    position: relative;
    z-index: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .widget-header span {
        font-size: 22px;
        font-weight: 900;
        color: var(--secondary);
    }

    .widget-header small {
        color: var(--primary-dark);
        background: var(--primary-light);
        padding: 6px 10px;
        border-radius: 999px;
        font-weight: 800;
    }

.widget-field {
    margin-bottom: 16px;
}

    .widget-field label {
        display: block;
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 7px;
    }

.fake-input {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f8fafc;
    color: var(--secondary);
    font-weight: 700;
}

    .fake-input.muted {
        color: #64748b;
    }

.widget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0;
    padding: 18px;
    border-radius: 18px;
    background: #0f172a;
    color: white;
}

    .widget-total span {
        color: #cbd5e1;
    }

    .widget-total strong {
        font-size: 28px;
    }

.widget-button {
    width: 100%;
}

/* Services */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        border-color: rgba(15, 118, 110, 0.35);
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.09);
    }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--primary-light);
    font-size: 26px;
    margin-bottom: 18px;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--secondary);
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* How it works */

.how-section {
    padding: 72px 0;
    background: #ecfeff;
    border-top: 1px solid #cffafe;
    border-bottom: 1px solid #cffafe;
}

.how-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    background: white;
    border: 1px solid #ccfbf1;
    border-radius: 22px;
    padding: 24px;
}

    .step-card span {
        display: inline-flex;
        margin-bottom: 18px;
        color: var(--primary);
        font-weight: 900;
        font-size: 14px;
    }

    .step-card h3 {
        margin: 0 0 10px;
        color: var(--secondary);
    }

    .step-card p {
        margin: 0;
        color: var(--muted);
        line-height: 1.6;
    }

/* CTA */

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 30px;
    padding: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 24px 60px rgba(15, 118, 110, 0.24);
}

    .cta-card h2 {
        margin: 0 0 8px;
        font-size: 30px;
    }

    .cta-card p {
        margin: 0;
        color: #ccfbf1;
        line-height: 1.6;
    }

    .cta-card .btn-primary {
        background: white;
        color: var(--primary-dark);
        box-shadow: none;
    }

        .cta-card .btn-primary:hover {
            background: #f8fafc;
        }

/* Responsive Home */

@media (max-width: 980px) {
    .hero-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 52px 0;
    }

    .hero-stats,
    .service-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .payment-widget {
        padding: 22px;
    }

    .cta-card {
        padding: 28px;
    }
}

/* Auth Pages */

.auth-section {
    min-height: calc(100vh - 78px);
    padding: 72px 0;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.auth-info h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -1.4px;
    color: var(--secondary);
}

.auth-info p {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
    max-width: 650px;
}

.auth-benefits {
    margin-top: 34px;
    display: grid;
    gap: 14px;
}

    .auth-benefits div {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #334155;
        font-weight: 700;
    }

    .auth-benefits strong {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: var(--primary-light);
        color: var(--primary-dark);
        display: grid;
        place-items: center;
    }

.auth-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

    .auth-card h2 {
        margin: 0;
        font-size: 30px;
        color: var(--secondary);
    }

.auth-card-subtitle {
    margin: 8px 0 26px;
    color: var(--muted);
    line-height: 1.6;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 800;
        color: #334155;
        margin-bottom: 8px;
    }

.validation-message {
    margin-top: 6px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
}

    .auth-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.alert {
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-footer-text {
    margin-top: 22px;
    color: var(--muted);
    text-align: center;
}

    .auth-footer-text a {
        color: var(--primary);
        font-weight: 800;
    }

.demo-login-box {
    margin-top: 20px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: grid;
    gap: 6px;
}

    .demo-login-box span {
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
    }

    .demo-login-box code {
        color: var(--secondary);
        font-size: 13px;
        white-space: normal;
    }

@media (max-width: 920px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
}

.auth-info h1 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.auth-info h1:focus,
.auth-info h1:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
