:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5849be;
    --secondary-color: #0984e3;
    --accent-color: #fdcb6e;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.highlight {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: 140px; /* Header height + spacing */
    padding-bottom: 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: center;
    text-align: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-image {
    margin-top: 40px;
    width: 100%;
    max-width: 400px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Grid System */
.grid-2, .grid-3 {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 30px;
}

/* Cards */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Advantages */
.advantage-card {
    text-align: center;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Process Section */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: -40px auto 15px; /* Pull up */
    border: 4px solid var(--white);
}

/* Pricing */
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.5rem;
}

.price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 20px 0;
}

.features {
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.features li::before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
}

.featured {
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--white);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f1f2f6;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.toggle-icon {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fdfdfd;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    border-top: 1px solid #eee;
}

.faq-active .toggle-icon {
    transform: rotate(45deg);
}

.faq-active .faq-question {
    color: var(--primary-color);
}

/* Reviews */
.reviewer {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.reviewer .avatar {
    font-size: 2rem;
    margin-right: 15px;
}

.reviewer .name {
    font-weight: 600;
}

/* Footer (Expanded) */
footer {
    background: #2d3436;
    color: #dfe6e9;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #4a4a4a;
}

.footer-info h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 5px;
    color: #b2bec3;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-col h5 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #b2bec3;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 0.9rem;
    color: #636e72;
}

.disclaimer {
    background: #222;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #444;
}

.disclaimer p {
    margin: 0;
    color: #999;
}

.copyright-text {
    text-align: center;
}

.seo-text {
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
}

/* Tablet Media Query (768px - 1199px) */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        flex-direction: row;
    }

    .step-item {
        flex: 1;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-text {
        width: 50%;
        padding-right: 20px;
    }

    .hero-image {
        width: 45%;
        margin-top: 0;
    }

    .cta-group {
        flex-direction: row;
    }

    .footer-content {
        grid-template-columns: 2fr 3fr;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Media Query (≥1200px) */
@media (min-width: 1200px) {
    /* Optimization for larger screens if necessary */
    .container {
        padding: 0; /* Clear padding since max-width handles it */
    }
    
    .hero-text h2 {
        font-size: 3.5rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 30px 0;
        opacity: 0;
    }

    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
