/* 
 * RunAI - Pro Style Overrides 
 * Scoped to body.home-pro
 */

body.home-pro {
    --bg-body: #000000;
    --bg-card: #151516;
    --bg-card-hover: #1c1c1e;
    --text-main: #f5f5f7;
    --text-muted: #9d9da3;
    --accent: #2997ff; /* Pro Blue */
    --border: rgba(255, 255, 255, 0.1);
    
    --font-display: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-text: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;

    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Reset & Typography */
body.home-pro h1, 
body.home-pro h2, 
body.home-pro h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.home-pro p {
    font-family: var(--font-text);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* Header - Glassmorphism */
body.home-pro header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: none !important; /* Reset any existing transforms from style.css */
    transition: transform 0.4s ease;
    border-radius: 0 !important; /* Reset floating island radius */
    box-shadow: none !important; /* Reset floating island shadow */
}

body.home-pro header.is-hidden {
    transform: translate3d(0, -120%, 0) !important;
}

/* Reset container inside header */
body.home-pro header .container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    height: 70px; /* Increased height for better spacing */
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Override any .scrolled state from main css */
body.home-pro header.scrolled {
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

body.home-pro .logo {
    font-weight: 600;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5f5f7; /* Ensure logo is light */
    text-decoration: none;
}

body.home-pro .nav-logo-icon {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

body.home-pro .nav-link {
    font-size: 13px; /* Slightly larger */
    font-weight: 400;
    color: #e8e8ed; /* Explicit light color */
    opacity: 0.8;
    transition: opacity 0.3s;
}

body.home-pro .main-nav {
    margin-left: auto;
    margin-right: 0;
}

body.home-pro .main-nav ul {
    gap: 48px;
}

body.home-pro .nav-link.nav-link-cta {
    opacity: 1;
    padding: 5px 15px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.home-pro .nav-link.nav-link-cta:hover,
body.home-pro .nav-link.nav-link-cta.active {
    background: #0071e3;
    color: #fff;
}

/* Mobile Menu Override for home-pro */
@media (max-width: 1200px) {
    body.home-pro header .container {
        padding: 0 20px;
    }

    body.home-pro .mobile-menu-toggle {
        display: block !important;
        z-index: 1001 !important;
        pointer-events: auto !important;
    }

    body.home-pro .main-nav {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.home-pro .main-nav a.nav-link {
        font-family: var(--font-display);
        font-size: 13px;
        font-weight: 600;
    }
}

body.home-pro .header-actions {
    margin-left: 0;
}

body.home-pro .header-divider {
    background: var(--accent);
    opacity: 0.55;
    box-shadow: 0 0 14px var(--accent-glow);
}

body.home-pro .btn-small {
    padding: 5px 15px;
    font-size: 13px; /* Match nav link size */
    font-weight: 400;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Accedi: same blue as WP WriterFlow (resting state), desktop + mobile menu */
body.home-pro header .header-actions .btn-small,
body.home-pro header .mobile-only-nav-item .btn-small {
    background: #0071e3 !important;
    color: #fff !important;
}

body.home-pro .header-actions .btn-small:hover {
    background: #0071e3;
    color: #fff;
}

body.home-pro header .header-actions .btn-small:hover,
body.home-pro header .mobile-only-nav-item .btn-small:hover {
    background: #0071e3 !important;
    color: #fff !important;
}

body.home-pro .nav-link:hover {
    opacity: 1;
    color: #fff;
}

/* HERO SECTION - Massive & Centered */
body.home-pro .hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0; /* Removed padding as requested */
    background: #000000; /* Pure Black as requested */
    position: fixed; /* Fixed for robust cover effect */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

/* Push content down to reveal fixed hero (first section after hero) */
body.home-pro .showcase-section {
    margin-top: 100vh;
    position: relative;
    z-index: 20;
    background: #1D1D20;
    box-shadow: 0 -50px 100px rgba(0,0,0,1);
}

/* Chat no longer needs to offset the fixed hero */
body.home-pro .chat-section {
    margin-top: 0;
}

/* Ensure subsequent sections cover the hero */
body.home-pro section:not(.hero):not(.showcase-section):not(.reveal-section) {
    position: relative;
    z-index: 20; /* Higher z-index to cover sticky hero */
    background-color: #000000 !important; /* Force opaque black background */
}

/* REVEAL SECTION (Full Screen Image) */
body.home-pro .reveal-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    z-index: 20;
    overflow: hidden;
    background: #000; /* Fallback while image loads */
}

body.home-pro .reveal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.home-pro .reveal-caption {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    padding: 0 20px;
    text-align: center;
    width: min(980px, 100%);
}

body.home-pro .reveal-title {
    margin: 0;
    padding: 0 20px;
    text-align: center;
    color: #f5f5f7;
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 14px 40px rgba(0,0,0,0.65);
}

body.home-pro .reveal-subtitle {
    margin: 10px 0 0;
    padding: 0 20px;
    color: rgba(245, 245, 247, 0.85);
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    text-shadow: 0 14px 40px rgba(0,0,0,0.65);
}

@media (max-width: 768px) {
    body.home-pro .reveal-image {
        object-position: right center;
    }

    body.home-pro .reveal-caption {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        padding: 0 20px;
        text-align: left;
    }

    body.home-pro .reveal-title,
    body.home-pro .reveal-subtitle {
        padding: 0;
        text-align: left;
    }

    body.home-pro .reveal-title {
        font-size: 34px;
        line-height: 1.12;
    }
}

/* Hide visuals as requested */
body.home-pro .hero-visual,
body.home-pro .hero-bg-image,
body.home-pro .hero-bg-overlay {
    display: none !important;
}

body.home-pro .hero-content {
    z-index: 10;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transform: none;
}

body.home-pro .hero-logo-icon {
    width: 180px; /* Increased from 140px */
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 50px rgba(41, 151, 255, 0.6)); /* Stronger glow for larger icon */
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

body.home-pro .hero-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f56300; /* Pro Orange for "New" */
    border: 1px solid rgba(245, 99, 0, 0.5);
    background: rgba(245, 99, 0, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

body.home-pro .hero h1 {
    font-size: clamp(42px, 8vw, 80px); /* Smaller as requested */
    line-height: 0.9; /* Even tighter */
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 20%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.home-pro .hero-headline {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 24px;
}

body.home-pro .hero .subtitle {
    font-size: clamp(21px, 3vw, 28px);
    color: #d2d2d7; /* Lighter grey for better readability */
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* ... CTA buttons remain same ... */

/* HERO VISUAL - Glass Interface */
body.home-pro .hero-visual {
    margin-top: 80px;
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: flex;
    justify-content: center;
    perspective: 2000px; /* For 3D tilts */
}

body.home-pro .hero-interface-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    transform-style: preserve-3d;
}

body.home-pro .interface-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    z-index: 0;
}

body.home-pro .interface-window {
    background: rgba(22, 22, 23, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; /* Pro style radius */
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px; /* Constrain width for realism */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.home-pro .window-bar {
    height: 38px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

body.home-pro .window-bar .dots {
    display: flex;
    gap: 8px;
}

body.home-pro .window-bar .dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

body.home-pro .dot.red { background: #ff5f57; border: 1px solid #e0443e; }
body.home-pro .dot.yellow { background: #febc2e; border: 1px solid #d89e24; }
body.home-pro .dot.green { background: #28c840; border: 1px solid #1aab29; }

body.home-pro .window-bar .bar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 0;
}

body.home-pro .window-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(0,0,0,0.2);
    min-height: 300px;
}

/* Real Chat UI */
body.home-pro .chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    font-size: 15px;
    line-height: 1.4;
}

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

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

body.home-pro .chat-message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2997ff, #0071e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

body.home-pro .message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    color: #fff;
    position: relative;
}

body.home-pro .chat-message.user .message-bubble {
    background: #0071e3;
    border-bottom-right-radius: 4px;
}

body.home-pro .chat-message.bot .message-bubble {
    background: #2c2c2e;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

body.home-pro .highlight-green {
    color: #30d158;
    display: inline-block;
    margin-top: 4px;
    font-weight: 500;
}

body.home-pro .window-status {
    padding: 8px 16px;
    font-size: 11px;
    color: #86868b;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
}

body.home-pro .status-dot {
    width: 6px;
    height: 6px;
    background: #30d158;
    border-radius: 50%;
    box-shadow: 0 0 5px #30d158;
}

/* Typing Indicator */
body.home-pro .typing-indicator {
    display: none; /* Hidden by default, can be animated */
    gap: 4px;
    margin-bottom: 8px;
}

body.home-pro .typing-indicator span {
    width: 6px;
    height: 6px;
    background: #86868b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

body.home-pro .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
body.home-pro .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

body.home-pro .hero-visual {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    background: transparent;
    border: none;
    position: relative;
}

/* CHAT SECTION - Video Background */
body.home-pro .chat-section {
    position: relative;
    overflow: hidden;
    /* Ensure it has a background color before video loads */
    background: #000; 
}

body.home-pro .video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

body.home-pro .section-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden until loaded/playing */
    transition: opacity 1s ease;
}

body.home-pro .section-bg-video.playing {
    opacity: 1; /* Full visibility */
}

body.home-pro .section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Increased overlay opacity */
    z-index: 1;
}

body.home-pro .chat-section .container {
    position: relative;
    z-index: 2; /* Above video */
    height: 100%;
}

body.home-pro .chat-minimal-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.home-pro .chat-minimal-content h2 {
    font-size: clamp(40px, 8vw, 90px); /* Slightly larger */
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

body.home-pro .chat-subtitle {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 500;
    color: #f5f5f7;
    opacity: 0.9;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* SHOWCASE SECTION (Carousel) */
body.home-pro .showcase-section {
    background-color: #1D1D20 !important;
    padding: 120px 0;
    position: relative;
    z-index: 20;
}

body.home-pro .section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body.home-pro .section-header-flex h2 {
    font-size: 48px;
    color: #f5f5f7;
    margin: 0;
}

body.home-pro .link-arrow {
    color: var(--accent);
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.home-pro .link-arrow:hover {
    text-decoration: underline;
}

/* Carousel Container */
body.home-pro .carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
    padding: 10px 0 120px 0; /* Reduced top padding */
    height: 800px;
    touch-action: pan-y;
}

body.home-pro .carousel-container.is-dragging,
body.home-pro .carousel-container.is-dragging * {
    user-select: none;
}
 
body.carousel-dragging,
body.carousel-dragging * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.home-pro .carousel-track {
    display: flex;
    gap: 40px;
    width: max-content;
    height: 100%;
    position: relative;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease-out transition */
    will-change: transform;
}

/* Removed infinite scroll animation */

body.home-pro .carousel-slide {
    width: 60vw; /* Large width to ensure side peeking */
    max-width: 900px;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    opacity: 1; /* No dimming */
    transform: scale(1); /* No scaling */
    transition: all 0.8s ease;
}

body.home-pro .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

body.home-pro .carousel-slide:hover {
    opacity: 1;
}

/* Dimming effect for non-hovered items could be cool, but let's keep it simple first */

@media (max-width: 1024px) {
    body.home-pro .carousel-slide {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    body.home-pro .carousel-slide {
        width: 85vw;
    }
}

/* Removed .active state for opacity since we are sliding */

body.home-pro .slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Stack from top */
    position: relative;
    min-height: 0;
}

body.home-pro .slide-text {
    position: relative; /* Not absolute anymore */
    top: auto;
    text-align: center;
    z-index: 10;
    width: 100%;
    margin-bottom: 30px; /* Space between text and image */
}

body.home-pro .slide-text h3 {
    font-size: 32px;
    color: #f5f5f7;
    margin-bottom: 2px; /* Reduced space between title and subtitle */
    line-height: 1.1;
}

body.home-pro .slide-text p {
    font-size: 19px;
    color: #86868b;
    margin-top: 0;
    line-height: 1.3;
}

body.home-pro .slide-image-wrapper {
    width: 100%;
    flex: 1; /* Take remaining height */
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
}

/* Placeholders for images */
body.home-pro .placeholder-img {
    width: 100%; 
    height: 100%; /* Fill the wrapper */
    border-radius: 20px;
    overflow: hidden;
    margin-top: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* When placeholder-img is an <img>, ensure the same visual behavior as CSS backgrounds */
body.home-pro img.placeholder-img {
    display: block;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
}

body.home-pro .carousel-slide-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.home-pro .gradient-1 { background: linear-gradient(135deg, #ff5f6d, #ffc371); }
body.home-pro .gradient-2 { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
body.home-pro .gradient-3 { background: linear-gradient(135deg, #cc2b5e, #753a88); }

body.home-pro .img-ai-datacenter {
    background-image: url('../img/ai-datacenter.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.home-pro .img-optimized-ai {
    background-image: url('../img/optimized-ai.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.home-pro .img-openai-ready {
    background-image: url('../img/openai-ready.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.home-pro .img-portal {
    background-image: url('../img/portal.webp'), linear-gradient(135deg, #2193b0, #6dd5ed);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

body.home-pro .img-mobile-pwa {
    background-image: url('../img/mobile-pwa.webp'), linear-gradient(135deg, #cc2b5e, #753a88);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* Controls */
body.home-pro .carousel-controls {
    position: absolute;
    bottom: 20px; /* Reverted to lower position */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
    background: rgba(60, 60, 60, 0.6);
    backdrop-filter: blur(20px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

body.home-pro .carousel-dots {
    display: flex;
    gap: 14px;
}

body.home-pro .carousel-dots .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
    touch-action: manipulation;
}

body.home-pro .carousel-dots .dot::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

body.home-pro .carousel-dots .dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.55);
}

body.home-pro .carousel-dots .dot.active {
    border-color: #fff;
    transform: translateY(-1px);
}

body.home-pro .carousel-dots .dot.active::before {
    background: #fff;
    transform: scale(1.2);
}

body.home-pro .carousel-play-pause {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

body.home-pro .carousel-play-pause i {
    display: inline-block;
    line-height: 1;
}

/* Fallback: if icon font is unavailable, show a simple glyph */
body.home-pro .carousel-play-pause:empty::before {
    content: "❚❚";
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 480px) {
    body.home-pro .carousel-dots { gap: 10px; }
    body.home-pro .carousel-dots .dot { width: 24px; height: 24px; }
    body.home-pro .carousel-dots .dot::before { width: 7px; height: 7px; }
    body.home-pro .carousel-play-pause { width: 26px; height: 26px; }
}

@media (max-width: 768px) {
    body.home-pro .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    body.home-pro .section-header-flex h2 {
        font-size: 34px;
        line-height: 1.12;
    }
    body.home-pro .carousel-container {
        aspect-ratio: 4/5; /* Taller on mobile */
    }
    body.home-pro .placeholder-img {
        width: 100%;
    }

    body.home-pro .slide-text {
        margin-bottom: 22px;
    }

    /* Mobile-only carousel assets */
    body.home-pro .img-portal {
        background-image: url('../img/portal-mobile.webp'), linear-gradient(135deg, #2193b0, #6dd5ed);
    }
    body.home-pro .img-openai-ready {
        background-image: url('../img/openai-ready-mobile.webp');
    }
}

/* FEATURES - Bento Grid */
body.home-pro .features {
    background: #000;
    padding: 150px 0;
}

body.home-pro .features .section-header {
    max-width: 860px;
    margin: 0 auto 72px;
    text-align: center;
}

body.home-pro .features .section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.35;
}

body.home-pro .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

body.home-pro .feature-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 40px;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    min-height: 360px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.home-pro .feature-card:hover {
    transform: scale(1.02);
    background: var(--bg-card-hover);
}

/* Span adjustments for Bento look */
body.home-pro .feature-card:nth-child(1) { grid-column: span 2; }
body.home-pro .feature-card:nth-child(4) { grid-column: span 2; }

body.home-pro .feature-card h3 {
    font-size: 28px;
    margin: 0;
    color: #fff;
}

body.home-pro .feature-card p {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
}

body.home-pro .icon-wrapper {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    font-size: 40px;
    color: var(--accent);
}

/* CHAT & BILLING - Dark Sections */
body.home-pro .chat-section,
body.home-pro .billing-section {
    background: #000;
    padding: 150px 0;
}

body.home-pro .section-header h2 {
    font-size: 56px;
    color: #fff;
    margin-bottom: 20px;
}

body.home-pro .section-subtitle {
    font-size: 24px;
    color: var(--text-muted);
}

/* Buttons */
body.home-pro .cta-button {
    background: #0071e3;
    color: #fff;
    border-radius: 980px;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 400;
    border: none;
    box-shadow: none;
}

body.home-pro .cta-button:hover {
    background: #0077ed;
}

body.home-pro .cta-button.secondary {
    background: transparent;
    color: #2997ff;
    border: none;
    padding: 12px 0;
    display: inline-flex;
    align-items: center;
}

body.home-pro .cta-button.secondary::after {
    content: '›';
    margin-left: 6px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    body.home-pro .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    body.home-pro .hero h1 {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    body.home-pro .features {
        padding: 50px 0;
    }

    body.home-pro .showcase-section {
        padding: 50px 0 !important;
    }

    body.home-pro .features .section-header {
        margin-bottom: 32px;
        text-align: left;
    }

    body.home-pro .features .section-header h2,
    body.home-pro .section-header h2,
    body.home-pro .chat-minimal-content h2,
    body.home-pro .tech-content h2,
    body.home-pro .dev-section-header h2 {
        font-size: 34px;
        line-height: 1.12;
    }

    body.home-pro .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.home-pro .feature-card:nth-child(n) {
        grid-column: auto;
    }

    body.home-pro .feature-card {
        padding: 28px;
        min-height: 0;
        text-align: center;
    }

    body.home-pro .chat-section,
    body.home-pro .billing-section {
        padding: 50px 0;
    }

    body.home-pro footer .footer-links {
        text-align: center;
    }

    body.home-pro footer .footer-links a {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    body.home-pro .hero {
        padding-top: 100px;
        position: relative !important;
        top: auto;
        left: auto;
        height: auto;
        min-height: 100vh;
        margin-bottom: 80px;
        overflow: visible;
    }

    body.home-pro .showcase-section {
        margin-top: 0;
    }
    body.home-pro .nav-logo-icon {
        height: 24px;
    }
    body.home-pro .hero-logo-icon {
        width: 120px;
        margin-bottom: 24px;
        margin-top: 50px;
    }
}

/* 
 * AUTH MODAL - Pro Style Overrides 
 */
body.home-pro .auth-modal {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

body.home-pro .auth-modal-content .modal-header h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.home-pro .auth-modal-content .modal-header p {
    font-family: var(--font-text);
    color: var(--text-muted);
}

body.home-pro .auth-form .input-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

body.home-pro .auth-form .input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

body.home-pro .auth-form input {
    font-family: var(--font-text);
    color: #fff;
}

body.home-pro .auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

body.home-pro .btn-auth {
    background: #0071e3;
    border-radius: 12px;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

body.home-pro .btn-auth:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

body.home-pro .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
}

body.home-pro .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.home-pro .auth-footer a,
body.home-pro .forgot-link {
    color: var(--accent);
    font-weight: 500;
}

body.home-pro .auth-footer a:hover,
body.home-pro .forgot-link:hover {
    text-decoration: underline;
}

/* Segmented Control (Account Type) */
body.home-pro .account-type-toggle {
    background: rgba(118, 118, 128, 0.24);
    border: none;
    border-radius: 9px;
    padding: 2px;
}

body.home-pro .account-type-toggle .toggle-btn {
    border-radius: 7px;
    color: #fff;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 13px;
}

body.home-pro .account-type-toggle .toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

body.home-pro .account-type-toggle .toggle-btn.active {
    background: #636366; /* Apple Dark Mode Segment Selected */
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* Checkbox */
body.home-pro .checkbox-label input[type="checkbox"] {
    accent-color: #0071e3;
}

body.home-pro .checkbox-label span {
    font-family: var(--font-text);
    color: var(--text-muted);
    font-size: 13px;
}

body.home-pro .checkbox-label a {
    color: var(--accent);
}

/* Required Asterisk */
body.home-pro .auth-modal .form-group label .required {
    color: var(--accent); /* Pro Blue */
}

/* Contact Form Submit Button */
body.home-pro .submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(41, 151, 255, 0.25);
}

body.home-pro .submit-btn:hover {
    background: #0066d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 151, 255, 0.35);
}

body.home-pro .submit-btn:active {
    transform: translateY(0);
}

/* Footer Logo */
body.home-pro .footer-logo {
    height: 70px;
    width: auto;
    display: block;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

body.home-pro footer:hover .footer-logo {
    opacity: 1;
}

/* Auth-only mode: hide landing content and force auth modal */
body.home-pro.auth-only header,
body.home-pro.auth-only section,
body.home-pro.auth-only footer {
    display: none !important;
}

body.home-pro.auth-only #authModal {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

body.home-pro .footer-brand .company-desc {
    display: none;
}

body.home-pro .footer-brand h3 {
    display: none;
}