:root {
    /* --- STERILE LIGHT PALETTE --- */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-tech: #f0f9ff; /* Very faint blue tint */

    /* Accents - Sky Blue & Cyan */
    --accent-core: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.2);

    /* Text - No Pure Black */
    --text-header: #334155; /* Slate 700 (Dark Grey) */
    --text-body: #64748b; /* Slate 500 (Medium Grey) */

    --border-light: #e2e8f0;

    --font-main: "Inter", sans-serif;
    --font-code: "JetBrains Mono", monospace;

    /* Global Variables for Practice Ecosystem */
    --primary: #000000;
    --accent: #000000;
    --dark: #333;
    --gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Responsive Fix for Images/Videos */
img,
video,
svg {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden; /* Prevents horizontal scroll on small devices */
    width: 100%;
}

@keyframes panGrid {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* --- TYPOGRAPHY --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.code-font {
    font-family: var(--primary);
    font-size: 0.85rem;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #000000, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* --- UI ELEMENTS (White & Blue) --- */

/* 1. Tech Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centered for mobile */
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-code);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-primary {
    background: #000000;
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: transparent;
    color: #000000;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* 2. Glass Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

/* 3. The "Scanner" Animation */
@keyframes scanLight {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}
.scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--accent-core);
    animation: scanLight 3s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

/* 4. Typing Effect */
.typing {
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: blinkCursor 0.75s step-end infinite;
    display: inline-block;
    padding-right: 5px;
    color: #000000 !important;
    max-width: 100%; /* Prevent overflow on small screens */
}
@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px; /* Added explicit padding */
}
.logo {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-header);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-badge {
    font-size: 0.6rem;
    background: var(--bg-tech);
    color: var(--accent-core);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.dynamic-text {
    color: var(--primary-black);
}

.input-cursor {
    display: inline-block;
    width: 2px;
    color: var(--primary-black);
    animation: blink 0.75s step-end infinite;
    margin-left: 2px;
}

/* =========================================================================================================
   3. AI-Powered Dental Practice Ecosystem
   ========================================================================================================= */

.services-section {
    background-color: #fff;
    padding: 150px 30px 30px 30px;
    overflow: hidden; /* Essential for containing the scaled diagram */
}

/* RESPONSIVE PADDING ADJUSTMENT */
@media (max-width: 768px) {
    .services-section {
        padding: 80px 20px 20px 20px;
    }
}

.container-custom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    width: 100%;
}

.container-custom p {
    text-align: center;
}

h2 {
    margin-bottom: 10px !important;
}

.flow-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* =========================================
   2. PROCESS MAP CONTAINER
   ========================================= */
.process-flow-container {
    position: relative;
    width: 1100px;
    height: 650px;
    margin: 50px auto 0 auto;
    /* Ensure it doesn't overflow parent initially */
    transform-origin: top center;
}

/* --- SVG CONNECTION LAYER --- */
.connection-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.path-line {
    fill: none;
    stroke: #e0e6ed;
    stroke-width: 2px;
}

.moving-dot {
    fill: var(--primary);
    r: 4px;
}

/* --- HEADERS --- */
.col-header {
    position: absolute;
    top: 0;
    width: 300px;
    text-align: center;
    font-size: 14px;
    font-weight: 800 !important;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-left {
    left: 0;
}
.header-right {
    right: 0;
}

/* =========================================
   3. FLOW CARDS (The Boxes)
   ========================================= */
.flow-card {
    overflow: visible !important;
    position: absolute;
    width: 260px;
    height: 60px;
    background: white;
    border-radius: 12px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
    z-index: 2;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}

.flow-card:hover {
    box-shadow: 0 8px 25px rgba(26, 79, 186, 0.2);
    z-index: 100;
}

.flow-card-icon {
    min-width: 30px;
    margin-right: 15px;
    color: var(--primary);
    font-size: 16px;
    text-align: center;
}

.flow-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.flow-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

/* =========================================
   4. HOVER POPUP (The Comment Bubble)
   ========================================= */
.hover-popup {
    position: absolute;
    width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    top: -40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 101;
}

.flow-card:hover .hover-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.popup-section {
    margin-bottom: 15px;
}
.popup-section:last-child {
    margin-bottom: 0;
}

.hover-popup strong {
    display: block;
    color: var(--primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 3px;
}

.hover-popup ul {
    margin: 0;
    padding-left: 15px;
    list-style-type: disc;
}
.hover-popup li {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 3px;
}

/* POPUP POSITIONING */
[class*="card-l"] .hover-popup {
    left: 105%;
    right: auto;
}
[class*="card-l"] .hover-popup::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.05));
}

[class*="card-r"] .hover-popup {
    right: 105%;
    left: auto;
}
[class*="card-r"] .hover-popup::before {
    content: "";
    position: absolute;
    top: 30px;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(2px 0 1px rgba(0, 0, 0, 0.05));
}

/* FIX FOR BOTTOM CARDS */
.card-l6 .hover-popup,
.card-l7 .hover-popup,
.card-r6 .hover-popup,
.card-r7 .hover-popup {
    top: auto !important;
    bottom: -10px !important;
}

.card-l6 .hover-popup::before,
.card-l7 .hover-popup::before,
.card-r6 .hover-popup::before,
.card-r7 .hover-popup::before {
    top: auto !important;
    bottom: 25px !important;
}

/* =========================================
   7. CARD POSITIONS (SYMMETRIC GRID)
   ========================================= */
.card-l1 {
    top: 80px;
    left: 0;
}
.card-l2 {
    top: 160px;
    left: 0;
}
.card-l3 {
    top: 240px;
    left: 0;
}
.card-l4 {
    top: 320px;
    left: 0;
}
.card-l5 {
    top: 400px;
    left: 0;
}
.card-l6 {
    top: 480px;
    left: 0;
}
.card-l7 {
    top: 570px;
    left: 0;
}

.card-r1 {
    top: 80px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r2 {
    top: 160px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r3 {
    top: 240px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r4 {
    top: 320px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r5 {
    top: 400px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r6 {
    top: 480px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r7 {
    top: 570px;
    right: 0;
    border-left-color: var(--dark);
}
.card-r8 {
    display: none;
}

/* =========================================
   8. CENTER NODE STYLING
   ========================================= */
.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.4);
    z-index: 2;
}

.center-node::after {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    border: 2px dashed #1a469b;
    border-radius: 50%;
    animation: spin-simple 10s linear infinite;
}

.center-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}
.center-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 5px;
}

/* =========================================
   11. NEW PROCESSING CARD
   ========================================= */
.processing-card {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 78, 235, 0.541);
    z-index: 20;
    border: 1px solid #f0f4f8;
}

.processing-card::after {
    content: "";
    position: absolute;
    bottom: -45px;
    left: 50%;
    width: 2px;
    height: 45px;
    background: linear-gradient(to bottom, #e0e6ed 0%, var(--primary) 100%);
    transform: translateX(-50%);
    z-index: -1;
}

.processing-card::before {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(26, 79, 186, 0.1);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #1a469b;
    padding-bottom: 8px;
}
.card-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.spinner-icon {
    width: 14px;
    height: 14px;
    border: 2px solid #e1e4e8;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin-loader 1s infinite linear;
}

@keyframes spin-loader {
    100% {
        transform: rotate(360deg);
    }
}

.looping-text-container {
    position: relative;
    height: 24px;
    overflow: hidden;
}

.loop-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    opacity: 0;
    transform: translateY(10px);
    animation: textCycle 15s infinite;
}

.loop-item:nth-child(1) {
    animation-delay: 0s;
}
.loop-item:nth-child(2) {
    animation-delay: 3s;
}
.loop-item:nth-child(3) {
    animation-delay: 6s;
}
.loop-item:nth-child(4) {
    animation-delay: 9s;
}
.loop-item:nth-child(5) {
    animation-delay: 12s;
}

@keyframes textCycle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    5% {
        opacity: 1;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes spin-simple {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes flow {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

.dot-anim {
    animation: flow 3s infinite linear;
}
.delay-1 {
    animation-delay: 0s;
}
.delay-2 {
    animation-delay: 0.5s;
}
.delay-3 {
    animation-delay: 1s;
}
.delay-4 {
    animation-delay: 1.5s;
}

/* =========================================
   10. RESPONSIVE SCALING FOR PROCESS MAP
   ========================================= */

/* Laptops */
@media (max-width: 1220px) {
    .process-flow-container {
        transform: scale(0.8);
        margin-bottom: -120px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .process-flow-container {
        transform: scale(0.6);
        margin-bottom: -240px;
        /* Center it better on tablet */
        left: 50%;
        margin-left: -330px; /* offset half of the SCALED width (1100*0.6 = 660 / 2 = 330) */
        transform-origin: top left; /* Changed origin for easier centering */
    }
}

/* Mobile Large */
@media (max-width: 650px) {
    .process-flow-container {
        transform: scale(0.45);
        margin-bottom: -320px;
        margin-left: -247.5px; /* (1100 * 0.45) / 2 */
        left: 50%;
        transform-origin: top left;
    }
}

/* Mobile Small (Phones) - CRITICAL UPDATE */
@media (max-width: 450px) {
    .process-flow-container {
        transform: scale(0.32); /* Scale down significantly */
        margin-bottom: -400px; /* Pull up content below */
        margin-left: -176px; /* (1100 * 0.32) / 2 */
        left: 50%;
        transform-origin: top left;
    }

    .services-section {
        padding-top: 60px; /* Reduce padding on small phones */
    }
}

/* =========================================================================================================
   6. Why Choose Fission Monster? (Compact Version)
   ========================================================================================================= */
.why-section {
    margin-top: 40px;
}
.grid-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    background-color: #fff;
    width: 100%;
}
.grid-row {
    display: grid;
    width: 100%;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-item {
    position: relative;
    padding: 25px 20px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 180px;
    overflow: hidden;
    background: #fff;
    z-index: 1;
}

.grid-item:hover {
    background-color: #f8fafc;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.grid-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.grid-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.grid-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    max-width: 90%;
}

.dot-h {
    position: absolute;
    bottom: -1px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 50%, var(--primary) 100%);
    animation: runHorizontal 3s linear infinite;
    pointer-events: none;
    z-index: 5;
}

.dot-v {
    position: absolute;
    top: -100%;
    right: -1px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, var(--primary) 100%);
    animation: runVertical 3s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes runHorizontal {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes runVertical {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* RESPONSIVE GRID UPDATES */
/* Tablet: 2 Columns */
@media (max-width: 992px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Mobile: 1 Column */
@media (max-width: 600px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .grid-item {
        min-height: auto;
        padding: 30px;
    }
}

/* --- FEATURES --- */
.feature-section {
    padding: 100px 0;
    background: white;
}
/* Responsive Feature Section Padding */
@media (max-width: 768px) {
    .feature-section {
        padding: 60px 0;
    }
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Responsive Feature Rows */
@media (max-width: 900px) {
    .feature-row,
    .feature-row.reverse {
        flex-direction: column; /* Stack vertically on tablet/mobile */
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }

    .feature-text {
        order: 2; /* Text below image */
    }

    .visual-card {
        order: 1;
        width: 100%; /* Full width image */
    }
}

.tag {
    font-family: var(--font-code);
    color: var(--accent-core);
    font-size: 0.8rem;
    background: var(--bg-tech);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.feature-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem); /* Fluid font size */
    color: var(--text-header);
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.feature-text p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Visual Cards */
.visual-card {
    flex: 1;
    height: 350px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-core);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes bounce {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.5);
    }
}

/* ========================================================================================
   CTA SECTION STYLES
   ======================================================================================= */
.cta-section {
    position: relative;
    padding: 120px 20px;
    background-color: var(--bg-white);
    overflow: hidden;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-top: 70px;
}

/* Mobile CTA Spacing */
@media (max-width: 768px) {
    .cta-section {
        padding: 80px 20px;
        margin-top: 40px;
    }
}

/* --- BACKGROUND EFFECTS --- */
.cta-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: radial-gradient(
        rgba(14, 165, 233, 0.1) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    opacity: 0.5;
    animation: gridPan 60s linear infinite;
    z-index: 0;
}

.cta-scanner {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent-core),
        transparent
    );
    box-shadow: 0 0 15px var(--accent-core);
    opacity: 0.8;
    animation: scanDown 4s ease-in-out infinite;
    z-index: 1;
}

.cta-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: 2;
}

/* --- CONTENT STYLES --- */
.cta-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.cta-heading {
    font-size: clamp(2rem, 5vw, 3rem); /* Fluid Font */
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.2s forwards;
}

.cta-subheading {
    font-size: 1.2rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.4s forwards;
}

.cta-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.6s forwards;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.btn-solid-pulse {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    animation: softPulse 2s infinite;
}
.btn-solid-pulse:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    animation: none;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes gridPan {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scanDown {
    0% {
        top: -10%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

/* CTA Responsive */
@media (max-width: 768px) {
    .cta-btn-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ====================================================================================
   SECTION: CLIENT-CENTRIC UNIVERSE & THE FUTURE
   ==================================================================================== */
.universe-section,
.future-section {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #ffffff;
}

.home-lead-text {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #a3a3a3;
    margin-bottom: 10px;
    max-width: 800px;
}

.home-lead-text strong {
    color: #ffffff;
    font-weight: 600;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}
.delay-400 {
    transition-delay: 0.4s;
}
.delay-600 {
    transition-delay: 0.6s;
}

/* --- UNIVERSE ORBITAL ANIMATION --- */
.universe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.orbital-wrapper {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.client-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000000;
    z-index: 10;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: rotateOrbit linear infinite;
}

.orbit-1 {
    width: 150px;
    height: 150px;
    animation-duration: 20s;
}
.orbit-2 {
    width: 250px;
    height: 250px;
    animation-duration: 35s;
    animation-direction: reverse;
}
.orbit-3 {
    width: 350px;
    height: 350px;
    animation-duration: 50s;
    opacity: 0.5;
}

.orbit::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #ffffff;
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bullet Points */
.result-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-item {
    border-left: 3px solid #ffffff;
    padding-left: 20px;
    font-size: 0.8rem;
    color: #e0e0e0;
}

/* ====================================================================================
   OVERRIDE: WHITE THEME FOR "THE FUTURE" SECTION
   ==================================================================================== */

.future-section {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-top: 1px solid #e5e7eb;
}

.future-section .home-section-title {
    color: #000000 !important;
}
.future-section .home-lead-text {
    color: #52525b !important;
}
.future-section .home-lead-text strong {
    color: #000000 !important;
}

.future-section .home-cta-btn {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.future-section .home-cta-btn:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.cta-wrapper {
    margin-top: 50px;
}

.home-cta-btn {
    display: inline-block;
    padding: 18px 45px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.home-cta-btn:hover {
    background: #e0e0e0;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* --- RESPONSIVE ADJUSTMENTS (Universe & Future) --- */
@media (max-width: 900px) {
    .universe-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .orbital-wrapper {
        height: 350px;
        order: -1; /* Show visual first on mobile */
        margin-bottom: 40px;
    }

    .orbit-1 {
        width: 180px;
        height: 180px;
    }
    .orbit-2 {
        width: 300px;
        height: 300px;
    }
    .orbit-3 {
        display: none;
    } /* Hide large orbit on mobile to prevent overflow */

    .result-list {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-section-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   FIX FOR TABLETS & MOBILE (770px and Below)
   ========================================= */
@media (max-width: 770px) {
    /* --- 1. HERO SECTION FIX (Intelligent AI...) --- */
    /* Target the hero container seen in your screenshot (.bw-hero) */
    .bw-hero {
        padding: 100px 20px 60px 20px !important; /* Add breathing room top/bottom */
        text-align: center !important;
        height: auto !important; /* Allow it to grow if text wraps */
    }

    /* Force the Main Title to shrink */
    .bw-hero h1,
    .bw-hero .hero-title {
        font-size: 2.2rem !important; /* Reduced from Desktop size */
        line-height: 1.2 !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        word-wrap: break-word; /* Prevents cutoff */
    }

    /* Center the description text */
    .bw-hero p {
        font-size: 1rem !important;
        max-width: 90%;
        margin: 0 auto 30px auto !important;
    }

    /* Fix Button Group (Stack them) */
    .bw-hero div[style*="flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    .btn-group {
        margin: 0 auto;
        justify-content: center !important;
        align-items: center;
    }
    /* --- 2. CLIENT-CENTRIC UNIVERSE FIX --- */
    .universe-section {
        padding: 60px 20px !important;
        text-align: center !important;
    }

    /* Force Single Column Stack */
    .universe-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    /* Ensure Orbit Visual is on TOP and Centered */
    .orbital-wrapper {
        order: -1; /* Moves it above text */
        margin: 0 auto 20px auto;
        transform: scale(0.85); /* Slightly smaller to fit width */
    }

    /* Center the Text Block */
    .universe-section .home-section-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
        text-align: left;
        padding-left: 25px;
    }

    .universe-section .home-lead-text {
        text-align: center !important;
        margin: 0 auto 25px auto !important;
        font-size: 0.95rem;
        padding: 10px;
    }

    /* Fix the Bullet List Alignment */
    /* We center the CONTAINER, but keep text LEFT aligned so bullets look right */
    .result-list {
        text-align: left !important;
        margin: 0 auto !important;
        padding-left: 35px; /* Minor indent */
        grid-template-columns: 1fr !important; /* Stack bullets vertically */
        gap: 12px;
    }

    .result-item {
        font-size: 0.9rem;
        padding-left: 15px; /* Space between border and text */
    }
}
