:root {
    --bg-dark: #0a0a0a; /* Obsidian / Concrete */
    --bg-light: #121212; /* Asphalt */
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --accent-red: #ff003c; /* Laser Crimson */
    --accent-glow: rgba(255, 0, 60, 0.2);
    --glass-bg: rgba(18, 18, 18, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 0, 60, 0.5);
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Modern Web Design: Fluid Typography Scale */
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    --font-size-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    --font-size-xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Accessibility: Keyboard Focus States */
:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--font-size-base);
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center;
}

.container {
    width: 100%;
    padding: 0 6%;
}

/* Utilities (Aigocy Inspired) */
.text-gradient-1 {
    background: linear-gradient(90deg, #ff4d4d 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-gradient-2 {
    background: linear-gradient(90deg, #ffffff 0%, #737373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeUp {
    opacity: 0; /* Starts hidden */
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1.2rem 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, padding 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-red);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:not([class*="btn-"]):hover {
    color: var(--accent-red);
}

/* Buttons (Modern Web Design & Touch Targets) */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px; /* Touch target minimum */
    min-width: 44px;
    background: linear-gradient(90deg, var(--accent-red) 0%, #cc0030 100%);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px; /* Brutalist/tech edge instead of rounded */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; /* Spring physics feel */
    box-shadow: 0 4px 15px var(--accent-glow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px); /* Micro-interaction scale */
    box-shadow: 0 10px 25px rgba(255, 0, 60, 0.4);
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px; /* Touch target minimum */
    min-width: 44px;
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.8rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-main);
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--accent-red);
    background: var(--accent-glow);
    transform: scale(1.05);
}

.btn-highlight {
    background: linear-gradient(90deg, var(--accent-red) 0%, #cc0030 100%);
    border-color: transparent;
    color: white !important;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.15) 0%, transparent 60%);
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.05);
    color: var(--accent-red);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl, clamp(3.5rem, 6vw, 6rem)); /* Fluid typography */
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    max-width: 800px;
    color: var(--text-main);
}

.hero-bottom-row {
    display: flex;
    justify-content: flex-start; /* Align to left */
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 900px; 
}

.hero .subhead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    font-weight: 400;
    line-height: 1.6;
}

/* Hero Layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Interactive Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background-color: rgba(15, 15, 15, 0.4);
    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: 30px 30px;
    background-position: center center;
    overflow: hidden;
    /* Mouse tracking variables with fallback */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* The Glowing Flashlight */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 200px at var(--mouse-x) var(--mouse-y),
        rgba(225, 29, 72, 0.2),
        transparent 80%
    );
    z-index: 1;
    pointer-events: none;
}

/* Floating Squares */
.floating-square {
    position: absolute;
    border-radius: 8px;
    z-index: 2;
    animation: float-sq 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.floating-square svg {
    width: 45%;
    height: 45%;
    color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-square:hover svg {
    opacity: 1;
    color: var(--accent-red);
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.6));
}

.sq-1 {
    top: 15%;
    left: 10%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.sq-2 {
    top: 60%;
    left: 65%;
    width: 70px;
    height: 70px;
    animation-delay: -2s;
}

.sq-3 {
    top: 18%;
    left: 36%;
    width: 60px;
    height: 60px;
    animation-delay: -4s;
}

.sq-4 {
    top: -20%;
    left: 80%;
    width: 80px;
    height: 80px;
    animation-delay: -1.5s;
}

@keyframes float-sq {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(4deg); }
}

/* Horizontal Scroll Why Section */
.why-scroll {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    overflow: hidden; /* Hide horizontal scrollbar */
    position: relative;
    border-top: 1px solid var(--glass-border);
}

/* Ambient Red Edge Glows */
.why-scroll::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    min-width: 400px;
    min-height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 60, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.why-scroll::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -20%;
    width: 60vw;
    height: 60vw;
    min-width: 300px;
    min-height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 60, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.why-track {
    display: flex;
    gap: 5vw;
    padding: 0 10vw; /* Start offset */
    width: fit-content;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1; /* Keep above the glow */
}

.why-card {
    width: 60vw;
    min-width: 320px;
    max-width: 600px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Uses existing .glass-card for background/borders */
}

.why-card h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl, clamp(2.5rem, 4vw, 4rem));
    color: var(--accent-red);
    margin-bottom: 1rem;
    line-height: 1;
}

.why-card p {
    font-size: var(--font-size-lg, clamp(1.25rem, 2vw, 1.75rem));
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 500;
}

/* Glassmorphism Cards (Modern 2024 standards) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 8px; /* Brutalist edge */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--glass-border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Integrations Trust Bar */
.integrations-bar {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, transparent, rgba(255, 51, 51, 0.02) 50%, transparent);
}

.integrations-title {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

.marquee-container {
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Forces full width even if parent has constraints */
    position: relative;
    padding: 2rem 0; /* Adds breathing room so scaled hover states aren't clipped */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}

@keyframes scroll-marquee {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.integration-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
}

/* Pop-out hover effect ONLY for Desktop (devices with mice) */
@media (hover: hover) and (pointer: fine) {
    .integration-pill:hover {
        background: rgba(255, 51, 51, 0.05);
        border-color: rgba(255, 51, 51, 0.5);
        color: #fff;
        transform: scale(1.15) translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 51, 51, 0.2);
        z-index: 10;
    }
}

.integration-pill svg {
    color: var(--accent-red);
}

/* ROI Metrics */
.roi-metrics {
    padding: 4rem 0; /* Adjusted for better top/bottom spacing */
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Ensures all cards stretch to same height */
}

.roi-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Forces card to fill grid cell */
    box-sizing: border-box;
}

.roi-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.roi-unit {
    font-size: 1.2rem;
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
    background: none;
    margin-left: 0.2rem;
}

.roi-label {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .roi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .roi-card {
        padding: 1.5rem 0.5rem;
    }
    .roi-number {
        font-size: 2.5rem;
    }
    .roi-unit {
        font-size: 0.9rem;
    }
    .roi-label {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
}

/* About Section */
.about {
    padding: 140px 0;
    background-color: var(--bg-light);
    background-image: linear-gradient(rgba(10, 10, 10, 0.90), rgba(10, 10, 10, 0.97)), url('about-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    line-height: 1.1;
}

.about p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.35rem; /* Larger font size */
    line-height: 1.9;   /* Better word/line spacing */
    letter-spacing: 0.3px;
    max-width: 90%;     /* Gives it a nice reading edge */
}

.about strong {
    color: #fff;
}

.about-image {
    display: flex;
    justify-content: flex-end;
}

/* 3D Dashboard Scene */
.dashboard-scene {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1200px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    position: absolute;
    background: rgba(15, 10, 12, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 51, 51, 0.15);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 1.5rem;
    color: var(--text-light);
}

.main-panel {
    width: 480px;
    height: 320px;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(50px);
    animation: float-main 6s ease-in-out infinite;
    z-index: 10;
    border-top: 1px solid rgba(255, 51, 51, 0.4);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.main-panel:hover {
    box-shadow: 0 40px 80px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.2), 0 0 30px rgba(255, 51, 51, 0.15);
    border-color: rgba(255, 51, 51, 0.4);
}

.panel-back-1 {
    width: 220px;
    height: 160px;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(-80px) translateX(140px) translateY(-70px);
    animation: float-back-1 8s ease-in-out infinite 1s;
    z-index: 5;
    opacity: 0.8;
}

.panel-back-2 {
    width: 180px;
    height: 120px;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(-120px) translateX(-120px) translateY(80px);
    animation: float-back-2 7s ease-in-out infinite 2s;
    z-index: 2;
    opacity: 0.6;
}

/* Animations */
@keyframes float-main {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateZ(50px) translateY(0); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateZ(50px) translateY(-15px); }
}

@keyframes float-back-1 {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateZ(-80px) translateX(140px) translateY(-70px); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateZ(-80px) translateX(140px) translateY(-55px); }
}

@keyframes float-back-2 {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateZ(-120px) translateX(-120px) translateY(80px); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateZ(-120px) translateX(-120px) translateY(90px); }
}

/* Mock UI Elements */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}


.panel-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    color: var(--accent-red);
}

.logo {
    color: #fff;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulse 2s infinite;
}

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

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-box .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-box .value {
    font-size: 1.3rem;
    font-weight: 700;
}

.text-red { color: var(--accent-red); }
.text-white { color: #fff; }

/* CRM Layout Styles */
.crm-layout {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.crm-sidebar {
    width: 30px;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 0.5rem;
}

.nav-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.nav-icon.active {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px rgba(255,51,51,0.5);
}

.crm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.company-brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.crm-user {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-avatar {
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent-red);
    border-radius: 50%;
    border: none;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.u-name { width: 45px; height: 5px; background-color: rgba(255,255,255,0.4); border-radius: 2px; }
.u-role { width: 30px; height: 4px; background-color: rgba(255,51,51,0.6); border-radius: 2px; }

.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.stage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s-label {
    width: 50px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.s-track {
    flex: 1;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.s-fill {
    height: 100%;
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
    animation: bar-grow 1.5s ease-out forwards;
}

.s-fill.bg-red {
    background-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255,51,51,0.4);
}

.dashboard-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.charts-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.pie-chart {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05); /* Fallback */
    background-image: conic-gradient(var(--accent-red) 0% 45%, #33ccff 45% 75%, rgba(255,255,255,0.6) 75% 100%);
    box-shadow: 0 0 15px rgba(255,51,51,0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(20, 20, 20, 1);
    border-radius: 50%;
    z-index: 1;
}

.pie-total {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.pie-legend {
    display: flex;
    gap: 0.8rem;
    font-size: 0.65rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.bg-blue { background-color: #33ccff; }
.bg-white { background-color: #fff; }

.table-container {
    flex: 1;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    background-color: rgba(0,0,0,0.2);
}

.table-row {
    display: flex;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.header-row {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-weight: 700;
}

.t-col {
    flex: 1;
}

.table-row .t-col:first-child {
    flex: 1.5;
    padding-right: 5px;
}

.mock-graph {
    height: 60px;
    width: 100%;
    background: linear-gradient(180deg, rgba(255,51,51,0.2) 0%, transparent 100%);
    border-bottom: 2px solid var(--accent-red);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.graph-wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,51,51,0.1) 10px, rgba(255,51,51,0.1) 20px);
    animation: scan 15s linear infinite;
}

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

/* Mobile Responsiveness for 3D Scene */
@media (max-width: 768px) {
    .dashboard-scene {
        transform: scale(0.65);
        transform-origin: center center;
        height: 300px;
    }
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    padding: 10px 0;
}

.mock-chart .bar {
    flex: 1;
    background-color: var(--accent-red);
    border-radius: 2px 2px 0 0;
    opacity: 0.7;
    animation: bar-grow 2s ease-out forwards;
}

@keyframes bar-grow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

.h-40 { height: 40%; }
.h-70 { height: 70%; }
.h-30 { height: 30%; }
.h-90 { height: 90%; }
.h-50 { height: 50%; }

.mock-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    height: 100%;
}

.mock-lines .line {
    height: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.w-full { width: 100%; }
.w-3-4 { width: 75%; }
.w-1-2 { width: 50%; }

.abstract-shape {
    height: 500px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid rgba(225, 29, 72, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adding a floating glowing orb inside the abstract shape */
.abstract-shape::after {
    content: '';
    width: 150px;
    height: 150px;
    background: var(--accent-red);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Services Section */
.services {
    padding: 140px 0;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 5rem;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.service-card {
    padding: 3.5rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(225, 29, 72, 0.03);
    border-color: var(--glass-border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-red);
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card:hover .service-icon {
    background: rgba(225, 29, 72, 0.2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.tools-used {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: auto;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.service-card:hover .tools-used {
    transform: translateY(-5px);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* CTA Section */
.cta {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, #110306 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.3), transparent);
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Scroll-Reveal Animation Styles */
.section {
    padding: 8rem 0;
    /* Initial hidden/entering state (when scrolling down to a new section) */
    opacity: 0.15;
    transform: translateY(44px) scale(0.985);
    filter: blur(6px);
    
    /* Transition properties (animates opacity, transform, and blur) */
    transition: 
        opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
        transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
        filter 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    
    will-change: transform, opacity, filter; /* Optimizes browser rendering */
}

/* Active in-view state (section becomes fully visible) */
.section.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Scrolled-past state (fades slightly as user scrolls past it) */
.section.out-view {
    opacity: 0.18;
    transform: translateY(-36px) scale(0.985);
    filter: blur(6px);
}

/* Active Navigation highlight style */
nav a.active {
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .about {
        background-attachment: scroll;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about h2 {
        font-size: 2.5rem;
    }
    .about p {
        font-size: 1.05rem;
        line-height: 1.6;
        max-width: 100%;
    }
    .about-image {
        justify-content: center;
    }
    .about-image img {
        width: 95%;
    }
    nav a:not(.btn-outline):not(.btn-primary) {
        display: none;
    }
    nav a.btn-outline, nav a.btn-primary {
        padding: 0.25rem 0.6rem;
        font-size: 0.85rem;
        margin-left: 0;
        min-height: auto;
        min-width: auto;
    }
    .header-inner {
        padding: 0 1rem;
    }
    .badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.55rem;
        margin-bottom: 0.5rem;
    }
    .badge::before {
        width: 4px;
        height: 4px;
    }
    .hero {
        text-align: left;
        padding-top: 140px; /* Pushed down to center it vertically on mobile */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 9vw, 3.2rem); /* Dynamic scaling prevents overflow on iPhone SE */
        max-width: 100%;
        line-height: 1.05;
        margin-bottom: 2rem;
    }
    .hero-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }
    .hero .subhead {
        font-size: 1rem;
        line-height: 1.5;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        display: none;
    }
}

/* ==================================================
   NEW: Process Section
   ================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-red);
    opacity: 0.5;
    transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: rgba(225, 29, 72, 0.3);
}

.process-step:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-red);
}

.why-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.why-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 0;
}

.why-icon {
    width: clamp(32px, 8vw, 48px);
    height: clamp(32px, 8vw, 48px);
    color: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
    transition: color 0.4s ease, filter 0.4s ease;
}

.why-card.touch-active .why-icon,
.why-card:active .why-icon {
    color: var(--accent-red);
    filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.5));
}

@media (min-width: 769px) {
    .why-card:hover .why-icon {
        color: var(--accent-red);
        filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.5));
    }
}

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

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
    background: -webkit-linear-gradient(90deg, var(--accent-red), #ff758c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* ==================================================
   NEW: FAQ Section (Accordion)
   ================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    background: rgba(225, 29, 72, 0.05);
}

.faq-item[open] {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.1);
    background: rgba(20, 20, 20, 0.9);
}

.faq-item summary {
    font-size: 1.25rem;
    font-weight: 700;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--accent-red);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover summary::after {
    background: rgba(225, 29, 72, 0.1);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
    border-color: var(--accent-red);
}

@keyframes faqFadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item[open] p {
    animation: faqFadeDown 0.4s ease-out forwards;
}

/* ==================================================
   NEW: Contact Form Styles
   ================================================== */
.contact-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-bottom: 4rem;
    padding-top: 10rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

@media (max-width: 768px) {
    /* Hero Responsiveness */
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero-bottom-row {
        align-items: center;
    }
    .hero-visual {
        height: 350px;
        margin-top: 2rem;
    }
    
    /* Typography adjustments */
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    /* Why Section Responsiveness */
    .why-scroll {
        height: auto !important;
        padding: 80px 0;
    }
    .why-track {
        flex-direction: column;
        width: 100% !important;
        transform: none !important;
        gap: 2rem;
    }
    .why-card {
        width: 100%;
        padding: 3rem;
    }
    
    /* Process step adjustments */
    .process-step {
        padding: 2rem;
    }
    
    /* CTA Mobile */
    .cta {
        padding: 80px 0;
    }
    .cta p {
        margin-bottom: 2rem;
    }
    
    /* Mobile Performance & Touch Fixes */
    /* Disable sticky hover states */
    .service-card:hover { transform: none !important; background: transparent !important; border-color: var(--glass-border) !important; box-shadow: none !important; }
    .service-card:hover .service-icon { transform: none !important; background: rgba(225, 29, 72, 0.1) !important; box-shadow: none !important; }
    .process-step:hover { transform: none !important; border-color: transparent !important; }
    .process-step:hover::before { box-shadow: none !important; opacity: 0.5 !important; }
    
    /* Add snappy touch-active class for JS click toggle (transform restored) */
    .service-card.touch-active { transform: translateY(-5px) scale(1.02) !important; background: rgba(225, 29, 72, 0.05) !important; border-color: rgba(225, 29, 72, 0.5) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important; transition: all 0.2s ease !important; }
    .service-card.touch-active .service-icon { background: rgba(225, 29, 72, 0.2) !important; transform: scale(1.1) rotate(5deg) !important; }
    
    /* Add touch-active class for Process Steps */
    .process-step.touch-active { transform: translateY(-5px) !important; border-color: var(--glass-border-hover) !important; transition: all 0.2s ease !important; }
    .process-step.touch-active::before { box-shadow: inset 0 0 40px rgba(225, 29, 72, 0.2) !important; opacity: 1 !important; }
    
    /* Disable conflicting section animations on mobile to fix GSAP stutter */
    .section, .section.in-view, .section.out-view { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}


/* ==================================================
   NEW: Footer Upgrade
   ================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0102 100%);
    padding: 80px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-content > div:nth-child(2) {
    justify-self: center;
}
.footer-content > div:nth-child(3) {
    justify-self: center;
}

.footer-brand {
    max-width: 300px;
}
.footer-brand .logo {
    justify-content: center;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.footer-links-col h4,
.footer-social h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    font-weight: 700;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.footer-links-col a:hover {
    color: var(--accent-red);
}

.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 3rem;
    }
    .footer-brand {
        margin-bottom: 2rem;
    }
}


/* Custom Form Validation */
.error-text { display: none; color: var(--accent-red); font-size: 0.8rem; margin-top: 6px; font-weight: 500; }
input:not(:placeholder-shown):invalid, textarea:not(:placeholder-shown):invalid { border-color: var(--accent-red) !important; box-shadow: 0 0 10px rgba(255, 51, 51, 0.2); }
input:not(:placeholder-shown):invalid ~ .error-text { display: block; }
input:not(:placeholder-shown):valid { border-color: rgba(255,255,255,0.4); }

/* Tablet Specific Fixes */
@media (min-width: 769px) and (max-width: 1024px) { .hero-layout, .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; } .hero-bottom-row { justify-content: center; align-items: center; } .hero-visual { display: none; } }

/* 100% Transparency Box Hover Effects */
.transparency-box {
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer; /* Changed to pointer to indicate it's interactive */
    text-align: center; /* Fix text orientation */
    outline: none; /* Remove default browser focus ring */
}

@media (hover: hover) {
    .transparency-box:hover {
        border-color: rgba(225, 29, 72, 0.6);
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.15);
        transform: translateY(-2px);
    }
}

.transparency-box:active {
    border-color: rgba(225, 29, 72, 0.8) !important;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.25) !important;
}

/* Sticky active state only for touch devices */
@media (hover: none) and (pointer: coarse) {
    .transparency-box:focus {
        border-color: rgba(225, 29, 72, 0.8) !important;
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.25) !important;
    }
}
