* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #111827;
    line-height: 1.6;
}

a {
    color: #111827;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* HEADER */
.site-header {
    background: linear-gradient(90deg, #111827, #1f2937);
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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;
}

.main-nav a {
    color: #f9fafb;
    font-weight: 600;
    opacity: 0.95;
}

.main-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

/* MAIN */
.site-main {
    padding: 36px 0 80px;
}

/* HERO */
.hero {
    padding: 8px 0 28px;
}

.hero-home {
    padding-top: 6px;
}

.hero-content {
    background: #eef2f7;
    border: 1px solid #d7dde5;
    border-radius: 22px;
    padding: 42px;
}

.hero-content-home {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #eef2f7, #dde3ea);
    border: 1px solid #d7dde5;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.hero-content-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 28%),
        radial-gradient(circle at bottom left, rgba(17, 24, 39, 0.05), transparent 24%);
    pointer-events: none;
}

.hero-content-home > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: #6b7280;
    font-size: 0.88rem;
    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;
    color: #111827;
}

.hero-text {
    max-width: 760px;
    color: #374151;
    font-size: 1.08rem;
}

.hero-support-text {
    margin-top: 12px;
    max-width: 760px;
    color: #4b5563;
    font-size: 1rem;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* LAYOUT */
.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));
}

/* CARDS */
.card {
    background: #e9eef4;
    border: 1px solid #d7dde5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.card h2,
.card h3 {
    color: #111827;
    margin-top: 0;
}

.card p,
.card li {
    color: #4b5563;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid #c7ced8;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.15);
}

.btn-secondary {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.btn-full {
    width: 100%;
}

/* ALERTS */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* AUTH */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #e9eef4;
    border: 1px solid #d7dde5;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.auth-subtitle {
    color: #6b7280;
    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 #cfd6df;
    background: #ffffff;
    color: #111827;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
}

.auth-links {
    margin-top: 18px;
    color: #6b7280;
}

/* LISTS */
.feature-list {
    margin: 14px 0 0;
    padding-left: 20px;
}

/* FOOTER */
footer,
.site-footer {
    margin-top: 40px;
    background: #111827;
    color: #e5e7eb;
    border-top: 1px solid #374151;
}

.footer-inner {
    padding: 28px 0;
}

.footer-muted {
    color: #9ca3af;
}

.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;
}

.footer-links a,
footer a,
.site-footer a {
    color: #f3f4f6;
}

.footer-links a:hover,
footer a:hover,
.site-footer a:hover {
    color: #ffffff;
}

/* CERTIFICATE */
.certificate-card {
    text-align: center;
}

.certificate-preview {
    margin-top: 20px;
    padding: 30px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

/* MOBILE */
@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;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-text,
    .hero-support-text {
        font-size: 1rem;
    }
}