@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

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

:root {
    --green-bright: #6ABD45;
    --green-mid: #39B54A;
    --green-emerald: #006A39;
    --green-dark: #1E441F;
    --green-glow: rgba(106, 189, 69, 0.30);
    --green-dim: rgba(106, 189, 69, 0.12);

    --indigo-300: #a5b4fc;
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --indigo-glow: rgba(99, 102, 241, 0.35);
    --indigo-dim: rgba(99, 102, 241, 0.12);
    --violet: #7c3aed;

    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;

    --cyan: #06b6d4;
    --cyan-dim: rgba(6, 182, 212, 0.12);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.12);

    --bg: var(--slate-950);
    --surface: var(--slate-900);
    --surface-2: var(--slate-800);
    --border: rgba(148, 163, 184, 0.12);
    --border-2: rgba(148, 163, 184, 0.20);
    --text: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.55);
    --text-dim: rgba(248, 250, 252, 0.18);

    --primary: var(--indigo-500);
    --primary-light: var(--indigo-400);
    --primary-glow: var(--indigo-glow);
    --primary-dim: var(--indigo-dim);
    --primary-grad: linear-gradient(135deg, #6366f1, #7c3aed);
    --circle-grad: radial-gradient(circle at 38% 32%, #6366f1 0%, #4338ca 45%, #1e1b4b 80%, #0f0c2e 100%);
    --circle-shadow: 0 0 80px rgba(99, 102, 241, 0.30), inset 0 0 60px rgba(0, 0, 0, 0.5);
}

body.light {
    --bg: #f0f9eb;
    --surface: #ffffff;
    --surface-2: #e8f5e1;
    --border: rgba(30, 68, 31, 0.10);
    --border-2: rgba(30, 68, 31, 0.18);
    --text: #1E441F;
    --text-muted: rgba(30, 68, 31, 0.60);
    --text-dim: rgba(30, 68, 31, 0.15);
    --primary: var(--green-bright);
    --primary-light: #8fd16a;
    --primary-glow: var(--green-glow);
    --primary-dim: var(--green-dim);
    --primary-grad: linear-gradient(135deg, #6ABD45, #39B54A);
    --circle-grad: radial-gradient(circle at 38% 32%, #6ABD45 0%, #39B54A 40%, #1E441F 80%, #0d2e0e 100%);
    --circle-shadow: 0 0 80px rgba(106, 189, 69, 0.25), inset 0 0 60px rgba(0, 0, 0, 0.25);
    --orbit-1-color: var(--green-bright);
    --orbit-2-color: var(--green-emerald);
}

body.light .nav {
    background: rgba(240, 249, 235, 0.96);
}

body.light .toggle-thumb {
    transform: translateX(-22px);
}

body.light .toggle-track {
    background: #d4edca;
    border-color: rgba(30, 68, 31, 0.2);
}

body.light .fcard {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 68, 31, 0.14);
}

body.light .circle-halo {
    background: var(--green-glow);
}

body.light .fcard__body strong {
    color: #1E441F;
}

body.light .fcard__body span {
    color: rgba(30, 68, 31, 0.6);
}

body.light .login-card {
    background: #ffffff;
    border-color: rgba(30, 68, 31, 0.12);
}

body.light .login-card--student {
    border-color: rgba(6, 182, 212, 0.3);
}

body.light .login-card--teacher {
    border-color: rgba(245, 158, 11, 0.3);
}

body.light .badge {
    background: rgba(106, 189, 69, 0.10);
    border-color: rgba(106, 189, 69, 0.35);
    color: var(--green-dark);
}

body.light .badge__dot {
    background: var(--green-bright);
    box-shadow: 0 0 8px var(--green-bright);
}

body.light .hero__title-accent {
    background: linear-gradient(135deg, var(--green-dark), var(--green-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .hero__title-accent::after {
    background: linear-gradient(90deg, var(--green-bright), var(--green-emerald));
}

body.light .stat__num em {
    color: var(--green-bright);
}

body.light .bg__glow-indigo {
    background: radial-gradient(circle, rgba(106, 189, 69, 0.10) 0%, transparent 65%);
}

body.light .bg__glow-violet {
    background: radial-gradient(circle, rgba(0, 106, 57, 0.07) 0%, transparent 65%);
}

body.light .bg__slash {
    background: linear-gradient(to bottom, transparent, #6ABD45, transparent);
}

body.light .bg__grid {
    opacity: 0.7;
}

body.light .tip-tag {
    background: #1E441F;
    color: #fff;
}

body.light .tip-tag::after {
    border-top-color: #1E441F;
}

body.light .logo__mark {
    background: rgba(106, 189, 69, 0.12);
    border-color: rgba(106, 189, 69, 0.35);
}

body.light .toggle-wrap {
    background: #ffffff;
    border-color: rgba(30, 68, 31, 0.18);
}

body.light .toggle-wrap:hover {
    border-color: var(--green-bright);
}

body.light .toggle-thumb {
    background: var(--green-bright);
    box-shadow: 0 2px 8px var(--green-glow);
}

body.light .orbit-1 {
    border-color: rgba(30, 68, 31, 0.55);
}

body.light .orbit-2 {
    border-color: rgba(57, 181, 74, 0.45);
}

body.light .orbit-3 {
    border-color: rgba(0, 106, 57, 0.30);
}

body.light .orbit-4 {
    border-color: rgba(30, 68, 31, 0.10) transparent rgba(30, 68, 31, 0.10) transparent;
}

body.light .orbit-1 .odot {
    background: var(--green-bright);
    box-shadow: 0 0 10px var(--green-bright), 0 0 20px var(--green-glow);
}

body.light .orbit-2 .odot {
    background: var(--green-mid);
    box-shadow: 0 0 8px var(--green-mid);
}

body.light .orbit-3 .odot {
    background: var(--green-emerald);
    box-shadow: 0 0 8px var(--green-emerald);
}

body.light .orbit-4 .odot {
    background: var(--green-bright);
    box-shadow: 0 0 12px var(--green-bright), 0 0 24px var(--green-glow);
}

body.light .circle-ring {
    border-color: rgba(30, 68, 31, 0.12);
}

body.light .chem-h {
    color: var(--indigo-600);
    background: rgba(99, 102, 241, 0.09);
}

body.light .chem-o {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.07);
}

body.light .chem-c {
    background: rgba(30, 68, 31, 0.07);
    border-color: rgba(30, 68, 31, 0.18);
    color: #1E441F;
}

body.light .chem-n {
    color: var(--green-dark);
    background: rgba(30, 68, 31, 0.07);
    border-color: rgba(30, 68, 31, 0.18);
}

body.light .person-img {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.15));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.45s, color 0.45s;
}

/* \u2550\u2550 NAVBAR \u2550\u2550 */
.nav {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.45s, border-color 0.45s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-dim);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.45s, border-color 0.45s;
}

.logo__text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--text);
    transition: color 0.45s;
}

.logo__text strong em {
    font-style: normal;
    color: var(--primary-light);
    transition: color 0.45s;
}

.logo__text small {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
    transition: color 0.45s;
}

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    transition: border-color 0.2s, background 0.45s;
}

.toggle-wrap:hover {
    border-color: var(--primary-light);
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    position: relative;
    transition: background 0.45s;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: var(--indigo-500);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.45s, box-shadow 0.45s;
    pointer-events: none;
    box-shadow: 0 2px 8px var(--indigo-glow);
}

.toggle-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.45s;
}

/* \u2550\u2550 HERO \u2550\u2550 */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--text-dim) 1px, transparent 1px), linear-gradient(90deg, var(--text-dim) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.5;
    transition: opacity 0.45s;
}

.bg__glow-indigo {
    position: absolute;
    top: -180px;
    left: 30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
    transition: background 0.45s;
}

.bg__glow-violet {
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 65%);
    transition: background 0.45s;
}

.bg__slash {
    position: absolute;
    top: 0;
    left: 46%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--indigo-500), transparent);
    opacity: 0.12;
    transform: rotate(5deg);
    transition: background 0.45s;
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 80px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__text {
    display: flex;
    flex-direction: column;
    animation: slideR 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideR {
    from {
        opacity: 0;
        transform: translateX(48px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 16px 6px 10px;
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--indigo-400);
    margin-bottom: 28px;
    transition: background 0.45s, border-color 0.45s, color 0.45s;
}

.badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--indigo-400);
    box-shadow: 0 0 8px var(--indigo-400);
    animation: blink 1.6s ease-in-out infinite;
    transition: background 0.45s, box-shadow 0.45s;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.25
    }
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.3;
    /* Increased for breathing room */
    color: var(--text);
    margin-bottom: 22px;
    transition: color 0.45s;
    min-height: 2.5em;
    display: block;
    text-align: center;
    padding: 0 15px;
    /* Side padding to prevent clipping of slanted letters */
}

/* Specific styling for typewriter inside title */
.kema-typewrite .gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0px;
    letter-spacing: -1px;
}

/* Static Titles Styling (When Typewriter is Disabled) */
.static-titles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInR 0.8s ease-out both;
}

.static-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
    width: fit-content;
}

.static-item:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.static-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.static-item .gradient-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

@keyframes fadeInR {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__title-accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--indigo-400), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.45s;
}

.hero__title-accent::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--indigo-500), var(--violet));
    transform-origin: left;
    animation: drawLine 1s 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: background 0.45s;
}

@keyframes drawLine {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero__desc {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 36px;
    transition: color 0.45s;
}

.hero__desc strong {
    color: var(--text);
    font-weight: 700;
    transition: color 0.45s;
}

/* LOGIN CARDS */
.login-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.login-cards--single {
    justify-content: center;
}

.login-cards--single .login-card {
    max-width: 320px;
    flex: none;
    width: 100%;
}

.login-card {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.45s;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.login-card:hover {
    transform: translateY(-4px);
}

.login-card:active {
    transform: translateY(-1px);
}

.login-card--student {
    border-color: rgba(6, 182, 212, 0.22);
}

.login-card--student::before {
    background: radial-gradient(circle at 10% 50%, rgba(6, 182, 212, 0.08), transparent 70%);
}

.login-card--student:hover {
    border-color: var(--cyan);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.18);
}

.login-card--student:hover::before {
    opacity: 1;
}

.login-card--teacher {
    border-color: rgba(245, 158, 11, 0.22);
}

.login-card--teacher::before {
    background: radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.08), transparent 70%);
}

.login-card--teacher:hover {
    border-color: var(--amber);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18);
}

.login-card--teacher:hover::before {
    opacity: 1;
}

.card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.card__icon--cyan {
    background: var(--cyan-dim);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.card__icon--amber {
    background: var(--amber-dim);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card__body {
    position: relative;
    z-index: 1;
}

.card__body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
    transition: color 0.45s;
}

.card__body span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.45s;
}

.card__arrow {
    margin-right: auto;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s, transform 0.25s;
    position: relative;
    z-index: 1;
}

.login-card:hover .card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* VISUAL */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideL 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideL {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CIRCLE */
.circle-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--indigo-glow) 0%, transparent 68%);
    filter: blur(28px);
    opacity: 0.6;
    pointer-events: none;
    transition: background 0.6s;
    z-index: 0;
}

.circle-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--circle-grad);
    box-shadow: var(--circle-shadow);
    transition: background 0.6s, box-shadow 0.6s;
    z-index: 1;
}

.circle-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 316px;
    height: 316px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    pointer-events: none;
    z-index: 2;
}

.circle-shine {
    position: absolute;
    top: calc(50% - 65px);
    left: calc(50% + 22px);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 5;
}

/* ORBITALS */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-1 {
    width: 360px;
    height: 120px;
    margin-top: -60px;
    margin-left: -180px;
    border-width: 1px;
    border-color: rgba(99, 102, 241, 0.50);
    transform: rotateX(72deg);
    animation: spin1 9s linear infinite;
    z-index: 2;
    transition: border-color 0.6s;
}

.orbit-2 {
    width: 360px;
    height: 120px;
    margin-top: -60px;
    margin-left: -180px;
    border-width: 1px;
    border-color: rgba(139, 92, 246, 0.40);
    transform: rotateX(72deg) rotateZ(60deg);
    animation: spin2 13s linear infinite reverse;
    z-index: 2;
    transition: border-color 0.6s;
}

.orbit-3 {
    width: 360px;
    height: 120px;
    margin-top: -60px;
    margin-left: -180px;
    border-width: 1px;
    border-color: rgba(167, 139, 250, 0.30);
    transform: rotateX(72deg) rotateZ(120deg);
    animation: spin3 17s linear infinite;
    z-index: 2;
    transition: border-color 0.6s;
}

.orbit-4 {
    width: 420px;
    height: 420px;
    margin-top: -210px;
    margin-left: -210px;
    border-width: 1px;
    border-color: rgba(99, 102, 241, 0.10) transparent rgba(99, 102, 241, 0.10) transparent;
    transform: rotate(0deg);
    animation: spin4 30s linear infinite;
    z-index: 1;
    transition: border-color 0.6s;
}

@keyframes spin1 {
    from {
        transform: rotateX(72deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(72deg) rotateZ(360deg);
    }
}

@keyframes spin2 {
    from {
        transform: rotateX(72deg) rotateZ(60deg);
    }

    to {
        transform: rotateX(72deg) rotateZ(420deg);
    }
}

@keyframes spin3 {
    from {
        transform: rotateX(72deg) rotateZ(120deg);
    }

    to {
        transform: rotateX(72deg) rotateZ(480deg);
    }
}

@keyframes spin4 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.odot {
    position: absolute;
    border-radius: 50%;
    top: -4px;
    left: 50%;
}

.orbit-1 .odot {
    width: 8px;
    height: 8px;
    margin-left: -4px;
    background: var(--indigo-300);
    box-shadow: 0 0 10px var(--indigo-300), 0 0 20px var(--indigo-glow);
}

.orbit-2 .odot {
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    background: #c084fc;
    box-shadow: 0 0 10px #c084fc, 0 0 18px rgba(192, 132, 252, 0.4);
}

.orbit-3 .odot {
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet);
}

.orbit-4 .odot {
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    background: var(--indigo-400);
    box-shadow: 0 0 12px var(--indigo-400), 0 0 24px var(--indigo-glow);
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--primary) 60%);
    box-shadow: 0 0 14px var(--primary), 0 0 28px var(--primary-glow);
    z-index: 6;
    animation: nucleusPulse 2.5s ease-in-out infinite alternate;
}

@keyframes nucleusPulse {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.65;
    }
}

/* CHEM TAGS */
.chem-tag {
    position: absolute;
    z-index: 7;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(10px);
    border: 1px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.45s, border-color 0.45s;
}

.chem-tag__symbol {
    font-size: 1rem;
    font-weight: 900;
}

.chem-tag__num {
    font-size: 0.45rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 2px;
}

.chem-h {
    width: 42px;
    height: 42px;
    top: 14px;
    right: -16px;
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--indigo-300);
    animation: floatChem 4s ease-in-out infinite alternate;
}

.chem-o {
    width: 38px;
    height: 38px;
    bottom: 44px;
    left: -14px;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    animation: floatChem 5s 0.8s ease-in-out infinite alternate;
}

.chem-c {
    width: 34px;
    height: 34px;
    top: 60px;
    left: -12px;
    background: rgba(248, 250, 252, 0.07);
    border-color: rgba(248, 250, 252, 0.18);
    color: rgba(248, 250, 252, 0.8);
    animation: floatChem 3.5s 0.4s ease-in-out infinite alternate;
}

.chem-n {
    width: 34px;
    height: 34px;
    bottom: 60px;
    right: -12px;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
    animation: floatChem 4.5s 1.2s ease-in-out infinite alternate;
}

@keyframes floatChem {
    from {
        transform: translateY(0) rotate(-2deg);
    }

    to {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* PERSON */
.person-slot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    width: 320px;
    height: 390px;
    z-index: 4;
}

.person-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

/* TIP */
.tip-tag {
    position: absolute;
    top: 8px;
    right: -12px;
    z-index: 6;
    background: var(--text);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.45s, color 0.45s;
}

.tip-tag::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: var(--text);
    border-bottom: 0;
    transition: border-top-color 0.45s;
}

/* FLOATING CARDS */
.fcard {
    position: absolute;
    z-index: 6;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    animation: floatY ease-in-out infinite alternate;
    transition: background 0.45s, border-color 0.45s;
}

@keyframes floatY {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-7px);
    }
}

.fcard--award {
    bottom: 20px;
    left: 10px;
    animation-duration: 3.8s;
}

.fcard--online {
    top: 20px;
    right: 10px;
    animation-duration: 4.5s;
    animation-delay: 0.6s;
}

.fcard__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fcard__icon--primary {
    background: var(--primary-dim);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: background 0.45s;
}

.fcard__icon--green {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.fcard__body strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
}

.fcard__body span {
    font-size: 0.62rem;
    color: rgba(248, 250, 252, 0.55);
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: blink 1.5s ease-in-out infinite;
    display: inline-block;
    margin-left: 4px;
}

/* \u2550\u2550 LARGE DESKTOP \u2550\u2550 */
@media (min-width: 1400px) {
    .hero__inner {
        max-width: 1320px;
        padding: 80px 60px;
        gap: 80px;
    }

    .circle-wrap {
        width: 480px;
        height: 480px;
    }

    .circle-base {
        width: 340px;
        height: 340px;
    }

    .circle-ring {
        width: 358px;
        height: 358px;
    }

    .circle-halo {
        width: 380px;
        height: 380px;
    }

    .orbit-1,
    .orbit-2,
    .orbit-3 {
        width: 400px;
        height: 135px;
        margin-top: -67px;
        margin-left: -200px;
    }

    .orbit-4 {
        width: 470px;
        height: 470px;
        margin-top: -235px;
        margin-left: -235px;
    }

    .person-slot {
        width: 360px;
        height: 430px;
    }
}

/* \u2550\u2550 LAPTOP \u2550\u2550 */
@media (max-width: 1199px) and (min-width: 901px) {
    .hero__inner {
        gap: 40px;
        padding: 60px 32px;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .circle-wrap {
        width: 380px;
        height: 380px;
    }

    .circle-base {
        width: 270px;
        height: 270px;
    }

    .circle-ring {
        width: 284px;
        height: 284px;
    }

    .circle-halo {
        width: 310px;
        height: 310px;
    }

    .orbit-1,
    .orbit-2,
    .orbit-3 {
        width: 320px;
        height: 106px;
        margin-top: -53px;
        margin-left: -160px;
    }

    .orbit-4 {
        width: 380px;
        height: 380px;
        margin-top: -190px;
        margin-left: -190px;
    }

    .person-slot {
        width: 290px;
        height: 355px;
    }
}

/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
   MOBILE \u2264 900px \u2014 \u062a\u062e\u0637\u064a\u0637 \u0645\u0631\u0646 \u0628\u062f\u0648\u0646 \u0642\u0635
   \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */
@media (max-width: 900px) {

    .nav {
        padding: 0 20px;
        height: 56px;
    }

    .logo__text strong {
        font-size: 0.9rem;
    }

    .toggle-label {
        display: none;
    }

    /* Hero \u064a\u0645\u0644\u0623 \u0627\u0644\u0634\u0627\u0634\u0629 \u0643\u0627\u0645\u0644\u0627\u0641 \u0628\u062f\u0648\u0646 \u0642\u0635 */
    .hero {
        min-height: calc(100dvh - 56px);
        height: calc(100dvh - 56px);
        overflow: hidden;
        align-items: stretch;
    }

    /* grid \u0628\u0627\u0631\u062a\u0641\u0627\u0639 \u0643\u0627\u0645\u0644 \u2014 \u0627\u0644\u0635\u0648\u0631\u0629 44%\u060c \u0627\u0644\u0646\u0635\u0648\u0635 56% */
    .hero__inner {
        grid-template-columns: 1fr;
        grid-template-rows: 44% 56%;
        height: 100%;
        padding: 0;
        gap: 0;
        align-items: stretch;
        max-width: 100%;
        width: 100%;
    }

    /* \u2500\u2500 \u0627\u0644\u0646\u0635\u0641 \u0627\u0644\u0631\u0644\u0648\u064a: \u0627\u0644\u062f\u0627\u0626\u0631\u0629 \u0641\u064a \u0627\u0644\u0645\u0646\u062a\u0635\u0641 \u062a\u0645\u0627\u0645\u0627\u0641 \u2500\u2500 */
    .hero__visual {
        order: -1;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0 0;
        overflow: visible;
    }

    /* \u062d\u062c\u0645 \u0627\u0644\u062f\u0627\u0626\u0631\u0629 = 80% \u0645\u0646 \u0627\u0631\u062a\u0641\u0627\u0639 \u0627\u0644\u0646\u0635\u0641 \u0627\u0644\u0631\u0644\u0648\u064a \u062a\u0642\u0631\u064a\u0628\u0627\u0641 */
    .circle-wrap {
        width: min(44dvh, 280px);
        height: min(44dvh, 280px);
        margin: 0;
    }

    .circle-base {
        width: min(35dvh, 222px);
        height: min(35dvh, 222px);
    }

    .circle-ring {
        width: min(37dvh, 236px);
        height: min(37dvh, 236px);
    }

    .circle-halo {
        width: min(40dvh, 256px);
        height: min(40dvh, 256px);
        filter: blur(22px);
    }

    .orbit-1,
    .orbit-2,
    .orbit-3 {
        width: min(85vw, 360px);
        height: min(25dvh, 120px);
        margin-top: max(-12.5dvh, -60px);
        margin-left: max(-42.5vw, -180px);
    }

    .orbit-4 {
        width: min(92vw, 440px);
        height: min(92vw, 440px);
        margin-top: max(-46vw, -220px);
        margin-left: max(-46vw, -220px);
    }

    .person-slot {
        width: min(34dvh, 218px);
        height: min(44dvh, 273px);
        transform: translate(-50%, -52%);
    }

    .chem-h {
        top: 10px;
        right: 2px;
        width: 36px;
        height: 36px;
    }

    .chem-o {
        bottom: 28px;
        left: 2px;
        width: 32px;
        height: 32px;
    }

    .chem-c {
        top: 52px;
        left: 2px;
        width: 28px;
        height: 28px;
    }

    .chem-n {
        bottom: 50px;
        right: 2px;
        width: 28px;
        height: 28px;
    }

    .chem-tag__symbol {
        font-size: 0.85rem;
    }

    .chem-tag__num {
        display: none;
    }

    .nucleus {
        width: 10px;
        height: 10px;
    }

    /* \u2500\u2500 \u0627\u0644\u0646\u0635\u0641 \u0627\u0644\u0633\u0641\u0644\u064a: \u064a\u0645\u0644\u0623 \u0627\u0644\u0645\u0633\u0627\u062d\u0629 \u0628\u0627\u0644\u0643\u0627\u0645\u0644 \u0628\u062f\u0648\u0646 \u0642\u0635 \u2500\u2500 */
    .hero__text {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        text-align: center;
        padding: 8px 18px 20px;
        overflow: hidden;
    }

    .badge {
        font-size: 0.73rem;
        padding: 6px 18px 6px 12px;
        margin-bottom: 0;
        gap: 8px;
        flex-shrink: 0;
    }

    .badge__dot {
        width: 7px;
        height: 7px;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 8px;
        line-height: 1.2;
        width: 100%;
        flex-shrink: 0;
        display: block;
        min-height: 1.5em;
    }

    .static-titles {
        align-items: center;
        width: 100%;
    }

    .hero__desc {
        font-size: clamp(0.8rem, 2.2vw, 1rem);
        line-height: 1.7;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .login-cards {
        gap: 12px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        width: 100%;
        flex-shrink: 0;
    }

    .login-card {
        flex: 1;
        padding: 14px 12px;
        gap: 10px;
        min-width: 0;
        border-radius: 16px;
    }

    .card__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .card__icon svg {
        width: 20px;
        height: 20px;
    }

    .card__body strong {
        font-size: 0.9rem;
    }

    .card__body span {
        font-size: 0.68rem;
    }

    .card__arrow {
        display: none;
    }
}

/* \u2500\u2500 \u0645\u0648\u0628\u0627\u064a\u0644 \u0635\u063a\u064a\u0631 \u2264480px \u2500\u2500 */
@media (max-width: 480px) {
    .hero__title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero__desc {
        font-size: 0.8rem;
    }

    .login-card {
        padding: 12px 10px;
        gap: 8px;
    }

    .card__icon {
        width: 38px;
        height: 38px;
    }

    .chem-h,
    .chem-o,
    .chem-c,
    .chem-n {
        display: none;
    }
}

/* \u2500\u2500 \u0645\u0648\u0628\u0627\u064a\u0644 \u0635\u063a\u064a\u0631 \u062c\u062f\u0627\u0641 \u2264360px \u2500\u2500 */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.4rem;
    }

    .hero__desc {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}