/* Light theme */
:root {
    --bg: #f0f7ee;
    --bg2: #e6f0e2;
    --bg3: #dce8d6;
    --border: #c0d6b8;
    --border2: #a8c09e;
    --text: #1e2a1a;
    --muted: #3a4a33;
    --accent: #2a7a2a;
    --accent2: #1f661f;
    --card-bg: #ffffffcc;
    --nav-bg: rgba(240, 247, 238, 0.85);
    --shadow: 0 4px 12px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
    --bg: #060608;
    --bg2: #0d0d12;
    --bg3: #12121a;
    --border: #ffffff10;
    --border2: #ffffff1a;
    --text: #f0eee8;
    --muted: #888880;
    --accent: #c8f540;
    --accent2: #a8e020;
    --card-bg: #0f0f16;
    --nav-bg: rgba(6,6,8,0.7);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.2s;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Navigation */
.clerkseo-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    border-bottom: 0.5px solid var(--border);
    backdrop-filter: blur(20px);
    background: var(--nav-bg);
    transition: background 0.3s, border-color 0.2s;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-cta {
    background: var(--accent);
    color: #0a0a0a;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    border: 0;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}

.theme-toggle {
    background: transparent;
    border: 0.5px solid var(--border2);
    border-radius: 100px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text);
    background: var(--bg2);
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.theme-toggle:hover {
    background: var(--bg3);
    border-color: var(--border);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(42,122,42,0.06) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-glow {
    background: radial-gradient(ellipse, rgba(200,245,64,0.06) 0%, transparent 70%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg3);
    border: 0.5px solid var(--border2);
    border-radius: 100px;
    padding: 0.35rem 1rem 0.35rem 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 .line2 {
    color: var(--accent);
}

.hero-sub {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 1.75rem 0 2.5rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    border: 0;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text);
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 0.5px solid var(--border2);
    transition: border-color 0.2s, transform 0.15s;
    background: transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 0.5px solid var(--border);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    padding: 1.25rem 0;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    background: var(--bg2);
    transition: background 0.3s, border-color 0.2s;
}

.ticker {
    display: flex;
    gap: 3rem;
    animation: ticker 25s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.ticker-item::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections */
section {
    padding: 6rem 2.5rem;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    max-width: 600px;
    line-height: 1.1;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 500px;
    margin-top: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Services */
.services {
    background: var(--bg);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5px;
    background: var(--border);
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    transition: background 0.25s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: var(--shadow);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    background: var(--bg3);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

.service-arrow {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0.5px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--muted);
    transition: all 0.25s;
}

.service-card:hover .service-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
}

/* Guarantee */
.guarantee {
    background: var(--bg2);
}

.guarantee-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.guarantee-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.g-card {
    background: var(--card-bg);
    border: 0.5px solid var(--border2);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.g-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(42,122,42,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--accent);
}

.g-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.g-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 300;
}

.big-stat-card {
    background: var(--card-bg);
    border: 0.5px solid var(--border2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.big-num {
    font-family: 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.big-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

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

.mini-stat {
    background: var(--bg3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.mini-stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.mini-stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--card-bg);
    border: 0.5px solid var(--border2);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg3);
    border: 2px solid var(--border2);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.team-title {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.9rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.team-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--muted);
}

.team-contact a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--border2);
    transition: color 0.2s;
    padding-bottom: 0.1rem;
}

.team-contact a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.team-social {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0 0.2rem;
}

.team-social a {
    font-size: 1.1rem;
    color: var(--muted);
    transition: color 0.2s;
    text-decoration: none;
}

.team-social a:hover {
    color: var(--accent);
}

.btn-team-contact {
    background: var(--bg2);
    border: 0.5px solid var(--border2);
    color: var(--text);
    padding: 0.45rem 1.25rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-team-contact:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Testimonials */
.testimonials {
    background: var(--bg);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.testi-card {
    background: var(--card-bg);
    border: 0.5px solid var(--border2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.testi-card blockquote {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid var(--border);
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg3);
    border: 0.5px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.author-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.author-role {
    font-size: 0.75rem;
    color: var(--muted);
}

/* CTA Section */
.cta-section {
    background: var(--bg2);
    text-align: center;
    padding: 8rem 2.5rem;
    transition: background 0.3s;
}

.cta-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.1;
}

.cta-section h2 em {
    font-style: normal;
    color: var(--accent);
}

.cta-section p {
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.clerkseo-footer {
    background: var(--bg);
    border-top: 0.5px solid var(--border);
    padding: 3rem 2.5rem;
    transition: background 0.3s, border-color 0.2s;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media(max-width:768px) {
    .clerkseo-nav {
        padding: 1rem 1.25rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 7rem 1.25rem 4rem;
    }
    
    section {
        padding: 4rem 1.25rem;
    }
    
    .guarantee-inner {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-toggle span {
        display: none;
    }
}