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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #081226, #13233f, #2b3d58);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 18, 38, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #dbe7fb;
    font-size: 15px;
    font-weight: 600;
}

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

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

.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.nav-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.primary-btn {
    background: #2563eb;
    color: white;
    border: none;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Hamburger */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    justify-self: end;
}

/* Mobile Sidebar */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1100;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    height: 100vh;
    background: #081226;
    z-index: 1200;
    padding: 24px 20px;
    transition: 0.25s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 32px;
    align-items: center;
    text-align: center;
}

.mobile-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.mobile-btn {
    min-height: 46px;
    width: 100%;
    max-width: 220px;
}

.account-btn {
    background: transparent;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    min-width: 90px;
}

.account-icon {
    font-size: 24px;
    line-height: 1;
}

.account-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-account-btn {
    width: 100%;
    max-width: 220px;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.account-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 1300;
}

.account-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.account-btn {
    background: transparent;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    min-width: 70px;
}

.account-icon {
    font-size: 24px;
    line-height: 1;
}

.account-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-account-btn {
    width: 100%;
    max-width: 220px;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.account-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 1300;
}

.account-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.account-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 24px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
}

/* ===============================
   Popup Scrollbar Style
   =============================== */

   .account-popup::-webkit-scrollbar {
    width: 8px;
}

.account-popup::-webkit-scrollbar-track {
    background: transparent;
}

.account-popup::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.25);
    border-radius: 20px;
}

.account-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.45);
}

/* Firefox */
.account-popup {
    scrollbar-width: thin;
    scrollbar-color: rgba(15,23,42,0.35) transparent;
}

.account-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.account-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.account-popup-header h3 {
    color: #0f172a;
    font-size: 28px;
    margin: 0;
}

.close-account-popup {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 28px;
    cursor: pointer;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-form label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.account-form input {
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    color: #111827;
}

.plan-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.plan-info-box {
    flex: 1;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    color: #111827;
    font-size: 15px;
}

.change-plan-btn {
    min-height: 46px;
    padding: 0 16px;
    background: #0f172a;
    color: white;
    border-radius: 12px;
}

.account-popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.popup-save-btn {
    background: #2563eb;
    color: white;
    min-height: 46px;
    padding: 0 18px;
    border: none;
}

.popup-logout-btn {
    background: #ef4444;
    color: white;
    min-height: 46px;
    padding: 0 18px;
}

.password-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.password-section h4 {
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 14px;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* Hero */
.hero {
    min-height: calc(100vh - 85px);
    padding: 80px 40px 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 980px;
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-content p {
    max-width: 820px;
    margin: 0 auto 32px;
    font-size: 19px;
    line-height: 1.8;
    color: #dbe7fb;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-primary,
.hero-secondary {
    min-width: 180px;
    height: 52px;
    padding: 0 22px;
    font-size: 15px;
}

.hero-primary {
    background: #2563eb;
    color: white;
}

.hero-primary:hover {
    background: #1d4ed8;
}

.hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-download-only {
    margin: 0 auto;
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
    animation: floatArrow 2s infinite ease-in-out;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateX(-50%) scale(1.04);
}

.scroll-down span {
    display: block;
    width: 14px;
    height: 14px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes floatArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes floatArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Sections */
.section {
    padding: 70px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 38px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #dbe7fb;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 22px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 28px 24px;
    backdrop-filter: blur(8px);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #dbe7fb;
}

/* Pricing */
/* Pricing */
.pricing-slider-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.pricing-slider-section.no-slider {
    display: block;
}

.pricing-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 4px 12px;
}

.pricing-viewport::-webkit-scrollbar {
    display: none;
}

.pricing-track {
    display: flex;
    gap: 22px;
    align-items: stretch;
    width: max-content;
}

.pricing-track.centered {
    width: 100%;
    justify-content: center;
}

.pricing-card {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    min-height: 220px;
    width: 300px;
    flex: 0 0 300px;
}

.pricing-card.highlighted {
    border: 2px solid #2563eb;
    transform: translateY(-6px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.price {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-card p {
    color: #475569;
    line-height: 1.7;
}

.pricing-arrow {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.pricing-arrow:hover:not(:disabled) {
    background: #2563eb;
    transform: scale(1.04);
}

.pricing-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pricing-action {
    margin-top: 28px;
    text-align: center;
}

.pricing-card {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    min-height: 220px;
}

.pricing-card.highlighted {
    border: 2px solid #2563eb;
    transform: translateY(-6px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.price {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-card p {
    color: #475569;
    line-height: 1.7;
}

.pricing-action {
    margin-top: 28px;
    text-align: center;
}

/* Contact */
.contact-box {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    line-height: 2;
    color: #dbe7fb;
}

/* Footer */
.footer {
    text-align: center;
    padding: 26px 20px 34px;
    color: #cbd5e1;
    font-size: 14px;
}

.company {
    color: #ffffff;
}

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

@media (max-width: 640px) {
    .account-popup {
        width: calc(100% - 24px);
        padding: 22px 18px 20px;
    }

    .plan-row {
        flex-direction: column;
        align-items: stretch;
    }

    .change-plan-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .navbar {
        grid-template-columns: 1fr auto;
        padding: 18px 20px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-content p {
        font-size: 17px;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 60px 20px 110px;
    }

    .section {
        padding: 55px 20px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .section-header h2 {
        font-size: 30px;
    }

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

    .pricing-card.highlighted {
        transform: none;
    }

    .scroll-down {
        bottom: 24px;
    }
}

@media (max-width: 1200px) {
    .pricing-card {
        width: 280px;
        flex: 0 0 280px;
    }
}

@media (max-width: 900px) {
    .pricing-arrow {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}

@media (max-width: 700px) {
    .pricing-card {
        width: min(86vw, 320px);
        flex: 0 0 min(86vw, 320px);
    }

    .pricing-card.highlighted {
        transform: none;
    }
}

@media (max-width: 560px) {
    .pricing-slider-section {
        display: block;
    }

    .pricing-arrow {
        position: static;
        margin: 0 6px 14px 0;
    }

    .pricing-slider-section.no-slider .pricing-viewport {
        padding-top: 6px;
    }

    .pricing-track.centered {
        justify-content: center;
    }
}