:root {
    --primary-rgb: 0, 149, 140;
    --primary-color: rgb(var(--primary-rgb));
    --primary-light: rgba(var(--primary-rgb), 0.1);
    --primary-dark: rgb(0, 120, 113);
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --input-bg: #f8f9fa;
    --accordion-icon-invert: 0;
}

/* Dark Mode Overrides */
html[data-theme="dark"] {
    --text-dark: #f8f9fa;
    --text-muted: #b2bec3;
    --bg-light: #121212;
    --white: #1e1e1e;
    --card-bg: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg-scrolled: rgba(18, 18, 18, 0.95);
    --input-bg: #2d3436;
    --accordion-icon-invert: 1;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted) !important;
}

.card {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

hr {
    border-color: var(--border-color);
    opacity: 0.2;
}

.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Small & Elegant Buttons */
.btn-primary,
.btn-outline-primary {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    outline: none !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    outline: none !important;
}

.btn:focus {
    box-shadow: 0 0 0 0.25rem var(--primary-light) !important;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    transition: var(--transition);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.navbar-brand img {
    height: 30px;
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link i {
    display: none;
}

.nav-link-legal {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-left: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.theme-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Navbar Drawer */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(1.5px);
    z-index: 1038;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

html[data-theme="dark"] .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 140px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: #ffffff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.hero-title span {
    color: var(--primary-color);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.2rem;
    line-height: 1.6;
}

/* Features Section */
.section-padding {
    padding: 70px 0;
}
.bg-light {
    background-color: var(--bg-light) !important;
}

.section-title h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.feature-card {
    padding: 2rem;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        rgba(var(--primary-rgb), 0.05) 100%
    );
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: #fff;
}
.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Video Section */
.video-section {
    background-color: #000;
    padding: 80px 0;
}

/* Pricing */
.pricing-card {
    padding: 2.25rem 2rem;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* FAQ */
.accordion-button {
    font-size: 0.95rem;
    padding: 1.1rem 1.25rem;
    font-weight: 700;
}

html[data-theme="dark"] .accordion-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

html[data-theme="dark"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

html[data-theme="dark"] .accordion-body {
    color: var(--text-dark);
}

/* Contact */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}
.form-control {
    font-size: 0.9rem;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.form-control:focus {
    background-color: var(--input-bg);
    color: var(--text-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

/* Dark mode placeholder */
html[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #0a0e12;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}
footer h5 {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}
.social-links a {
    text-decoration: none !important;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 8px;
}
footer ul li a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}
footer .text-white {
    color: rgba(255, 255, 255, 0.9) !important;
}
footer .ri-xl {
    font-size: 1.25rem;
}
footer .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
    z-index: 3;
}
.testimonial-quote {
    color: var(--primary-color);
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.2;
}
.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.testimonial-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: auto;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 0.85rem;
    flex-shrink: 0;
}
.testimonial-info {
    overflow: hidden;
}
.testimonial-name {
    margin-bottom: 0px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}
.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Testimonial Slider Pagination */
.testimonial-slider {
    --swiper-theme-color: var(--primary-color);
}

.testimonial-slider .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.35;
}

.testimonial-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

.testimonial-slider {
    padding-top: 12px;
}

/* Detailed Feature Sections */
.feature-section-detailed {
    padding: 100px 0;
    overflow: hidden;
}

.feature-item {
    margin-bottom: 120px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-image-wrapper {
    position: relative;
    padding: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.feature-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.browser-frame {
    background: #f1f2f6;
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] .browser-frame {
    background: #2d3436;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red {
    background: #ff5f56;
}
.dot-yellow {
    background: #ffbd2e;
}
.dot-green {
    background: #27c93f;
}

.feature-screenshot {
    width: 100%;
    border-radius: 0 0 8px 8px;
    display: block;
}

.feature-content-detailed h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.feature-content-detailed p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 991px) {
    .feature-item {
        margin-bottom: 60px;
    }
    .feature-content-detailed {
        margin-top: 30px;
        text-align: center;
    }
    .feature-list li {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar {
        z-index: 1042;
    }

    .navbar-toggler {
        border-color: var(--border-color);
        border-radius: 10px;
        padding: 0.45rem 0.65rem;
        background: var(--card-bg);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem var(--primary-light);
    }

    .navbar-toggler-icon {
        filter: brightness(0) saturate(100%) invert(34%) sepia(12%)
            saturate(595%) hue-rotate(164deg) brightness(94%) contrast(90%);
    }

    html[data-theme="dark"] .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    html[data-theme="dark"] .navbar-toggler-icon {
        filter: brightness(0) invert(1);
        opacity: 0.95;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        height: 100vh !important;
        padding: 1.1rem 1rem 1.5rem;
        background: var(--card-bg);
        border-right: 1px solid var(--border-color);
        box-shadow: 14px 0 32px rgba(0, 0, 0, 0.16);
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .mobile-nav-drawer.show {
        transform: translateX(0);
    }

    .mobile-nav-drawer .navbar-nav {
        width: 100%;
        gap: 0.35rem;
        align-items: stretch !important;
        flex-wrap: wrap;
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.7rem;
        padding: 0.25rem 0.25rem 0.7rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-drawer-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-dark);
        letter-spacing: 0.2px;
    }

    .mobile-drawer-close {
        width: 34px;
        height: 34px;
        border: 1px solid var(--border-color);
        border-radius: 9px;
        background: var(--card-bg);
        color: var(--text-dark);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .mobile-drawer-close:hover {
        color: var(--primary-color);
        border-color: rgba(var(--primary-rgb), 0.35);
        background: var(--primary-light);
    }

    .mobile-drawer-close i {
        font-size: 1.15rem;
        line-height: 1;
    }

    .mobile-nav-drawer .nav-item {
        width: 100%;
    }

    .mobile-nav-drawer .nav-link {
        margin: 0;
        padding: 0.8rem 0.95rem;
        border-radius: 12px;
        font-size: 0.94rem;
        font-weight: 600;
        background: transparent;
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
    }

    .mobile-nav-drawer .nav-link i {
        display: inline-block;
        width: 18px;
        text-align: center;
        color: var(--primary-color);
    }

    .mobile-nav-drawer .nav-link:hover,
    .mobile-nav-drawer .nav-link.active {
        background: var(--primary-light);
        color: var(--primary-color) !important;
    }

    .mobile-nav-drawer .btn {
        width: 100%;
        margin-top: 0.55rem;
        padding: 0.6rem 0.95rem;
        border-radius: 10px;
        font-size: 0.86rem;
    }

    .mobile-nav-drawer .nav-actions-row {
        width: 100%;
        margin-top: 0.7rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .mobile-nav-drawer .nav-actions-row .nav-action-btn,
    .mobile-nav-drawer .nav-actions-row .nav-action-theme {
        flex: 1 1 0;
        min-width: 0;
    }

    .mobile-nav-drawer .nav-actions-row .nav-action-btn {
        margin-top: 0;
        width: 100%;
        white-space: nowrap;
        text-align: center;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    }

    .mobile-nav-drawer .nav-actions-row .nav-action-theme {
        margin: 0;
        width: 100%;
        height: 44px;
        border-radius: 10px;
        justify-content: center;
        border: 1px solid var(--border-color);
        background: var(--card-bg);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    .mobile-nav-drawer .nav-actions-row .nav-action-theme:hover {
        color: var(--primary-color);
        border-color: rgba(var(--primary-rgb), 0.45);
        background: var(--primary-light);
    }

    html[data-theme="dark"] .mobile-nav-drawer .nav-actions-row .nav-action-btn,
    html[data-theme="dark"]
        .mobile-nav-drawer
        .nav-actions-row
        .nav-action-theme {
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
    }

    .mobile-nav-drawer .nav-link-legal {
        position: relative;
    }

    .mobile-nav-drawer .nav-link-legal i {
        width: 18px;
        text-align: center;
        color: var(--primary-color);
    }
}

/* Toastify Custom Styles */
.toastify {
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    font-family: "Inter", sans-serif !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    color: #fff !important;
}

.toastify-right {
    right: 20px !important;
}

.toastify-top {
    top: 20px !important;
}

@media (max-width: 575px) {
    .toastify {
        width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        text-align: center !important;
    }
}

/* Go To Top Button */
.go-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.35);
    z-index: 1050;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.go-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.go-to-top-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Legal Pages (Terms / Privacy / Refund) */
.legal-page-section {
    padding-top: 44px;
    padding-bottom: 56px;
}

.legal-page-container {
    margin-top: 18px;
}

.legal-page-card {
    padding: 1.5rem 1.75rem;
}

.legal-page-content {
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .legal-page-section {
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .legal-page-container {
        margin-top: 0;
    }

    .legal-page-card {
        padding: 1rem 0.9rem;
    }

    .legal-page-card h1 {
        margin-bottom: 0.7rem !important;
        font-size: 1.45rem;
    }

    .legal-page-content {
        margin-top: 0.7rem;
    }
}

@media (max-width: 991px) {
    .go-to-top-btn {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
        box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.32);
    }

    .go-to-top-btn i {
        font-size: 1.2rem;
    }
}

/* Frontend Radius Normalization */
.btn,
.btn-primary,
.btn-outline-primary,
.card,
.feature-card,
.pricing-card,
.testimonial-card,
.accordion-item,
.accordion-button,
.form-control,
.mobile-nav-drawer .nav-link,
.mobile-drawer-close,
.mobile-nav-drawer .nav-actions-row .nav-action-theme,
.mobile-nav-drawer .nav-actions-row .nav-action-btn,
.mobile-nav-drawer .theme-toggle,
.navbar-toggler,
.video-container,
.img-fluid,
.rounded,
.rounded-3,
.rounded-4,
.rounded-5 {
    border-radius: 5px !important;
}
