:root {
    --color-primary: #FF4D00;
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #a32cc4;
    --color-line: rgba(255, 255, 255, 0.15);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --spacing-container: 2rem;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-border: 1px solid var(--color-line);
    --glass-bg: rgba(10, 10, 10, 0.8);
    --blur: blur(10px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 0.95rem;
    /* Reduced body text size */
}

/* Neural Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    /* Medium */
    letter-spacing: -1px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Navbar height */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Reduced from 4rem to prevent clipping */
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    padding: 0 1rem;
    /* Add padding to prevent edge clipping */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
    /* border-bottom: 1px solid var(--color-line); Removed per user request */
}

.section-title {
    font-size: 2.25rem;
    /* Reduced from 3rem */
    margin-bottom: 1rem;
    text-align: center;
    color: #fff;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro */
.intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro h2 {
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* What We Deliver */
.deliver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--color-line);
    /* Creates grid lines */
    border: 1px solid var(--color-line);
}

.deliver-item {
    background: var(--color-bg);
    padding: 3rem;
    transition: var(--transition);
}

.deliver-item:hover {
    background: #0f0f0f;
}

.deliver-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

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

/* Never Sleeps Section */
.never-sleeps {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.never-sleeps-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.never-sleeps-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--color-text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    /* Ensure single line */
}

/* Services Section */
.services {
    padding: 8rem 0 4rem 0;
    background-color: var(--color-bg);
}

.services-intro {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    text-align: center;
    /* Centered per request */
}

.services-intro h2 {
    font-size: 2rem;
    /* Reduced from 3rem */
    margin-bottom: 1.5rem;
    color: #fff;
}

.services-intro p {
    font-size: 1.125rem;
    /* Reduced to ~18px */
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 auto;
    /* Ensure centering */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: #0F0F0F;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: #FF4D00;
    box-shadow: 0 0 40px rgba(255, 77, 0, 0.25);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    color: #FF4D00;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.25rem;
    /* Reduced by ~15-20% */
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.service-card p {
    font-size: 0.875rem;
    /* Reduced to 14px */
    color: #888;
    line-height: 1.5;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-intro h2 {
        font-size: 2.5rem;
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 117, 58, 0.1);
    color: #fff;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    border-bottom: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.btn-large {
    margin-top: 2rem;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background-color: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(20px);
    padding: 4rem 0 2rem;
    border-top: var(--glass-border);
}

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

.footer-brand {
    text-align: center;
}

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

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

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

.footer-copy {
    color: #555;
    font-size: 0.8rem;
    margin-top: 2rem;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        padding: 0 1rem;
        line-height: 1.2;
        white-space: normal;
        /* Allow wrapping on mobile */
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .services-intro h2 {
        font-size: 1.8rem;
        /* Increased for 3-line layout on mobile */
    }

    .hero-title span {
        white-space: normal !important;
        /* Allow wrapping on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}