/* 
  Premium SaaS Contact Page Styles
  Theme: Dark Modern / Glassmorphism
*/

:root {
    /* Color Palette - Green & White (Light Mode) */
    --bg-body: #ffffff;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f0fdf4;
    /* faint green tint */

    --accent-primary: #16a34a;
    /* Green 600 */
    --accent-secondary: #4ade80;
    /* Green 400 */
    --accent-glow: rgba(22, 163, 74, 0.2);

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(22, 163, 74, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(22, 163, 74, 0.05);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode (CRED-inspired: Black/Gray) */
body.dark-mode {
    --bg-body: #050505;
    --bg-gradient-start: #050505;
    --bg-gradient-end: #0a0a0a;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;

    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Update accents for dark mode if needed, or keep green pop */
    --accent-glow: rgba(74, 222, 128, 0.15);
}

body.dark-mode .advantage-card,
body.dark-mode .feature-image,
body.dark-mode .browser-window,
body.dark-mode .testimonial-card,
body.dark-mode .pricing-card.featured,
body.dark-mode .challenge-block img {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .pricing-card {
    background: #0a0a0a;
}

body.dark-mode h2 {
    background: linear-gradient(to right, #ffffff, #9ca3af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .nav-btn,
body.dark-mode .btn-primary {
    color: #000;
    /* Contrast against green */
}

body.dark-mode .site-footer {
    background: #050505;
    border-top-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .feature-section:nth-child(even),
body.dark-mode .testimonial-card:hover {
    background: #0a0a0a;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition-fast);
    margin-right: 1rem;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
} */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(22, 163, 74, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(74, 222, 128, 0.1) 0%, transparent 20%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #0f172a, #334155);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-secondary), #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

header {
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Light border */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: breathe 2s infinite ease-in-out;
    transition: all 1s ease;
}

/* LOADER STYLES */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-body);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s step-end;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mover {
    transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1);
    /* Smooth ease-in-out movement */
    will-change: transform;
}

/* Big & Fast state when in loader */
.loader-mover .logo-dot {
    width: 60px;
    height: 60px;
    box-shadow: 0 0 30px var(--accent-primary);
    animation-duration: 0.5s;
    /* Fast breathing */
}

/* Revert to normal when moving */
.loader-mover.moving .logo-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px var(--accent-primary);
    animation-duration: 2s;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* SPIDER ANIMATION STYLES */
.crawler-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    will-change: left, top, transform;
    transition: opacity 1s ease, left 0.1s ease-out, top 0.1s ease-out;
}

.crawler-container.active {
    opacity: 1;
}

.crawler-body {
    width: 40px;
    height: 30px;
    background: var(--accent-primary);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: 0 0 20px var(--accent-primary);
    z-index: 2;
}

/* Head segment */
.crawler-body::after {
    content: '';
    position: absolute;
    width: 32px;
    /* Enlarged */
    height: 25px;
    /* Enlarged */
    background: var(--accent-primary);
    border-radius: 50%;
    top: -15px;
    /* Adjusted */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.crawler-eye {
    position: absolute;
    width: 10px;
    /* Enlarged */
    height: 10px;
    /* Enlarged */
    background: white;
    border-radius: 50%;
    top: -8px;
    /* Adjusted */
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crawler-eye.left {
    left: 14px;
}

.crawler-eye.right {
    right: 14px;
}

.crawler-pupil {
    width: 5px;
    height: 5px;
    background: black;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

.crawler-mouth {
    position: absolute;
    width: 18px;
    /* Enlarged */
    height: 9px;
    /* Enlarged */
    border-bottom: 3px solid white;
    border-radius: 0 0 12px 12px;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    /* On top */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.crawler-leg {
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--accent-primary);
    transform-origin: center center;
    z-index: 1;
}

/* Left Legs */
.leg-l1,
.leg-l2,
.leg-l3,
.leg-l4 {
    left: -15px;
    transform-origin: right center;
}

.leg-l1 {
    top: 5px;
    animation: spider-leg-l 0.3s infinite ease-in-out;
}

.leg-l2 {
    top: 12px;
    animation: spider-leg-l 0.3s infinite ease-in-out 0.05s;
}

.leg-l3 {
    top: 19px;
    animation: spider-leg-l 0.3s infinite ease-in-out 0.1s;
}

.leg-l4 {
    top: 26px;
    animation: spider-leg-l 0.3s infinite ease-in-out 0.15s;
}

/* Right Legs */
.leg-r1,
.leg-r2,
.leg-r3,
.leg-r4 {
    right: -15px;
    transform-origin: left center;
}

.leg-r1 {
    top: 5px;
    animation: spider-leg-r 0.3s infinite ease-in-out;
}

.leg-r2 {
    top: 12px;
    animation: spider-leg-r 0.3s infinite ease-in-out 0.05s;
}

.leg-r3 {
    top: 19px;
    animation: spider-leg-r 0.3s infinite ease-in-out 0.1s;
}

.leg-r4 {
    top: 26px;
    animation: spider-leg-r 0.3s infinite ease-in-out 0.15s;
}

@keyframes spider-leg-l {

    0%,
    100% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-30deg);
    }
}

@keyframes spider-leg-r {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(30deg);
    }
}

.nav-btn {
    width: auto !important;
    padding: 10px 20px;
    font-size: 0.9rem;
    background: var(--accent-primary) !important;
    box-shadow: none !important;
}

.nav-btn:hover {
    background: var(--accent-secondary) !important;
    box-shadow: none !important;
}

main {
    flex: 1;
    /* Kept for body flex column */
    padding-top: 80px;
    /* Header offset */
    display: block;
    width: 100%;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 140px 0 100px;
    overflow: visible;
    /* Allow 3D overflow */
    perspective: 2000px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto 4rem;
    animation: fadeUp 0.8s var(--transition-smooth);
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline {
    width: auto;
    min-width: 160px;
}

/* 3D BROWSER VISUAL */
.hero-visual-container {
    max-width: 800px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(0deg) scale(0.95);
    transition: transform 0.5s ease;
}

.hero-visual-container:hover {
    transform: rotateX(5deg) scale(1);
}

.browser-window {
    background: #1e293b;
    /* Dark Editor Theme */
    border-radius: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-align: left;
    position: relative;
}

.browser-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #334155;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.browser-dots span:nth-child(1) {
    background: #ef4444;
}

.browser-dots span:nth-child(2) {
    background: #f59e0b;
}

.browser-dots span:nth-child(3) {
    background: #22c55e;
}

.browser-address {
    flex: 1;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-align: center;
    font-family: monospace;
}

.browser-content {
    padding: 30px;
    position: relative;
    font-family: 'Fira Code', monospace;
}

.code-preview {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 4px;
}

.indent {
    padding-left: 20px;
}

.double-indent {
    padding-left: 40px;
}

.tag {
    color: #f472b6;
}

/* Pink */
.attr {
    color: #60a5fa;
}

/* Blue */
.val {
    color: #a3e635;
}

/* Lime */

/* SEO SCORE BADGE overlay */
.score-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.score-circle {
    width: 50px;
    height: 50px;
    background: conic-gradient(#16a34a 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}

.score-label {
    display: flex;
    flex-direction: column;
}

.score-label strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.score-label span {
    color: #64748b;
    font-size: 0.75rem;
}

/* PRICING SECTION */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow), 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    background: #ffffff;
    /* Was dark glass */
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* CONTACT SECTION */
.contact-form-wrapper.centered-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--radius-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-input,
.form-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

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

/* Buttons */
.btn-primary,
.btn-outline {
    display: inline-block;
    /* width: 100%; */
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

body.dark-mode .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(22, 163, 74, 0.05);
}

.btn-block {
    width: 100%;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FEATURE SECTIONS */
.feature-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.feature-section:nth-child(even) {
    background: #f8fafc;
    /* Light gray/white alternate */
}

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

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.feature-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.feature-image:hover img {
    transform: scale(1.03);
}

.feature-reversed .feature-container {
    direction: rtl;
    /* Simple way to swap columns visually, but better to use order */
    grid-template-areas: "image text";
}

.feature-reversed .feature-text {
    direction: ltr;
}

.feature-reversed .feature-image {
    direction: ltr;
}

/* Specific Feature Tweaks */
.tech-highlight {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .hero-advantages {
        grid-template-columns: 1fr;
    }

    .feature-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr !important;
    }

    .feature-reversed .feature-container {
        direction: ltr;
        grid-template-areas: unset;
    }

    .feature-image {
        order: -1;
        /* Show image before text on mobile usually looks better, or remove this to keep text first */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper.centered-form {
        padding: 1.5rem;
    }
}

/* TRUSTED BY SECTION */
.trusted-by-section {
    padding: 2rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trusted-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Marquee Animations */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.slow-marquee {
    animation-duration: 60s;
    gap: 2rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    opacity: 0.6;
    white-space: nowrap;
}

/* TESTIMONIALS SECTION */
.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    width: 350px;
    flex-shrink: 0;
}

.testimonial-card:hover {
    background: #f8fafc;
}

.quote {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

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

.author-info strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* IMPROVED FOOTER */
.site-footer {
    padding: 4rem 0 2rem;
    background: #f1f5f9;
    /* Light footer bg */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

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

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

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

.copyright {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.875rem;
}

/* CHALLENGES SECTION (Sticky Scroll) */
.challenges-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.challenges-left {
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 150px;
    /* Offset from header */
}

.sticky-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 20px;
}

.challenge-item {
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.challenge-item:hover {
    color: var(--text-main);
}

.challenge-item.active {
    color: #4ade80;
    /* Green highlight like the image */
    font-weight: 600;
    border-left: 4px solid #4ade80;
}

.challenges-right {
    position: relative;
    /* Remove large gaps */
    min-height: 400px;
}

.challenge-block {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.4s ease;
}

.challenge-block.active {
    display: block;
    /* Show when active */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.challenge-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.challenge-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.challenge-block img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    background: #ffffff;
}

.challenge-block:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .challenges-wrapper {
        grid-template-columns: 1fr;
    }

    .sticky-wrapper {
        position: static;
    }

    .challenges-right {
        gap: 4rem;
        padding-bottom: 0;
    }

    .challenge-block {
        min-height: auto;
    }

    /* Hide the list on mobile and show content directly? Or simplify. */
    .challenges-list {
        display: none;
        /* Simplification for mobile */
    }
}

@media (max-width: 900px) {
    /* No specific changes needed for marquee on mobile as it scrolls */
}

/* PWA / Mobile Header Fixes */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-login-btn {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    header {
        padding: 18px 0;
    }

    .container.nav-content {
        padding: 0 16px;
    }

    .logo-text {
        display: none;
        /* Hide text on mobile to save space */
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .logo-dot {
        width: 12px;
        height: 12px;
    }

    .nav-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    .nav-login-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-right: 0;
    }
}