:root {
    --primary: #6D28D9;
    --strong: #4C1D95;
    --hover: #8B5CF6;

    --bg-main: #0F0B1F;
    --bg-soft: #141027;
    --card: #1C1635;
    --card-alt: #231C45;

    --text-main: #FFFFFF;
    --text-secondary: #A1A1AA;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(139, 92, 246, 0.30);

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;

    --transition: all 0.28s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.18), transparent 30%),
        radial-gradient(circle at right center, rgba(139, 92, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #0F0B1F 0%, #100C20 100%);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

button {
    background: none;
    border: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(14px);
    background: rgba(15, 11, 31, 0.82);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.brand-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.96rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-mobile-btn {
    display: none;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    display: block;
    border-radius: 999px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--hover));
    color: #fff;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-outline {
    background: rgba(255,255,255,0.02);
    border-color: rgba(139, 92, 246, 0.25);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.45);
}

.footer-link-button {
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.footer-link-button:hover {
    color: var(--text-main);
}

/* HERO */
.hero-section {
    padding: 90px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 34px;
    align-items: center;
}

.hero-badge,
.section-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.18);
    color: #DDD6FE;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: 3.3rem;
    line-height: 1.07;
    letter-spacing: -0.8px;
    margin-bottom: 18px;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(90deg, #FFFFFF 0%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-point {
    color: var(--text-secondary);
    font-size: 0.94rem;
    padding: 8px 0;
}

.hero-panel-card {
    background: linear-gradient(180deg, rgba(28,22,53,0.95) 0%, rgba(19,15,36,0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-panel-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -70px;
    top: -70px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 999px;
    filter: blur(12px);
}

.hero-panel-card > * {
    position: relative;
    z-index: 2;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-top h3 {
    font-size: 1rem;
}

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #D8B4FE;
    background: rgba(109, 40, 217, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.18);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.metric-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 14px;
}

.metric-card small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.metric-card strong {
    font-size: 1.35rem;
}

.panel-list {
    display: grid;
    gap: 10px;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.92rem;
}

.tag {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.tag.ok {
    background: rgba(34, 197, 94, 0.14);
    color: #86EFAC;
}

.tag.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #FCD34D;
}

.tag.danger {
    background: rgba(239, 68, 68, 0.14);
    color: #FCA5A5;
}

/* SLIDER */
.slider-section {
    margin-top: 72px;
    background: linear-gradient(180deg, rgba(28,22,53,0.90) 0%, rgba(18,14,34,0.96) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.slider-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}

.slider-header h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.slider-header p {
    color: var(--text-secondary);
}

.slider-shell {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 18px;
}

.slider-track {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.slide {
    display: none;
    animation: fadeSlide 0.5s ease;
}

.slide.active {
    display: block;
}

.slide-box {
    min-height: 260px;
    padding: 36px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(76,29,149,0.42), rgba(109,40,217,0.16));
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #DDD6FE;
    background: rgba(255,255,255,0.07);
}

.slide-box h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.slide-box p {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.slider-arrow {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.36);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--hover);
    transform: scale(1.08);
}

/* SECTIONS */
.section {
    padding: 92px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}

.section-heading h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-secondary);
}

.cards-grid {
    display: grid;
    gap: 22px;
}

.cards-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.cards-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.info-card,
.module-card {
    background: linear-gradient(180deg, rgba(28,22,53,0.95) 0%, rgba(19,15,36,0.96) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.info-card:hover,
.module-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--strong), var(--primary));
    font-weight: 700;
    margin-bottom: 18px;
}

.info-card h3,
.module-card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
}

.info-card p,
.module-card p {
    color: var(--text-secondary);
    font-size: 0.96rem;
}

/* ABOUT */
.about-box {
    background: linear-gradient(135deg, rgba(28,22,53,0.92), rgba(76,29,149,0.22));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    max-width: 920px;
}

/* CTA / FORM */
.cta-section {
    padding-top: 0;
    padding-bottom: 100px;
}

.cta-box {
    background: linear-gradient(135deg, #241A47 0%, #4C1D95 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow);
}

.cta-intro {
    margin-bottom: 28px;
}

.cta-intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-intro p {
    color: #E9D5FF;
}

.contact-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A1A1AA;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--hover);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #F87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.error-message {
    min-height: 18px;
    font-size: 0.82rem;
    color: #FCA5A5;
}

.form-actions {
    margin-top: 18px;
}

.form-success {
    margin-top: 18px;
    background: rgba(34, 197, 94, 0.14);
    color: #BBF7D0;
    border: 1px solid rgba(34, 197, 94, 0.22);
    padding: 14px 16px;
    border-radius: 14px;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(10, 8, 20, 0.84);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* LOGIN MODAL */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 5, 16, 0.78);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, rgba(28,22,53,0.98) 0%, rgba(15,11,31,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    position: relative;
    animation: modalFadeUp 0.28s ease;
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.login-modal-close:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
}

.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-modal-logo {
    height: 58px;
    width: auto;
    margin: 0 auto 16px;
}

.login-modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    display: grid;
    gap: 18px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
}

.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: -4px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--hover);
}

.forgot-link {
    color: #C4B5FD;
    font-size: 0.92rem;
}

.forgot-link:hover {
    color: #E9D5FF;
}

.login-form-actions {
    margin-top: 6px;
}

.login-form-actions .btn {
    width: 100%;
}

.btn-loading {
    opacity: 0.8;
    pointer-events: none;
}

.login-feedback {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.login-feedback.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.20);
    color: #FCA5A5;
}

.login-feedback.success {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: #BBF7D0;
}

/* ANIMATION */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-actions {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: rgba(15, 11, 31, 0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 24px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-mobile-btn {
        display: inline-flex;
        margin-top: 8px;
    }

    .hero-content h1 {
        font-size: 2.45rem;
    }

    .slider-shell {
        grid-template-columns: 1fr;
    }

    .slider-arrow {
        display: none;
    }

    .cards-grid.four,
    .cards-grid.three,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .about-content h2,
    .cta-intro h2,
    .slider-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 18px;
    }

    .hero-section {
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .slider-section,
    .about-box,
    .cta-box,
    .contact-form,
    .login-modal {
        padding: 22px;
    }

    .slide-box {
        padding: 24px;
        min-height: 220px;
    }

    .slide-box h3 {
        font-size: 1.4rem;
    }

    .login-form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
