/* --- TABLE OF CONTENTS ---
1. Global Styles & Variables
2. Custom Cursor
3. Header & Navigation
4. Buttons & UI Elements
5. Hero Section
6. Services (Horizontal Scroll)
7. Funnel Section
8. Process Section
9. Testimonials & Industries
10. CTA & Footer
11. Contact & Legal Pages
12. Animations & Keyframes
13. Responsive Media Queries
-----------------------------*/

/* 1. Global Styles & Variables */
:root {
    --bg-primary: #0E0E10;
    /* Pure carbon black */
    --bg-secondary: #1A1A1D;
    /* Deep charcoal */
    --border-color: #2E2E33;
    /* Neutral dark border */

    --accent: #FF7A45;
    /* Lava Orange (modern tech accent) */
    --glow-color: rgba(255, 122, 69, 0.15);
    /* Soft orange glow */

    --text-primary: #E1E1E3;
    /* Soft warm white */
    --text-secondary: #A3A3A8;
    /* Smooth warm-gray secondary */

    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;

    --header-height: 80px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


@font-face {
    font-family: 'Clash Display';
    src: url('https://api.fontshare.com/v2/css?f[]=clash-display@600&display=swap') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500&display=swap') format('woff2');
    font-weight: 400 500;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

/* 2. Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.5;
}

/* 3. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition: background-color var(--transition-fast), border-bottom-color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 40px;
    filter: invert(1);
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-primary);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(70vw, 300px);
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    transition: right var(--transition-slow);
    padding: 100px 30px;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 4. Buttons & UI Elements */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--glow-color);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 5. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    animation: pan-grid 60s linear infinite;
}

.hero-content {
    max-width: 800px;
}

.hero-headline {
    margin-bottom: 1.5rem;
}

.hero-headline .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: reveal-word 0.8s var(--transition-slow) forwards;
    animation-delay: calc(var(--delay) * 1s);
}

.hero-headline .accent {
    color: var(--accent);
}

.hero-subheadline {
    font-size: 1.1rem;
    max-width: 600px;
}

/* 6. Services (Horizontal Scroll) */
.services-wrapper {
    height: 300vh;
    position: relative;
}

.services-container {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.services-intro {
    padding-bottom: 4rem;
    text-align: center;
}

.services-list {
    display: flex;
    width: max-content;
    gap: 40px;
    padding: 0 5vw;
}

.service-card {
    width: 350px;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* 7. Funnel Section */
.funnel-section {
    padding: 100px 0;
}

.funnel-interactive-area {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.funnel-visual {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.funnel-stage {
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.funnel-stage .stage-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.funnel-stage .stage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform var(--transition-slow);
    z-index: 1;
}

.funnel-stage.active {
    border-color: var(--accent);
}

.funnel-stage.active .stage-bg {
    transform: translateX(0);
}

.funnel-stage.active .stage-label {
    color: var(--bg-primary);
}

.funnel-content .content-pane {
    display: none;
    animation: fade-in 0.5s;
}

.funnel-content .content-pane.active {
    display: block;
}

.funnel-content h4 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.funnel-content ul {
    list-style: none;
    padding-left: 20px;
}

.funnel-content li {
    position: relative;
    margin-bottom: 0.5rem;
}

.funnel-content li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--accent);
}

/* 8. Process Section */
.process-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.process-item {
    padding: 2rem;
    background: var(--bg-secondary);
}

.process-number {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 1rem;
}

.process-item h3 {
    margin-bottom: 1rem;
}

/* 9. Testimonials & Industries */
.testimonials-section {
    padding: 100px 0;
    text-align: center;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
}

.testimonial-quote-icon {
    font-size: 8rem;
    font-family: serif;
    color: var(--bg-secondary);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    line-height: 1;
    user-select: none;
}

.testimonial-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.author-name {
    display: block;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.9rem;
}

.industries-section {
    padding: 100px 0;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-item {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

/* 10. CTA & Footer */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-secondary);
}

.cta-section h2 {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.site-footer {
    padding: 80px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col address {
    font-style: normal;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* 11. Contact & Legal Pages */
.contact-hero-section {
    padding: 150px 0 80px;
    text-align: center;
}

.contact-form-section {
    padding-bottom: 100px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.legal-page {
    padding: 150px 0 80px;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content {
    max-width: 750px;
    margin: 0 auto;
}

.legal-content h3 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page .footer-grid {
    grid-template-columns: 1fr 1fr;
}

/* Simplified footer for legal pages */

/* 12. Animations & Keyframes */
@keyframes pan-grid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1200px -1200px;
    }
}

@keyframes reveal-word {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

[data-anim="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    transition-delay: calc(var(--delay) * 1s);
}

[data-anim="fade-up"].in-view {
    transform: translateY(0);
    opacity: 1;
}

/* 13. Responsive Media Queries */
@media (max-width: 1024px) {
    .funnel-interactive-area {
        grid-template-columns: 1fr;
    }

    .funnel-visual {
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col.about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .desktop-nav,
    .header-cta .btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .services-wrapper {
        height: auto;
    }

    .services-container {
        position: static;
        height: auto;
        padding: 100px 0;
    }

    .services-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .service-card {
        width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group:not(.full-width) {
        grid-column: 1 / -1;
    }
}