* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0c111d;
    color: #e8ecf3;
    line-height: 1.6;
}

a {
    color: #7fb3ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: rgba(17, 24, 39, 0.92);
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner,
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    flex-wrap: wrap;
}

.brand-link {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 8px 14px;
    border: 1px solid #334155;
    border-radius: 10px;
}

.nav-button-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.site-main {
    padding: 34px 0 70px;
}

.hero {
    padding: 12px 0 20px;
}

.hero-home {
    padding-top: 6px;
}

.hero-content {
    background: linear-gradient(135deg, #111827, #172033);
    border: 1px solid #1f2937;
    border-radius: 22px;
    padding: 40px;
}

.hero-content-home {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(8, 12, 22, 0.90) 0%, rgba(8, 12, 22, 0.82) 45%, rgba(8, 12, 22, 0.72) 100%),
        url('/assets/img/hero-trading.png') center center / cover no-repeat,
        linear-gradient(135deg, #111827, #172033);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-content-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 24%);
    pointer-events: none;
}

.hero-content-home > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: #7fb3ff;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: 3rem;
    line-height: 1.12;
    max-width: 760px;
}

.hero-text {
    max-width: 760px;
    color: #d6deea;
    font-size: 1.08rem;
}

.hero-support-text {
    margin-top: 12px;
    max-width: 760px;
    color: #cbd5e1;
    opacity: 0.95;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section {
    margin-top: 28px;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.95;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: rgba(17, 24, 39, 0.55);
    border-color: #475569;
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 28px;
}

.auth-subtitle {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
}

.auth-links {
    margin-top: 18px;
    color: #cbd5e1;
}

.feature-list {
    margin: 14px 0 0;
    padding-left: 20px;
}

/* FOOTER */
.footer-muted {
    color: #94a3b8;
}

.footer-brand {
    flex: 0 0 auto;
}

.footer-company {
    flex: 1 1 320px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.certificate-card {
    text-align: center;
}

.certificate-preview {
    margin-top: 20px;
    padding: 30px;
    border: 2px dashed #334155;
    border-radius: 16px;
    background: #0f172a;
}

@media (max-width: 768px) {
    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-company {
        text-align: left;
    }

    .hero {
        padding-top: 0;
    }

    .hero-content,
    .hero-content-home {
        padding: 28px;
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(8, 12, 22, 0.92), rgba(8, 12, 22, 0.88)),
            url('/assets/images/hero-trading.jpg') center center / cover no-repeat,
            linear-gradient(135deg, #111827, #172033);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-text,
    .hero-support-text {
        font-size: 1rem;
    }
}