/* ============================================
   NuraCode - Boutique Software Agency
   Premium design inspired by Jords.co.uk
   ============================================ */

/* CSS Custom Properties / Theme Variables */
:root {
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-max: 1400px;
    --container-padding: 2rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 800ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --color-bg: #0a0a0b;
    --color-bg-elevated: #141416;
    --color-bg-subtle: #1a1a1e;
    --color-surface: #1e1e23;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    --color-text-muted: rgba(255, 255, 255, 0.35);

    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --color-accent-subtle: rgba(99, 102, 241, 0.15);

    --color-gradient-1: #667eea;
    --color-gradient-2: #764ba2;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);

    --blob-opacity: 0.15;

    /* Grid background */
    --grid-color: rgba(255, 255, 255, 0.03);
    --dot-color: rgba(255, 255, 255, 0.04);
}

/* Light Theme */
[data-theme="light"] {
    --color-bg: #fafafa;
    --color-bg-elevated: #ffffff;
    --color-bg-subtle: #f5f5f5;
    --color-surface: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);

    --color-text: #0a0a0b;
    --color-text-secondary: rgba(0, 0, 0, 0.7);
    --color-text-tertiary: rgba(0, 0, 0, 0.5);
    --color-text-muted: rgba(0, 0, 0, 0.35);

    --color-accent: #4f46e5;
    --color-accent-hover: #6366f1;
    --color-accent-subtle: rgba(79, 70, 229, 0.1);

    --color-gradient-1: #667eea;
    --color-gradient-2: #764ba2;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    --blob-opacity: 0.3;

    /* Grid background */
    --grid-color: rgba(0, 0, 0, 0.03);
    --dot-color: rgba(0, 0, 0, 0.03);
}

/* ============================================
   Base Styles & Reset
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    position: relative;
}

/* Architectural Grid Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Dot grid overlay for extra texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* Ensure all sections are above grid */
section, nav, footer, header {
    position: relative;
    z-index: 1;
}

/* Grid background for sections with solid backgrounds */
.portfolio,
.why-us,
.bento-section,
.team-section,
.services,
.tech-stack,
.testimonials,
.get-started,
.footer {
    position: relative;
    overflow: hidden;
}

.portfolio::before,
.why-us::before,
.bento-section::before,
.team-section::before,
.services::before,
.tech-stack::before,
.testimonials::before,
.get-started::before,
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
}

.portfolio::after,
.why-us::after,
.bento-section::after,
.team-section::after,
.services::after,
.tech-stack::after,
.testimonials::after,
.get-started::after,
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

em {
    font-style: italic;
    color: var(--color-accent);
}

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

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-text);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(0);
    transition: transform var(--transition-base), background-color var(--transition-slow);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    left: 0;
    transition: transform var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xlarge {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-text {
    position: relative;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.nav-cta {
    padding: 0.75rem 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Animated gradient overlay */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(79, 172, 254, 0.06) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
}

/* Floating grid pattern */
.hero-background::after {
    content: '';
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFloat 30s linear infinite;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center center;
}

[data-theme="dark"] .hero-background::after {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--blob-opacity);
    animation: blobFloat 20s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
    top: -200px;
    right: -100px;
    animation: blobFloat1 25s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -100px;
    left: -100px;
    animation: blobFloat2 20s ease-in-out infinite;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 40%;
    left: 50%;
    animation: blobFloat3 22s ease-in-out infinite;
    animation-delay: -10s;
}

/* Blob 1 - large sweeping motion */
@keyframes blobFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: var(--blob-opacity);
    }
    25% {
        transform: translate(-80px, 60px) scale(1.1) rotate(10deg);
        opacity: calc(var(--blob-opacity) * 0.8);
    }
    50% {
        transform: translate(-40px, -40px) scale(0.9) rotate(-5deg);
        opacity: var(--blob-opacity);
    }
    75% {
        transform: translate(60px, 30px) scale(1.05) rotate(5deg);
        opacity: calc(var(--blob-opacity) * 0.9);
    }
}

/* Blob 2 - opposite motion pattern */
@keyframes blobFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(100px, -50px) scale(1.15) rotate(-15deg);
    }
    40% {
        transform: translate(50px, 80px) scale(0.85) rotate(10deg);
    }
    60% {
        transform: translate(-30px, 40px) scale(1.1) rotate(-5deg);
    }
    80% {
        transform: translate(70px, -20px) scale(0.95) rotate(8deg);
    }
}

/* Blob 3 - circular floating motion */
@keyframes blobFloat3 {
    0%, 100% {
        transform: translate(-50%, 0) scale(1);
    }
    25% {
        transform: translate(calc(-50% + 80px), -60px) scale(1.2);
    }
    50% {
        transform: translate(calc(-50% - 60px), 40px) scale(0.8);
    }
    75% {
        transform: translate(calc(-50% + 40px), 80px) scale(1.1);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.1) rotate(2deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.95) rotate(-2deg);
    }
}

/* Grid floating animation */
@keyframes gridFloat {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px);
    }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 20%;
    width: 6px;
    height: 6px;
    animation-delay: -2s;
    animation-duration: 22s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    width: 3px;
    height: 3px;
    animation-delay: -4s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 80%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    width: 5px;
    height: 5px;
    animation-delay: -8s;
    animation-duration: 24s;
}

.particle:nth-child(6) {
    top: 50%;
    left: 90%;
    width: 3px;
    height: 3px;
    animation-delay: -10s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    top: 70%;
    left: 40%;
    animation-delay: -12s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    top: 40%;
    left: 30%;
    width: 5px;
    height: 5px;
    animation-delay: -14s;
    animation-duration: 19s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -100px) scale(1);
        opacity: 0.2;
    }
    75% {
        transform: translate(40px, -30px) scale(1.3);
        opacity: 0.5;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .blob,
    .hero-background::before,
    .hero-background::after,
    .particle {
        animation: none;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.hero-tagline {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.window-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.window-content {
    padding: var(--space-lg);
}

.window-content pre {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.window-content .keyword { color: #c678dd; }
.window-content .variable { color: #e5c07b; }
.window-content .property { color: #61afef; }
.window-content .string { color: #98c379; }
.window-content .function { color: #c678dd; }

[data-theme="light"] .window-content .keyword { color: #a626a4; }
[data-theme="light"] .window-content .variable { color: #c18401; }
[data-theme="light"] .window-content .property { color: #4078f2; }
[data-theme="light"] .window-content .string { color: #50a14f; }
[data-theme="light"] .window-content .function { color: #a626a4; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ============================================
   Portfolio Section - Stacked Cards
   ============================================ */

.portfolio {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-subtle);
}

.card-stack-container {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    perspective: 1500px;
    cursor: grab;
}

.card-stack:active {
    cursor: grabbing;
}

.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.stack-card-inner {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: 1fr auto;
    box-shadow: var(--shadow-lg);
}

/* Card positions in stack - visible spread effect */
.stack-card[data-position="0"] {
    z-index: 10;
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
}

.stack-card[data-position="1"] {
    z-index: 9;
    transform: translateX(24px) translateY(16px) scale(0.98);
    opacity: 1;
}

.stack-card[data-position="2"] {
    z-index: 8;
    transform: translateX(48px) translateY(32px) scale(0.96);
    opacity: 1;
}

.stack-card[data-position="3"] {
    z-index: 7;
    transform: translateX(72px) translateY(48px) scale(0.94);
    opacity: 0.95;
}

.stack-card[data-position="4"] {
    z-index: 6;
    transform: translateX(96px) translateY(64px) scale(0.92);
    opacity: 0.85;
}

/* Cards at the back of the deck (already swiped) */
.stack-card[data-position="back-1"] {
    z-index: 1;
    transform: translateX(96px) translateY(64px) scale(0.92);
    opacity: 0.6;
    pointer-events: none;
}

.stack-card[data-position="back-2"] {
    z-index: 0;
    transform: translateX(96px) translateY(64px) scale(0.90);
    opacity: 0.4;
    pointer-events: none;
}

.stack-card[data-position="hidden"] {
    z-index: 0;
    transform: translateX(96px) translateY(64px) scale(0.90);
    opacity: 0;
    pointer-events: none;
}

/* Swipe animation - card goes UNDER the deck */
.stack-card.swiping-under {
    z-index: 0 !important;
    transform: translateX(50px) translateY(72px) scale(0.88) !important;
    opacity: 0.4 !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Card coming back on top from the back */
.stack-card.coming-top {
    z-index: 11 !important;
    transform: translateX(0) translateY(0) scale(1) !important;
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Card Image/Screenshot Section */
.stack-card-image {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.stack-card-screenshot {
    width: 100%;
    aspect-ratio: 1;
    max-width: 280px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.stack-card-screenshot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.screenshot-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.screenshot-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    display: block;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.screenshot-tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Card Quote Section */
.stack-card-quote {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.4;
    color: var(--color-text);
}

/* Card Footer */
.stack-card-footer {
    grid-row: 2 / 3;
    grid-column: 1 / -1;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.client-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.client-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

.client-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

.client-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
}

.logo-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Stack Pagination */
.stack-pagination {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

.stack-dots {
    display: flex;
    gap: var(--space-sm);
}

.stack-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.stack-dot:hover {
    background: var(--color-text-tertiary);
}

.stack-dot.active {
    background: var(--color-accent);
    width: 32px;
}

/* Drag hint */
.card-stack::after {
    content: 'Swipe to explore';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-stack:hover::after {
    opacity: 1;
}

/* Responsive Stacked Cards */
@media (max-width: 900px) {
    .card-stack {
        height: auto;
        min-height: 600px;
    }

    .stack-card-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .stack-card-image {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }

    .stack-card-quote {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        padding: var(--space-lg);
    }

    .stack-card-footer {
        grid-row: 3 / 4;
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .stack-card-screenshot {
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .card-stack {
        min-height: 550px;
    }

    .stack-card[data-position="1"],
    .stack-card[data-position="2"],
    .stack-card[data-position="3"] {
        transform: translateY(10px) scale(0.98);
    }

    .stack-card-footer {
        padding: var(--space-md);
    }

    .client-logo {
        display: none;
    }
}

/* ============================================
   Why Us Section - Accordion Style
   ============================================ */

.why-us {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-subtle);
}

.accordion-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-xl);
}

.accordion-item {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-bottom: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-item:first-child {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.accordion-item:last-child {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border-bottom: 1px solid var(--color-border);
}

.accordion-item:hover {
    background: var(--color-bg-elevated);
    z-index: 2;
}

.accordion-item:hover .accordion-line {
    transform: scaleX(1);
}

.accordion-item:hover .accordion-icon .icon-line:last-child {
    transform: rotate(0deg);
}

.accordion-item:hover .accordion-content {
    max-height: 200px;
    opacity: 1;
    padding-bottom: var(--space-xl);
}

.accordion-item:hover .accordion-number {
    color: var(--color-accent);
    transform: translateX(8px);
}

/* Accordion Header */
.accordion-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
    cursor: pointer;
}

.accordion-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-text-muted);
    min-width: 80px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-title-group {
    flex: 1;
}

.accordion-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-base);
}

.accordion-item:hover .accordion-title {
    color: var(--color-accent);
}

.accordion-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* Accordion Icon (Plus/Minus) */
.accordion-icon {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}

.icon-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--color-text-tertiary);
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.icon-line:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-body {
    padding: 0 var(--space-2xl) 0 calc(80px + var(--space-xl) + var(--space-2xl));
}

.accordion-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

.accordion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.accordion-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.accordion-item:hover .accordion-tag {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Animated Accent Line */
.accordion-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gradient-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Staggered animation delays */
.accordion-item[data-accordion="2"].visible {
    transition-delay: 0.1s;
}

.accordion-item[data-accordion="3"].visible {
    transition-delay: 0.2s;
}

/* Responsive Accordion */
@media (max-width: 768px) {
    .accordion-header {
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .accordion-number {
        min-width: 50px;
        font-size: 1.5rem;
    }

    .accordion-body {
        padding: 0 var(--space-lg) 0 calc(50px + var(--space-md) + var(--space-lg));
    }

    .accordion-text {
        font-size: 1rem;
    }

    .accordion-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .accordion-header {
        flex-wrap: wrap;
    }

    .accordion-number {
        min-width: auto;
    }

    .accordion-title-group {
        flex-basis: calc(100% - 70px);
    }

    .accordion-body {
        padding: 0 var(--space-lg);
    }
}

/* ============================================
   Bento Grid Section
   ============================================ */

.bento-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* Bento Card Base */
.bento-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.bento-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-card:hover .bento-circle {
    transform: translate(var(--scatter-x, 0), var(--scatter-y, 0)) scale(1.1);
    opacity: 0.6;
}

/* Decorative Circles */
.bento-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bento-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.15;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-circle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -40px;
    --scatter-x: 20px;
    --scatter-y: -20px;
}

.bento-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    --scatter-x: -15px;
    --scatter-y: 15px;
}

.bento-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 20%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    --scatter-x: 10px;
    --scatter-y: -10px;
}

.bento-circle:nth-child(4) {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 30%;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    --scatter-x: -8px;
    --scatter-y: 12px;
}

/* Bento Content */
.bento-content {
    position: relative;
    z-index: 1;
}

/* Card Sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bento-feature {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 160px;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 140px;
}

/* Stat Typography */
.bento-stat {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 5rem);
    line-height: 1;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-sm);
}

.bento-stat-small {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-text);
    display: block;
}

.bento-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-xs);
}

.bento-label-small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: block;
    margin-top: var(--space-xs);
}

.bento-detail {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    display: block;
    margin-top: var(--space-xs);
    opacity: 0.8;
}

.bento-small-detailed {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
}

.bento-small-detailed .bento-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.bento-small-highlight {
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(67, 233, 123, 0.08) 100%);
    border-color: rgba(67, 233, 123, 0.2);
}

.bento-small-highlight .bento-stat-small {
    color: #43e97b;
}

.bento-small-highlight:hover {
    border-color: rgba(67, 233, 123, 0.4);
}

.bento-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

/* Feature Cards */
.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-lg);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.bento-icon svg {
    width: 24px;
    height: 24px;
}

.bento-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-xs);
}

.bento-feature-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Tech Tags */
.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.bento-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.bento-card:hover .bento-tag {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Client Outcomes Grid */
.bento-outcomes {
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(67, 233, 123, 0.05) 100%);
}

.bento-outcomes-grid {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.outcome-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: var(--space-xl);
    border-right: 1px solid var(--color-border);
}

.outcome-item:last-child {
    border-right: none;
    padding-right: 0;
}

.outcome-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: #43e97b;
    line-height: 1.1;
}

.outcome-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.bento-outcomes:hover .outcome-value {
    color: #38f9d7;
}

.bento-outcomes:hover .outcome-item {
    border-color: rgba(67, 233, 123, 0.3);
}

/* Full-width Banner Card */
.bento-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
    background: var(--color-bg-elevated);
    min-height: auto;
}

.banner-logo {
    flex-shrink: 0;
}

.banner-logo-grid {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Grid pattern background */
.banner-logo-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
}

.banner-logo-grid svg {
    width: 40px;
    height: 40px;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex: 1;
}

.banner-headline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.banner-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
    flex-shrink: 0;
}

.banner-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-width: 600px;
}

/* Bento Animated Background (Large Card) */
.bento-animated {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-elevated) 100%);
}

.bento-animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Animated grid lines */
.bento-grid-lines {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: bentoGridMove 20s linear infinite;
    transform: perspective(500px) rotateX(60deg) rotateZ(-45deg);
}

[data-theme="dark"] .bento-grid-lines {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.12) 1px, transparent 1px);
}

@keyframes bentoGridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) rotateZ(-45deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) rotateZ(-45deg) translateY(40px);
    }
}

/* Pulsing rings */
.bento-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: bentoPulse 4s ease-out infinite;
}

.bento-pulse-ring-2 {
    animation-delay: 2s;
}

@keyframes bentoPulse {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.4;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Floating dots */
.bento-floating-dots {
    position: absolute;
    inset: 0;
}

.bento-floating-dots span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: bentoFloat 8s ease-in-out infinite;
}

.bento-floating-dots span:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.bento-floating-dots span:nth-child(2) {
    top: 60%;
    left: 80%;
    width: 8px;
    height: 8px;
    animation-delay: -1.5s;
}

.bento-floating-dots span:nth-child(3) {
    top: 80%;
    left: 25%;
    width: 4px;
    height: 4px;
    animation-delay: -3s;
}

.bento-floating-dots span:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: -4.5s;
}

.bento-floating-dots span:nth-child(5) {
    top: 70%;
    left: 50%;
    width: 5px;
    height: 5px;
    animation-delay: -6s;
}

.bento-floating-dots span:nth-child(6) {
    top: 15%;
    left: 45%;
    width: 4px;
    height: 4px;
    animation-delay: -7s;
}

@keyframes bentoFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(15px, -20px) scale(1.3);
        opacity: 0.7;
    }
    50% {
        transform: translate(-10px, -40px) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translate(20px, -15px) scale(1.2);
        opacity: 0.6;
    }
}

/* Hover state intensifies animation */
.bento-animated:hover .bento-grid-lines {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
}

.bento-animated:hover .bento-floating-dots span {
    opacity: 0.7;
}

.bento-animated:hover .bento-pulse-ring {
    border-color: var(--color-accent);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .bento-grid-lines,
    .bento-pulse-ring,
    .bento-floating-dots span {
        animation: none;
    }

    .bento-pulse-ring {
        opacity: 0.1;
        width: 200px;
        height: 200px;
    }
}

/* Bento Background Image */
.bento-has-bg {
    position: relative;
}

.bento-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transition: all var(--transition-base);
}

.bento-has-bg:hover .bento-bg-image {
    opacity: 0.3;
    transform: scale(1.05);
}

.bento-has-bg .bento-content {
    position: relative;
    z-index: 2;
}

/* Bento Feature with Image */
.bento-feature-with-image {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.bento-feature-image {
    flex-shrink: 0;
}

.bento-team-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

.bento-feature-with-image:hover .bento-team-img {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

/* Bento Partner Logos */
.bento-partner-logos {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    opacity: 0.3;
    transition: opacity var(--transition-base);
}

.bento-wide:hover .bento-partner-logos {
    opacity: 0.6;
}

.bento-partner-logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

[data-theme="dark"] .bento-partner-logos img {
    filter: grayscale(100%) brightness(2);
}

.bento-wide:hover .bento-partner-logos img {
    filter: none;
}

[data-theme="dark"] .bento-wide:hover .bento-partner-logos img {
    filter: brightness(1.5);
}

/* Banner Project Images */
.banner-images {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.banner-project-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid var(--color-border);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.bento-banner:hover .banner-project-img {
    opacity: 1;
    border-color: var(--color-accent);
}

.bento-banner:hover .banner-project-img:nth-child(1) {
    transform: translateY(-4px) rotate(-3deg);
}

.bento-banner:hover .banner-project-img:nth-child(2) {
    transform: translateY(-8px);
}

.bento-banner:hover .banner-project-img:nth-child(3) {
    transform: translateY(-4px) rotate(3deg);
}

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

    .bento-large {
        grid-column: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

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

    .bento-large,
    .bento-medium,
    .bento-small,
    .bento-feature,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-stat {
        font-size: 3rem;
    }

    .bento-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .banner-content {
        flex-direction: column;
        gap: var(--space-md);
    }

    .banner-headline {
        white-space: normal;
    }

    .banner-divider {
        width: 60px;
        height: 1px;
    }

    .banner-description {
        font-size: 1rem;
    }

    .banner-images {
        order: -1;
        justify-content: center;
    }

    .banner-project-img {
        width: 48px;
        height: 48px;
    }

    .bento-outcomes-grid {
        flex-direction: column;
        gap: var(--space-md);
    }

    .outcome-item {
        flex-direction: row;
        align-items: baseline;
        gap: var(--space-sm);
        padding-right: 0;
        padding-bottom: var(--space-sm);
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .outcome-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .outcome-value {
        font-size: 1.5rem;
    }

    .bento-feature-with-image {
        flex-direction: column;
    }

    .bento-team-img {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   Team Marquee
   ============================================ */

.team-section {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.team-marquee {
    margin-top: var(--space-xl);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: var(--space-lg);
    animation: marquee 40s linear infinite;
    width: max-content;
}

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

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    min-width: 180px;
    transition: all var(--transition-fast);
}

.team-member:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
}

.member-name {
    font-weight: 500;
    font-size: 0.9375rem;
}

.member-role {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Services Section - Stacked Cards
   ============================================ */

.services {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-subtle);
}

.steps-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* Step Card */
.step-card {
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card[data-step="2"].visible {
    transition-delay: 0.15s;
}

.step-card[data-step="3"].visible {
    transition-delay: 0.3s;
}

.step-card-inner {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.step-card:hover .step-card-inner {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Step Card Animated Backgrounds */
.step-card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: var(--radius-xl);
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.step-card:hover .step-card-bg {
    opacity: 1;
}

/* Step 1: Discovery - Orbiting dots + radar sweep */
.step-orbit {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 200px;
    height: 200px;
    transform: translate(50%, -50%);
    border: 1px dashed var(--color-border);
    border-radius: 50%;
    animation: orbitSpin 30s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-dot:nth-child(1) {
    transform: translate(-50%, -50%) translateX(100px);
}

.orbit-dot:nth-child(2) {
    transform: translate(-50%, -50%) translateX(100px) rotate(120deg);
    transform-origin: 0 0;
    background: #f093fb;
}

.orbit-dot:nth-child(3) {
    transform: translate(-50%, -50%) translateX(100px) rotate(240deg);
    transform-origin: 0 0;
    background: #4facfe;
}

.step-radar {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 200px;
    height: 200px;
    transform: translate(50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(99, 102, 241, 0.15) 60deg, transparent 120deg);
    animation: radarSweep 4s linear infinite;
}

@keyframes orbitSpin {
    from { transform: translate(50%, -50%) rotate(0deg); }
    to { transform: translate(50%, -50%) rotate(360deg); }
}

@keyframes radarSweep {
    from { transform: translate(50%, -50%) rotate(0deg); }
    to { transform: translate(50%, -50%) rotate(360deg); }
}

/* Step 2: Design - Floating blocks */
.step-blocks {
    position: absolute;
    inset: 0;
}

.step-blocks .block {
    position: absolute;
    border-radius: var(--radius-md);
    opacity: 0.15;
    animation: blockFloat 12s ease-in-out infinite;
}

.step-blocks .block:nth-child(1) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.step-blocks .block:nth-child(2) {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 60%;
    right: 25%;
    animation-delay: -2s;
}

.step-blocks .block:nth-child(3) {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    top: 30%;
    right: 35%;
    animation-delay: -4s;
}

.step-blocks .block:nth-child(4) {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #fa709a, #fee140);
    top: 70%;
    right: 8%;
    animation-delay: -6s;
}

.step-blocks .block:nth-child(5) {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 15%;
    right: 45%;
    animation-delay: -8s;
}

.step-blocks .block:nth-child(6) {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    right: 50%;
    animation-delay: -10s;
}

@keyframes blockFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translate(-15px, -20px) rotate(5deg) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translate(10px, -10px) rotate(-3deg) scale(0.95);
        opacity: 0.2;
    }
    75% {
        transform: translate(-5px, 15px) rotate(8deg) scale(1.05);
        opacity: 0.3;
    }
}

.step-card:hover .step-blocks .block {
    opacity: 0.35;
}

/* Step 3: Build & Ship - Launch animation */
.step-launch {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
}

.launch-trail {
    position: absolute;
    width: 4px;
    height: 120px;
    background: linear-gradient(to top, transparent, #43e97b, transparent);
    left: 50%;
    transform: translateX(-50%);
    animation: launchTrail 2s ease-in-out infinite;
}

.launch-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid #43e97b;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: launchRing 2s ease-out infinite;
}

.launch-ring-2 {
    animation-delay: 1s;
}

@keyframes launchTrail {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-40px);
    }
}

@keyframes launchRing {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.6;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

.step-card:hover .launch-trail {
    background: linear-gradient(to top, transparent, #38f9d7, transparent);
}

.step-card:hover .launch-ring {
    border-color: #38f9d7;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .step-orbit,
    .step-radar,
    .step-blocks .block,
    .launch-trail,
    .launch-ring {
        animation: none;
    }

    .launch-ring {
        opacity: 0.2;
        width: 80px;
        height: 80px;
    }
}

/* Card Content */
.step-card-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    min-height: 280px;
}

/* Number Badge */
.step-number-badge {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Grid pattern on badge */
.step-number-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
}

.step-number-badge span {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text-tertiary);
    position: relative;
    z-index: 1;
}

/* Step Text */
.step-text {
    flex: 1;
    max-width: 500px;
}

.step-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.step-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Step Visuals */
.step-visuals {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Visual Collage */
.visual-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    width: 280px;
    transform: rotate(-5deg);
}

.collage-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.collage-item:nth-child(1) { transform: rotate(3deg); }
.collage-item:nth-child(2) { transform: rotate(-2deg) translateY(10px); }
.collage-item:nth-child(3) { transform: rotate(-3deg) translateY(-5px); }
.collage-item:nth-child(4) { transform: rotate(2deg); }

.step-card:hover .collage-item:nth-child(1) { transform: rotate(5deg) scale(1.05); }
.step-card:hover .collage-item:nth-child(2) { transform: rotate(-4deg) translateY(10px) scale(1.05); }
.step-card:hover .collage-item:nth-child(3) { transform: rotate(-5deg) translateY(-5px) scale(1.05); }
.step-card:hover .collage-item:nth-child(4) { transform: rotate(4deg) scale(1.05); }

/* Visual Code */
.visual-code {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    transform: rotate(2deg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.step-card:hover .visual-code {
    transform: rotate(0deg) scale(1.02);
}

.code-line {
    white-space: nowrap;
}

.code-keyword { color: #c678dd; }
.code-func { color: #61afef; }
.code-string { color: #98c379; }

[data-theme="light"] .code-keyword { color: #a626a4; }
[data-theme="light"] .code-func { color: #4078f2; }
[data-theme="light"] .code-string { color: #50a14f; }

/* Card Footer */
.step-card-footer {
    padding: var(--space-lg) var(--space-2xl);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.step-link:hover {
    color: var(--color-text);
}

.step-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.step-link:hover svg {
    transform: translate(3px, -3px);
}

/* Responsive Steps */
@media (max-width: 900px) {
    .step-card-content {
        flex-direction: column;
        min-height: auto;
    }

    .step-visuals {
        justify-content: flex-start;
        margin-top: var(--space-lg);
    }

    .visual-collage {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .step-card-content {
        padding: var(--space-xl);
    }

    .step-number-badge {
        width: 56px;
        height: 56px;
    }

    .step-number-badge span {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.75rem;
    }

    .step-card-footer {
        padding: var(--space-md) var(--space-xl);
    }

    .visual-collage {
        display: none;
    }

    .visual-code {
        font-size: 0.75rem;
        padding: var(--space-md);
    }
}

/* ============================================
   Tech Stack
   ============================================ */

.tech-stack {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-subtle);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

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

.tech-category-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-md);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.tech-item {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ============================================
   Stats Section
   ============================================ */

.stats {
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1;
    color: var(--color-text);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-accent);
}

.stat-label {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-subtle);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.author-title {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Get Started Section
   ============================================ */

.get-started {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

/* Get Started Animated Background */
.get-started-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Central glow */
.cta-glow {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: ctaGlowPulse 4s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Perspective grid */
.cta-grid {
    position: absolute;
    bottom: 0;
    left: -50%;
    right: -50%;
    height: 60%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    animation: ctaGridMove 20s linear infinite;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
}

[data-theme="dark"] .cta-grid {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
}

@keyframes ctaGridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 60px;
    }
}

/* Radiating rays */
.cta-rays {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 300px;
}

.ray {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 200px;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.3), transparent);
    transform-origin: bottom center;
    animation: rayShoot 3s ease-out infinite;
}

.ray:nth-child(1) {
    transform: translateX(-50%) rotate(-30deg);
    animation-delay: 0s;
}

.ray:nth-child(2) {
    transform: translateX(-50%) rotate(-15deg);
    animation-delay: 0.5s;
}

.ray:nth-child(3) {
    transform: translateX(-50%) rotate(0deg);
    animation-delay: 0.2s;
}

.ray:nth-child(4) {
    transform: translateX(-50%) rotate(15deg);
    animation-delay: 0.7s;
}

.ray:nth-child(5) {
    transform: translateX(-50%) rotate(30deg);
    animation-delay: 0.4s;
}

@keyframes rayShoot {
    0% {
        opacity: 0;
        height: 0;
    }
    20% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        height: 250px;
    }
}

/* Rising particles */
.cta-particles {
    position: absolute;
    inset: 0;
}

.cta-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: ctaParticleRise 6s ease-out infinite;
}

.cta-particles span:nth-child(1) {
    left: 20%;
    bottom: 10%;
    animation-delay: 0s;
}

.cta-particles span:nth-child(2) {
    left: 35%;
    bottom: 5%;
    width: 6px;
    height: 6px;
    animation-delay: 1s;
}

.cta-particles span:nth-child(3) {
    left: 50%;
    bottom: 15%;
    animation-delay: 2s;
}

.cta-particles span:nth-child(4) {
    left: 65%;
    bottom: 8%;
    width: 5px;
    height: 5px;
    animation-delay: 0.5s;
}

.cta-particles span:nth-child(5) {
    left: 80%;
    bottom: 12%;
    animation-delay: 1.5s;
}

.cta-particles span:nth-child(6) {
    left: 25%;
    bottom: 20%;
    width: 3px;
    height: 3px;
    animation-delay: 2.5s;
}

.cta-particles span:nth-child(7) {
    left: 55%;
    bottom: 5%;
    animation-delay: 3s;
}

.cta-particles span:nth-child(8) {
    left: 75%;
    bottom: 18%;
    width: 5px;
    height: 5px;
    animation-delay: 3.5s;
}

@keyframes ctaParticleRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    10% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.3);
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .cta-glow,
    .cta-grid,
    .ray,
    .cta-particles span {
        animation: none;
    }

    .cta-glow {
        opacity: 0.5;
    }

    .ray {
        opacity: 0.1;
        height: 150px;
    }
}

.steps-timeline {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(100% + var(--space-lg));
    width: calc(var(--space-2xl) - var(--space-lg) * 2);
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), var(--color-border));
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.step-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin-top: var(--space-xl);
}

.cta-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
}

.footer-tagline {
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-sm);
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-text);
}

.footer-times {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.time-zone {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.time-label {
    color: var(--color-text-tertiary);
}

.time-value {
    font-family: 'SF Mono', monospace;
    color: var(--color-text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--color-text);
}

/* ============================================
   Back to Top
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}

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

.back-to-top:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Floating Bottom Bar
   ============================================ */

.floating-bar {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.floating-bar.visible {
    opacity: 1;
    visibility: visible;
}

.floating-bar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Theme Toggle in Floating Bar */
.floating-theme-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.floating-theme-toggle:hover {
    background: var(--color-accent-subtle);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.floating-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Navigation Links */
.floating-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0 var(--space-md);
}

.floating-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.floating-link:hover {
    color: var(--color-text);
    background: var(--color-bg-subtle);
}

/* CTA Button */
.floating-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.floating-cta:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.floating-cta-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.floating-cta-text {
    display: flex;
    flex-direction: column;
    padding-right: var(--space-sm);
}

.floating-cta-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.floating-cta-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.2;
}

/* Responsive Floating Bar */
@media (max-width: 900px) {
    .floating-nav {
        display: none;
    }

    .floating-theme-toggle {
        display: none;
    }

    .floating-bar-inner {
        padding: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .floating-bar {
        left: var(--space-md);
        right: var(--space-md);
        transform: none;
        bottom: var(--space-md);
    }

    .floating-bar-inner {
        width: 100%;
        justify-content: center;
    }

    .floating-cta {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   Animations
   ============================================ */

.animate-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    animation: blurReveal 0.8s ease forwards;
}

.animate-blur:nth-child(2) { animation-delay: 0.1s; }

@keyframes blurReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide {
    opacity: 0;
    transform: translateY(40px);
}

.animate-slide.visible {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Styles
   ============================================ */

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

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .steps-timeline {
        flex-direction: column;
        align-items: center;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .portfolio-card {
        width: 300px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .stat-item {
        padding: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   MVP Roadmap Visual (Hero)
   ============================================ */

.mvp-roadmap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

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

.roadmap-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 8px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent), #43e97b);
    border-radius: var(--radius-full);
    animation: progressFill 2s ease-out 0.5s forwards;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #43e97b;
    text-align: right;
    display: block;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-left: var(--space-sm);
    border-left: 2px solid var(--color-border);
    margin-left: var(--space-sm);
}

.roadmap-checkpoint {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    opacity: 0;
    transform: translateX(-10px);
    animation: checkpointReveal 0.4s ease-out forwards;
}

.roadmap-checkpoint:nth-child(1) { animation-delay: 0.8s; }
.roadmap-checkpoint:nth-child(2) { animation-delay: 1.2s; }
.roadmap-checkpoint:nth-child(3) { animation-delay: 1.6s; }
.roadmap-checkpoint:nth-child(4) { animation-delay: 2s; }

@keyframes checkpointReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.checkpoint-marker {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(-1 * var(--space-sm) - 17px);
    flex-shrink: 0;
    color: white;
}

.checkpoint-marker svg {
    width: 16px;
    height: 16px;
}

.roadmap-checkpoint.completed .checkpoint-marker {
    background: #43e97b;
}

.roadmap-checkpoint.final .checkpoint-marker {
    background: linear-gradient(135deg, var(--color-accent), #43e97b);
    box-shadow: 0 0 20px rgba(67, 233, 123, 0.4);
}

.checkpoint-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkpoint-week {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkpoint-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

.roadmap-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
}

.shipped-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: var(--radius-full);
    color: #43e97b;
    font-size: 0.875rem;
    font-weight: 600;
}

.shipped-badge svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Risk Reversal Copy (Hero)
   ============================================ */

.hero-risk-reversal {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 600px;
}

.risk-reversal-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.risk-reversal-text::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #43e97b;
    border-radius: 50%;
    margin-right: var(--space-sm);
    vertical-align: middle;
}

/* ============================================
   Trust Strip Module
   ============================================ */

.trust-strip {
    padding: var(--space-xl) 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.trust-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.trust-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.trust-logo-grid {
    display: flex;
    gap: var(--space-sm);
}

.trust-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.trust-logo:hover {
    transform: scale(1.1);
}

.trust-logo span {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.trust-testimonial {
    flex: 1;
    max-width: 500px;
    padding-left: var(--space-xl);
    border-left: 2px solid var(--color-accent);
}

.trust-quote {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0 0 var(--space-sm) 0;
}

.trust-attribution {
    display: flex;
    align-items: center;
}

.trust-author {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* Trust Strip Responsive */
@media (max-width: 1024px) {
    .trust-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }

    .trust-logos {
        flex-direction: column;
        gap: var(--space-md);
    }

    .trust-testimonial {
        border-left: none;
        border-top: 2px solid var(--color-accent);
        padding-left: 0;
        padding-top: var(--space-lg);
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .trust-logo-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .trust-logo {
        width: 40px;
        height: 40px;
    }

    .trust-logo span {
        font-size: 0.75rem;
    }

    .trust-quote {
        font-size: 1rem;
    }
}

/* Hero Risk Reversal Responsive */
@media (max-width: 1024px) {
    .hero-risk-reversal {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* MVP Roadmap Responsive - Show on desktop only by default */
@media (max-width: 1024px) {
    .mvp-roadmap {
        display: none;
    }
}

/* ============================================
   Hero Badge (MVP-ASAP)
   ============================================ */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

/* ============================================
   Why Most MVPs Fail Section
   ============================================ */

.why-fail {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

.fail-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.fail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.fail-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.fail-x {
    font-size: 1.5rem;
    color: #ef4444;
    font-weight: 700;
}

.fail-title {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.fail-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.fail-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

.fail-statement {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .fail-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Section Subhead
   ============================================ */

.section-subhead {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
    max-width: 600px;
}

.section-header.centered .section-subhead {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Project Metadata Chips
   ============================================ */

.project-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.stack-card:hover .meta-chip {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ============================================
   Hero Pricing (Above the fold)
   ============================================ */

.hero-pricing {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1), rgba(56, 249, 215, 0.1));
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.hero-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #43e97b;
}

.hero-price-detail {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-elevated);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.pricing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-featured {
    border-color: var(--color-accent);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.pricing-tier {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-sm);
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

.pricing-value {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    display: block;
    margin-top: var(--space-sm);
}

.pricing-body {
    flex: 1;
}

.pricing-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    position: relative;
    padding-left: var(--space-lg);
    padding-bottom: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-text);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: 600;
}

.pricing-footer {
    margin-top: var(--space-xl);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
}

.pricing-note p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-featured {
        order: -1;
    }
}

@media (max-width: 600px) {
    .hero-pricing {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
}

/* ============================================
   Image Element Styles
   ============================================ */

/* Logo Image */
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Trust Logo Images */
.trust-logo img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.trust-logo:hover img {
    filter: none;
    opacity: 1;
}

[data-theme="dark"] .trust-logo img {
    filter: grayscale(100%) brightness(1.2);
}

[data-theme="dark"] .trust-logo:hover img {
    filter: brightness(1.2);
}

/* Screenshot Images */
.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.stack-card-screenshot {
    overflow: hidden;
}

/* Client Avatar Images */
.client-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Logo Mark Images */
.logo-mark-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Team Member Avatar Images */
.member-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Author Avatar Images */
.author-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* ============================================
   Chat Widget
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-container {
    width: 380px;
    max-width: calc(100vw - var(--space-xl) * 2);
    height: 560px;
    max-height: calc(100vh - var(--space-xl) * 2 - 80px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.chat-status {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #43e97b;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-close:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.chat-close svg {
    width: 18px;
    height: 18px;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-message {
    display: flex;
    gap: var(--space-sm);
    max-width: 85%;
    animation: messageSlide 0.3s ease-out;
}

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.message-avatar.user-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.message-content {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: var(--color-bg-subtle);
    color: var(--color-text);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message.user .message-content {
    background: var(--color-accent);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

/* Quick Reply Buttons */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.quick-reply {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-reply:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* Typing Indicator */
.chat-typing {
    display: none;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-lg);
}

.chat-typing.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--color-text-tertiary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Chat Input */
.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.chat-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--color-text);
    resize: none;
    max-height: 120px;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.chat-input::placeholder {
    color: var(--color-text-tertiary);
}

.chat-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

.chat-send:active {
    transform: scale(0.95);
}

.chat-send svg {
    width: 18px;
    height: 18px;
}

/* Scheduler Panel */
.chat-scheduler {
    position: absolute;
    inset: 0;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    animation: schedulerSlide 0.3s ease-out;
}

@keyframes schedulerSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scheduler-header {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.scheduler-header h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.scheduler-header p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.scheduler-slots {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-slot:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.time-slot-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-slot-day {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.time-slot-time {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.time-slot-book {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.time-slot:hover .time-slot-book {
    opacity: 1;
}

.scheduler-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: transparent;
    border: none;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.scheduler-back:hover {
    color: var(--color-text);
}

.scheduler-back svg {
    width: 16px;
    height: 16px;
}

/* Booking Confirmation */
.booking-confirmed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    gap: var(--space-lg);
    flex: 1;
}

.booking-confirmed-icon {
    width: 64px;
    height: 64px;
    background: rgba(67, 233, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #43e97b;
}

.booking-confirmed-icon svg {
    width: 32px;
    height: 32px;
}

.booking-confirmed h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
}

.booking-confirmed p {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
    }

    .chat-container {
        width: 100%;
        max-width: none;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .chat-widget.active {
        transform: translateY(0) scale(1);
    }
}
