/* ------------------------------- base ------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #050f0b; }
html, body, #root { margin: 0; min-height: 100%; }
body {
    background: #050f0b;
    color: #f5f0de;
    font-family: 'Segoe UI', Tahoma, 'Noto Kufi Arabic', 'Noto Sans Arabic', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }

.mhn-page {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(1200px 800px at 85% -10%, rgba(23, 87, 66, 0.55), transparent 60%),
        radial-gradient(900px 700px at 5% 40%, rgba(16, 61, 46, 0.5), transparent 60%),
        radial-gradient(1000px 900px at 90% 85%, rgba(23, 87, 66, 0.4), transparent 60%),
        #050f0b;
}

/* ------------------------------- stars ------------------------------- */
.mhn-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mhn-star-layer { position: absolute; inset: 0; }
.mhn-star {
    position: absolute;
    border-radius: 50%;
    background: #d9f2e6;
    opacity: 0.25;
    animation: mhn-twinkle 4s ease-in-out infinite;
}
.mhn-star-layer-1 .mhn-star { opacity: 0.4; }
.mhn-star-layer-2 .mhn-star { opacity: 0.18; }
@keyframes mhn-twinkle {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.5); }
}
.mhn-particle {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(70, 224, 176, 0.5);
    box-shadow: 0 0 12px 3px rgba(70, 224, 176, 0.35);
    animation: mhn-drift-particle 12s ease-in-out infinite alternate;
}
.mhn-particle-gold {
    background: rgba(242, 197, 61, 0.55);
    box-shadow: 0 0 14px 4px rgba(242, 197, 61, 0.35);
}
@keyframes mhn-drift-particle {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(24px, -34px, 0); }
    100% { transform: translate3d(-18px, 22px, 0); }
}

/* ------------------------------- loader ------------------------------- */
.mhn-loader {
    position: fixed; inset: 0; z-index: 50;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #050f0b;
    transition: opacity 0.6s ease;
}
.mhn-loader-off { opacity: 0; pointer-events: none; }
.mhn-loader-logo {
    font-size: 42px; font-weight: 900;
    background: linear-gradient(120deg, #f5f0de 30%, #f2c53d 50%, #f5f0de 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: mhn-shine 1.4s linear infinite;
}
.mhn-loader-sub { color: #8be9c8; letter-spacing: 4px; margin-top: 6px; font-weight: 600; }
@keyframes mhn-shine { to { background-position: -200% 0; } }

/* ------------------------------- reveal ------------------------------- */
.mhn-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.mhn-reveal.is-visible, .mhn-reveal.mhn-shown { opacity: 1; transform: none; }

/* ------------------------------- shared ------------------------------- */
.mhn-kicker {
    color: #f2c53d; font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.mhn-h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; margin: 0 0 12px; }
.mhn-h3 { font-size: 22px; font-weight: 700; margin: 34px 0 16px; }
.mhn-h3-live { color: #8be9c8; }
.mhn-h3-soon { color: #f2c53d; }
.mhn-lead { color: #b3c2b6; font-size: 17px; line-height: 1.9; margin: 0 0 8px; }
.mhn-section { max-width: 1120px; margin: 0 auto; padding: 90px 22px 30px; position: relative; z-index: 1; }

.mhn-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mhn-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 26px; border-radius: 14px;
    font-weight: 700; font-size: 16px; text-decoration: none; color: #06130e;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    cursor: pointer;
}
.mhn-btn-gold {
    background: linear-gradient(135deg, #f7d876, #f2c53d 55%, #d9a92a);
    box-shadow: 0 8px 26px rgba(242, 197, 61, 0.28);
    animation: mhn-glow 3.4s ease-in-out infinite;
}
.mhn-btn-gold:hover { transform: translateY(-3px); }
.mhn-btn-ghost {
    background: rgba(245, 240, 222, 0.06);
    color: #f5f0de;
    border: 1px solid rgba(245, 240, 222, 0.28);
    backdrop-filter: blur(8px);
}
.mhn-btn-ghost:hover { transform: translateY(-3px); border-color: rgba(242, 197, 61, 0.6); }
.mhn-btn-soon {
    background: rgba(70, 224, 176, 0.08);
    color: #8be9c8;
    border: 1px dashed rgba(139, 233, 200, 0.45);
    cursor: default;
}
@keyframes mhn-glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(242, 197, 61, 0)); }
    50% { filter: drop-shadow(0 0 16px rgba(242, 197, 61, 0.5)); }
}

.mhn-tilt { transition: transform 0.2s ease-out; transform-style: preserve-3d; position: relative; }

/* ------------------------------- hero ------------------------------- */
.mhn-hero {
    min-height: min(100vh, 940px);
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px;
    padding: 90px 26px 60px;
    position: relative; z-index: 1;
}
.mhn-badge {
    display: inline-block;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(242, 197, 61, 0.1);
    border: 1px solid rgba(242, 197, 61, 0.4);
    color: #f2c53d; font-size: 13.5px; font-weight: 700;
    margin-bottom: 22px;
}
.mhn-title { font-size: clamp(34px, 5.6vw, 62px); font-weight: 900; line-height: 1.35; margin: 0 0 18px; }
.mhn-title-dots { color: #f2c53d; }
.mhn-title-gold {
    background: linear-gradient(120deg, #f7d876, #f2c53d 60%, #e8b62e);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mhn-intro { color: #b3c2b6; font-size: clamp(16px, 2vw, 19px); line-height: 2; margin: 0; max-width: 46ch; }

.mhn-hero-frame-wrap { perspective: 1100px; }
.mhn-hero-frame {
    border-radius: 20px;
    animation: mhn-float 8s ease-in-out infinite;
    box-shadow:
        0 0 0 1px rgba(139, 233, 200, 0.22),
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(70, 224, 176, 0.12);
}
.mhn-hero-frame::after {
    content: '';
    position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
    background: radial-gradient(400px 260px at var(--mx, 50%) var(--my, 50%), rgba(242, 197, 61, 0.14), transparent 65%);
    transition: opacity 0.3s ease;
}
.mhn-hero-frame img { border-radius: 20px; }
@keyframes mhn-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mhn-scroll-hint {
    position: absolute; bottom: 26px; right: 50%; transform: translateX(50%);
    width: 24px; height: 40px; border-radius: 14px;
    border: 2px solid rgba(245, 240, 222, 0.3);
}
.mhn-scroll-hint span {
    position: absolute; top: 7px; right: 50%; transform: translateX(50%);
    width: 4px; height: 9px; border-radius: 3px; background: #f2c53d;
    animation: mhn-wheel 1.8s ease-in-out infinite;
}
@keyframes mhn-wheel {
    0% { opacity: 0; transform: translate(50%, 0); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate(50%, 13px); }
}

/* ------------------------------- showcase ------------------------------- */
.mhn-showcase { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 60px 22px 0; }
.mhn-showcase-grid {
    display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 40px;
    margin-top: 30px;
}
.mhn-showcase-stage { position: relative; aspect-ratio: 16 / 10; }
.mhn-showcase-slide {
    position: absolute; inset: 0;
    opacity: 0; transform: translateY(16px) scale(0.965);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.mhn-showcase-slide.active { opacity: 1; transform: none; }
.mhn-showcase-slide img {
    border-radius: 18px; width: 100%; height: 100%; object-fit: contain;
    background: rgba(245, 240, 222, 0.03);
    box-shadow: 0 0 0 1px rgba(139, 233, 200, 0.2), 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 54px rgba(70, 224, 176, 0.1);
}
.mhn-showcase-caption { position: relative; min-height: 210px; }
.mhn-showcase-step { position: absolute; inset-inline-start: 0; top: 0; opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; width: 100%; }
.mhn-showcase-step.active { opacity: 1; transform: none; transition-delay: 0.15s; }
.mhn-showcase-step h3 { font-size: 26px; font-weight: 900; margin: 6px 0 8px; }
.mhn-showcase-step p { color: #b3c2b6; line-height: 1.9; margin: 0; }
.mhn-showcase-stepnum { color: #f2c53d; font-weight: 700; font-size: 14px; }
.mhn-showcase-dots { position: absolute; bottom: 0; display: flex; gap: 8px; }
.mhn-showcase-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: rgba(245, 240, 222, 0.25); transition: background 0.3s, transform 0.3s;
}
.mhn-showcase-dots button.active { background: #f2c53d; transform: scale(1.35); }

/* ------------------------------- systems ------------------------------- */
.mhn-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.mhn-system-card {
    border-radius: 20px; padding: 30px 24px;
    background: linear-gradient(160deg, rgba(245, 240, 222, 0.07), rgba(245, 240, 222, 0.02));
    border: 1px solid rgba(245, 240, 222, 0.14);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.mhn-system-card::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(320px 220px at var(--mx, 50%) var(--my, 0%), rgba(242, 197, 61, 0.16), transparent 65%);
    opacity: 0; transition: opacity 0.35s ease;
}
.mhn-system-card:hover::before { opacity: 1; }
.mhn-system-card:hover { border-color: rgba(242, 197, 61, 0.45); }
.mhn-system-icon {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #f2c53d;
    background: rgba(242, 197, 61, 0.12);
    border: 1px solid rgba(242, 197, 61, 0.35);
    margin-bottom: 16px;
}
.mhn-system-card h3 { margin: 0; font-size: 21px; font-weight: 900; }
.mhn-system-track { color: #f2c53d; font-weight: 700; margin: 4px 0 10px; }
.mhn-system-card p { color: #b3c2b6; line-height: 1.85; margin: 0; font-size: 15px; }

/* ------------------------------- subjects ------------------------------- */
.mhn-subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.mhn-subject {
    border-radius: 18px; overflow: hidden; position: relative;
    border: 1px solid rgba(245, 240, 222, 0.12);
    background: rgba(245, 240, 222, 0.03);
}
.mhn-subject img { transition: transform 0.5s ease; }
.mhn-subject:hover img { transform: scale(1.05); }
.mhn-subject-name {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 26px 14px 12px;
    font-weight: 700; font-size: 15.5px;
    background: linear-gradient(to top, rgba(5, 15, 11, 0.92), transparent);
}
.mhn-subject-art {
    aspect-ratio: 16 / 10;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mhn-subject-art .mhn-subject-name { position: static; background: none; padding: 0; }
.mhn-subject-glyph { font-size: 52px; font-weight: 900; opacity: 0.85; animation: mhn-float 7s ease-in-out infinite; }
.mhn-subject-teal { box-shadow: inset 0 0 40px rgba(70, 224, 176, 0.07); }
.mhn-subject-teal .mhn-subject-glyph, .mhn-subject-teal .mhn-subject-name { color: #46e0b0; }
.mhn-subject-violet .mhn-subject-glyph, .mhn-subject-violet .mhn-subject-name { color: #b79cff; }
.mhn-subject-green .mhn-subject-glyph, .mhn-subject-green .mhn-subject-name { color: #7ce38b; }
.mhn-subject-blue .mhn-subject-glyph, .mhn-subject-blue .mhn-subject-name { color: #7ec8ff; }
.mhn-subject-sky .mhn-subject-glyph, .mhn-subject-sky .mhn-subject-name { color: #8be9e0; }
.mhn-subject-gold .mhn-subject-glyph, .mhn-subject-gold .mhn-subject-name { color: #f2c53d; }

/* ------------------------------- features ------------------------------- */
.mhn-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mhn-feature {
    border-radius: 16px; padding: 20px 18px;
    background: rgba(245, 240, 222, 0.04);
    border: 1px solid rgba(245, 240, 222, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mhn-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 197, 61, 0.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.mhn-feature-live { border-color: rgba(139, 233, 200, 0.35); background: rgba(70, 224, 176, 0.06); }
.mhn-feature-icon { display: block; margin-bottom: 10px; color: #f2c53d; }
.mhn-feature-live .mhn-feature-icon { color: #46e0b0; }
.mhn-feature h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.mhn-feature p { margin: 0; color: #b3c2b6; font-size: 13.5px; line-height: 1.8; }

/* ------------------------------- journey ------------------------------- */
.mhn-journey {
    position: relative; margin: 40px auto 0; padding: 0; list-style: none;
    max-width: 620px;
}
.mhn-journey-line {
    position: absolute; top: 0; bottom: 0; right: 26px;
    width: 3px; border-radius: 3px;
    background: rgba(245, 240, 222, 0.12);
}
.mhn-journey-line::after {
    content: '';
    position: absolute; inset: 0; border-radius: 3px;
    background: linear-gradient(to bottom, #f2c53d, #46e0b0);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 18px rgba(242, 197, 61, 0.5);
}
.mhn-journey.drawn .mhn-journey-line::after { transform: scaleY(1); }
.mhn-journey-step {
    position: relative; display: flex; align-items: center; gap: 20px;
    padding: 22px 0;
}
.mhn-journey-dot {
    flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px; color: #06130e;
    background: linear-gradient(135deg, #f7d876, #f2c53d);
    box-shadow: 0 0 22px rgba(242, 197, 61, 0.35);
    z-index: 1;
}
.mhn-journey-text { font-size: 18px; font-weight: 700; }

/* ------------------------------- closing ------------------------------- */
.mhn-closing {
    position: relative; z-index: 1;
    text-align: center;
    padding: 130px 22px 60px;
    background: radial-gradient(700px 420px at 50% 30%, rgba(242, 197, 61, 0.1), transparent 70%);
}
.mhn-closing-logo {
    font-size: clamp(38px, 6vw, 58px); font-weight: 900;
    background: linear-gradient(120deg, #f5f0de 25%, #f2c53d 50%, #f5f0de 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: mhn-shine 4s linear infinite;
}
.mhn-closing-title { font-size: clamp(26px, 4.4vw, 42px); font-weight: 900; margin: 18px 0 6px; }
.mhn-closing-sub { color: #8be9c8; font-weight: 700; letter-spacing: 1px; margin: 0 0 6px; }
.mhn-closing-note { color: #b3c2b6; margin: 0 0 8px; }
.mhn-closing .mhn-cta { justify-content: center; }
.mhn-contact-line { color: #f5f0de; font-size: 17px; margin: 26px 0 0; }
.mhn-contact-line bdi { color: #f2c53d; font-weight: 700; letter-spacing: 1px; }
.mhn-footer { margin-top: 70px; color: #5d6f66; font-size: 13.5px; }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 900px) {
    .mhn-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; text-align: center; }
    .mhn-hero .mhn-cta { justify-content: center; }
    .mhn-intro { margin-inline: auto; }
    .mhn-cards-3 { grid-template-columns: 1fr; }
    .mhn-subjects { grid-template-columns: repeat(2, 1fr); }
    .mhn-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .mhn-showcase-grid { grid-template-columns: 1fr; gap: 22px; }
    .mhn-showcase-caption { min-height: 170px; }
    .mhn-scroll-hint { display: none; }
}
@media (max-width: 480px) {
    .mhn-subjects { grid-template-columns: 1fr; }
    .mhn-cards-grid { grid-template-columns: 1fr; }
}

/* ------------------------------- reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .mhn-reveal { opacity: 1 !important; transform: none !important; }
    .mhn-journey-line::after { transform: scaleY(1) !important; }
}
