﻿/* =====================================================
   ROOT VARIABLES
===================================================== */

:root {
    --black: #0b0b0b;
    --dark: #111111;
    --white: #ffffff;
    --light: #f8f9fa;
    --border: #e8e8e8;
    --muted: #6b7280;
}

/* =====================================================
   GLOBAL
===================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter","Segoe UI",sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #ececec;
    padding: 16px 0;
    min-height: 90px;
}

    /* Container */

    .navbar .container {
        max-width: 1400px;
    }

/* =========================================
   BRAND
========================================= */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-right: 40px;
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.brand-subtitle {
    font-size: .82rem;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: .3px;
}

/* =========================================
   NAVIGATION
========================================= */

.navbar-nav {
    gap: 10px;
    margin-left: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px !important;
    border-radius: 12px;
    color: #444 !important;
    font-weight: 600;
    font-size: .95rem;
    transition: all .25s ease;
}

    .nav-link i {
        font-size: .95rem;
        color: #666;
    }

    .nav-link:hover {
        background: #f5f5f5;
        color: #111 !important;
    }

        .nav-link:hover i {
            color: #111;
        }

/* =========================================
   RIGHT BUTTONS
========================================= */

.btn-outline-dark {
    border-radius: 14px;
    padding: 10px 22px;
    font-weight: 600;
}

.btn-dark {
    border-radius: 14px;
    padding: 10px 24px;
    font-weight: 600;
}

.dropdown-toggle {
    border-radius: 14px;
}

/* =========================================
   TOGGLER
========================================= */

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler {
    border: 1px solid #dcdcdc;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Black hamburger icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(17,17,17,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 991px) {

    .navbar {
        min-height: auto;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-logo {
        height: 42px;
    }

    .navbar-nav {
        margin-top: 20px;
        gap: 4px;
    }

    .nav-link {
        padding: 12px !important;
    }

    .navbar .d-flex {
        margin-top: 15px;
    }
}

/* =====================================================
   HERO
===================================================== */

.hero {
    background: radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 40%), #0a0a0a;
    color: white;
    padding: 140px 0 110px;
    position: relative;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
        background-size: 40px 40px;
    }

    .hero .container {
        position: relative;
        z-index: 2;
    }

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.05);
}

.hero-title {
    font-size: clamp(3rem,6vw,5rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 30px 0 20px;
}

.hero-subtitle {
    max-width: 700px;
    margin: auto;
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
}

/* =====================================================
   STATS
===================================================== */

.stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.05);
}

    .stat-card h3 {
        font-weight: 800;
        margin-bottom: 6px;
    }

    .stat-card span {
        color: var(--muted);
    }

/* =====================================================
   COMMON SECTION
===================================================== */

.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

    .section-heading h2 {
        font-weight: 800;
        margin-bottom: 12px;
    }

    .section-heading p {
        color: var(--muted);
        max-width: 700px;
        margin: auto;
    }

/* =====================================================
   MODULES / FEATURES
===================================================== */

.module-card,
.highlight-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: .3s;
}

    .module-card:hover,
    .highlight-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,.08);
    }

    .module-card i {
        font-size: 2.5rem;
        margin-bottom: 20px;
        display: block;
    }

    .module-card p,
    .highlight-card p {
        color: var(--muted);
    }

/* =====================================================
   ARCHITECTURE
===================================================== */

.architecture-section {
    background: #0f0f0f;
    color: white;
    padding: 100px 0;
}

.architecture-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.arch-box {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 20px 35px;
    font-weight: 600;
}

.arch-arrow {
    font-size: 2rem;
    opacity: .5;
}

/* =====================================================
   TECHNOLOGY
===================================================== */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

    .tech-stack span {
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 12px 20px;
        background: white;
    }

/* =====================================================
   PROJECT SUMMARY
===================================================== */

.project-summary-section {
    padding: 100px 0;
}

.project-summary-card {
    background: #0f0f0f;
    color: white;
    border-radius: 24px;
    padding: 60px;
}

.summary-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .summary-stats div {
        background: rgba(255,255,255,.05);
        border-radius: 14px;
        padding: 18px;
    }

/* =====================================================
   FOOTER
===================================================== */

footer {
    border-top: 1px solid var(--border);
    padding: 25px 0;
    color: var(--muted);
    background: white;
}

/* =====================================================
   LOGIN
===================================================== */

.login-bg {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.75)), url('/images/login-bg.jpg');
    background-size: cover;
    background-position: center;
}

.login-card {
    background: rgba(255,255,255,.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

/* =====================================================
   LOGOUT
===================================================== */

.logout-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

.logout-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

/* =====================================================
   ACTIVATION
===================================================== */

.activation-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 60px 0;
}

.activation-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0,0,0,.08);
}

.activation-header {
    background: #0f0f0f;
    color: white;
    text-align: center;
    padding: 40px;
}

.activation-body {
    padding: 35px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:992px) {

    .hero {
        padding: 110px 0 90px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .brand-subtitle {
        display: none;
    }
}

@media(max-width:576px) {

    .hero-title {
        font-size: 2.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .architecture-flow {
        flex-direction: column;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }
}
