/* Atlas landing theme — light, modern public homepage */
:root {
    --atlas-brand: #0c3255;
    --atlas-brand-dark: #061829;
    --atlas-accent: #c9a227;
    --atlas-accent-rgb: 201, 162, 39;
    --atlas-brand-rgb: 12, 50, 85;
    --atlas-ink: #14202b;
    --atlas-muted: #5c6b78;
    --atlas-line: #e4e9ee;
    --atlas-paper: #ffffff;
    --atlas-wash: #f5f7f9;
    --atlas-radius: 18px;
    --atlas-shadow: 0 18px 40px rgba(15, 30, 42, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.atlas-body {
    margin: 0;
    font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--atlas-ink);
    background: var(--atlas-wash);
    line-height: 1.6;
}

.atlas-skip {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 100;
    padding: 8px 12px;
    background: var(--atlas-brand);
    color: #fff;
    border-radius: 8px;
}
.atlas-skip:focus { top: 12px; }

.atlas-wrap { overflow-x: hidden; }

.atlas-container {
    width: 100%;
    max-width: 1120px;
    padding: 0 16px;
    margin: 0 auto;
}

/* Header */
.atlas-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--atlas-line);
}

.atlas-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.atlas-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.atlas-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.atlas-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.atlas-brand-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atlas-brand-text span {
    font-size: 0.72rem;
    color: var(--atlas-muted);
}

.atlas-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-nav a {
    text-decoration: none;
    color: var(--atlas-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 999px;
}

.atlas-nav a:hover,
.atlas-nav a.is-active {
    color: var(--atlas-brand);
    background: var(--atlas-wash);
}

.atlas-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--atlas-brand);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.atlas-login:hover { filter: brightness(1.08); }
.atlas-nav-login { display: none; }

.atlas-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--atlas-line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.atlas-menu-btn span,
.atlas-menu-btn span::before,
.atlas-menu-btn span::after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--atlas-ink);
    margin: 0 auto;
    position: relative;
}
.atlas-menu-btn span::before,
.atlas-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
}
.atlas-menu-btn span::before { top: -5px; }
.atlas-menu-btn span::after { top: 5px; }

/* Hero */
.atlas-hero {
    padding: 48px 0 24px;
}

.atlas-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.atlas-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--atlas-brand);
    margin-bottom: 14px;
}
.atlas-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--atlas-accent);
    box-shadow: 0 0 0 4px rgba(var(--atlas-accent-rgb), 0.22);
}

.atlas-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.atlas-hero p.lead {
    margin: 0 0 28px;
    font-size: 1.05rem;
    color: var(--atlas-muted);
    max-width: 36rem;
}

.atlas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.atlas-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.atlas-btn-primary {
    background: var(--atlas-brand);
    color: #fff;
}

.atlas-btn-ghost {
    background: #fff;
    color: var(--atlas-ink);
    border-color: var(--atlas-line);
}

.atlas-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.atlas-stat {
    background: #fff;
    border: 1px solid var(--atlas-line);
    border-radius: 14px;
    padding: 12px 14px;
}

.atlas-stat strong {
    display: block;
    font-size: 1.05rem;
}

.atlas-stat span {
    color: var(--atlas-muted);
    font-size: 0.78rem;
}

.atlas-hero-panel {
    position: relative;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--atlas-shadow);
    background: var(--atlas-brand-dark) center/cover no-repeat;
}

.atlas-hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 24, 41, 0.55) 100%);
}

.atlas-hero-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 12px 14px;
}

.atlas-hero-badge strong { display: block; }

/* Sections */
.atlas-section { padding: 64px 0; }
.atlas-section-alt { background: #fff; border-top: 1px solid var(--atlas-line); border-bottom: 1px solid var(--atlas-line); }

.atlas-section h2 {
    margin: 0 0 8px;
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}
.atlas-section h2::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: var(--atlas-accent);
}

.atlas-section .sub {
    margin: 0 0 32px;
    color: var(--atlas-muted);
    max-width: 40rem;
}

.atlas-feature-grid,
.atlas-campus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.atlas-card {
    background: #fff;
    border: 1px solid var(--atlas-line);
    border-radius: var(--atlas-radius);
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 30, 42, 0.04);
}

.atlas-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--atlas-brand-rgb), 0.08);
    color: var(--atlas-brand);
    margin-bottom: 12px;
}

.atlas-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.atlas-card p { margin: 0; color: var(--atlas-muted); }

.atlas-campus-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.atlas-campus-actions a,
.atlas-campus-actions button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--atlas-line);
    background: var(--atlas-wash);
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.atlas-campus-actions .main { font-weight: 700; display: block; }
.atlas-campus-actions .hint { font-size: 0.78rem; color: var(--atlas-muted); }

.atlas-forgot {
    display: inline-flex;
    margin-top: 18px;
    color: var(--atlas-brand);
    font-weight: 600;
    text-decoration: none;
}

/* FAQ */
.atlas-faq { display: grid; gap: 10px; }
.atlas-faq details {
    background: #fff;
    border: 1px solid var(--atlas-line);
    border-radius: 14px;
    padding: 14px 18px;
}
.atlas-faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.atlas-faq summary::-webkit-details-marker { display: none; }
.atlas-faq details p {
    margin: 10px 0 0;
    color: var(--atlas-muted);
}

/* Footer */
.atlas-footer {
    background: var(--atlas-brand-dark);
    color: #d7e0e8;
    padding: 48px 0 24px;
}
.atlas-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}
.atlas-footer img { height: 48px; margin-bottom: 12px; }
.atlas-footer h4 { margin: 0 0 12px; color: #fff; }
.atlas-footer a { color: inherit; text-decoration: none; }
.atlas-footer p, .atlas-footer li { color: #b7c4d0; }
.atlas-footer ul { list-style: none; margin: 0; padding: 0; }
.atlas-footer li { margin: 0 0 8px; }
.atlas-copy {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
}

/* Modal */
.atlas-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 16, 24, 0.55);
    z-index: 80;
}
.atlas-modal.is-open { display: flex; }
.atlas-modal-dialog {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 24px;
}
.atlas-modal-dialog h2 { margin: 0 0 8px; }
.atlas-modal-dialog p { color: var(--atlas-muted); margin: 0 0 16px; }
.atlas-modal-actions { display: grid; gap: 10px; }

/* Cookies */
.cookie-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: none;
    background: #fff;
    border: 1px solid var(--atlas-line);
    border-radius: 16px;
    box-shadow: var(--atlas-shadow);
    padding: 14px 16px;
}
.cookie-consent-banner.active { display: block; }
.cookie-popup-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.cookie-content { flex: 1; min-width: 220px; font-size: 0.88rem; color: var(--atlas-muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
    border-radius: 999px;
    border: 1px solid var(--atlas-line);
    background: #fff;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
}
.cookie-accept { background: var(--atlas-brand); color: #fff; border-color: var(--atlas-brand); }
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    overflow: auto;
    background: rgba(8, 16, 24, 0.55);
    padding: 20px;
}
.privacy-modal-overlay { display: none; }
.privacy-modal-container {
    position: relative;
    max-width: 720px;
    margin: 40px auto;
    background: #fff;
    padding: 28px 24px 24px;
    border-radius: 16px;
}
.privacy-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--atlas-muted);
}
.preference-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
}
.preference-name { display: block; font-weight: 700; }
.preference-description { display: block; font-size: 0.82rem; color: var(--atlas-muted); }
.preferences-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.preference-btn {
    border-radius: 999px;
    border: 1px solid var(--atlas-line);
    background: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
}
.preference-accept { background: var(--atlas-brand); color: #fff; border-color: var(--atlas-brand); }

@media (max-width: 900px) {
    .atlas-hero-grid,
    .atlas-feature-grid,
    .atlas-campus-grid,
    .atlas-footer-grid { grid-template-columns: 1fr; }
    .atlas-nav, .atlas-header-login { display: none; }
    .atlas-header.is-open .atlas-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: #fff;
        border-bottom: 1px solid var(--atlas-line);
        padding: 12px 16px 16px;
        align-items: stretch;
    }
    .atlas-header.is-open .atlas-nav-login { display: inline-flex; margin-top: 8px; }
    .atlas-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .atlas-stats { grid-template-columns: 1fr; }
    .atlas-hero { padding-top: 28px; }
}
