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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
}

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

.container {
    width: min(1150px, 90%);
    margin: auto;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.logo span {
    color: #d97706;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #475569;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #0f172a;
}

.mobile-auth-btns {
    display: none;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-btn,
.register-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.login-btn {
    color: #0f172a;
}

.register-btn {
    background: #0f172a;
    color: white;
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #0f172a;
}

/* Hero */
.hero {
    padding: 90px 0;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.badge {
    display: inline-block;
    background: #e8eefc;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #d97706;
}

.hero-text p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 9px;
    font-weight: bold;
}

.primary-btn {
    background: #0f172a;
    color: white;
}

.secondary-btn {
    background: white;
    border: 1px solid #dbe2ea;
    color: #0f172a;
}

/* Hero Card */
.hero-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 42, 95, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.card-header > span {
    font-size: 35px;
}

.card-header h3 {
    color: #0f172a;
}

.card-header p {
    color: #64748b;
    font-size: 13px;
}

.progress-item {
    margin-bottom: 22px;
}

.progress-item > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: #475569;
    font-size: 14px;
}

.progress {
    height: 9px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    background: #d97706;
    border-radius: inherit;
}

/* Sections */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-title span {
    color: #d97706;
    font-weight: bold;
}

.section-title h2 {
    font-size: 36px;
    margin: 8px 0;
}

.section-title p {
    color: #64748b;
}

/* Branches & Features */
.branches {
    background: white;
}

.branches-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.branch-card,
.feature-card {
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: 0.3s;
    background: white;
}

.branch-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(15, 42, 95, 0.1);
    border-color: #d97706;
}

.branch-icon,
.feature-icon {
    font-size: 35px;
    margin-bottom: 18px;
}

.branch-card h3,
.feature-card h3 {
    margin-bottom: 10px;
}

.branch-card p,
.feature-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 18px;
}

.card-link {
    color: #0f172a;
    font-weight: bold;
    font-size: 14px;
}

/* CTA */
.cta {
    padding: 80px 0;
    background: #0f172a;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 650px;
    margin: auto;
}

.cta h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.cta p {
    color: #dbe4f5;
    margin-bottom: 25px;
}

.cta .primary-btn {
    background: #d97706;
    color: #0f172a;
}

/* Footer */
.footer {
    background: #081936;
    color: white;
}

.footer-content {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.footer p {
    color: #b8c4d9;
    max-width: 450px;
    margin-top: 15px;
}

.footer h3 {
    margin-bottom: 15px;
}

.footer-content a {
    display: block;
    color: #b8c4d9;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    color: #9aa8bf;
    font-size: 13px;
}

/* Authentication */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    padding: 30px;
}

.auth-card {
    width: min(430px, 100%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 42, 95, 0.12);
}

.auth-card .logo {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 8px;
    color: #0f172a;
}

.auth-card > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
}

.auth-card input,
.auth-card select {
    width: 100%;
    padding: 13px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    margin-bottom: 18px;
    font-family: inherit;
    font-size: 14px;
}

.auth-card input:focus,
.auth-card select:focus {
    outline: none;
    border-color: #0f172a;
}

.auth-card button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: 5px;
}

.auth-footer {
    margin-top: 20px;
}

.auth-footer a {
    color: #0f172a;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .branches-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 25px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        border-bottom: 2px solid #2563eb;
        z-index: 1000;
    }
    
    .nav-links a {
        color: #ffffff;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-auth-btns {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }

    .mobile-auth-btns a {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }

    .menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .branches-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
}