/* Split auth layout + marketing landing — Nova Academy premium */

.auth-split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .auth-split {
        flex-direction: row;
    }
}

.auth-brand-panel {
    flex: 0 0 42%;
    min-height: 220px;
    padding: var(--ed-space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(ellipse 120% 80% at 22% 0%, rgba(255, 249, 229, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(var(--ed-primary-rgb), 0.14) 0%, transparent 50%),
        linear-gradient(155deg, #000000 0%, #0c0c0c 40%, #141414 72%, #050505 100%);
    color: #f0efe9;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 992px) {
    .auth-brand-panel {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48L48 0M-12 12L12-12M36 60L60 36' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-brand-panel h1 {
    font-family: var(--ed-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #e8e6df 55%, #b8b5ad 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    margin-bottom: var(--ed-space-3);
}

.auth-brand-panel h1.auth-brand-title-nova {
    font-size: clamp(1.85rem, 3.75vw, 2.45rem);
    margin-bottom: var(--ed-space-4);
}

.auth-brand-panel p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.55;
    color: rgba(240, 239, 233, 0.88);
}

.auth-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--ed-space-4);
}

.auth-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.055);
    color: #e8e6df;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-role-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(255, 249, 229, 0.22);
    box-shadow: var(--ed-glow-warm);
}

.auth-role-pill.active {
    background: linear-gradient(135deg, rgba(var(--ed-primary-rgb), 0.38) 0%, rgba(255, 249, 229, 0.1) 100%);
    color: #fff;
    border-color: rgba(var(--ed-primary-rgb), 0.48);
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ed-space-6);
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(var(--ed-primary-rgb), 0.1) 0%, transparent 58%),
        radial-gradient(ellipse 55% 40% at 100% 80%, rgba(232, 213, 181, 0.05) 0%, transparent 45%),
        var(--ed-canvas);
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-border-strong);
    border-radius: var(--ed-radius-xl);
    box-shadow: var(--ed-shadow-card), var(--ed-glow-warm);
    padding: var(--ed-space-5) var(--ed-space-5);
}

.auth-form-card .form-control {
    border-radius: var(--ed-radius-md);
    padding: 0.65rem 1rem;
}

.auth-form-card .form-control:focus {
    border-color: var(--ed-primary);
    box-shadow: var(--ed-focus-ring);
}

.auth-form-card .btn-link {
    color: var(--ed-text-secondary);
}

.auth-form-card .btn-link:hover {
    color: var(--ed-link);
}

.auth-form-card h2,
.auth-form-card .h5 {
    color: var(--ed-text);
}

/* Login card — brand strip (sama sumbernya dengan sidebar siswa / Pengaturan admin) */
.auth-form-card .appshell-student-brand--login {
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    margin: calc(var(--ed-space-5) * -1) calc(var(--ed-space-5) * -1) var(--ed-space-4);
    width: calc(100% + 2 * var(--ed-space-5));
    max-width: none;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--ed-radius-xl) var(--ed-radius-xl) 0 0;
}

.auth-form-card .appshell-student-brand--login .appshell-student-brand__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: var(--sb-pt, 12px) clamp(16px, 8%, 40px) var(--sb-pb, 12px);
    text-decoration: none;
    min-height: 0;
    background-color: #ffffff !important;
}

.auth-form-card .appshell-student-brand--login .appshell-student-brand__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(56px * var(--sb-scale, 100) / 100);
    object-fit: var(--sb-fit, contain);
    object-position: var(--sb-ox, 50%) var(--sb-oy, 50%);
}

/* Login (siswa + admin): light mode — selaras logo (navy/black + aksen gold) */
html:not(.dark-mode) .auth-brand-panel {
    background:
        radial-gradient(ellipse 90% 72% at 22% 0%, rgba(232, 205, 140, 0.13) 0%, transparent 54%),
        radial-gradient(ellipse 120% 80% at 22% 0%, rgba(255, 249, 229, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(var(--ed-primary-rgb), 0.16) 0%, transparent 50%),
        linear-gradient(155deg, #000000 0%, #0c0c0c 40%, #141414 72%, #050505 100%);
}

html:not(.dark-mode) .auth-split {
    background-image: none !important;
    background-color: #070a14;
}

html:not(.dark-mode) .auth-form-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 100% 78% at 50% -22%, rgba(232, 205, 140, 0.16) 0%, transparent 56%),
        radial-gradient(ellipse 58% 52% at 96% 12%, rgba(var(--ed-primary-rgb), 0.26) 0%, transparent 54%),
        radial-gradient(ellipse 48% 44% at 4% 88%, rgba(180, 145, 75, 0.11) 0%, transparent 50%),
        linear-gradient(180deg, #050814 0%, #0b1022 40%, #101a32 78%, #080c18 100%);
}

html:not(.dark-mode) .auth-form-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48L48 0M-12 12L12-12M36 60L60 36' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

html:not(.dark-mode) .auth-form-panel > * {
    position: relative;
    z-index: 1;
}

html:not(.dark-mode) .auth-form-card {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 249, 229, 0.12);
}

html:not(.dark-mode) .auth-form-card .btn-link:hover {
    color: var(--ed-primary);
}

/* ------------------------------------------------------------------------- */
/* Marketing landing — homepage (body.landing-home)                           */
/* ------------------------------------------------------------------------- */

body.landing-home {
    min-height: 100vh;
    font-family: var(--ed-font-ui), system-ui, sans-serif;
    /* Override edtech-tokens body background-color !important */
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(var(--ed-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(232, 213, 181, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 55% 40% at 0% 100%, rgba(var(--ed-primary-rgb), 0.06) 0%, transparent 42%),
        linear-gradient(180deg, var(--ed-canvas) 0%, var(--ed-bg-section) 45%, var(--ed-bg-deep) 100%) !important;
    color: var(--ed-text);
}

/* Light mode index: kanvas navy seperti tinta logo (bukan kertas putih) */
html:not(.dark-mode) body.landing-home {
    background:
        radial-gradient(ellipse 100% 80% at 50% -18%, rgba(130, 142, 210, 0.2) 0%, transparent 54%),
        radial-gradient(ellipse 55% 48% at 100% 8%, rgba(var(--ed-primary-rgb), 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 48% 42% at 0% 92%, rgba(35, 42, 72, 0.55) 0%, transparent 50%),
        linear-gradient(180deg, #060814 0%, #0b1022 36%, #101a32 68%, #080b16 100%) !important;
    color: rgba(244, 243, 238, 0.94);
}

html:not(.dark-mode) body.landing-home .landing-hero .sub,
html:not(.dark-mode) body.landing-home .landing-bullet-list li,
html:not(.dark-mode) body.landing-home .landing-version {
    color: rgba(216, 214, 206, 0.88) !important;
}

html:not(.dark-mode) body.landing-home .landing-version {
    opacity: 0.85 !important;
}

/* Headline & emphasis: platinum di atas navy (ganti gradien gelap bawaan light) */
html:not(.dark-mode) body.landing-home .landing-hero h1 {
    background: linear-gradient(180deg, #ffffff 0%, #e8e6df 40%, #a8b0d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 18ch;
}

html:not(.dark-mode) body.landing-home .landing-hero h1 .landing-headline-em {
    background: linear-gradient(135deg, #f7f5ef 0%, #b8c2ec 48%, #d0d6f2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html:not(.dark-mode) body.landing-home .landing-hero-badge {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(232, 230, 224, 0.92);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 8px 28px rgba(0, 0, 0, 0.25);
}

html:not(.dark-mode) body.landing-home .landing-hero-badge i {
    color: #b8c4f0;
}

html:not(.dark-mode) body.landing-home .landing-hero::before {
    opacity: 1;
    background:
        radial-gradient(ellipse 78% 88% at 14% 18%, rgba(var(--ed-primary-rgb), 0.28) 0%, transparent 58%),
        radial-gradient(ellipse 42% 50% at 90% 32%, rgba(180, 190, 235, 0.12) 0%, transparent 52%);
}

html:not(.dark-mode) body.landing-home .landing-hero::after {
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 56L56 0M-14 14L14-14M42 70L70 42' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.55;
}

html:not(.dark-mode) body.landing-home .landing-bullet-list li i {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(180, 190, 235, 0.28);
    color: #c8d0f5;
}

html:not(.dark-mode) body.landing-home .landing-pattern {
    background:
        radial-gradient(circle at 32% 28%, rgba(var(--ed-primary-rgb), 0.35), transparent 58%),
        radial-gradient(circle at 72% 62%, rgba(200, 208, 245, 0.1), transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 65%);
    box-shadow: 0 0 100px rgba(var(--ed-primary-rgb), 0.15);
}

/* --- Header --- */
.landing-site-header {
    background: rgba(10, 10, 10, 0.78) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--ed-border-strong) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 36px rgba(0, 0, 0, 0.45);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

html:not(.dark-mode) .landing-site-header {
    /* Putih es / glass: lebih putih dari 0.78 supaya tidak terbaca abu di atas hero gelap */
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    border-bottom-color: rgba(255, 255, 255, 0.42) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 6px 28px rgba(0, 0, 0, 0.07);
}

/* Index light: di atas navy — opacity putih lebih tinggi biar tidak keliatan abu, blur tetap glass */
html:not(.dark-mode) body.landing-home .landing-site-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    border-bottom-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Beranda (index) — dark mode: bar atas putih tembus pandang agar logo/teks gelap terbaca */
html.dark-mode body.landing-home .landing-site-header {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border-bottom-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 4px 24px rgba(8, 12, 22, 0.08);
}

html.dark-mode body.landing-home .landing-site-header .landing-brand-name {
    color: #0f172a !important;
}

html.dark-mode body.landing-home .landing-site-header .landing-brand-icon {
    background: rgba(var(--ed-primary-rgb), 0.1);
    border-color: rgba(var(--ed-primary-rgb), 0.22);
}

html.dark-mode body.landing-home .landing-site-header .landing-brand-logo-wrap {
    background: rgba(var(--ed-primary-rgb), 0.08);
    border-color: rgba(var(--ed-primary-rgb), 0.16);
}

html.dark-mode body.landing-home .landing-site-header .landing-top-actions .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(8, 12, 22, 0.14);
    color: #1e293b;
}

html.dark-mode body.landing-home .landing-site-header .landing-top-actions .btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: rgba(var(--ed-primary-rgb), 0.4);
    color: #0f172a;
}

.landing-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.landing-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--ed-primary-rgb), 0.08);
    border: 1px solid rgba(var(--ed-primary-rgb), 0.14);
}

.landing-brand-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.landing-brand-name {
    font-family: var(--ed-font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
    color: var(--ed-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 44vw;
}

/* Index header — brand lebih besar, sejajar proporsi dengan bar & tombol */
.landing-site-header .landing-brand {
    gap: 12px;
}

.landing-site-header .landing-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.landing-site-header .landing-brand-icon img {
    width: 26px;
    height: 26px;
}

.landing-site-header .landing-brand-name {
    font-size: 1.2rem;
    letter-spacing: -0.025em;
    max-width: min(340px, 52vw);
}

.landing-brand-logo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(240px, 52vw);
    min-width: 120px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(var(--ed-primary-rgb), 0.06);
    border: 1px solid rgba(var(--ed-primary-rgb), 0.12);
}

.landing-brand-logo-wrap img {
    display: block;
    max-height: 100%;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Header beranda — strip gambar Brand Area (sumber: Pengaturan admin, sama dengan sidebar/login) */
.landing-site-header .appshell-student-brand.appshell-student-brand--landing {
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    width: min(304px, 58vw);
    max-width: min(304px, 58vw);
    border-radius: 10px;
    background: transparent !important;
    border: none;
}

.landing-site-header .appshell-student-brand.appshell-student-brand--landing .appshell-student-brand__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: var(--sb-pt, 8px) clamp(10px, 6%, 28px) var(--sb-pb, 8px);
    text-decoration: none;
    min-height: 0;
    background-color: transparent !important;
}

.landing-site-header .appshell-student-brand.appshell-student-brand--landing .appshell-student-brand__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(50px * var(--sb-scale, 100) / 100);
    object-fit: var(--sb-fit, contain);
    object-position: var(--sb-ox, 50%) var(--sb-oy, 50%);
}

.landing-top-actions {
    flex-shrink: 0;
    gap: 10px !important;
}

.landing-home .landing-top-actions .btn,
.landing-home .landing-cta-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--ed-font-display);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.62rem 1.15rem;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

/* Bar atas: lebih rapat; hero CTA tetap padding di atas */
.landing-home .landing-top-actions .btn {
    padding: 0.48rem 1.05rem;
}

.landing-home .landing-top-actions .btn i.me-2,
.landing-home .landing-cta-row .btn i.me-2 {
    margin-right: 0 !important;
}

.landing-home .landing-top-actions .btn-primary,
.landing-home .landing-cta-row .btn-primary {
    border: none;
    background: linear-gradient(165deg, var(--ed-primary-hover) 0%, var(--ed-primary) 45%, var(--ed-primary-active) 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 4px 14px rgba(var(--ed-primary-rgb), 0.35),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.landing-home .landing-top-actions .btn-primary:hover,
.landing-home .landing-cta-row .btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(165deg, #a5aceb 0%, var(--ed-primary-hover) 50%, var(--ed-primary) 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 8px 28px rgba(var(--ed-primary-rgb), 0.42),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

.landing-home .landing-top-actions .btn-outline-secondary,
.landing-home .landing-cta-row .btn-outline-secondary {
    border-width: 1.5px;
    border-color: rgba(var(--ed-primary-rgb), 0.35);
    color: var(--ed-text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.landing-home .landing-top-actions .btn-outline-secondary:hover,
.landing-home .landing-cta-row .btn-outline-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--ed-primary-rgb), 0.55);
    background: rgba(var(--ed-primary-rgb), 0.12);
    color: var(--ed-text);
}

html:not(.dark-mode) .landing-home .landing-top-actions .btn-outline-secondary,
html:not(.dark-mode) .landing-home .landing-cta-row .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(8, 12, 22, 0.14);
    color: var(--ed-text);
}

html:not(.dark-mode) .landing-home .landing-top-actions .btn-outline-secondary:hover,
html:not(.dark-mode) .landing-home .landing-cta-row .btn-outline-secondary:hover {
    background: var(--ed-elevated);
    border-color: rgba(var(--ed-primary-rgb), 0.35);
}

.landing-home .landing-cta-row .btn-lg {
    padding: 0.95rem 1.35rem;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 800;
    min-height: 48px;
}

/* --- Hero --- */
.landing-hero {
    min-height: min(82vh, 900px);
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    background: transparent;
    position: relative;
    isolation: isolate;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto 0;
    height: min(70%, 520px);
    background:
        radial-gradient(ellipse 80% 90% at 18% 20%, rgba(var(--ed-primary-rgb), 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 92% 35%, rgba(232, 213, 181, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 56L56 0M-14 14L14-14M42 70L70 42' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 0%, transparent 70%);
}

html:not(.dark-mode) .landing-hero::before {
    opacity: 1;
    background:
        radial-gradient(ellipse 75% 85% at 15% 15%, rgba(var(--ed-primary-rgb), 0.1) 0%, transparent 58%),
        radial-gradient(ellipse 45% 55% at 88% 30%, rgba(201, 169, 98, 0.09) 0%, transparent 52%);
}

html:not(.dark-mode) .landing-hero::after {
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 56L56 0M-14 14L14-14M42 70L70 42' stroke='rgba(8,12,22,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.65;
}

.landing-hero .container {
    position: relative;
    z-index: 2;
}

.landing-pattern {
    position: absolute;
    right: -6%;
    top: 8%;
    width: 46%;
    max-width: 520px;
    aspect-ratio: 1;
    z-index: 1;
    background:
        radial-gradient(circle at 32% 28%, rgba(var(--ed-primary-rgb), 0.22), transparent 58%),
        radial-gradient(circle at 72% 62%, rgba(201, 169, 98, 0.12), transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(var(--ed-primary-rgb), 0.06), transparent 65%);
    border-radius: 42% 58% 52% 48%;
    filter: blur(0);
    pointer-events: none;
    box-shadow: 0 0 120px rgba(var(--ed-primary-rgb), 0.08);
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(var(--ed-primary-rgb), 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        var(--ed-shadow-sm),
        0 1px 0 rgba(255, 255, 255, 0.07) inset;
    color: var(--ed-text-secondary);
    font-family: var(--ed-font-display);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.landing-hero-badge i {
    color: var(--ed-primary);
    font-size: 1rem;
}

html:not(.dark-mode) .landing-hero-badge {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(8, 12, 22, 0.1);
    box-shadow: 0 2px 12px rgba(8, 12, 22, 0.06);
}

.landing-hero h1 {
    font-family: var(--ed-font-display);
    font-size: clamp(2.15rem, 4.8vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-top: 1.15rem;
    margin-bottom: 1.25rem;
    max-width: 16ch;
    background: linear-gradient(180deg, #ffffff 0%, #e4e2db 38%, #9ea0b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero h1 .landing-headline-em {
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #f5f3ec 0%, var(--ed-accent-sky) 42%, var(--ed-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html:not(.dark-mode) .landing-hero h1 {
    background: linear-gradient(135deg, #121110 0%, var(--ed-primary) 50%, #2a2d42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 18ch;
}

html:not(.dark-mode) .landing-hero h1 .landing-headline-em {
    background: linear-gradient(135deg, var(--ed-primary) 0%, #5a6194 55%, #1e1f24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero .sub {
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    color: var(--ed-text-secondary);
    max-width: min(42rem, 100%);
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.landing-bullet-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ed-text-secondary);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.landing-bullet-list li i {
    flex-shrink: 0;
    margin-top: 2px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--ed-primary);
    background: rgba(var(--ed-primary-rgb), 0.12);
    border: 1px solid rgba(var(--ed-primary-rgb), 0.2);
    border-radius: 999px;
}

html:not(.dark-mode) .landing-bullet-list li i {
    background: rgba(var(--ed-primary-rgb), 0.1);
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 1.65rem;
}

.landing-version {
    margin-top: 1.25rem !important;
    color: var(--ed-text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* --- Product preview card (light dashboard mockup — matches hi-fi reference) --- */
.landing-preview-card {
    --lp-surface: #ffffff;
    --lp-border: #e0ddd6;
    --lp-border-soft: #ebe8e1;
    --lp-text: #121110;
    --lp-text-muted: #6a6862;
    --lp-pill-bg: #eceaf4;
    --lp-pill-text: #2f3350;
    --lp-icon-bg: #f0eef8;
    --lp-icon-color: #454b7a;
    --lp-track: #e2e0da;
    --lp-bar: #454b7a;

    position: relative;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 28px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.08),
        0 8px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transform: translateY(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--lp-text);
}

@media (hover: hover) and (pointer: fine) {
    .landing-preview-card:hover {
        transform: translateY(4px);
        box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.05),
            0 32px 64px rgba(15, 23, 42, 0.12),
            0 12px 24px rgba(15, 23, 42, 0.06);
    }
}

.landing-preview-top {
    padding: 22px 24px 20px;
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-preview-title {
    font-family: var(--ed-font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lp-text);
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.25;
}

.landing-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-pill-bg);
    color: var(--lp-pill-text);
    border: 1px solid rgba(61, 82, 168, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: var(--ed-font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.landing-preview-pill i {
    font-size: 0.875rem;
    color: var(--lp-icon-color);
}

.landing-preview-body {
    padding: 20px 24px 24px;
}

.landing-preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.landing-kpi {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: left;
}

.landing-kpi .value {
    font-family: var(--ed-font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.5rem;
    color: var(--lp-text);
    line-height: 1.1;
}

.landing-kpi .label {
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.landing-preview-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.landing-preview-mini {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 16px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .landing-preview-mini:hover {
        border-color: #d4d1ca;
        box-shadow: 0 4px 12px rgba(18, 17, 15, 0.07);
    }
}

.landing-preview-mini .top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ed-font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--lp-text);
    letter-spacing: -0.02em;
}

.landing-preview-mini .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    background: var(--lp-icon-bg);
    color: var(--lp-icon-color);
    font-size: 1rem;
}

.landing-preview-mini .desc {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lp-text-muted);
    line-height: 1.45;
    margin-top: 10px;
}

.landing-preview-progress {
    background: #f6f5f1;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 18px 18px 16px;
}

.landing-preview-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.landing-preview-progress .progress-label {
    font-family: var(--ed-font-display);
    font-weight: 700;
    color: var(--lp-text);
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}

.landing-preview-progress .progress-value {
    font-family: var(--ed-font-display);
    font-weight: 800;
    color: var(--lp-icon-color);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.landing-preview-progress .progress {
    height: 12px;
    border-radius: 999px;
    margin-top: 14px;
    background: var(--lp-track);
    overflow: hidden;
    border: none;
}

.landing-preview-progress .progress-bar {
    border-radius: 999px;
    background: var(--lp-bar) !important;
    box-shadow: none;
}

/* Same mockup on light page; pill/bar follow theme primary slightly */
html:not(.dark-mode) .landing-preview-card {
    --lp-icon-color: var(--ed-primary);
    --lp-bar: var(--ed-primary-active);
    --lp-pill-text: #2a2d3d;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .landing-preview-card {
        transform: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .landing-preview-card:hover {
            transform: none;
        }
    }

    .landing-brand-name {
        max-width: 52vw;
    }

    .landing-hero h1 {
        max-width: none;
    }

    .landing-top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .landing-home .landing-top-actions .btn {
        padding: 0.42rem 0.88rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .landing-site-header .container {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .landing-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .landing-top-actions {
        width: 100%;
        justify-content: stretch;
    }

    .landing-home .landing-top-actions .btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        min-height: 44px;
    }

    .landing-home .landing-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-home .landing-cta-row .btn-lg {
        width: 100%;
        justify-content: center;
    }
}
