/* ==================== ROOT VARIABLES ==================== */
:root {
    --deep-blue: #1E3A8A;
    --teal: #14B8A6;
    --orange: #F97316;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--deep-blue);
}

.nav-cta {
    background: var(--orange);
    color: white !important;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: #EA580C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--deep-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 80px;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--orange);
    color: white;
}

.btn-primary:hover {
    background: #EA580C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--deep-blue);
    border: 2px solid var(--deep-blue);
}

.btn-secondary:hover {
    background: var(--deep-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--deep-blue);
    border: 2px solid var(--deep-blue);
}

.btn-outline:hover {
    background: var(--deep-blue);
    color: white;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* ==================== HERO VISUAL ==================== */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.12);
    border: 1px solid var(--gray-200);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.dashboard-period {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.chart-container {
    margin-bottom: 2rem;
}

.chart-bars {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    height: 180px;
    margin-bottom: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--teal) 0%, var(--deep-blue) 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s;
    opacity: 0.6;
}

.bar.active {
    opacity: 1;
}

.bar:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.bar-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.metrics-row {
    display: flex;
    gap: 1.5rem;
}

.metric {
    flex: 1;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
}

.backlink-network {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
    border: 1px solid var(--gray-200);
}

.backlink-network svg {
    width: 100%;
    height: auto;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--deep-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--teal) 0%, var(--deep-blue) 100%);
    border-radius: 12px 0 0 12px;
    transition: height 0.3s;
}

.service-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.12);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--teal), var(--deep-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--deep-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.service-card:hover .service-link {
    color: var(--teal);
}

/* ==================== WORKFLOW SECTION ==================== */
.workflow-section {
    background: var(--light-gray);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.workflow-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== EXPERIMENTS SECTION ==================== */
.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.experiment-card {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    padding: 2.5rem;
    transition: all 0.3s;
}

.experiment-card:hover {
    border-color: var(--deep-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
}

.experiment-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--teal);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experiment-card h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.experiment-meta {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.experiment-results {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.result-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.experiment-card > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.experiment-link {
    color: var(--deep-blue);
    font-weight: 600;
    transition: color 0.2s;
}

.experiment-card:hover .experiment-link {
    color: var(--teal);
}

/* ==================== BLOG SECTION ==================== */
.blog-preview {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s;
    display: block;
}

.blog-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.12);
}

.blog-image {
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-icon {
    font-size: 4rem;
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    display: inline-block;
    background: var(--gray-100);
    color: var(--deep-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content h3 a {
    transition: color 0.2s;
}

.blog-card:hover h3 a {
    color: var(--teal);
}

.blog-content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ==================== ABOUT SECTION ==================== */
.about-preview {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
    background: var(--white);
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.12);
}

.testimonial-stars {
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 0 2rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--deep-blue), var(--teal));
    color: white;
    text-align: center;
    padding: 5rem 3rem;
    border-radius: 16px;
}

.cta-box h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    background: var(--orange);
    color: white;
}

.cta-box .btn:hover {
    background: #EA580C;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-300);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--teal);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.9rem;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-top: 80px;
    padding: 5rem 0 4rem;
    background: var(--light-gray);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== CONTENT SECTION ==================== */
.content-section {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
}

.content-wrapper p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-wrapper ul,
.content-wrapper ol {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.75rem;
}

/* ==================== FEATURE BOX ==================== */
.feature-box {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
    margin: 2rem 0;
}

.feature-box h3 {
    color: var(--gray-900);
    margin-top: 0;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    } */

    .nav-menu {
        display: flex;      /* Keep it in the DOM */
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);

        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 9999;
    }

    body.menu-open .nav-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

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

    .page-header h1 {
        font-size: 2.25rem;
    }

    .services-grid,
    .experiments-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 3rem 2rem;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .chart-bars {
        height: 140px;
    }
}



body.menu-open .mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
