/* Version: 2024-11-24-v2 - Force Cache Refresh */
:root {
    --bg-color: #030305;
    --bg-secondary: #0b0b14;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b0;
    
    /* Brand Colors */
    --accent: #00ff00;
    --accent-secondary: #00eaff;
    --accent-tertiary: #7000ff;
    
    --accent-glow: rgba(0, 255, 0, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(20, 20, 25, 0.6);
    
    /* Fonts */
    --font-display: 'Michroma', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; position: relative; width: 100%; max-width: 100vw; }
section { overflow-x: hidden; position: relative; }

/* Fonts */
h1, h2, h3, h4, h5, h6, .btn, .pill, .step-number, .stat-value, .logo, .terminal-title, .data-stat {
    font-family: var(--font-display);
    letter-spacing: 1px;
    font-weight: 700; 
}

.terminal-content {
    font-family: 'Courier New', Courier, monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================
   BACKGROUND ANIMATION
   ========================= */
.ambient-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    background: #030305;
    overflow: hidden;
}

.static-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    perspective: 1000px;
    transform: scale(1.2);
    opacity: 0.5;
}

#bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: -2;
    animation: orb-pulse-float 8s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent-tertiary); top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: var(--accent-secondary); bottom: 10%; right: -10%; animation-delay: -2s; }

@keyframes orb-pulse-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { opacity: 0.4; }
    100% { transform: translate(30px, 30px) scale(1.15); opacity: 0.3; }
}

/* =========================
   NAVBAR
   ========================= */
/* Project X Ribbon */
.project-x-ribbon {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translate(-45%, -50%) rotate(-90deg);
    transform-origin: center center;
    z-index: 1001;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.project-x-ribbon:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 255, 0, 0.1) 100%);
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 6px 30px rgba(0, 255, 0, 0.4);
    transform: translate(-45%, -50%) rotate(-90deg) scale(1.05);
}

.ribbon-text {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.ribbon-arrow {
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.project-x-ribbon:hover .ribbon-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .project-x-ribbon {
        display: none;
    }
}

.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 28px; }
.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(0, 255, 0, 0.05);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(0, 255, 0, 0.1);
}

.nav-link-dashboard {
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--accent);
}

.nav-link-dashboard:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--accent);
}

.btn {
    display: inline-block; padding: 12px 30px;
    background: transparent; border: 1px solid var(--accent);
    color: var(--accent); text-transform: uppercase;
    font-size: 0.8rem; text-decoration: none;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary { background: var(--accent); color: #000; font-weight: 700; }
.btn-primary:hover { background: transparent; color: var(--accent); }

/* =========================
   HERO SECTION
   ========================= */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    padding-top: 80px;
}
.hero-grid {
    position: absolute; bottom: -20%; left: -50%; width: 200%; height: 80%;
    background-image: 
        linear-gradient(var(--accent-glow) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-glow) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.1;
    animation: grid-move 20s linear infinite;
}
@keyframes grid-move { 0% { transform: perspective(500px) rotateX(60deg) translateY(0); } 100% { transform: perspective(500px) rotateX(60deg) translateY(80px); } }

.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-content { position: relative; z-index: 10; max-width: 1000px; transition: all 0.8s ease; }
.hero-content.scroll-out { opacity: 0; transform: scale(0.9) translateY(-50px); filter: blur(10px); }

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.1; margin-bottom: 30px;
    background: linear-gradient(to bottom, #FFF, #888);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0; animation: heroEntry 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes heroEntry { 0% { opacity: 0; filter: blur(20px); transform: scale(1.1); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }

/* Removed span override to keep gradient */
.hero h1 span { }

.subheader {
    font-size: 1.4rem; color: #e0e0e0; margin-bottom: 40px; line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(20px);
    /* Logic for fade-in is in JS */
}
.subheader.fade-in-up { opacity: 1; transform: translateY(0); transition: all 0.8s ease-out; }

.hero-cta { opacity: 0; transform: translateY(20px); }
.hero-cta.fade-in-up { opacity: 1; transform: translateY(0); transition: all 0.8s ease-out; }

.hero-scan {
    position: relative;
    margin: 35px auto 0;
    max-width: 740px;
    padding-top: 0;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scan.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.hero-scan-desc {
    margin: 14px auto 0;
    color: #d2d2d2;
    font-size: 0.95rem;
    text-align: center;
    max-width: 740px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scan-desc.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.hero-scan-input .scan-input-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================
   SECTION 2: PROOF BLOCK
   ========================= */
.proof-block { padding: 100px 0; position: relative; }
.proof-block .container.zoom-out-exit { transform: scale(1.15); opacity: 0; filter: blur(8px); transition: all 0.8s ease-out; pointer-events: none; }

.proof-block .section-header { text-align: left; max-width: 900px; margin: 0 auto 40px; }
.section-header h2 { font-size: 3rem; margin-bottom: 20px; color: #fff; text-transform: uppercase; transition: all 0.8s ease-out; }
.section-header h2::after { content: '_'; color: var(--accent); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.section-header p { font-size: 1.5rem; color: #fff; font-weight: 500; max-width: 800px; margin: 0; transition: all 0.8s ease-out; }

.terminal-window {
    background: rgba(10, 10, 15, 0.8); border: 1px solid var(--border-color); border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    max-width: 900px; margin: 0 auto 60px;
    opacity: 0; transform: scaleY(0) scaleX(0.9); transform-origin: center top; filter: brightness(0.5);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease, filter 0.6s ease;
}
.terminal-window.active { opacity: 1; transform: scaleY(1) scaleX(1); filter: brightness(1); }

.terminal-header { background: rgba(255, 255, 255, 0.05); padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); }
.terminal-buttons { display: flex; gap: 8px; margin-right: 20px; }
.terminal-buttons span { width: 12px; height: 12px; border-radius: 50%; background: #555; }
.terminal-buttons span:nth-child(1) { background: #ff5f56; }
.terminal-buttons span:nth-child(2) { background: #ffbd2e; }
.terminal-buttons span:nth-child(3) { background: #27c93f; }
.terminal-title { font-family: monospace; font-size: 0.9rem; color: var(--text-secondary); }

.terminal-content { padding: 30px; }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.data-row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 10px; padding-right: 10px; transition: background 0.05s ease, padding 0.2s ease; }
.data-row.active { opacity: 1; transform: translateX(0); }
.data-company { flex: 2; color: #fff; font-size: 1.1rem; }
.data-stat { flex: 0.5; text-align: right; font-size: 1.5rem; color: var(--accent); }
.data-metric { flex: 1.5; text-align: left; padding-left: 20px; color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; }
.terminal-cursor { margin-top: 20px; color: var(--accent); animation: blink 1s infinite; }

.proof-footer p { text-align: center; color: #fff; font-size: 1.1rem; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }

/* =========================
   SECTION 3: Why Perform
   ========================= */
.why-perform { padding: 120px 0; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.why-perform .container,
.how-it-works .container,
.build-timeline .container,
.project-x .container,
.comparison-table .container,
.faq .container {
    width: 90%;
    max-width: none;
}
.content-split { display: flex; align-items: center; gap: 60px; }
.text-content { flex: 1; }
.text-content h2 { font-size: 2.5rem; margin-bottom: 30px; color: #fff; line-height: 1.2; }
.text-content p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 20px; }
.text-content strong { color: #fff; font-weight: 600; }
.feature-list { margin: 30px 0; list-style: none; }
.feature-list li { position: relative; padding-left: 25px; margin-bottom: 15px; color: #ddd; font-size: 1.05rem; }
.feature-list li::before { content: '>'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.highlight { background: rgba(0, 255, 0, 0.05); border-left: 4px solid var(--accent); padding: 20px; color: #fff !important; margin-top: 30px; }

.visual-content { flex: 1; display: flex; flex-direction: column; gap: 20px; min-height: 500px; }
.design-mockup { width: 100%; height: auto; min-height: 250px; flex: 1; object-fit: contain; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease; }
.design-mockup:hover { transform: scale(1.1); z-index: 10; }

/* =========================
   SECTION 4: How It Works
   ========================= */
.how-it-works { padding: 120px 0; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.how-it-works .section-header { text-align: center; max-width: 1000px; margin: 0 auto 40px; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; position: relative; z-index: 100; }
.how-it-works .section-header h2 { font-size: 1.5rem; color: #fff; line-height: 1.2; text-transform: uppercase; }

.content-split-rev { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.tools-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.tech-frame { position: relative; padding: 10px; }
.tools-mockup { width: 100%; max-width: 600px; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.5); filter: brightness(0.9) contrast(1.1); border: 1px solid rgba(255, 255, 255, 0.1); }
.scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); box-shadow: 0 0 15px var(--accent); opacity: 0.5; animation: scanMove 4s ease-in-out infinite; pointer-events: none; }
@keyframes scanMove { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
/* Removed hover effect on corner brackets as requested */
.tech-frame .corner-bracket { position: absolute; width: 20px; height: 20px; border: 2px solid var(--accent); transition: all 0.3s ease; }
.tl { top: -10px; left: -10px; border-width: 2px 0 0 2px !important; }
.tr { top: -10px; right: -10px; border-width: 2px 2px 0 0 !important; }
.bl { bottom: -10px; left: -10px; border-width: 0 0 2px 2px !important; }
.br { bottom: -10px; right: -10px; border-width: 0 2px 2px 0 !important; }
/* .tech-frame:hover .corner-bracket removed */

.tools-text { flex: 1; text-align: left; padding-left: 20px; }
.comparison-text-clean p { font-size: 1.3rem; color: #888; margin-bottom: 20px; line-height: 1.2; display: flex; flex-direction: column; align-items: flex-start; }
.comparison-text-clean strong { color: var(--accent); font-size: 1.8rem; margin-top: 2px; text-transform: uppercase; text-shadow: 0 0 20px rgba(0, 255, 0, 0.3); display: block; line-height: 1.1; }
/* Removed border-left as requested */
.desc-text { margin-top: 25px; font-size: 1.1rem !important; color: #ccc !important; padding-left: 0; line-height: 1.4 !important; }
.accent-box { margin-top: 25px; background: rgba(0, 255, 0, 0.05); border: 1px solid rgba(0, 255, 0, 0.2); padding: 15px 25px; border-radius: 4px; }
.accent-box p { margin: 0; font-size: 1.2rem !important; color: var(--accent) !important; font-weight: 600; line-height: 1.3; }

/* =========================
   SECTION 5: Build Timeline (Visual Chart)
   ========================= */
.build-timeline { padding: 120px 0; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: transparent; }
/* Removed large bottom margin to fix gap */
.build-timeline .section-header { margin-bottom: 0; text-align: center; }
.build-timeline .section-header h2 { font-size: 2.5rem; color: #fff; }

.visual-timeline-container { position: relative; max-width: 1000px; margin: 60px auto 60px; display: flex; justify-content: space-between; align-items: flex-start; padding: 0; }
.timeline-line { position: absolute; top: 65px; left: 50px; right: 50px; height: 2px; background: rgba(255, 255, 255, 0.1); z-index: 0; }
.timeline-node { position: relative; z-index: 1; flex: 1; text-align: center; padding: 0 15px; opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.node-circle { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-color); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Courier New', monospace; font-weight: bold; font-size: 1.2rem; margin: 0 auto 25px; box-shadow: 0 0 15px rgba(0, 255, 0, 0.2); transition: all 0.3s ease; }
.timeline-node:hover .node-circle { background: var(--accent); color: #000; transform: scale(1.1); box-shadow: 0 0 25px rgba(0, 255, 0, 0.5); }
.node-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; text-transform: uppercase; }
.node-content p { color: #888; font-size: 0.95rem; line-height: 1.5; }
.timeline-node:nth-child(2) { transition-delay: 0.1s; }
.timeline-node:nth-child(3) { transition-delay: 0.2s; }
.timeline-node:nth-child(4) { transition-delay: 0.3s; }
.timeline-node:nth-child(5) { transition-delay: 0.4s; }

.build-timeline .section-header, .build-timeline .closer-line { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.build-timeline .container { transition: transform 0.8s ease-out, opacity 0.8s ease-out, filter 0.8s ease-out; }

/* =========================
   SECTION 6: Project X (Checklist)
   ========================= */
.project-x { padding: 100px 0; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.project-x .section-header { text-align: center; margin-bottom: 60px; }
.project-x .section-header h2 { font-size: 2.5rem; margin-bottom: 5px; color: #fff; }
.project-x .section-header p { color: var(--accent); font-size: 1.2rem; letter-spacing: 2px; text-align: center; margin-top: 0; margin-inline: auto; }

.project-x-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.check-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    margin-top: 2px;
}

.check-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.check-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Highlighted last item */
.check-item.highlight-check {
    grid-column: span 2;
    background: linear-gradient(to right, rgba(0, 255, 0, 0.05), transparent);
    border-color: var(--accent);
}

.check-item.highlight-check h3 {
    color: var(--accent);
}

/* =========================
   SECTION 7: Comparison (Red/Green) with Racing Dot
   ========================= */
.comparison-table { padding: 100px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.comparison-table .section-header { text-align: center; margin-bottom: 60px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }

.comparison-column {
    position: relative;
    /* Use Flexbox to ensure content flows correctly */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    /* Allow overflow so dots on border are visible */
    overflow: visible !important;
    
    padding: 40px;
    border-radius: 8px;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    z-index: 1;
    background: rgba(20, 20, 25, 0.8); /* Darker background to ensure text contrast */
    
    /* Ensure height matches content */
    height: auto !important;
    min-height: 0;
}

.comparison-column:hover {
    transform: translateY(-5px) !important;
}

.comparison-column.bad { 
    background: rgba(255, 50, 50, 0.05); 
    border: 2px solid rgba(255, 50, 50, 0.3); 
}

.comparison-column.good { 
    background: rgba(0, 255, 0, 0.05); 
    border: 2px solid var(--accent); 
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1); 
}

/* Ensure text is white and visible */
.comparison-column h3 { 
    color: #fff; /* Default white */
    opacity: 1 !important;
    margin-top: 0;
    z-index: 10;
}
.bad h3 { color: #ff5f56 !important; }
.good h3 { color: var(--accent) !important; }

.comparison-column ul, 
.comparison-column li,
.comparison-column p {
    color: #fff !important;
    opacity: 1 !important;
    z-index: 10;
}
.bad li { color: #ccc !important; }

/* Fix Dot Position - Adjust offset to sit perfectly on border */
@keyframes racer-move {
    0% { 
        top: -6px; 
        left: -6px; 
    }
    25% { 
        top: -6px; 
        left: calc(100% - 2px); 
    }
    50% { 
        top: calc(100% - 2px); 
        left: calc(100% - 2px); 
    }
    75% { 
        top: calc(100% - 2px); 
        left: -6px; 
    }
    100% { 
        top: -6px; 
        left: -6px; 
    }
}

/* Racing Dot Animation */
.racer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s;
}
.comparison-column:hover .racer {
    opacity: 1;
}

/* Animated Dot - positioned exactly on the border */
.racer::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* Box shadow for glowy tail */
    box-shadow: 0 0 12px currentColor, 0 0 24px currentColor, 0 0 36px currentColor;
    background: currentColor;
    top: 0;
    left: 0;
    animation: racer-move 4s linear infinite;
}

/* Colors */
.bad .racer { color: #ff5f56 !important; }
.good .racer { color: #00ff00 !important; }


/* Adjust content to sit above racer - REMOVED DUPLICATE, see line ~578 */

.comparison-column h3 { 
    font-size: 1.8rem; 
    margin-bottom: 30px; 
    text-align: center; 
    text-transform: uppercase; 
    position: relative; 
    z-index: 5;
    opacity: 1;
}
.bad h3 { color: #ff5f56; }
.good h3 { color: var(--accent); }

.comparison-column ul { 
    list-style: none; 
    margin-bottom: 30px; 
    position: relative; 
    z-index: 5;
    opacity: 1;
    padding: 0;
}

.comparison-column li { 
    padding: 15px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    font-size: 1rem;
    position: relative;
    z-index: 5;
}

.bad li { color: #ccc; }
.good li { 
    border-bottom-color: rgba(0, 255, 0, 0.1); 
    color: #fff; 
}

.summary { 
    text-align: center; 
    font-weight: bold; 
    font-size: 1.1rem; 
    position: relative; 
    z-index: 5;
    color: #fff;
    margin-top: 20px;
}

/* =========================
   SECTION 8: FAQ
   ========================= */
.faq { padding: 100px 0; }
.faq .section-header { text-align: center; margin-bottom: 60px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.faq-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); padding: 30px; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.04); transform: translateY(-3px); }
.faq-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; }

footer { border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; font-size: 0.9rem; color: var(--text-secondary); }

/* =========================
   UPDATES & REFINEMENTS
   ========================= */
/* Closer Box Style */
.closer-box {
    max-width: 800px;
    margin: 20px auto 0; /* Reduced from 60px */
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--accent);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}

.closer-box p {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.4;
}

/* Timeline Numbers Font */
.node-circle {
    font-family: var(--font-body); /* Montserrat */
}

/* Header Consistency - Gradient applied globally */
.build-timeline .section-header h2,
.project-x .section-header h2,
.comparison-table .section-header h2,
.faq .section-header h2,
.section-header h2, 
.how-it-works .section-header h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
    
    /* Gradient Style from Hero H1 */
    background: linear-gradient(to bottom, #FFF, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    position: relative; /* For cursor */
    display: inline-block; /* Ensure gradient clips to text properly */
}

/* Restore blinking cursor for all section headers */
.build-timeline .section-header h2::after,
.project-x .section-header h2::after,
.comparison-table .section-header h2::after,
.faq .section-header h2::after,
.section-header h2::after, 
.how-it-works .section-header h2::after {
    content: '_';
    color: var(--accent);
    animation: blink 1s steps(2, start) infinite;
    position: relative;
    top: -0.1em; /* Adjust alignment */
    -webkit-text-fill-color: var(--accent); /* Override transparent fill */
    text-shadow: none;
}

/* Specific Font Size Overrides */
.proof-block .section-header h2 {
    font-size: 3rem !important; /* Restore larger size for Proof section */
}
.hero h1 {
    /* Hero H1 is handled separately but ensure it matches */
}

/* Animation Base States */
.why-perform h2, .why-perform p, .why-perform .feature-list, .why-perform .highlight, .why-perform .visual-content,
.how-it-works .section-header, .how-it-works .content-split-rev, .how-it-works .visual-content, .how-it-works .text-content,
.project-x .section-header, .project-x .project-x-list {
    opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; will-change: transform, opacity;
}

/* Removed .comparison-table elements from the initial hidden state to fix "empty" cards issue if JS is delayed.
   JS will add .element-visible class which sets opacity: 1 regardless. 
   I will keep the transition but set default opacity to 1 for now to debug "empty" issue. */

.comparison-table .section-header, .comparison-table .comparison-column {
    opacity: 1; /* Forced visibility for now */
    /* opacity: 0; transform: translateY(30px); */ /* Commented out for debugging visibility */
    transition: all 0.8s ease-out;
}

/* Removed broad selector that was accidentally making .racer relative */
.comparison-column h3, 
.comparison-column ul, 
.comparison-column p {
    position: relative;
    z-index: 10;
}

.element-visible { opacity: 1 !important; transform: translateY(0) !important; }
.zoom-out-exit { transform: scale(1.15); opacity: 0 !important; filter: blur(8px); transition: all 0.8s ease-out; pointer-events: none; }
/* Removed .comparison-table .container from this list - it was causing the cards to be hidden with opacity: 0 !important */
.proof-block .container, .why-perform .container, .how-it-works .container, .build-timeline .container, .project-x .container {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out, filter 0.8s ease-out;
}
.closer-line p { font-size: 1.3rem; color: #fff; font-weight: 700; margin-top: 40px; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    /* Hero Section - Remove forced breaks and adjust line height */
    .subheader {
        line-height: 1.35;
    }
    
    .subheader br {
        display: none;
    }
    
    /* Section 2 - Proof Block adjustments */
    .section-header p {
        line-height: 1.3;
    }
    
    /* Proof Section - 2 column layout on mobile with stat above metric */
    .terminal-content {
        padding: 20px;
    }
    
    .data-row {
        display: grid;
        grid-template-columns: 1.3fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "company stat"
            "company metric";
        padding: 18px 0;
        gap: 2px 15px;
        align-items: center;
    }
    
    .data-company {
        grid-area: company;
        line-height: 1.2;
        font-size: 0.95rem;
        padding-left: 5px;
        text-align: left;
        align-self: center;
    }
    
    .data-stat {
        grid-area: stat;
        font-size: 1.5rem;
        text-align: center;
        padding-left: 0;
        align-self: end;
    }
    
    .data-metric {
        grid-area: metric;
        font-size: 0.7rem;
        text-align: center;
        padding-left: 0;
        align-self: start;
        line-height: 1.1;
    }
    
    /* Comparison Section - Reverse order on mobile */
    .comparison-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
    }
    
    /* Global mobile spacing adjustments */
    .proof-block {
        padding: 60px 0;
    }
    
    .why-perform {
        padding: 80px 0;
    }
    
    .how-it-works {
        padding: 80px 0;
    }
    
    .build-timeline {
        padding: 80px 0;
    }
    
    .project-x {
        padding: 60px 0;
    }
    
    .comparison-table {
        padding: 60px 0;
    }
    
    .faq {
        padding: 60px 0;
    }
    
    .cta-bar {
        padding: 40px 0;
    }
    
    /* Text scaling for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem !important;
    }
    
    .proof-block .section-header h2 {
        font-size: 2.2rem !important;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1.3rem;
        min-width: 0; /* Remove min-width on mobile to prevent overflow */
    }
    
    .cta-bar .container {
        width: 95%; /* Tighter width on mobile */
    }
    
    /* Tighten up section spacing */
    .container {
        padding: 0 15px;
    }
    
    /* Ensure consistent gap between sections */
    section {
        margin-bottom: 0;
    }
    
    /* Disable scroll animations from section 3 onwards on mobile */
    .why-perform .container,
    .how-it-works .container,
    .build-timeline .container,
    .project-x .container,
    .comparison-table .container,
    .faq-section .container,
    .closer-section .container {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        transition: none !important;
    }
    
    .why-perform .container.zoom-out-exit,
    .how-it-works .container.zoom-out-exit,
    .build-timeline .container.zoom-out-exit,
    .project-x .container.zoom-out-exit {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }
    
    /* Other existing mobile styles */
    .hero h1 { 
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .content-split, .features-grid, .faq-grid, .content-split-rev { grid-template-columns: 1fr; flex-direction: column; }
    .content-split-rev { flex-direction: column-reverse; }
    .visual-timeline-container { flex-direction: column; align-items: flex-start; padding-left: 30px; }
    .timeline-line { top: 0; bottom: 0; left: 24px; width: 2px; height: auto; right: auto; }
    .timeline-node { display: flex; text-align: left; margin-bottom: 40px; align-items: flex-start; padding: 0; }
    .node-circle { margin: 0 20px 0 0; flex-shrink: 0; }
    .project-x-list { grid-template-columns: 1fr; }
    .check-item.highlight-check { grid-column: auto; }
    .hero-scan {
        max-width: 100%;
        padding-top: 0;
        margin-top: 20px;
    }
    .hero-scan-desc {
        margin: 10px 10px 0;
        text-align: left;
    }
}

/* =========================
   NAV & FOOTER UPDATES
   ========================= */

/* Smooth Scroll Padding */
html {
    scroll-padding-top: 100px;
}

/* Sticky Nav Active State */
.navbar.scrolled {
    background: rgba(3, 3, 5, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* New Footer Styles */
#footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
}

/* Footer Left (Dark - Now Scan) */
.footer-left {
    flex: 1;
    min-width: 300px;
    background: #0b0b10;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.footer-left h3 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.footer-left p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

/* Footer Right (Green - Now Links) */
.footer-right {
    flex: 1;
    min-width: 300px;
    background: var(--accent);
    padding: 60px;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.footer-right::before {
    content: '';
    position: absolute;
    bottom: -20%; left: -50%; width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 1;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.footer-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    margin-bottom: 40px;
    /* Filter removed for dark background (white logo) */
    position: relative;
    z-index: 1;
}

.footer-content-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

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

.footer-col h4 {
    color: #000;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 800;
}

.footer-col a {
    display: block;
    color: #000;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.3s;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-btn {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    z-index: 1;
}
.footer-btn:hover {
    background: #000;
    color: var(--accent);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.scan-input-wrapper {
    position: relative;
    display: flex;
    background: #fff;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.scan-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
    color: #000;
}

.scan-btn {
    background: #000;
    color: #fff;
    border: none;
    width: 50px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.scan-btn:hover {
    transform: translateX(3px);
}

.chasey-dot-border {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 6px;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.chasey-dot-border::before {
    content: '';
    position: absolute;
    width: 8px; 
    height: 8px;
    background: var(--accent); 
    border-radius: 50%;
    filter: none;
    box-shadow: 0 0 10px var(--accent);
    animation: chaseBorder 4s linear infinite;
}

@keyframes chaseBorder {
    0% { top: 0; left: 0; }
    25% { top: 0; left: calc(100% - 8px); }
    50% { top: calc(100% - 8px); left: calc(100% - 8px); }
    75% { top: calc(100% - 8px); left: 0; }
    100% { top: 0; left: 0; }
}

/* Responsive Updates */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(5, 5, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links .nav-link,
    .nav-links .btn {
        line-height: 1.2;
        padding-top: 8px;
        padding-bottom: 8px;
        font-weight: 400;
    }

    .nav-links.active {
        height: calc(100vh - 70px);
    }
    
    .nav-links a {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .footer-container {
        flex-direction: column;
    }
    
    .footer-right h3 {
        font-size: 2rem;
    }
    
    .footer-left, .footer-right {
        padding: 40px 20px;
    }
}

/* =========================
   SECONDARY PAGE STYLES
   ========================= */

.hero-page {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-page .hero-content {
    margin-top: 0;
}

.hero-page h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.page-content {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.text-block h2 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.text-block p {
    margin-bottom: 20px;
}

.text-block ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.text-block li {
    margin-bottom: 10px;
    list-style: disc;
}

/* Case Study Grid */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.case-stat {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
}

/* Calendly Wrapper */
.calendly-wrapper {
    min-height: 700px;
    margin: 40px 0;
    background: transparent;
}

/* Secondary Page Utilities */
.hero-short {
    min-height: 30vh;
    padding-top: 140px;
    padding-bottom: 40px;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-columns {
    column-count: 2;
    column-gap: 60px;
}

@media (max-width: 768px) {
    .text-columns {
        column-count: 1;
    }
}

/* Mini Feature Grid */
.feature-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card-mini {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 4px;
}

.feature-card-mini h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card-mini p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Stat Row */
.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    text-align: center;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 20px;
    border-radius: 4px;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Michroma', sans-serif;
    margin-bottom: 5px;
}

.stat-label {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quote Block */
.quote-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    color: #ccc;
    position: relative;
    padding: 40px;
}

.quote-block::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* CTA Bars */
.cta-bar {
    background: linear-gradient(to right, rgba(11, 11, 20, 0.95), rgba(3, 3, 5, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    margin: 0;
    position: relative;
    z-index: 20;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.cta-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.02) 50px,
        rgba(255, 255, 255, 0.02) 51px
    );
    pointer-events: none;
    z-index: 0;
}

.cta-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    animation: scan-left-right 4s ease-in-out infinite;
    opacity: 0.5;
}
@keyframes scan-left-right {
    0% { left: 0; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { left: 100%; opacity: 0; }
}

.cta-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 90%;
    max-width: none;
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 1.8rem;
    font-family: var(--font-display); /* Michroma */
    text-transform: uppercase;
    flex: 2;
    min-width: 300px;
    line-height: 1.2;
    
    /* Gradient Text Style matching headers */
    background: linear-gradient(to bottom, #FFF, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    text-shadow: none;
}

.cta-btn-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1100px;
    background: #050505;
    border: none;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
    position: relative;
    padding: 20px;
    height: auto;
    max-height: none;
    overflow: visible;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.calendly-modal-content {
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid rgba(0, 255, 0, 0.12);
    padding: 30px;
    backdrop-filter: blur(6px);
}

.calendly-modal-content .calendly-inline-widget {
    width: 100% !important;
    min-height: 100%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

/* Mobile modal adjustments - Calendly full screen */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: stretch;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .calendly-modal-content {
        width: 100vw;
        max-width: none;
        min-height: 100vh;
        background: #000;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 55px 0 0;
        transform: scale(1);
        display: flex;
        flex-direction: column;
    }
    
    .modal-overlay.active .calendly-modal-content {
        transform: scale(1);
    }
    
    .calendly-modal-content .close-modal {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.95);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid var(--accent);
    }
    
    .calendly-modal-content .calendly-inline-widget {
        flex: 1;
        width: 100% !important;
        height: calc(100vh - 65px) !important;
        min-height: calc(100vh - 65px) !important;
    }
    
    /* Keep login modal unchanged on mobile */
    .login-modal-content {
        width: 90% !important;
        max-width: 400px !important;
        height: auto !important;
        min-height: auto !important;
        border-radius: 8px !important;
        border: 1px solid var(--border-color) !important;
    }
}

/* Login Modal Styles */
.login-modal-content {
    max-width: 400px;
    height: auto; /* Let content define height */
    background: #0b0b14; /* Match secondary background */
    border: 1px solid var(--border-color);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.login-container {
    text-align: center;
    padding: 20px;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.login-btn {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

/* Hero Scan Error */
.hero-scan-error {
    color: #ff5f56;
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
}

/* Scan Progress Overlay */
.scan-progress-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.scan-progress-overlay.is-active {
    display: flex;
    animation: overlay-fade-in 0.4s ease forwards;
}

.scan-progress__backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.68);
}

.scan-progress__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

body.scan-dimmed header,
body.scan-dimmed .hero,
body.scan-dimmed section,
body.scan-dimmed footer {
    opacity: 0.12;
    filter: blur(2px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

body.scan-dimmed .scan-progress-overlay {
    opacity: 1;
    filter: none;
}

.scan-progress__visual {
    position: relative;
    width: 220px;
    height: 220px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 12;
}

.progress-ring__progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 603.19;
    stroke-dashoffset: 603.19;
    transition: stroke-dashoffset 0.5s ease;
}

.scan-progress-overlay.is-active .progress-ring__progress {
    animation: progress-sweep 36s linear forwards;
}

.progress-ring__logo {
    position: absolute;
    inset: 35%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: logo-pulse 2.5s ease-in-out infinite;
}

.progress-ring__logo img {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.35));
}

.scan-progress__status {
    text-align: center;
    max-width: 420px;
}

.scan-progress__headline {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin: 0 0 8px;
    font-family: var(--font-display);
}

.scan-progress__subhead {
    margin: 0 0 16px;
    opacity: 0.72;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scan-progress__message {
    margin: 0;
    font-size: 1rem;
    opacity: 0;
}

.scan-progress__message.animating {
    animation: status-fade 3s ease forwards;
}

@keyframes progress-sweep {
    from {
        stroke-dashoffset: 603.19;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes status-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 255, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 24px rgba(0, 255, 0, 0.35);
    }
}

@keyframes overlay-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================
   RESULTS PAGE STYLES - PORTFOLIO LAYOUT
   ========================= */

.results-hero {
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.results-hero h4 {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.results-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    line-height: 1.2;
}

.results-hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #00eaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Portfolio Cases - Compact 2-Column Grid Layout */
.portfolio-cases {
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.15);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.portfolio-item:hover {
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 255, 0, 0.1);
}

.portfolio-item.reverse {
    /* No need for direction change in grid layout */
}

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

.portfolio-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.portfolio-item:hover .mockup-img {
    transform: scale(1.03);
}

.portfolio-content {
    padding: 25px;
}

.company-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.3;
}

.company-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-name a:hover {
    color: var(--accent);
}

.link-icon {
    font-size: 1.3rem;
    color: var(--accent);
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.company-name a:hover .link-icon {
    transform: translate(3px, -3px);
}

.industry-location {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.industry-location strong {
    color: var(--accent);
}

.project-goal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 15px;
}

.stats-row.single {
    grid-template-columns: 1fr;
    max-width: 300px;
}

.performance-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.perf-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    min-width: 75px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.perf-badge span {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    order: 1;
}

.perf-badge strong {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
    order: 2;
    margin-top: 3px;
}

.perf-badge.highlight {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.stat-num {
    display: block;
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.highlights {
    margin-top: 15px;
}

.highlights h4 {
    display: none; /* Hide heading to save space */
}

.highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
}

.highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

/* Stats Showcase Bar */
.results-stats-bar {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    position: relative;
    z-index: 10;
}

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.showcase-num {
    display: block;
    font-size: 3rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.showcase-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Legacy CSS removed - using new portfolio layout */

.final-cta {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* =========================
   PRICING PAGE STYLES
   ========================= */

.pricing-hero {
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.pricing-hero h4 {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pricing-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    line-height: 1.2;
}

.pricing-hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #00eaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.package-features {
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.3));
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.pricing-packages {
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.pricing-packages .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
}

.package-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 255, 0, 0.15);
}

.package-card.popular {
    border-color: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
}

.package-card.enterprise {
    border-color: rgba(0, 234, 255, 0.3);
}

.popular-badge,
.enterprise-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.enterprise-badge {
    background: #00eaff;
}

.package-header {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.package-header h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.price-display {
    margin-bottom: 15px;
}

.price-main {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 700;
}

.price-main .currency {
    font-size: 2rem;
}

.price-period {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.price-monthly {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.price-monthly .currency {
    font-size: 1rem;
}

.price-monthly .period {
    font-size: 0.9rem;
}

.package-body {
    padding: 30px;
}

.keyword-count {
    text-align: center;
    padding: 25px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.count-number {
    display: block;
    font-size: 3rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.count-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-bonus {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.bonus-text {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
}

.bonus-value {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.package-exclusivity {
    text-align: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

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

.pricing-cta {
    padding: 100px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.pricing-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.pricing-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* =========================
   PROJECT X PAGE STYLES - CLEAN & MINIMAL
   ========================= */

/* Visual 1: System Flow */
.flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.flow-box {
    font-size: 2.8rem;
    font-family: var(--font-display);
    letter-spacing: 3px;
    color: var(--accent);
    padding: 40px 60px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.02);
    transition: all 0.4s ease;
}

.flow-box:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 0, 0.08);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.2);
    transform: translateY(-5px);
}

.flow-underline {
    width: 80%;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
}

.flow-arrow {
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.4;
}

/* Visual 2: Interactive Page Builder with Mockups */
.builder-header {
    text-align: center;
    margin-bottom: 60px;
}

.builder-header h2 {
    font-size: 3rem;
    font-family: var(--font-display);
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.visual-builder {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-row,
.cities-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row-title {
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--accent);
    margin: 0;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.builder-pill {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.builder-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.builder-pill:hover::before {
    left: 100%;
}

.builder-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.builder-pill.active {
    background: rgba(0, 255, 0, 0.08);
    backdrop-filter: blur(15px);
    border-color: rgba(0, 255, 0, 0.3);
    color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Builder Controls Layout - Left/Right */
.builder-controls-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.builder-controls-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.builder-controls-right {
    flex: 0 0 300px;
    position: sticky;
    top: 120px;
}

.services-section,
.cities-section {
    width: 100%;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start; /* Align to left */
}

.row-title {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mockups Container */
.mockups-container {
    margin-top: 60px;
    min-height: 400px;
}

.mockups-grid {
    position: relative;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px;
}

.empty-mockup-state {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.8;
}

.page-mockup {
    position: absolute;
    /* Width set by JavaScript */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-mockup.show {
    opacity: 1;
}

.page-mockup.removing {
    opacity: 0;
    transform: scale(0.8) !important;
}

.mockup-image-wrapper {
    position: relative;
    width: 100%;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95);
    transition: all 0.3s ease;
}

.mockup-image-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 1);
    transform: translateY(-3px);
}

.mockup-bg {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-text {
    position: absolute;
    /* Position relative to mockup - stays consistent at any size */
    top: 25%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 70%;
    text-align: left;
    pointer-events: none;
}

.mockup-headline {
    /* Font size scales with viewport width */
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Page Counter */
.page-counter-large {
    text-align: center;
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
}

.page-counter-large span#page-count {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-display);
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.counter-label {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.learn-more-btn:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.2);
}

@media (max-width: 768px) {
    .learn-more-btn {
        display: none;
    }
}

.builder-explanation {
    text-align: center;
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.builder-explanation p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
    line-height: 1.6;
}

.builder-explanation p strong {
    color: var(--accent);
    font-weight: 700;
}

/* Visual 3: Performance Comparison */
.perf-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1300px;
    margin: 0 auto 50px;
}

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

.perf-label {
    font-size: 1.8rem;
    font-family: var(--font-display);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.perf-label.normal {
    color: rgba(255, 255, 255, 0.4);
}

.perf-label.fast {
    color: var(--accent);
}

.perf-visual {
    position: relative;
    height: 550px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    overflow: hidden;
}

.messy-shape {
    position: absolute;
    background: rgba(255, 100, 100, 0.08);
    border: 2px solid rgba(255, 100, 100, 0.25);
    border-radius: 6px;
    animation: float-messy 4s ease-in-out infinite;
}

@keyframes float-messy {
    0%, 100% { transform: translate(0, 0) rotate(var(--rotate, 0deg)); }
    50% { transform: translate(-8px, 8px) rotate(calc(var(--rotate, 0deg) + 5deg)); }
}

.plugin-tower {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    width: 70%;
    animation: shake-tower 6s ease-in-out infinite;
}

@keyframes shake-tower {
    0%, 90%, 100% { transform: translateX(-50%) rotate(0deg); }
    92%, 96% { transform: translateX(-50%) rotate(-2deg); }
    94%, 98% { transform: translateX(-50%) rotate(2deg); }
}

.plugin-block {
    padding: 18px;
    background: rgba(255, 100, 100, 0.1);
    border: 2px solid rgba(255, 100, 100, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    color: rgba(255, 100, 100, 0.9);
    text-align: center;
}

.clean-stack {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    width: 70%;
}

.clean-layer {
    padding: 25px;
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 6px;
    font-size: 1.1rem;
    color: var(--accent);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clean-layer:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
}

.speed-badge {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 50px;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 3px;
}

.speed-badge.slow {
    background: rgba(255, 100, 100, 0.15);
    border: 2px solid rgba(255, 100, 100, 0.4);
    color: rgba(255, 100, 100, 0.9);
}

.speed-badge.fast {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 35px rgba(0, 255, 0, 0.4);
    animation: pulse-fast 2s ease-in-out infinite;
}

@keyframes pulse-fast {
    0%, 100% { box-shadow: 0 0 35px rgba(0, 255, 0, 0.4); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 0, 0.6); }
}

.perf-caption {
    text-align: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
    font-weight: 500;
}


/* =========================
   MOBILE RESPONSIVE - PROJECT X
   ========================= */

@media (max-width: 768px) {
    /* Project X Page - Hero Section */
    .page-builder-hero {
        margin-top: 68px !important;
        padding: 15px 0 100px !important;
    }
    
    .page-builder-hero .hero-content {
        margin-bottom: 40px !important;
    }
    
    .page-builder-hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
        margin-bottom: 10px !important;
    }
    
    .page-builder-hero .subheader {
        font-size: 1.1rem !important;
    }
    
    /* Flow */
    .flow-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .flow-box {
        font-size: 2rem;
        padding: 30px 40px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        font-size: 2.5rem;
    }
    
    /* Builder Controls Layout */
    .builder-controls-layout {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .builder-controls-left {
        gap: 30px;
    }
    
    .builder-controls-right {
        flex: 1;
        width: 100%;
        position: static;
    }
    
    /* Builder */
    .builder-header h2 {
        font-size: 2rem;
    }
    
    .row-title {
        font-size: 1.1rem;
    }
    
    .pill-row {
        justify-content: flex-start; /* Keep left-aligned on mobile too */
    }
    
    .builder-pill {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .city-pill-desktop-only {
        display: none;
    }
    
    .mockups-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mockups-grid {
        padding-left: 20px;
    }
    
    .mockup-headline {
        font-size: clamp(0.6rem, 2.5vw, 0.9rem);
    }
    
    .page-counter-large {
        padding: 20px 15px;
    }
    
    .page-counter-large span#page-count {
        font-size: 2.5rem;
    }
    
    .counter-label {
        font-size: 0.75rem !important;
    }
    
    .builder-explanation p {
        font-size: 1.2rem;
    }
    
    /* Performance */
    .perf-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .perf-visual {
        height: 450px;
    }
    
    .speed-badge {
        font-size: 1.5rem;
        padding: 12px 35px;
    }
    
    .perf-caption {
        font-size: 1.2rem;
    }
}

/* =========================
   MOBILE RESPONSIVE - RESULTS & PRICING
   ========================= */

@media (max-width: 1200px) {
    .container-wide {
        padding: 0 30px;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .container-wide {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
    }
    
    .portfolio-item {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-showcase {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .showcase-num {
        font-size: 2.2rem;
    }
    
    .performance-row {
        flex-direction: column;
    }
    
    .perf-badge {
        min-width: 100%;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-packages .container {
        grid-template-columns: 1fr;
    }
    
    .package-card {
        padding: 25px;
    }
    
    .results-hero,
    .pricing-hero {
        padding: 120px 20px 60px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
}

/* ==========================================
   NEW ACCOUNT PAGE STYLING
   ========================================== */

.new-account-section {
    padding: 150px 20px 80px;
    min-height: 100vh;
    position: relative;
}

.new-account-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.new-account-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-account-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.new-account-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.new-account-form {
    width: 100%;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select {
    cursor: pointer;
}

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

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    margin: 0;
}

.radio-option span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.response-popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.response-popup.show {
    display: block;
}

.popup-content {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-close {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    opacity: 1;
}

.popup-message {
    margin-right: 20px;
    line-height: 1.5;
    font-size: 1rem;
}

.response-popup.success .popup-content {
    border-left: 4px solid var(--accent);
}

.response-popup.error .popup-content {
    border-left: 4px solid #ff4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles for New Account Page */
@media (max-width: 768px) {
    .new-account-section {
        padding: 120px 15px 60px;
    }
    
    .new-account-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section-title {
        font-size: 1.3rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .response-popup {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .popup-content {
        min-width: auto;
    }
}
