:root {
    /* Color Palette: High Contrast Warm / Studio Monochrome mix */
    --bg-primary: #F4F4F0;
    /* Soft cream */
    --bg-secondary: #EBEBE6;
    /* Slightly darker cream for bento boxes */
    --text-primary: #1C1C1C;
    /* Deep Charcoal */
    --text-secondary: #5A5A5A;
    --accent: #00FF66;
    /* Neon Green */
    --accent-hover: #00CC52;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing Scale */
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-2xl: 128px;

    /* Layout */
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: initial;
    /* Handled by Lenis */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    cursor: none;
}

/* Refined Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #fff;
    mix-blend-mode: difference;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #fff;
    mix-blend-mode: difference;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-outline.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent);
}

.text-light {
    color: #F4F4F0 !important;
}

.text-huge {
    font-size: clamp(4rem, 8vw, 10rem);
    letter-spacing: -0.04em;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

.relative {
    position: relative;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.4s var(--ease-out-expo), background-color 0.3s ease;
    cursor: none;
}

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

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    mix-blend-mode: difference;
    color: #fff;
    /* Inverted due to difference */
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar .btn-primary {
    background-color: #fff;
    color: #000;
    mix-blend-mode: normal;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 100px;
    /* Offset for nav */
    max-width: 100vw;
    overflow-x: hidden;
}

.hero-left {
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(28, 28, 28, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 6.5rem);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: var(--space-md);
}

/* Auto-scrolling Portfolio */
.hero-right {
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
}

.portfolio-marquee {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.marquee-track {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
    /* Animation applied in JS for smooth pausing */
}

.marquee-item {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 12;
    transform: scale(1);
    transition: transform 0.6s var(--ease-out-expo);
}

.marquee-item:hover {
    transform: scale(0.98);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    will-change: transform;
}

/* Skills Section */
.section-skills {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.skills-left {
    display: flex;
    flex-direction: column;
}

.skills-title {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-sm);
}

.skills-title .italic-serif {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
}

.skills-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    transition: transform 0.4s var(--ease-out-expo);
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
}

.skill-name {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.skill-tag {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.skill-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.skills-right {
    position: relative;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.floating-cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-card-wrapper {
    position: absolute;
    width: 280px;
    transition: z-index 0.3s ease;
}

.float-card {
    width: 100%;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.3s ease;
    will-change: transform;
}

.float-card h4 {
    font-size: 1.5rem;
}

.float-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.float-dark {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.float-light {
    background-color: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-item-1 {
    top: 8%;
    left: 4%;
    z-index: 3;
}

.floating-item-1 .float-card {
    transform: rotate(-6deg);
}

.floating-item-2 {
    top: 21%;
    left: 32%;
    z-index: 2;
}

.floating-item-2 .float-card {
    transform: rotate(4deg);
}

.floating-item-3 {
    top: 34%;
    right: 6%;
    z-index: 4;
}

.floating-item-3 .float-card {
    transform: rotate(-3deg);
}

.floating-item-4 {
    top: 51%;
    left: 10%;
    z-index: 3;
}

.floating-item-4 .float-card {
    transform: rotate(5deg);
}

.floating-item-5 {
    top: 67%;
    right: 25%;
    z-index: 1;
}

.floating-item-5 .float-card {
    transform: rotate(-4deg);
}

.floating-item-6 {
    bottom: 1%;
    right: 4%;
    z-index: 5;
}

.floating-item-6 .float-card {
    transform: rotate(3deg);
}

/* Media query for skills section */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .skills-right {
        min-height: auto;
        padding: 60px 0;
    }

    .floating-cards-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: auto;
    }

    .float-card-wrapper {
        position: relative !important;
        width: 100% !important;
        max-width: 280px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: -50px;
        /* Slight vertical overlap on mobile */
    }

    .float-card-wrapper:first-child {
        margin-top: 0;
    }

    /* Scattered alignment for mobile flex stack */
    .float-card-wrapper:nth-child(1) {
        align-self: center;
        margin-left: -5%;
    }

    .float-card-wrapper:nth-child(2) {
        align-self: center;
        margin-left: 10%;
    }

    .float-card-wrapper:nth-child(3) {
        align-self: center;
        margin-left: -10%;
    }

    .float-card-wrapper:nth-child(4) {
        align-self: center;
        margin-left: 15%;
    }

    .float-card-wrapper:nth-child(5) {
        align-self: center;
        margin-left: -15%;
    }

    .float-card-wrapper:nth-child(6) {
        align-self: center;
        margin-left: 5%;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .float-card-wrapper {
        max-width: 240px !important;
        margin-top: -30px;
    }

    .float-card {
        padding: 30px 20px;
    }

    .float-card-wrapper:nth-child(3) {
        margin-left: 10px;
    }

    .float-card-wrapper:nth-child(4) {
        margin-left: 20px;
    }
}

/* Portfolio Section */
.section-portfolio {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.portfolio-header {
    margin-bottom: var(--space-xl);
}

.portfolio-marquee-horizontal {
    width: 100vw;
    overflow: hidden;
    padding-bottom: var(--space-2xl);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-track-horizontal {
    display: flex;
    gap: 32px;
    padding: 0 32px;
    width: max-content;
}

.marquee-item-horizontal {
    width: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transform: scale(1);
    transition: transform 0.6s var(--ease-out-expo);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.marquee-item-horizontal:hover {
    transform: scale(0.98);
}

.marquee-item-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 768px) {
    .marquee-item-horizontal {
        width: 300px;
    }

    .section-portfolio {
        padding: var(--space-lg) 0;
    }

    .portfolio-marquee-horizontal {
        padding-bottom: var(--space-lg);
    }
}

/* Horizontal Scroll Section */
.horizontal-scroll-container {
    overflow: hidden;
    width: 100%;
    background-color: var(--text-primary);
}

.horizontal-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: 300vw;
    height: 100vh;
}

.horizontal-panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.horizontal-panel > .container {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

@media (max-width: 1100px) {
    .horizontal-scroll-wrapper {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .horizontal-panel {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: var(--space-2xl) 0 !important;
        justify-content: flex-start;
    }
}

/* Phase 1: Build (Bento Grid) */
.section-build {
    padding: 0;
    background-color: var(--text-primary);
    position: relative;
}

.section-build::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 102, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.process-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
}

.process-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    min-height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease-out-expo), box-shadow 0.4s ease;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 255, 102, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo);
    z-index: -1;
    pointer-events: none;
}

.process-card:hover {
    border-color: rgba(0, 255, 102, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 255, 102, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
}

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

.process-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #fff;
    transition: transform 0.6s var(--ease-out-expo);
}

.process-card p {
    color: rgba(255, 255, 255, 0.8);
}

.process-card:hover h3 {
    transform: translateX(4px);
}

.process-arrow {
    align-self: center;
    flex-shrink: 0;
}

.elegant-arrow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.elegant-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.6s var(--ease-out-expo);
    z-index: 0;
}

.elegant-arrow:hover::before {
    transform: scale(1);
}

.elegant-arrow svg {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.elegant-arrow:hover svg {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Phase 2: Drive */
.section-drive {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Extra height for parallax */
    background-color: var(--text-primary);
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 255, 102, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.drive-content {
    max-width: 600px;
}

.feature-list {
    margin-top: var(--space-lg);
    list-style: none;
}

.feature-list li {
    font-size: 1.5rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '→';
    margin-right: 16px;
    color: var(--accent);
}

/* Phase 2: Drive Traffic Grid & 3D Visual */
.drive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}


.drive-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.tilt-container {
    width: 100%;
    max-width: 550px;
    position: relative;
    transform-style: preserve-3d;
}

.tilt-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-15deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    box-shadow:
        -30px 30px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 102, 0.1);
    cursor: none;
    overflow: hidden;
}

.tilt-card:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(40px);
    box-shadow:
        -40px 40px 70px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 255, 102, 0.2);
}

.glass-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    backdrop-filter: blur(10px);
    z-index: 2;
    transform: translateZ(10px);
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.mock-dashboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 21, 21, 0.4);
    border-radius: inherit;
    z-index: 3;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-body);
    transform: translateZ(20px);
}

.mock-nav {
    display: flex;
    gap: 8px;
}

.mock-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 60px;
}

.mock-select::after {
    content: '▼';
    font-size: 0.4rem;
    margin-left: 8px;
    opacity: 0.5;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mock-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.mock-stat-card.active {
    border-color: var(--accent);
    background: rgba(0, 255, 102, 0.03);
}

.stat-label {
    font-size: 0.45rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.stat-trend {
    font-size: 0.45rem;
    font-weight: 500;
}

.stat-trend.up {
    color: var(--accent);
}

.stat-trend.down {
    color: #FF4444;
}

.mock-body {
    display: flex;
    gap: 12px;
    flex: 1;
}

.mock-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.mock-funnel-panel {
    flex: 1.2;
}

.mock-graph-panel {
    flex: 2;
}

.panel-header {
    font-size: 0.55rem;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 12px;
}

.funnel-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.funnel-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-bottom: 2px;
}

.funnel-step span {
    font-weight: 700;
    font-size: 0.65rem;
}

.funnel-step small {
    font-size: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-1 {
    width: 100%;
    height: 40px;
    background: #3B82F6;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.step-2 {
    width: 70%;
    height: 35px;
    background: #2563EB;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.step-3 {
    width: 49%;
    height: 35px;
    background: #1D4ED8;
    clip-path: polygon(0 0, 100% 0, 50% 100%, 50% 100%);
}

.graph-placeholder {
    flex: 1;
    position: relative;
    padding-top: 8px;
}

.mock-line-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mock-line-chart path.line-1 {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.mock-line-chart path.line-2 {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.mock-line-chart path.area-1 {
    fill: url(#grad1);
    stroke: none;
}

/* Phase 3: ROI */
.section-roi {
    padding: 0;
    background-color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.section-roi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 102, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.roi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    gap: 40px;
}

.roi-title-wrap {
    flex: 1;
}

.roi-title-wrap .step-num {
    margin-bottom: var(--space-sm);
}

.roi-desc-wrap {
    flex: 1;
    max-width: 500px;
}

.roi-desc-wrap p {
    margin: 0;
    opacity: 0.8;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: var(--space-xl);
}

.roi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.roi-card:hover {
    border-color: rgba(0, 255, 102, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.roi-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.roi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.roi-card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.roi-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.roi-icon-wrap.down {
    background: rgba(255, 68, 68, 0.1);
    color: #FF4444;
}

.roi-icon-wrap.highlight {
    background: var(--accent);
    color: var(--text-primary);
}

.roi-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.metric-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.metric-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -2px;
}

.metric-symbol {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}

.metric-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 24px;
}

.roi-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: auto;
    overflow: hidden;
}

.roi-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-progress-fill.down {
    background: #FF4444;
}

.roi-chart-mini {
    margin-top: auto;
    height: 40px;
    width: 100%;
}

.mini-bar-chart {
    width: 100%;
    height: 100%;
}

.mini-bar-chart .bar {
    fill: rgba(255, 255, 255, 0.1);
    transition: fill 0.3s ease, height 0.5s ease;
}

.mini-bar-chart .highlight-bar {
    fill: var(--accent);
}

.roi-card:hover .mini-bar-chart .bar:not(.highlight-bar) {
    fill: rgba(255, 255, 255, 0.2);
}

.roi-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.05) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.roi-card:hover .roi-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.highlight-card {
    background: rgba(0, 255, 102, 0.03);
    border-color: rgba(0, 255, 102, 0.15);
}

.highlight-card .metric-number {
    color: var(--accent);
}

.highlight-card .metric-symbol {
    color: #fff;
}

/* Footer */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg) 0;
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.footer-cta {
    font-size: clamp(4rem, 10vw, 15rem);
    line-height: 0.9;
    transition: color 0.3s ease;
}

.footer-cta:hover {
    color: var(--accent);
}

.email-link {
    display: inline-block;
    margin-top: var(--space-xl);
    font-size: 2rem;
    color: var(--bg-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--bg-primary);
    padding-bottom: 8px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.email-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.line-wrap {
    overflow: hidden;
    display: block;
    line-height: 1.1;
}

.line {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}

/* Responsive */
@media (max-height: 800px) and (min-width: 1101px) {
    .horizontal-panel > .container {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    .section-title {
        font-size: clamp(2rem, 3.5vw, 3.5rem);
        margin-bottom: var(--space-sm);
    }
    
    .process-card {
        padding: 32px;
        min-height: 250px;
    }
    
    .process-row {
        gap: 16px;
    }
    
    .drive-grid {
        gap: 32px;
    }
    
    .feature-list li {
        padding: 8px 0;
        font-size: 1.25rem;
    }
    
    .roi-grid {
        gap: 16px;
        margin-top: var(--space-lg);
    }
    
    .roi-card {
        padding: 24px;
    }
    
    .roi-header {
        margin-bottom: var(--space-lg);
    }
    
    .metric-number {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}
@media (max-width: 1100px) {
    .process-row {
        flex-direction: column;
        gap: 8px;
    }

    .process-card {
        padding: 32px;
        min-height: auto;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .elegant-arrow {
        width: 48px;
        height: 48px;
    }

    .drive-grid {
        grid-template-columns: 1fr;
    }

    .roi-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

    .hero-right {
        height: 50vh;
        margin-top: var(--space-xl);
    }

    .marquee-track {
        flex-direction: row;
        padding: 0 32px;
        align-items: center;
        height: 100%;
        width: max-content;
    }

    .marquee-item {
        width: 300px;
        aspect-ratio: 3/4;
    }

    .roi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .navbar .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

    .footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 1024px) {
    .marquee-item {
        aspect-ratio: 16 / 16;
    }
}

/* Disable custom cursor on touch devices */
@media (pointer: coarse) {
    body, .btn, .social-link, .project-card, .scroll-to-top, .tilt-card, a, button, [role="button"] {
        cursor: auto !important;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}