:root {
    --bg-color: #050505;
    --bg-color-light: #111111;
    --text-color: #FAFAFA;
    --text-muted: #888888;
    --primary: #FFFFFF;
    --primary-invert: #000000;
    --border-color: #222222;
    --border-hover: #444444;
    
    /* Solid Accent Colors */
    --accent: #FF6B00; 
    --accent-hover: #E66000;
    --accent-light: rgba(255, 107, 0, 0.1);
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    border-radius: var(--radius-full);
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-color-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #1A1A1A;
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--radius-full);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.w-100 {
    width: 100%;
}

/* Navbar Full Width */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    position: relative;
    z-index: 1001; /* Stay above mobile menu */
}

.logo img {
    height: 28px;
    width: auto;
    filter: grayscale(100%) brightness(200%);
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 1001; /* Stay above mobile menu */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
}

.scroll-down {
    margin-top: 2rem;
}

.scroll-down a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    animation: float-down 2s ease-in-out infinite;
}

.scroll-down a:hover {
    color: #FFF;
    border-color: var(--accent);
    background-color: var(--accent);
    animation-play-state: paused;
}

@keyframes float-down {
    0% { transform: translateY(0); }
    50% { transform: translateY(15px); }
    100% { transform: translateY(0); }
}

/* Sections Common */
section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Services */
.services {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: #FFFFFF;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Approach */
.approach {
    background-color: var(--bg-color-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.approach-visual {
    min-width: 0; /* Prevents CSS grid blowout on mobile */
    width: 100%;
}

.approach-text h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.approach-text > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-item i {
    color: #FFFFFF;
    background: var(--accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

.code-panel {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.code-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot:nth-child(1) { background-color: #FF5F56; }
.dot:nth-child(2) { background-color: #FFBD2E; }
.dot:nth-child(3) { background-color: #27C93F; }

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap; /* Forces long code to wrap to the next line on mobile */
    word-break: break-word;
    color: var(--text-muted);
}

.keyword { color: #888888; }
.variable { color: #E0E0E0; }
.property { color: var(--accent); }
.string { color: #FFFFFF; }
.function { color: #CCCCCC; }
.comment { color: #555555; font-style: italic; }

/* CTA */
.cta {
    background-color: var(--bg-color);
}

.cta-container {
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    text-align: center;
}

.cta-container h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.cta-container p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-inline: auto;
    font-weight: 300;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    gap: 1.2rem;
}

input, textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent);
    background: #080808;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-align: left;
    font-weight: 500;
}

.alert.success {
    background-color: rgba(39, 201, 63, 0.1);
    color: #27C93F;
    border: 1px solid rgba(39, 201, 63, 0.2);
}

.alert.error {
    background-color: rgba(255, 95, 86, 0.1);
    color: #FF5F56;
    border: 1px solid rgba(255, 95, 86, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    background-color: var(--bg-color-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 28px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) brightness(200%);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info i {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .approach-content {
        grid-template-columns: 1fr;
    }
    
    .approach-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile Menu Implementation */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateY(-20px);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a:not(.btn) {
        font-size: 1.5rem;
    }

    .nav-links .btn {
        margin-top: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* General Mobile Layout Adjustments */
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0; /* Reduced padding for mobile */
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Scroll Down Mobile */
    .scroll-down {
        margin-top: 1rem;
    }
    
    /* Services Mobile */
    .service-card {
        padding: 1.8rem;
    }
    
    /* Approach Mobile */
    .approach-content {
        gap: 3rem;
    }

    .approach-text h2 {
        font-size: 1.8rem;
    }

    .approach-visual {
        width: 100%;
        overflow: hidden;
    }

    .code-panel {
        padding: 1.2rem;
        width: 100%;
    }

    pre {
        font-size: 0.8rem; /* Prevent code block overflow */
    }
    
    /* CTA Mobile */
    .cta-container {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-container h2 {
        font-size: 1.8rem;
    }

    .input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding-top: 4rem;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand p {
        margin-inline: auto;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}