/* Reset & Base */
:root {
    --primary: #39B54A;
    --primary-dark: #2f9e40;
    --accent: #f5bd41;
    --bg-dark: #0e2533;
    --bg-darker: #08161f;
    --bg-card: #1c2b34;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(57, 181, 74, 0.4);
}

.btn-primary.large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.btn-primary.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 181, 74, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(57, 181, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(57, 181, 74, 0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .highlight {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    text-shadow: 0 0 30px rgba(57, 181, 74, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(57, 181, 74, 0.15) 0%, rgba(14, 37, 51, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Features Section */
.feature-section {
    padding: 100px 0;
    position: relative;
}

.feature-section.alt-bg {
    background-color: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
    /* Quick way to swap columns visually, but reset text dir */
}

.feature-grid.reverse>* {
    direction: ltr;
}

.feature-text {
    padding: 20px;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    width: 100%;
    display: block;
    height: auto;
}

/* Dashboard Section */
.dashboard-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #fff;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.dash-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.dash-item:hover {
    transform: translateY(-10px);
}

.dash-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    padding: 80px 20px 40px;
    text-align: center;
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.footer-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.copyright {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.fade-up {
    transform: translateY(50px);
}

.reveal.slide-left {
    transform: translateX(50px);
}

.reveal.slide-right {
    transform: translateX(-50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .feature-grid,
    .feature-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
        /* Reset direction for stacking */
    }

    .feature-text {
        padding: 0;
        text-align: center;
    }

    .feature-list li {
        text-align: left;
        display: inline-block;
        margin-right: 20px;
    }

    .feature-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Pricing Specific Styles */
.pricing-section {
    padding: 120px 20px 80px;
    text-align: center;
    min-height: 80vh;
}

.pricing-header {
    max-width: 700px;
    margin: 0 auto 50px;
}

.pricing-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #fff;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-label.active {
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a3b47;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--primary);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    background: linear-gradient(145deg, var(--bg-card), rgba(245, 189, 65, 0.05));
}

.badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.discount-text {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.limited-offer {
    background: rgba(245, 189, 65, 0.1);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}