:root {
    --header-bg: #101828;
    --nav-gradient: linear-gradient(90deg, #101828 0%, #1D2939 100%);
    --accent-mint: #63FFAD;
    --text-main: #1D2939;
    --text-muted: #475467;
    --off-white: #F9FAFB;
    --white: #FFFFFF;
    --border: #EAECF0;

}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- UNIFIED NAVBAR ARCHITECTURE --- */
.navbar {
    background: var(--nav-gradient);
    height: 80px;            /* Hard lock the height */
    min-height: 80px;        /* Prevent shrinking */
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100% !important;  /* Force full viewport width */
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;      /* Matches your container width */
    margin: 0 auto;
    padding: 0 2rem;
    flex-shrink: 0;         /* Prevents the wrapper itself from squeezing */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    flex-shrink: 0;         /* Prevents the menu items from shrinking */
}

.logo {
    display: flex !important;
    align-items: center;
    gap: 0 !important; 
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white) !important;
    text-decoration: none;
    /* THE LOCKS */
    flex-shrink: 0 !important; 
    width: 240px !important;   
    min-width: 240px !important;
    z-index: 1001;
    white-space: nowrap !important;
}

.logo span { 
    color: var(--accent-mint) !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Desktop Navigation Logic */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2.5rem;
        flex-grow: 1;
        margin-left: 4rem;
        list-style: none;
    }

    /* Pushes GET STARTED to the far right */
    .nav-links li:last-child {
        margin-left: auto;
    }

    /* Show dropdown on hover */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem !important; /* Lock the font size */
    transition: 0.3s;
    white-space: nowrap;          /* Prevent text from wrapping */
}

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

/* --- THE DROPDOWN MENUS --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1D2939; /* Deep Navy */
    min-width: 220px;
    padding: 15px 0;
    border-top: 2px solid var(--accent-mint); /* The Mint Cap */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu li a {
    padding: 10px 20px !important;
    display: block !important;
    color: #F9FAFB !important;
    font-size: 0.85rem !important;
}

.dropdown-menu li a:hover {
    background: rgba(99, 255, 173, 0.05) !important;
    color: var(--accent-mint) !important;
    padding-left: 25px !important;
}

/* --- GET STARTED CTA --- */
.nav-cta {
    background: var(--accent-mint);
    color: var(--header-bg) !important;
    padding: 12px 24px !important;
    border-radius: 8px;
    font-weight: 800 !important;
    transition: 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 255, 173, 0.3);
}

/* HERO */
.hero {
    padding: 120px 0 80px 0;
    background: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns { display: flex; gap: 1rem; }

.btn-primary {
    background: var(--header-bg);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-secondary {
    border: 2px solid var(--border);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-primary:hover { background: #1D2939; }

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.badge {
    background: #63FFAD;
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* CALCULATOR */
.calculator { padding: 100px 0; background: var(--off-white); }
.calc-container { background: var(--white); border-radius: 40px; padding: 60px; border: 1px solid var(--border); box-shadow: 0 4px 30px rgba(0,0,0,0.03); }
.calc-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 40px; }
.input-group { margin-bottom: 2rem; }
.input-group label { display: block; font-weight: 700; margin-bottom: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.input-group label span { color: var(--header-bg); font-size: 1.25rem; margin-left: 5px; }

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #EAECF0;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--header-bg);
    cursor: pointer;
    border: 4px solid var(--accent-mint);
}

.result-box {
    background: var(--header-bg);
    padding: 50px;
    border-radius: 30px;
    color: var(--white);
    text-align: center;
}

.result-label { color: var(--accent-mint); font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; }
.total-leak { font-size: 4.5rem; font-weight: 800; color: var(--accent-mint); margin: 20px 0; }
.result-box p { color: #98A2B3; margin-bottom: 30px; }

/* TRIAGE & NICHES */
.triage, .niches { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 3rem; margin: 20px 0; letter-spacing: -1.5px; }

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

.step-card, .niche-card {
    padding: 40px;
    background: #F9FAFB;
    border-radius: 24px;
    border: 1px solid #EAECF0;
    text-align: center;
}

.niche-icon {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
}

/* Ensure the base card has the smooth transition property */
.niche-card {
    transition: all 0.3s ease;
}

/* Applies the digital illumination and vertical lift */
.niche-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(99, 255, 173, 0.4), 0 15px 40px rgba(99, 255, 173, 0.2); 
    border-color: rgba(99, 255, 173, 0.8);
}

.step-num { font-size: 3rem; font-weight: 800; color: rgba(16, 24, 40, 0.05); margin-bottom: 1rem; }

/* --- FOOTER ARCHITECTURE --- */
.footer {
    background: var(--header-bg);
    color: var(--white);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: var(--accent-mint);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #98A2B3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-mint);
}

.footer-mission {
    margin-top: 20px;
    color: #D0D5DD;
    font-size: 1rem;
    max-width: 280px;
}

.footer-location {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #667085;
}

/* Bottom Bar */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    color: #667085;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #667085;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-credits {
    font-size: 0.75rem;
    color: #475467;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* PRICING SPECIFIC - ADDED TO MAINTAIN STRUCTURE WITHOUT BREAKING COLORS */
.pricing-summary { 
    background: var(--off-white); 
    padding: 60px 0; 
    border-bottom: 1px solid var(--border); 
}

.summary-grid {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Ensures the dividers stay full height */
    max-width: 1000px;     /* Limits the overall spread */
    margin: 40px auto 0;  /* Centers the whole grid on the page */
}

.summary-item {
    flex: 1;              /* Forces all 3 items to be exactly 33.3% wide */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;      /* Gives the text some breathing room */
    min-width: 200px;     /* Ensures columns don't get too squashed */
}

.summary-label { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
    display: block;
    width: 100%;
    text-align: center;
}

.summary-value { 
    white-space: nowrap;
    font-size: 2rem; 
    color: var(--header-bg); 
    font-weight: 800;
    display: block;
    width: 100%;
    text-align: center; 
}

.summary-divider { 
    border-left: 2px solid var(--header-bg); 
    padding-left: 0; 
}

.split-section { padding: 100px 0; }

.split-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

.split-grid.reverse .text-block { order: 2; }
.split-grid.reverse .image-placeholder { order: 1; }

.image-placeholder { 
    background: var(--off-white); 
    border-radius: 30px; 
    aspect-ratio: 16/10; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-muted); 
    border: 2px dashed var(--border); 
}

.text-block h2 { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: -1.5px; 
    color: var(--header-bg); 
}

.text-block p { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

@media (max-width: 768px) {
    .grid, .calc-content, .logic-steps, .niche-grid, .split-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-text h1 { font-size: 3rem; }
    .summary-grid { flex-direction: column; gap: 30px; }
    .summary-divider { border-left: none; padding-left: 0; }
    .split-grid.reverse .text-block { order: 1; }
    .split-grid.reverse .image-placeholder { order: 2; }
}

/* 7-Day Proof Section */
.proof-section { padding: 100px 0; background: var(--white); }

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.proof-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    
    /* The Flexbox Magic */
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Optional: ensures a consistent height even with short text */
}

.proof-card:hover {
    transform: translateY(-5px);
    /* Stacked shadow: tight bright core + wide ambient spread */
    box-shadow: 0 5px 15px rgba(99, 255, 173, 0.4), 0 15px 40px rgba(99, 255, 173, 0.2); 
    border-color: rgba(99, 255, 173, 0.8);
}

/* Illuminates the ghost number with a softer glow when the card is hovered */
.proof-card:hover .step-ghost {
    opacity: 0.5;
    text-shadow: 0 0 15px rgba(99, 255, 173, 0.3);
}

/* The Ghost Number */
.step-ghost {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 100px;
    font-weight: 900;
    color: var(--accent-mint);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
    transition: all 0.3s ease; /* Add this line */
}

.proof-card h3 { 
    margin-bottom: 15px; 
    font-size: 1.4rem; 
    position: relative; 
    z-index: 1;
}

.proof-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.step-time {
    /* This pushes the element to the bottom of the flex container */
    margin-top: auto; 
    
    padding-top: 30px; /* Maintains breathing room from the paragraph above */
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-mint);
    position: relative;
    z-index: 1;
}

/* Center and force single-line for Partnership Headline */
.section-header h2 {
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Ensure the container doesn't restrict the width */
.section-header {
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-header h2 {
        white-space: normal; /* Allow wrapping on small screens */
        font-size: 2rem;     /* Shrink font to fit better */
    }
}

.partnership-card {
    position: relative;
    padding: 60px 40px 40px 40px; /* Extra top padding for the tag */
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.step-tag {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--accent-mint);
    color: var(--header-bg); /* Dark text on mint background */
    font-weight: 900;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 255, 173, 0.3);
    z-index: 2;
}

/* Styling for the Partnership Cards */
.logic-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    background: var(--white);
    padding: 60px 40px 40px 40px; 
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative; 
    overflow: visible;  
    transition: all 0.3s ease; /* Updated from 'transform' to 'all' for smooth glow fading */
}

/* Adds the pronounced mint illumination matching the 7-Day Proof containers */
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(99, 255, 173, 0.4), 0 15px 40px rgba(99, 255, 173, 0.2); 
    border-color: rgba(99, 255, 173, 0.8);
}

/* Softened, Sleek Partnership Tag */
.step-num {
    position: absolute;
    top: -14px;
    left: 30px;
    /* Softened Mint: very light background with the main mint for the text */
    background: #f0fff7; 
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
    
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 1.5px;
    
    /* Remove the heavy shadow for a flatter, cleaner look */
    box-shadow: none; 
}
.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

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

.nav-cta {
    text-decoration: none; /* Removes the underline */
    display: inline-block; /* Ensures padding and height work correctly */
}

/* Integration Section Styles */
.integration-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 50px;
}

.integration-col {
  flex: 1;
}

.ecosystem-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.integration-main-wrapper {
  display: flex;
  gap: 60px; /* Increased gap for breathing room */
  align-items: stretch; /* Ensures columns stay same height */
  margin-top: 50px;
}

.integration-left {
  flex: 1.2; /* Image side slightly wider to ensure it "stars" */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.integration-right {
  flex: 1.5; /* Table is wide to keep text on 1-2 lines */
  display: flex;
  align-items: center; /* Centers table vertically against the image stack */
}

.ecosystem-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
}

.copy-container h3 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.copy-container p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 15px;
}

/* Audit Table Styling - Optimized for width */
.audit-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.audit-table th, .audit-table td {
  padding: 22px 20px; /* More horizontal padding for the wide look */
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.audit-table th {
  background-color: #fafafa;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: #999;
}

.audit-table td:nth-child(2) {
  color: #888;
}

.audit-table td:nth-child(3) {
  color: #63FFAD;
  font-weight: 600;
}

/* Mobile fix */
@media (max-width: 1100px) {
  .integration-main-wrapper {
    flex-direction: column;
  }
}

.architecture-image img {
    width: 100%;            /* Allows it to fill the container up to the max */
    max-width: 600px;       /* Adjust this value to what feels "reasonable" for your layout */
    height: auto;           /* Maintains aspect ratio */
    display: block;         /* Removes bottom whitespace gap */
    margin: 0 auto;         /* Centers the image if the container is wider */
    border-radius: 12px;    /* Optional: matches the modern aesthetic of your other cards */
}

@media (max-width: 992px) {
    .roi-wrapper {
        flex-direction: column-reverse !important;
        align-items: center !important;
    }
    
    .leakage-visual-side {
        height: 450px; /* Provides a consistent height for the image on mobile */
        max-width: 100% !important;
    }

    .leakage-visual-side img {
        object-fit: cover;
    }
}

/* 1. Target the container specifically within the Pricing Summary */
.pricing-summary .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 2. Ensure the badge doesn't inherit any stray left-margins */
.pricing-summary .badge {
    margin-left: auto;
    margin-right: auto;
}

/* --- Automated Smartphone Simulator Styles --- */
.phone-viewport-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 640px;
    margin: 0 auto;
    border-radius: 40px;
    border: 12px solid #1e293b; /* Realistic Device Frame Bezel */
    background: url('images/ecosystem.webp') no-repeat center center; /* Evocative backdrop asset */
    background-size: cover;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.phone-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45); /* Dark tint layering */
    backdrop-filter: blur(12px); /* Artistic backdrop blur effect */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.phone-status-bar {
    height: 28px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(15, 23, 42, 0.2);
}

.phone-header-app {
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-status {
    width: 36px;
    height: 36px;
    background: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    position: relative;
}

.avatar-status::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e; /* Live online indicator */
    border: 2px solid #1e293b;
    border-radius: 50%;
}

.chat-stream-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom Webkit scrollbar removal to keep device screen clean */
.chat-stream-body::-webkit-scrollbar { display: none; }

.chat-bubble-row {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(12px);
    animation: bubbleSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bubble-assistant {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    align-self: flex-start;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bubble-prospect {
    background: #0ea5e9;
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

/* Animated Indicator for Human-like typing delay */
.typing-indicator-row {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 18px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
    animation: dotPulse 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Mid-screen System Overlay for Webhook Processing Flash */
.payload-dispatch-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.payload-dispatch-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pulse-check-icon {
    width: 64px;
    height: 64px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: iconPulseRing 1.5s infinite ease-out;
}

@keyframes bubbleSlideIn { to { opacity: 1; transform: translateY(0); } }
@keyframes dotPulse { 0%, 100% { transform: scale(0.8); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes iconPulseRing { to { box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); } }

/* --- Centered Hero Layout Overrides --- */
.hero-centered {
    padding: 60px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff;
}

.hero-text-center {
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-text-center h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--header-bg);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-text-center p {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

/* Wide-Aspect Abstract Canvas Frame */
.abstract-hero-canvas {
    width: 100%;
    max-width: 900px;
    height: 340px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-hero-canvas::after {
    content: 'BRAND GRAPHIC SYSTEM LOOP PLACEHOLDER';
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.abstract-hero-canvas::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
    top: -50px;
    left: -50px;
    animation: pulseAmbientGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseAmbientGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(50px, 30px) scale(1.2); opacity: 1; }
}

/* New Demonstration Section Scaling Modifications */
.demo-phone-container .phone-viewport-wrapper {
    max-width: 320px !important;
    height: 550px !important;
    border-width: 10px !important;
    border-radius: 36px !important;
}

/* ==========================================================================
   NEXT-GEN PHOTOGRAPHIC GLASSMORPHIC REEL
   ========================================================================== */

.hero-canvas-container {
    width: 100%;
    max-width: 900px;
    height: 380px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Technical Blueprint Grid Overlay Background */
.hero-canvas-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    pointer-events: none;
    z-index: 1;
}

/* Slide Setup with Cross-Fade Layers */
.blueprint-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    
    /* Flexbox layout to align the badge to the bottom center */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px; /* Generous padding from the bottom edge */
}

.blueprint-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* ==========================================================================
   NEXT-GEN PHOTOGRAPHIC REEL ARCHITECTURE (REVISED NARRATIVE)
   ========================================================================== */

/* Slide 1: The Ingress (Homeowner Flood Emergency) */
#slide-electrical {
    background: linear-gradient(rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.25)), 
                url('images/hero-lead-ingress.webp') no-repeat center center;
    background-size: cover;
}

/* Slide 2: The Capture (High-Value Lead Locked) */
#slide-hvac {
    background: linear-gradient(rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.25)), 
                url('images/hero-lead-capture.webp') no-repeat center center;
    background-size: cover;
}

/* Slide 3: The Fulfillment (Engineer On-Site Deployment) */
#slide-delivery {
    background: linear-gradient(rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.25)), 
                url('images/hero-lead-fulfill.webp') no-repeat center center;
    background-size: cover;
}

/* Premium Glassmorphic Data Panel Card */
.glass-data-card {
    .glass-data-card {
    /* Remove the semi-solid dark color entirely and leave it clear */
    background: transparent !important;
    
    /* Keep the glass edge tracking cleanly over your bright scenes */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Bumped opacity slightly so the outline is visible against white backgrounds */
    border-radius: 8px;
    
    /* Keep the compact positioning rules intact */
    width: auto !important;
    max-width: max-content !important;
    padding: 10px 18px !important;
    
    /* Remove the heavy shadow since the panel is now clear */
    box-shadow: none !important;
}
}

.glass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #63FFAD;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background: #63FFAD;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(99, 255, 173, 0.7);
    animation: statusPulseRing 1.8s infinite;
}

.glass-data-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stream-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.stream-label {
    color: #0ea5e9;
    font-weight: 700;
    min-width: 160px;
    letter-spacing: -0.5px;
}

.stream-value {
    color: #ffffff;
    font-weight: 500;
}

@keyframes statusPulseRing {
    to { box-shadow: 0 0 0 8px rgba(99, 255, 173, 0); }
}