:root {
    /* Colors - ObraCore Light Theme */
    --primary: #ea580c;
    /* Orange 600 */
    --primary-hover: #c2410c;
    /* Orange 700 */
    --secondary: #d97706;
    /* Amber 600 */
    --bg-light: #ffffff;
    /* Pure white */
    --bg-soft: #f8fafc;
    /* Very light slate for sections */
    --bg-card: rgba(255, 255, 255, 0.8);
    /* Light glass */
    --bg-accent-light: rgba(234, 88, 12, 0.05);
    /* Very light orange tint */
    --text-main: #0f172a;
    /* Slate 900 - dark for readability */
    --text-muted: #64748b;
    /* Slate 500 - darker muted */
    --border: rgba(15, 23, 42, 0.1);
    /* Dark border on light bg */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(234, 88, 12, 0.15) 0%, transparent 70%);
    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Spacing */
    --container-width: 1200px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--gradient-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Backgrounds */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
}

.btn-outline {
    background: white;
    border: 2px solid var(--border);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--bg-accent-light);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
}

.logo span {
    font-family: 'Orbitron', sans-serif;
}

.logo-icon {
    color: var(--primary);
    fill: currentColor;
}

.obracore-logo {
    height: 40px;
    width: auto;
}

/* Footer specific overrides */
.footer .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer .obracore-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer .logo span {
    display: block;
    line-height: 1;
    padding-top: 4px;
    /* Optical vertical center for Orbitron font */
}

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

.nav-links a:not(.nav-btn-login) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-btn-login {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-btn-login:hover {
    border-color: var(--primary);
    background: var(--bg-accent-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.badge-container {
    margin-bottom: 1.5rem;
    /* Entry animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid rgba(234, 88, 12, 0.2);
    border-radius: 99px;
    font-size: 0.875rem;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* Entry animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    /* Entry animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    /* Entry animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.trust-badge {
    /* Entry animation */
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.1s forwards;
}

.trust-badge p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
}

/* 3D Sphere Area / Video Background */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    /* Entry animation */
    opacity: 0;
    animation: scaleIn 1s ease-out 0.6s forwards;
    justify-content: center;
}

.sphere-container {
    width: 100%;
    height: 100%;
}

/* Video Background Styling */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
}

/* Subtle overlay for better metric card visibility */
.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(234, 88, 12, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.metric-card {
    position: absolute;
    background: white;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    width: 160px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    /* Above video and sphere */
    /* Initial state for entry */
    opacity: 0;
}

.metric-card.top-right {
    top: 20%;
    right: 0;
    animation: float 6s ease-in-out 1.2s infinite, fadeInUp 0.8s ease-out 1.2s forwards;
}

.metric-card.bottom-left {
    bottom: 20%;
    left: 0;
    animation: float 6s ease-in-out 1.4s infinite, fadeInUp 0.8s ease-out 1.4s forwards;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Features Section */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.feature-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

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

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(234, 88, 12, 0.15);
    background: linear-gradient(180deg, var(--bg-accent-light) 0%, white 100%);
}

/* Staggered Delays for Grid Reveal */
.feature-card:nth-child(1) {
    transition-delay: 0ms;
}

.feature-card:nth-child(2) {
    transition-delay: 100ms;
}

.feature-card:nth-child(3) {
    transition-delay: 200ms;
}

.feature-card:nth-child(4) {
    transition-delay: 300ms;
}

.feature-card:nth-child(5) {
    transition-delay: 400ms;
}

.feature-card:nth-child(6) {
    transition-delay: 500ms;
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--bg-accent-light), #ffffff);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), #ffffff);
    border-color: rgba(234, 88, 12, 0.3);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    /* Force equal height for all cards */
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-features {
    margin-bottom: auto;
    /* Push content to top, button to bottom */
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-accent-light) 0%, white 100%);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Ensure it takes available space */
}

.pricing-features li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.pricing-features li i {
    width: 20px;
    color: var(--primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-muted);
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Hero Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .badge-container,
    .hero-title,
    .hero-subtitle,
    .hero-buttons,
    .trust-badge,
    .hero-visual,
    .metric-card,
    .feature-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Keep subtle hover effects */
    .feature-card.visible,
    .btn:hover {
        animation: none;
        transition: all 0.15s ease;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: white;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 400px;
    }

    .metric-card {
        transform: scale(0.8);
    }
}

/* Access Overlay Styles */
.access-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(248, 250, 252, 0.98);
    /* Solid light background to block content */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.access-box {
    background: white;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.access-box h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.access-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.access-box .input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-box input {
    background: var(--bg-soft);
    border: 2px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 99px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

.access-box input:focus {
    border-color: var(--primary);
}

.error-msg {
    color: #ef4444 !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.8rem !important;
    opacity: 0;
    transition: opacity 0.3s;
    height: 20px;
}

.access-box.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* --- Scrollytelling Section Styles --- */
.scrolly-section {
    position: relative;
    padding: 5rem 0;
    /* Extra space for scrolling */
}

.scrolly-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
}

/* Left Column: Steps */
.scrolly-text-col {
    position: relative;
    z-index: 10;
    padding-bottom: 0;
    /* Remove huge padding so it exits as a block right after step 4 finishes */
    margin-bottom: 0;
    /* Remove excess margin for tight block exit */
}

.step:last-child {
    margin-bottom: 0;
}

.step {
    position: sticky;
    padding: 2rem;
    margin-bottom: 4rem;
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(0.98) translateY(10px);
}

/* Staggered Tops - tightly packed headers (approx 100px) */
/* Base top: 15vh (matches roughly where visual starts) */
.step:nth-child(1) {
    top: 15vh;
    z-index: 1;
}

.step:nth-child(2) {
    top: calc(15vh + 100px);
    z-index: 2;
}

.step:nth-child(3) {
    top: calc(15vh + 200px);
    z-index: 3;
}

.step:nth-child(4) {
    top: calc(15vh + 300px);
    z-index: 4;
}

.step.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: var(--primary);
    box-shadow: 0 20px 50px -10px rgba(234, 88, 12, 0.15);
    z-index: 10;
}

/* Force z-index maintenance for sticky stacking */
.step:nth-child(1).active {
    z-index: 1;
}

.step:nth-child(2).active {
    z-index: 2;
}

.step:nth-child(3).active {
    z-index: 3;
}

.step:nth-child(4).active {
    z-index: 4;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.08);
    display: inline-block;
    margin-right: 1rem;
    vertical-align: middle;
}

.step-content h3 {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
    transition: opacity 0.3s ease, margin 0.3s ease;
}

.step:not(.active) .step-content p {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.step.active .step-content p {
    border-left-color: var(--primary);
    opacity: 1;
    height: auto;
}

/* Right Column: Sticky Mock */
.scrolly-visual-col {
    position: relative;
    height: 100%;
}

.sticky-wrapper {
    position: sticky;
    top: 20vh;
    height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mock Window Frame */
.mock-window {
    width: 100%;
    height: 100%;
    background: white;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.mock-header {
    height: 40px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
    background: var(--bg-soft);
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mock-dots span:nth-child(1) {
    background: #ef4444;
}

.mock-dots span:nth-child(2) {
    background: #eab308;
}

.mock-dots span:nth-child(3) {
    background: #22c55e;
}

.mock-addr {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 2px 10px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
    opacity: 0.8;
}

.mock-body {
    flex: 1;
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mock States */
.mock-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Prevent interaction blocking */
}

.mock-state.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* State 1: Scanning */
.doc-preview {
    width: 200px;
    height: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.doc-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
}

.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 2s linear infinite;
    z-index: 20;
}

.state-label {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* State 2: Extracted Rows */
.extracted-row {
    width: 80%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.mock-state.active .extracted-row {
    animation-play-state: running;
}

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

.row-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.bg-orange {
    background: rgba(234, 88, 12, 0.2);
}

.bg-blue {
    background: rgba(59, 130, 246, 0.2);
}

.bg-green {
    background: rgba(34, 197, 94, 0.2);
}

.row-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-lg {
    width: 60%;
    height: 8px;
    background: rgba(15, 23, 42, 0.15);
    border-radius: 4px;
}

.line-sm {
    width: 30%;
    height: 6px;
    background: rgba(15, 23, 42, 0.1);
    border-radius: 4px;
}

.row-badge {
    font-size: 0.7rem;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 4px 8px;
    border-radius: 4px;
}

/* State 3: Budget */
.budget-header {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.budget-title {
    color: var(--text-muted);
}

.budget-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.budget-bars {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bar-group {
    width: 100%;
}

.bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.bar-fill {
    height: 10px;
    background: rgba(15, 23, 42, 0.1);
    border-radius: 99px;
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    animation: fillBar 1.5s ease forwards;
}

.mock-state.active .bar-fill::after {
    width: 100%;
}

@keyframes fillBar {
    from {
        width: 0%;
    }
}

/* State 4: Charts */
.chart-container {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 2rem;
}

.chart-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 15px solid rgba(15, 23, 42, 0.1);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    text-align: center;
    transform: rotate(45deg);
    /* Counter rotate text */
}

.inner-circle span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4ade80;
}

.inner-circle small {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.control-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.text-green {
    color: #4ade80;
}


/* Mobile Scrollytelling Adjustments */
@media (max-width: 768px) {
    .scrolly-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .scrolly-text-col {
        order: 2;
    }

    .scrolly-visual-col {
        order: 1;
        height: 400px;
        /* Fixed height for visual on mobile */
        margin-bottom: 2rem;
    }

    .sticky-wrapper {
        position: relative;
        /* No sticky on mobile by default, or maybe sticky top for a bit? */
        top: 0;
        height: 100%;
    }

    .step {
        min-height: auto;
        padding-bottom: 4rem;
        opacity: 1;
        /* Always visible on mobile if stacked */
    }

    /* Since we can't easily do the sticky scroll effect on mobile vertical stack without covering content,
       we might want to just show the first state or auto-rotate them?
       For MVP, let's keep it stacked. The user will see the visual, then the text.
       BUT the visual won't update.
       Better mobile approach: Make the visual sticky at top, pass text under it.
    */
    .sticky-wrapper {
        position: sticky;
        top: 80px;
        /* Below nav */
        z-index: 20;
    }

    .step-content {
        background: white;
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        border: 1px solid var(--border);
        border-radius: 12px;
    }
}

/* ========================================
   NEW SECTIONS STYLES - Competitive Enhancements
   ======================================== */

/* Comparison Section */
.comparison-section {
    background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
}

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

.comparison-col {
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.comparison-col h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

.comparison-col h3 i {
    width: 28px;
    height: 28px;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-list li i {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Old Way Styling */
.comparison-col.old-way {
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    opacity: 0.85;
}

.comparison-col.old-way h3 {
    color: var(--text-muted);
}

.comparison-col.old-way .comparison-list li {
    color: var(--text-muted);
}

.comparison-col.old-way .comparison-list li i {
    color: #dc2626;
    /* Red for X marks */
}

/* New Way Styling */
.comparison-col.new-way {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-accent-light) 0%, white 100%);
    box-shadow: 0 8px 32px rgba(234, 88, 12, 0.15);
}

.comparison-col.new-way:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(234, 88, 12, 0.25);
}

.comparison-col.new-way .comparison-list li i {
    color: #16a34a;
    /* Green for check marks */
}

.comparison-col.new-way h3 {
    color: var(--primary);
}

/* Why ObraCore Section */
.why-section {
    background: white;
}

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

.why-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.12);
    border-color: var(--primary);
}

.why-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.why-card h3 {
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.why-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ROI Calculator Section */
.roi-section {
    background: linear-gradient(135deg, var(--bg-accent-light) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.roi-container {
    max-width: 900px;
    margin: 0 auto;
}

.roi-header {
    text-align: center;
    margin-bottom: 3rem;
}

.roi-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.roi-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.roi-calculator {
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.roi-inputs {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-row label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.input-row input {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: var(--bg-soft);
}

.input-row input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.roi-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.roi-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.roi-stat.highlight {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, var(--bg-soft) 100%);
    border-color: rgba(234, 88, 12, 0.2);
}

.roi-stat.success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, var(--bg-soft) 100%);
    border-color: rgba(22, 163, 74, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.roi-stat.success .stat-value {
    color: #16a34a;
}

.roi-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: 8px;
}

/* Responsive for New Sections */
@media (max-width: 1024px) {
    .comparison-grid {
        gap: 2rem;
    }

    .why-grid {
        gap: 2rem;
    }

    .roi-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .roi-calculator {
        padding: 2rem 1.5rem;
    }

    .roi-header h2 {
        font-size: 1.75rem;
    }

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

/* ========================================
   ALTERNATING BACKGROUND SECTIONS (ORANGE)
   ======================================== */

.bg-orange-section {
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Titles and Text on Orange Background */
.bg-orange-section .section-title {
    color: white;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bg-orange-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.bg-orange-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Feature Cards on Orange Section */
.bg-orange-section .feature-card {
    background: white;
    border: none;
    box-shadow: 0 10px 40px -10px rgba(124, 45, 18, 0.3);
    /* Warmer shadow */
}

/* Ensure text inside white cards remains dark */
.bg-orange-section .feature-card h3,
.bg-orange-section .feature-card p {
    color: var(--text-main);
}

.bg-orange-section .feature-card p {
    color: var(--text-muted);
}

.bg-orange-section .feature-icon-wrapper {
    background: rgba(22, 163, 74, 0.1);
    /* Keep brand green distinct */
    color: var(--primary);
}

/* Comparison Section Specifics */
.bg-orange-section .comparison-grid .comparison-col {
    background: white;
    color: var(--text-main);
    box-shadow: 0 10px 40px -10px rgba(124, 45, 18, 0.3);
}

.bg-orange-section .comparison-col.old-way {
    background: #f8fafc;
    /* Slightly grey to differentiate */
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bg-orange-section .comparison-col h3 {
    color: var(--text-main);
}

.bg-orange-section .comparison-list li {
    color: var(--text-muted);
}

/* Badge Fix for Orange Background */
.bg-orange-section .badge-popular {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ROI Calculator Override */
.bg-orange-section .roi-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.bg-orange-section .roi-header h2 {
    color: white;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bg-orange-section .roi-header p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-orange-section .roi-calculator {
    box-shadow: 0 25px 50px -12px rgba(124, 45, 18, 0.35);
    border: none;
}

.bg-orange-section .roi-calculator .roi-disclaimer {
    color: var(--text-muted);
}

/* ========================================
   GEOMETRIC PARALLAX SHAPES (OPTIMIZED)
   ======================================== */

#parallax-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* CRITICAL: Behind ALL content - only visible on white/orange backgrounds */
    pointer-events: none;
    overflow: hidden;
}

.parallax-shape {
    position: absolute;
    color: var(--primary);
    /* ObraCore Orange (#ea580c) */
    will-change: transform;
    /* Opacity set dynamically by JS - ranges from 0.03-0.12 */
    transition: transform 0.1s ease-out;
    /* Smooth transform during scroll */
}

/* Shape Variants - Styles only, sizes handled by JS */
.shape-square {
    border: 2px solid currentColor;
    transform-origin: center;
}

.shape-circle {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.shape-plus {
    position: relative;
}

.shape-plus::before,
.shape-plus::after {
    content: '';
    position: absolute;
    background: currentColor;
}

/* Centered cross logic */
.shape-plus::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.shape-plus::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.shape-grid {
    background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    /* Grid pattern */
}

/* Ensure content sits above parallax */
.section,
.hero,
.footer {
    position: relative;
    z-index: 1;
}