:root {
    --bg-main: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    
    --orange-brand: #f97316; /* SnapHomz vibrant orange */
    --orange-hover: #ea580c;
    
    --bg-blue-light: #f0f7ff;
    --bg-green-light: #f0fdf4;
    --bg-purple-light: #faf5ff;
    --bg-teal-light: #f0fdfa;
    --bg-mint-light: #ecfdf5;
    --bg-orange-light: #fff7ed;
    --bg-yellow-light: #fefce8;

    --dot-blue: #3b82f6;
    --dot-green: #22c55e;
    --dot-purple: #a855f7;
    --dot-teal: #14b8a6;
    --dot-mint: #10b981;
    --dot-orange: #f97316;
    --dot-yellow: #eab308;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-card: 0 10px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.01);
    
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* ================================
   NEW DARK HERO SECTION
================================ */
.hero-wrapper {
    background-color: #030712; /* Lovable-style ultra dark background */
    color: white;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    z-index: 20;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #d1d5db;
}
.nav-link:hover {
    color: white;
}


/* ================================
   CUSTOM CSS LOGOS 
   (Perfectly matching the photos!)
================================ */
.custom-logo-full {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-arch {
    width: 48px;
    height: 52px;
    border-radius: 24px 24px 10px 10px; /* Perfect arch shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600; /* Thinner, geometric weight */
    font-family: 'Montserrat', 'Poppins', 'Century Gothic', sans-serif; /* Geometric font for circular 'o' and 'c' */
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0; /* Remove squished spacing */
    position: relative;
    overflow: hidden;
}
.logo-arch::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shineArch 3s infinite;
}
@keyframes shineArch {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
@keyframes pulseArch {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* 1. Main Logo Component */
.logo-main-wrapper {
    background-color: var(--orange-brand);
    padding: 8px;
    border-radius: 16px;
    display: flex;
    align-items: center; /* Center horizontally and vertically instead of sticking to the bottom */
    justify-content: center;
}
.logo-main-wrapper .logo-arch {
    background-color: #1a1a1a;
    color: white;
    width: 40px;
    height: 44px;
    border-radius: 20px 20px 10px 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* 2. Black/Orange Arch (SnapPredict, SnapInterest) */
.logo-arch.black-orange {
    background-color: #1a1a1a;
    border: 2px solid var(--orange-brand);
    color: var(--orange-brand);
}

/* 3. Orange/White Arch (Rent vs Buy) */
.logo-arch.orange-white {
    background-color: var(--orange-brand);
    color: white;
}

/* 4. Black/White Arch (PreApproval) */
.logo-arch.black-white {
    background-color: #1a1a1a;
    color: white;
}

/* Typography for logos */
.logo-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.03em;
}
.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2px;
}

/* Small version for grid */
.custom-logo-full.small-version .logo-arch {
    width: 36px;
    height: 40px;
    border-radius: 18px 18px 8px 8px;
    font-size: 1.1rem;
    font-weight: 600;
}
.custom-logo-full.small-version .logo-title {
    font-size: 1.2rem;
}
.custom-logo-full.small-version .logo-subtitle {
    font-size: 0.75rem;
}

/* Float animation wrapper */
.custom-logo-full {
    transform-style: preserve-3d;
    animation: floatLogo3D 3s infinite alternate ease-in-out;
}
.custom-logo-full.small-version {
    animation-delay: -1.5s;
}


/* ================================
   HERO SPLIT LAYOUT
================================ */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 20;
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
}

.eyebrow {
    color: var(--orange-brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.eyebrow svg { stroke: currentColor; }

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content h1 .highlight {
    background: linear-gradient(90deg, #f97316, #a855f7, #3b82f6);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 4s linear infinite;
}
@keyframes shineText {
    to { background-position: 200% center; }
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 500px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* 4D Glassmorphic Dashboard Animation */
.dashboard-4d {
    position: relative;
    width: 500px;
    height: 400px;
    flex-shrink: 0;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Interactive House Image & Hotspots */
.house-hotspot {
    width: 24px;
    height: 24px;
    background: rgba(17, 24, 39, 0.95);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    animation: pulseHotspot 2.5s infinite;
    opacity: 0;
    pointer-events: none;
}

.hidden-hs {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.house-hotspot.active-hs {
    background: var(--orange-brand);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    animation: pulseHotspotActive 1.5s infinite;
    z-index: 20;
    opacity: 1;
    pointer-events: auto;
}

@keyframes pulseHotspotActive {
    0% { background: rgba(249, 115, 22, 0.8); border: 2px solid rgba(255, 255, 255, 0.4); transform: scale(1); }
    50% { background: rgba(249, 115, 22, 1); border: 2px solid rgba(255, 255, 255, 1); transform: scale(1.1); }
    100% { background: rgba(249, 115, 22, 0.8); border: 2px solid rgba(255, 255, 255, 0.4); transform: scale(1); }
}

.house-hotspot .hotspot-number {
    font-size: 0.8rem;
    font-weight: 700;
}

.house-hotspot::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    animation: pulseHotspot 2s infinite;
}

@keyframes pulseHotspot {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.house-hotspot:hover {
    transform: scale(1.2);
    background: var(--orange-brand);
    border-color: var(--orange-brand);
}

.hotspot-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 24, 39, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 4D House Animation */
.house-4d-anim {
    animation: float4D 6s infinite alternate ease-in-out;
    transform-style: preserve-3d;
}
@keyframes float4D {
    0% { transform: translateY(0) rotateX(2deg) rotateY(-2deg) translateZ(0); }
    100% { transform: translateY(-15px) rotateX(-2deg) rotateY(2deg) translateZ(20px); }
}

/* Custom Tool Modal */
.custom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
    text-align: center;
    animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpModal {
    from { transform: translateY(50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: white;
}

#modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(270deg, var(--orange-brand), #ffb347, var(--orange-brand));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textReveal 0.5s ease backwards, shineTitle 4s linear infinite;
    animation-delay: 0.1s, 0.6s;
}

@keyframes shineTitle {
    to { background-position: 200% center; }
}

#modal-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 25px;
    background: linear-gradient(270deg, #e2e8f0, #93c5fd, #e2e8f0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textReveal 0.5s ease backwards, shineDesc 5s linear infinite;
    animation-delay: 0.2s, 0.7s;
}

@keyframes shineDesc {
    to { background-position: 200% center; }
}

@keyframes textReveal {
    0% { transform: translateY(15px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.house-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tool-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.tool-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.05);
}
.widget-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.bg-blue { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; }
.bg-green { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; }
.bg-purple { background: rgba(168, 85, 247, 0.2); border: 1px solid #a855f7; }

.widget-text { display: flex; flex-direction: column; }
.widget-text .title { font-size: 0.75rem; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.widget-text .value { font-size: 1.1rem; color: white; font-weight: 700; white-space: nowrap; }
.positive { color: #10b981; font-size: 0.8rem; margin-left: 4px; }

.widget-predict { top: 10%; right: -10%; animation: floatW1 5s infinite alternate ease-in-out; }
.widget-rentbuy { bottom: 20%; left: -15%; animation: floatW2 6s infinite alternate ease-in-out; }
.widget-rates { bottom: -5%; right: 5%; animation: floatW3 4s infinite alternate ease-in-out; }

@keyframes floatW1 { 0% { transform: translateZ(50px) translateY(0); } 100% { transform: translateZ(50px) translateY(-15px); } }
@keyframes floatW2 { 0% { transform: translateZ(80px) translateY(0); } 100% { transform: translateZ(80px) translateY(20px); } }
@keyframes floatW3 { 0% { transform: translateZ(60px) translateY(0); } 100% { transform: translateZ(60px) translateY(-10px); } }

/* ================================
   SCROLL REVEAL ANIMATIONS
================================ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger tool cards slightly */
.tools-grid .tool-card.reveal { transition-delay: 0s; }
.tools-grid .tool-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.tools-grid .tool-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.tools-grid .tool-card.reveal:nth-child(4) { transition-delay: 0.1s; }
.tools-grid .tool-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.tools-grid .tool-card.reveal:nth-child(6) { transition-delay: 0.3s; }
.tools-grid .tool-card.reveal:nth-child(7) { transition-delay: 0.1s; }

/* ================================
   TOOLS SECTIONS
================================ */
.tools-container {
    padding-top: 5rem;
}

.tools-full {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.custom-logo-full {
    transition: transform 0.4s ease;
}
.logo-arch {
    transition: transform 0.4s ease;
}

@keyframes logoDance {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    15%  { transform: translateY(-10px) rotate(-6deg) scale(1.05); }
    30%  { transform: translateY(0) rotate(0deg) scale(0.95); }
    45%  { transform: translateY(-10px) rotate(6deg) scale(1.05); }
    60%  { transform: translateY(0) rotate(0deg) scale(0.95); }
    75%  { transform: translateY(-5px) rotate(-3deg) scale(1.02); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes archPulse {
    0%   { filter: brightness(1); box-shadow: 0 0 0px rgba(249, 115, 22, 0); }
    100% { filter: brightness(1.3); box-shadow: 0 0 20px rgba(249, 115, 22, 0.5); transform: scale(1.05); }
}
@keyframes logoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}
.logo-arch {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: bubblePop 4s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}
.logo-arch::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: inherit;
    border: 2px solid currentColor;
    animation: bubbleRipple 4s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
    z-index: -1;
    opacity: 0;
}
@keyframes bubblePop {
    0%, 100% { transform: scale(1) translateY(0); }
    15% { transform: scale(1.1) translateY(-5px); }
    30% { transform: scale(1) translateY(0); }
}
@keyframes bubbleRipple {
    0% { transform: scale(1); opacity: 0.6; }
    30% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.tool-card.full-width {
    flex-direction: row;
}

/* Left side of card */
.tool-logo-box {
    width: 280px;
    height: 160px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    flex-shrink: 0;
}

/* Middle of card */
.tool-content {
    flex-grow: 1;
}

.tool-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.5;
    animation: descHighlight 3s infinite alternate cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(to right, #111827 0%, var(--orange-brand) 50%, #111827 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes descHighlight {
    0% { background-position: 0% center; transform: translateX(0px) scale(1); }
    100% { background-position: 100% center; transform: translateX(10px) scale(1.02); }
}

.explore-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange-brand);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    padding: 10px 24px;
    border-radius: 9999px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px 0px #000;
    text-transform: capitalize;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 1rem;
    text-decoration: none;
}
.tool-card:hover .explore-link {
    transform: scale(1.05) translateX(10px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
    background-color: #ff8a33;
}
.explore-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000;
    color: #000;
}
.explore-link:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px 0px #000;
}

/* Right side of card */
.tool-demo-wrapper {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-demo {
    height: 160px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.widgets {
    display: flex;
    gap: 0.5rem;
}

.widget {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.widget .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blinkDot 2s infinite;
}
@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* ================================
   REDUCED GRID TOOLS (2 cols)
================================ */
.tools-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* tight layout */
    margin-bottom: 4rem;
}

.tool-card.mini {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem; /* very compact padding */
    gap: 0.75rem;
    position: relative;
    border-radius: var(--radius-lg); /* slightly less rounded */
}

.tool-card.mini .tool-logo-box {
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
}

.tool-card.mini .tool-content {
    width: 100%;
}

.tool-card.mini .tool-content p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.tool-card.mini .tool-demo-wrapper {
    width: 100%;
    margin-top: 0;
}

.tool-card.mini .tool-demo {
    height: 100px; /* heavily reduced height */
}


/* Background Utility Classes */
.bg-blue-light { background: linear-gradient(135deg, var(--bg-blue-light), #dbeafe); }
.bg-green-light { background: linear-gradient(135deg, var(--bg-green-light), #dcfce7); }
.bg-purple-light { background: linear-gradient(135deg, var(--bg-purple-light), #f3e8ff); }
.bg-teal-light { background: linear-gradient(135deg, var(--bg-teal-light), #ccfbf1); }
.bg-mint-light { background: linear-gradient(135deg, var(--bg-mint-light), #d1fae5); }
.bg-orange-light { background: linear-gradient(135deg, var(--bg-orange-light), #ffedd5); }
.bg-yellow-light { background: linear-gradient(135deg, var(--bg-yellow-light), #fef08a); }

.dot.blue { background-color: var(--dot-blue); }
.dot.green { background-color: var(--dot-green); }
.dot.purple { background-color: var(--dot-purple); }
.dot.teal { background-color: var(--dot-teal); }
.dot.mint { background-color: var(--dot-mint); }
.dot.orange { background-color: var(--dot-orange); }
.dot.yellow { background-color: var(--dot-yellow); }


/* Upcoming Tools */
.upcoming {
    margin-top: 2rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 6rem;
}

.upcoming-header {
    margin-bottom: 3rem;
}
.upcoming-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-style: normal;
    color: var(--text-main);
}
.upcoming-header p {
    color: var(--text-muted);
}

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

.simple-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.05);
    background-size: 200% 200% !important;
    animation: gradientShift 6s ease infinite, simpleFloat 5s ease-in-out infinite alternate;
}
.tools-grid-3 .simple-card:nth-child(even) { animation-delay: -2s; animation-duration: 7s, 6s; }
.tools-grid-3 .simple-card:nth-child(3n) { animation-delay: -4s; animation-duration: 5s, 4s; }

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes simpleFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }

.simple-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shimmerSweep 4s infinite;
    transform: skewX(-20deg);
}
@keyframes shimmerSweep { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

.simple-card:hover {
    box-shadow: 0 15px 30px rgba(249, 87, 46, 0.22), inset 0 0 0 1px rgba(249, 87, 46, 0.3);
}

/* Very Light Creative Pastel Gradients for Upcoming Tools */
.tools-grid-3 .simple-card:nth-child(7n+1) { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; border: 1px solid #fed7aa; } /* Light Orange */
.tools-grid-3 .simple-card:nth-child(7n+2) { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1e40af; border: 1px solid #bfdbfe; } /* Light Blue */
.tools-grid-3 .simple-card:nth-child(7n+3) { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #065f46; border: 1px solid #a7f3d0; } /* Light Green */
.tools-grid-3 .simple-card:nth-child(7n+4) { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #5b21b6; border: 1px solid #ddd6fe; } /* Light Purple */
.tools-grid-3 .simple-card:nth-child(7n+5) { background: linear-gradient(135deg, #fdf2f8, #fbcfe8); color: #9d174d; border: 1px solid #f9a8d4; } /* Light Pink */
.tools-grid-3 .simple-card:nth-child(7n+6) { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #155e75; border: 1px solid #a5f3fc; } /* Light Cyan */
.tools-grid-3 .simple-card:nth-child(7n+7) { background: linear-gradient(135deg, #fefce8, #fef08a); color: #854d0e; border: 1px solid #fde047; } /* Light Yellow */

.simple-card h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: inherit;
    letter-spacing: -0.01em;
}

.simple-card p {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .video-container {
        transform: none;
    }
    .video-container:hover {
        transform: none;
    }
    .tool-card.full-width {
        flex-direction: column;
        align-items: flex-start;
    }
    .tool-logo-box {
        width: 100%;
        height: 120px;
    }
    .tool-demo-wrapper {
        width: 100%;
    }
    .tools-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .tools-grid-2 {
        grid-template-columns: 1fr;
    }
    .tools-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ================================
   TOOL BOX ANIMATIONS & DASHBOARD 4D
================================ */



/* 4D DEMO MOCKUPS */
.demo-4d-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; perspective: 1200px; position: relative; }
.demo-card-4d { width: 180px; height: 110px; background: rgba(17, 24, 39, 0.9); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); transform-style: preserve-3d; animation: float4D 6s infinite alternate ease-in-out; box-shadow: 0 20px 40px rgba(0,0,0,0.3); padding: 12px; display: flex; flex-direction: column; }
@keyframes float4D { 0% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); } 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(-10px); } }

/* Predict 4D */
.predict-4d .card-header { display: flex; justify-content: space-between; font-size: 0.65rem; color: #9ca3af; margin-bottom: 8px; font-weight: bold; }
.predict-4d .badge { background: rgba(16, 185, 129, 0.2); color: #10b981; padding: 2px 6px; border-radius: 8px; }
.predict-4d .chart-area { flex-grow: 1; position: relative; display: flex; align-items: flex-end; }
.predict-4d .line { width: 100%; height: 3px; background: linear-gradient(90deg, #3b82f6, #10b981); position: relative; transform: rotate(-10deg) translateY(-10px); transform-origin: left; box-shadow: 0 0 10px #10b981; }
.predict-4d .floating-chip { position: absolute; right: -20px; top: -15px; background: white; color: black; font-weight: 800; font-size: 0.75rem; padding: 4px 8px; border-radius: 6px; transform: translateZ(40px); box-shadow: 4px 4px 0 rgba(0,0,0,0.2); border: 1px solid black; }

/* RentBuy 4D */
.rb-split-4d { flex-direction: row; gap: 10px; padding: 15px; }
.rb-split-4d .layer { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transform-style: preserve-3d; }
.rb-split-4d .rent-layer { transform: translateZ(20px); }
.rb-split-4d .buy-layer { transform: translateZ(40px); }
.rb-split-4d .lbl { font-size: 0.65rem; color: white; margin-bottom: 5px; font-weight: bold; letter-spacing: 0.5px; }
.rb-split-4d .bar { width: 30px; border-radius: 4px; }
.rb-split-4d .red-bar { background: #ef4444; height: 30px; }
.rb-split-4d .green-bar { background: #10b981; height: 60px; box-shadow: 0 0 15px rgba(16,185,129,0.4); }
.rb-split-4d .vs-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(60px); background: #f97316; color: white; font-weight: bold; font-size: 0.7rem; padding: 6px 4px; border-radius: 50%; border: 2px solid white; box-shadow: 2px 2px 0 black; line-height: 1; }

/* Rates 4D */
.rates-4d { align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8)); border: 1px solid white; overflow: hidden; }
.rates-4d::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); animation: sweep4D 3s infinite; transform: skewX(-20deg); }
@keyframes sweep4D { 0% { left: -100%; } 100% { left: 200%; } }
.rates-4d .rate-huge { font-size: 2.2rem; font-weight: 900; color: #111827; line-height: 1; }
.rates-4d .rate-sub { font-size: 0.7rem; color: #6b7280; font-weight: 700; margin-bottom: 15px; }
.rates-4d .lock-btn { background: #f97316; color: black; font-size: 0.7rem; font-weight: 800; padding: 6px 12px; border-radius: 20px; border: 1px solid black; box-shadow: 2px 2px 0 black; transform: translateZ(30px); }

/* Mini 4D - Common */
.demo-4d-wrapper.mini { perspective: 800px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mini-4d-card { width: 80px; height: 80px; background: rgba(17, 24, 39, 0.9); border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); transform-style: preserve-3d; animation: floatMini 4s infinite alternate ease-in-out; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
@keyframes floatMini { 0% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); } 100% { transform: rotateY(5deg) rotateX(-5deg) translateY(-8px); } }

/* PreApproval Clipboard */
.demo-preapproval-clip { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.clipboard { width: 50px; height: 65px; background: #374151; border-radius: 4px; position: relative; display: flex; justify-content: center; padding-top: 10px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.clip-top { position: absolute; top: -5px; width: 24px; height: 10px; background: #9ca3af; border-radius: 2px; }
.clip-paper { width: 40px; height: 50px; background: white; border-radius: 2px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.cb-row { display: flex; align-items: center; gap: 4px; }
.cb { width: 8px; height: 8px; border: 1px solid #f97316; border-radius: 1px; position: relative; }
.cb::after { content: '✔'; position: absolute; color: #f97316; font-size: 8px; top: -1px; left: 0px; opacity: 0; animation: checkMark 3s infinite; }
.cb-row:nth-child(1) .cb::after { animation-delay: 0.5s; }
.cb-row:nth-child(2) .cb::after { animation-delay: 1.0s; }
.cb-row:nth-child(3) .cb::after { animation-delay: 1.5s; }
.cb-line { height: 4px; background: #e5e7eb; flex: 1; border-radius: 2px; }
.pencil { position: absolute; right: -15px; top: 10px; width: 8px; height: 35px; background: #f97316; border-radius: 2px; transform: rotate(-45deg); animation: pencilWrite 3s infinite; }
.pencil::after { content: ''; position: absolute; bottom: -6px; left: 0; border-width: 6px 4px 0 4px; border-style: solid; border-color: #f97316 transparent transparent transparent; }
@keyframes checkMark { 0%, 10% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes pencilWrite {
    0% { transform: translate(0, 0) rotate(-45deg); }
    15% { transform: translate(-15px, 0px) rotate(-45deg); }
    30% { transform: translate(-15px, 14px) rotate(-45deg); }
    45% { transform: translate(-15px, 28px) rotate(-45deg); }
    60%, 100% { transform: translate(10px, -10px) rotate(-45deg); }
}

/* SnapGrad Stars */
.demo-snapgrad-stars { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; perspective: 500px; }
.star-3d { font-size: 3rem; color: #f43f5e; font-weight: 900; position: absolute; text-shadow: -1px 1px 0 #be123c, -2px 2px 0 #be123c, -3px 3px 0 #be123c, -4px 4px 0 #be123c, -5px 5px 0 #be123c, 0 10px 15px rgba(0,0,0,0.2); animation: floatStar 4s infinite alternate ease-in-out; }
.s-back { font-size: 2.2rem; color: #f97316; text-shadow: -1px 1px 0 #c2410c, -2px 2px 0 #c2410c, -3px 3px 0 #c2410c, -4px 4px 0 #c2410c, 0 10px 15px rgba(0,0,0,0.2); transform: translate(-20px, -10px) translateZ(-20px); animation-delay: -2s; }
.s-front { transform: translate(10px, 10px) translateZ(20px); }
@keyframes floatStar { 0% { margin-top: 0; } 100% { margin-top: -10px; } }

/* SnapDisclosures Chart */
.demo-disclosures-chart { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; }
.bar-chart-container { display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.bc-bar { width: 12px; background: #57534e; border-radius: 6px 6px 6px 6px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); animation: breatheBar 3s infinite alternate ease-in-out; }
.bc-bar.highlight { background: linear-gradient(180deg, #f97316, #fb923c); width: 16px; box-shadow: 0 0 15px rgba(249,115,22,0.4); z-index: 2; height: 100% !important; animation: none; transform: translateY(-5px); }
.b1 { height: 30%; animation-delay: 0.1s; }
.b2 { height: 50%; animation-delay: 0.2s; }
.b3 { height: 40%; animation-delay: 0.3s; }
.b5 { height: 60%; animation-delay: 0.5s; }
.b6 { height: 45%; animation-delay: 0.6s; }
.b7 { height: 35%; animation-delay: 0.7s; }
@keyframes breatheBar { 0% { transform: scaleY(1); } 100% { transform: scaleY(1.1); } }

/* SnapAudit Scan */
.demo-audit-scan { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.audit-paper { width: 45px; height: 60px; background: white; border: 2px solid #cbd5e1; border-radius: 4px; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; position: relative; box-shadow: 0 5px 10px rgba(0,0,0,0.05); overflow: hidden; }
.a-line { width: 100%; height: 4px; background: #e2e8f0; border-radius: 2px; }
.a-line.w-half { width: 60%; }
.a-line.highlight-red { background: #ef4444; }
.a-glass { position: absolute; font-size: 1.5rem; top: 10px; left: -5px; animation: scanGlass 3s infinite ease-in-out; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2)); }
@keyframes scanGlass { 0% { transform: translate(0,0); } 50% { transform: translate(20px, 30px); } 100% { transform: translate(0,0); } }


/* REAL IMAGE LOGOS - 3D Animated */
.tool-logo-img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    object-position: left center;
    display: block;
    transform-style: preserve-3d;
}

.tool-logo-img-mini {
    width: 100%;
    height: 40px;
    object-fit: contain;
    object-position: left center;
    display: block;
    transform-style: preserve-3d;
}

.tool-card:hover .tool-logo-img,
.tool-card-small:hover .tool-logo-img-mini {
    animation: wipeRevealHover 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: perspective(600px) translateY(-8px) scale(1.06);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

@keyframes wipeRevealHover {
    0% { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateX(-15px); }
    100% { clip-path: inset(0 0 0 0); opacity: 1; transform: translateX(0); }
}

@keyframes intenseLogoFloat {
    0% { transform: translateY(0) scale(1) rotate(0deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)) brightness(1); }
    25% { transform: translateY(-8px) scale(1.1) rotate(-3deg); filter: drop-shadow(0 15px 25px rgba(249, 115, 22, 0.4)) brightness(1.2); }
    50% { transform: translateY(0) scale(1) rotate(0deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)) brightness(1); }
    75% { transform: translateY(-8px) scale(1.1) rotate(3deg); filter: drop-shadow(0 15px 25px rgba(249, 115, 22, 0.4)) brightness(1.2); }
    100% { transform: translateY(0) scale(1) rotate(0deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)) brightness(1); }
}

.tool-card:hover .tool-logo-img,
.tool-card-small:hover .tool-logo-img-mini {
    transform: perspective(600px) translateY(-8px) scale(1.06);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

/* Innovative 3D Controls */
.house-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
    pointer-events: auto;
}
.house-btn {
    background: rgba(17, 24, 39, 0.85);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.house-btn:hover {
    background: var(--orange-brand);
    color: black;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--orange-brand);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Cinematic Tour Overlay Styles */
.tour-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.tour-bar {
    position: absolute;
    left: 0; right: 0;
    height: 12%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.top-bar { top: 0; transform: translateY(-100%); }
.bottom-bar { bottom: 0; transform: translateY(100%); }
.tour-overlay.active .top-bar { transform: translateY(0); }
.tour-overlay.active .bottom-bar { transform: translateY(0); }

.tour-content {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,245,255,0.9));
    padding: 15px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4), 
                0 0 20px rgba(59, 130, 246, 0.3),
                inset 0 0 0 2px rgba(255, 255, 255, 1);
    border: 2px solid var(--orange-brand);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}
.tour-content.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
.tour-content img {
    height: 50px;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    animation: colorfulFloat 3s ease-in-out infinite;
}

@keyframes colorfulFloat {
    0% { transform: translateY(0px); filter: drop-shadow(0 5px 15px rgba(249, 115, 22, 0.4)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 15px 25px rgba(59, 130, 246, 0.6)); }
    100% { transform: translateY(0px); filter: drop-shadow(0 5px 15px rgba(249, 115, 22, 0.4)); }
}
