/* Neurality Technologies Design System */
/* Version 1.0 */

:root {
    /* Colors - Primary */
    --color-primary-brand: #6E4978;
    --color-secondary-aqua: #46E0FE;
    --color-secondary-dark: #5D449D;

    /* Colors - Neutrals & Backgrounds */
    --color-text-dark: #1A1A1A;
    --color-text-light: #FFFFFF;
    --color-bg-white: #FFFFFF;
    --color-bg-light-gray: #F5F5F5;
    --color-bg-dark-gray: #333333;
    --color-border-gray: #E0E0E0;

    /* Colors - Dark Theme */
    --color-bg-dark-hero: #5C41CE;
    --color-text-on-dark-primary: #FFFFFF;
    --color-text-on-dark-muted: #D1D1D1;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 80px;

    /* Components */
    --border-radius: 4px;
    /* Buttons */
    --border-radius-card: 12px;
    /* Softer, modern corners */
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* V2 Specifics */
    --color-bg-subtle-corporate: #F8F9FC;
    /* Cool white */
    --color-accent-blue: #394ba0;
    --color-accent-purple: #9652a1;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    /* Default weight */
    margin-bottom: var(--space-sm);
}

h1 {
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

h4 {
    font-size: 20px;
    line-height: 1.4;
}

p {
    margin-bottom: var(--space-sm);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-lg) 0;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-md {
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
    background-color: var(--color-primary-brand);
    color: var(--color-text-light);
    border: none;
}

.btn-primary:hover {
    filter: brightness(0.9);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-brand);
    border: 2px solid var(--color-primary-brand);
}

.btn-secondary:hover {
    background-color: rgba(110, 73, 120, 0.05);
}

/* Dark Theme Buttons Overrides (for Hero) */
.btn-primary-inverse {
    background-color: var(--color-primary-brand);
    color: var(--color-text-light);
}

.btn-secondary-inverse {
    color: var(--color-text-light);
    /* Assuming white text on dark hero */
    border-color: var(--color-text-light);
}

.btn-secondary-inverse:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Badge */
.badge {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-secondary-aqua);
    margin-bottom: var(--space-xs);
}

/* Card */
.card {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
    border-radius: var(--border-radius-card);
    padding: var(--space-lg);
    /* More breathing room */
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

/* Feature Cards (Why Partner) Accent */
.why-partner .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    opacity: 0.8;
}

.card-flagship {
    border: none;
    /* Removed default border */
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at center, #5C41CE 25%, #9652a1 100%);
    color: var(--color-text-on-dark-primary);
}

.card-flagship h3,
.card-flagship p {
    color: var(--color-text-on-dark-primary);
}

.card-flagship .text-link {
    color: var(--color-secondary-aqua);
}

.card-flagship .text-link:hover {
    color: var(--color-text-light);
}

.card-flagship::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(135deg, var(--color-secondary-aqua), var(--color-accent-purple));
    border-radius: 14px;
    /* Slightly larger than card radius */
    opacity: 0.3;
    transition: opacity 0.3s;
}

/* .card-flagship:hover::after {
    opacity: 1;
} */


/* Responsive */
@media (max-width: 1024px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .section {
        padding: 40px 0;
    }

    .nav-links {
        display: none;
    }

    /* Basic Mobile Hide */
    .hero-actions {
        flex-direction: column;
    }
}

/* --- Section Specific Styles --- */

/* Global Nav */
.global-nav {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-gray);
    background: var(--color-bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.global-nav.scrolled {
    background: #1A1A1A;
    /* Dark background */
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.global-nav.scrolled .nav-links a {
    color: var(--color-text-light);
}

.global-nav.scrolled .nav-links a:hover {
    color: var(--color-secondary-aqua);
}

.global-nav.scrolled .btn-secondary {
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.global-nav.scrolled .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.global-nav.scrolled .logo img {
    height: 100px;
    /* Adjusted to 100px */
    width: auto;
}

.nav-links ul {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-dark);
}

.nav-links a:hover {
    color: var(--color-primary-brand);
}

/* Hero Section */
.hero-section {
    /* background-color: var(--color-bg-dark-hero); */
    background: radial-gradient(circle at center, #5C41CE 25%, #9652a1 100%);
    color: var(--color-text-on-dark-primary);
    padding: 40px 0;
    overflow: hidden;
    /* Prevent visual overlay spill */
}

/* V2 Split Hero Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

/* Right Column Visual */
.hero-visual-right {
    display: flex;
    justify-content: center;
    position: relative;
    /* Animation Entry */
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.3s forwards;
}

/* Glass Card Mockup */
.glass-card-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.4s ease;
}

.glass-card-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.glass-content {
    color: white;
    text-align: center;
}

.glass-content span {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.glass-content strong {
    display: block;
    font-size: 48px;
    margin: 10px 0 20px 0;
    background: linear-gradient(135deg, #fff 0%, #aaccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    width: 98%;
    background: #46E0FE;
    box-shadow: 0 0 10px #46E0FE;
    animation: fillBar 1.5s ease-out forwards;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: 98%;
    }
}

/* Mobile Adjust for Grid */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .hero-visual-right {
        order: -1;
        /* Show visual on top or keep bottom? Keeping Default order (bottom/second) for now unless order: -1 is desired. */
        margin-top: var(--space-lg);
    }

    .hero-content-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-body {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-subtitle {
    color: var(--color-text-on-dark-primary);
    font-size: 24px;
    margin-bottom: var(--space-md);
}

.hero-body {
    color: var(--color-text-on-dark-primary);
    max-width: 800px;
    margin-bottom: var(--space-lg);
}

/* Text Link */
.text-link {
    color: var(--color-secondary-aqua);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-sm);
}

.text-link:hover {
    text-decoration: underline;
}

/* Utilities Extras */
.bg-light-gray {
    background-color: var(--color-bg-subtle-corporate);
}

.text-center {
    text-align: center;
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.logo-placeholder {
    background: #e0e0e0;
    padding: 20px;
    text-align: center;
    color: #666;
    font-weight: bold;
}

/* Footer */
.global-footer {
    background-color: var(--color-bg-dark-gray);
    color: var(--color-text-light);
    padding: var(--space-xl) 0;
}

.disclaimer {
    color: #999;
    font-size: 12px;
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: #ccc;
    margin-left: var(--space-md);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Role Cards (Who We Serve) */
.card-role {
    text-align: center;
    border: 1px solid var(--color-border-gray);
    background: white;
}

.card-role:hover {
    background: var(--color-bg-dark-gray);
    color: white;
}

.card-role:hover h3 {
    color: var(--color-secondary-aqua);
}

.card-role:hover .role-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Expandable Cards (Why Partner) */
.card-expandable {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: 180px;
    /* Consistent starting size */
    max-height: 180px;
    /* Limit default height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-expandable:hover {
    max-height: 500px;
    /* Allow growth, but don't force fixed height */
    background: white;
    box-shadow: var(--shadow-card-hover);
    z-index: 10;
}

.card-trigger {
    margin-top: auto;
    color: var(--color-accent-blue);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.3s;
}

.card-expandable:hover .card-trigger {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
}

.card-body-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.card-expandable:hover .card-body-hidden {
    opacity: 1;
    transform: translateY(0);
}

/* Login Page Styles */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.login-container {
    width: 100%;
    max-width: 800px;
}

.card-login {
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.card-login:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    background: var(--color-bg-subtle-corporate);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-accent-blue);
}

.service-1-icon::before {
    content: '1';
    font-size: 24px;
}

.service-2-icon::before {
    content: '2';
    font-size: 24px;
}

/* Process Flow (ADI RevCycle) */
.process-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-text-dark);
    /* Stronger border as per image */
    border-radius: 16px;
    padding: var(--space-lg);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 64px;
    color: #4a5a75;
    /* Slate blue-ish grey from image */
    line-height: 1;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.process-card h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.process-card p {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Arrow Connector */
.process-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1025px) {
    .process-card:not(:last-child)::after {
        content: '→';
        position: absolute;
        right: -30px;
        /* Half of gap (md=24px), might need adjustment */
        top: 50%;
        transform: translateY(-50%);
        font-size: 32px;
        color: var(--color-text-dark);
        font-weight: 300;
        z-index: 1;
    }
}

/* Check List (Validation Section) */
.check-list {
    list-style: none;
    /* Remove default bullets */
    padding-left: 0;
}

.check-list li {
    padding-left: 30px;
    /* Space for checkmark */
    position: relative;
    margin-bottom: var(--space-xs);
}

.check-list li::before {
    content: '✔';
    /* Unicode Checkmark */
    position: absolute;
    left: 0;
    color: var(--color-secondary-aqua);
    /* Match brand theme */
    font-weight: bold;
    font-size: 18px;
    line-height: 1.5;
    /* Align with text */
}

/* Cross List (Challenge Section) */
.cross-list {
    list-style: none;
    /* Remove default bullets */
    padding-left: 0;
}

.cross-list li {
    padding-left: 30px;
    /* Space for cross mark */
    position: relative;
    margin-bottom: var(--space-xs);
}

.cross-list li::before {
    content: '✖';
    /* Unicode Ballot X */
    position: absolute;
    left: 0;
    color: #FF6B6B;
    /* Soft Red for negative/challenge context */
    font-weight: bold;
    font-size: 16px;
    line-height: 1.6;
    /* Align with text */
}