:root {
    --bg-page: #0f0f1e;
    --bg-page-2: #16162a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(129, 140, 248, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent: #818cf8;
    --accent-2: #6366f1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

.landing-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(129, 140, 248, 0.10), transparent 60%),
        linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.landing-logo img {
    height: 24px;
}

.landing-logo-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 16px;
}

.landing-logo-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.landing-login {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    transition: all 0.18s ease;
}

.landing-login:hover {
    color: #fff;
    border-color: var(--border-card-hover);
    background: var(--bg-card);
}

/* ---------- Main container ---------- */
.landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 64px;
}

/* ---------- Hero ---------- */
.landing-hero {
    text-align: center;
    padding: 56px 16px 72px;
    max-width: 760px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.78) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero .lead {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ---------- Cards (shared) ---------- */
.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-card-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 14px 40px -16px rgba(99, 102, 241, 0.35);
}

.card-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.card-disabled:hover {
    transform: none;
    border-color: var(--border-card);
    background: var(--bg-card);
    box-shadow: none;
}

/* ---------- Primary grid (3 boxes) ---------- */
.landing-grid-primary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card-primary {
    padding: 28px 26px 26px;
    min-height: 200px;
    justify-content: space-between;
}

.card-primary h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-primary p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.card-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
    transition: transform 0.18s ease;
}

.card:hover .card-cta {
    transform: translateX(3px);
}

.card-cta-muted {
    color: var(--text-muted);
}

.card-external {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.15);
    color: var(--accent);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

/* ---------- Secondary grid (5 boxes) ---------- */
.landing-grid-secondary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.card-secondary {
    padding: 18px 18px 16px;
    min-height: 96px;
    justify-content: center;
}

.card-secondary h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-secondary p {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.landing-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.landing-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.landing-footer a:hover {
    color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .landing-grid-secondary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 16px 20px;
    }
    .landing {
        padding: 16px 20px 48px;
    }
    .landing-hero {
        padding: 32px 8px 48px;
    }
    .landing-grid-primary {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .landing-grid-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-primary {
        min-height: 0;
        padding: 22px 20px;
    }
}

@media (max-width: 420px) {
    .landing-grid-secondary {
        grid-template-columns: 1fr;
    }
    .landing-logo-label {
        display: none;
    }
}
