/* Global Reset & Fonts */
:root {
    --bg-color: #050510;
    --text-color: #ffffff;
    --accent-primary: #00f2ff;
    /* Cyan */
    --accent-secondary: #7000ff;
    /* Purple */
    --accent-tertiary: #ff0055;
    /* Pink/Red for contrast */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Background - Premium Dark Mode */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 255, 0.08) 0%, transparent 25%),
        linear-gradient(180deg, #050510 0%, #0a0a20 50%, #050510 100%);
    z-index: -1;
}

/* Removing old stars animation */
.stars,
.twinkling {
    display: none;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ccc;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: scroll-anim 2s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-anim {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Sections */
.section-padding {
    padding: 5rem 10%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-secondary);
    margin: 1rem auto 0;
}

/* KPI Grid */
.kpi-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.kpi-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s, border-color 0.3s;
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

.kpi-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.kpi-label {
    font-size: 0.9rem;
    color: #aaa;
}

/* Comparison Grid */
.comparison-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.comparison-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s;
}

.comparison-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.human-side h3 {
    color: #aaa;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.ai-side h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.stats-list {
    list-style: none;
}

.stats-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vs-badge {
    background: var(--accent-tertiary);
    color: #fff;
    font-weight: 800;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Modules */
.module-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.module-row.reverse {
    flex-direction: row-reverse;
}

.module-text {
    flex: 1;
}

.module-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.module-visual {
    flex: 1;
    min-height: 400px;
    /* Increased height for better chart fit */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.chart-container-large {
    min-height: 500px;
}

.stat-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 100px;
}

.stat-box.highlight {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-primary);
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
}

/* Savings Card */
.savings-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1) 0%, rgba(112, 0, 255, 0.1) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transition: transform 0.3s;
}

.savings-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 242, 255, 0.4);
}

.savings-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.savings-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.savings-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Retell AI Visuals */
/* Retell AI Visuals - Fixed Overlay */
.screening-visual {
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
}

.visual-content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.ai-avatar-placeholder {
    width: 120px;
    height: 120px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.4);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-secondary);
    animation: pulse 2s infinite;
}

.pulse-ring.delay {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.transcription-mock {
    position: relative;
    /* Changed from absolute to relative preventing overlap */
    bottom: auto;
    /* Reset bottom */
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter background */
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
    z-index: 5;
}

.ai-msg {
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.user-msg {
    color: #fff;
    text-align: right;
    font-style: italic;
}

/* Process Flow */
.workflow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.flow-step {
    text-align: center;
    z-index: 2;
    background: var(--bg-color);
    padding: 0 10px;
}

.flow-step .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.flow-line {
    flex-grow: 1;
    height: 2px;
    background: var(--glass-border);
    position: relative;
    top: -15px;
    z-index: 0;
}

.flow-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: move-dot 3s infinite linear;
}

@keyframes move-dot {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: #666;
}

/* AI Compliance & Governance Section */
.compliance-section {
    background: rgba(255, 255, 255, 0.02);
}

.compliance-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.compliance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.compliance-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.15);
}

.compliance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.compliance-icon {
    font-size: 2.5rem;
}

.compliance-header h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0;
}

.compliance-list {
    list-style: none;
    padding: 0;
}

.compliance-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.compliance-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.compliance-list li strong {
    color: #fff;
}

/* Governance Section */
.governance-section {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(112, 0, 255, 0.05) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
}

.governance-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 2.5rem;
}

.governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.governance-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: background 0.3s;
}

.governance-item:hover {
    background: rgba(0, 242, 255, 0.08);
}

.check-icon {
    color: #0f0;
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.governance-item span:last-child {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Safeguards Banner */
.safeguards-banner {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.safeguard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.safeguard-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.safeguard-item strong {
    color: var(--accent-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.safeguard-item p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Architecture Section */
.architecture-section {
    background: linear-gradient(180deg, rgba(10, 10, 32, 0.5) 0%, rgba(5, 5, 16, 0.8) 100%);
}

.architecture-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    font-size: 1.15rem;
    color: #bbb;
    line-height: 1.8;
}

.architecture-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.architecture-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.4s ease;
}

.architecture-card.featured {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

.architecture-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 35px rgba(0, 242, 255, 0.2);
}

.architecture-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.architecture-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.architecture-header p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.architecture-image-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.architecture-image-wrapper:hover {
    transform: scale(1.01);
}

.architecture-diagram {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.architecture-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 242, 255, 0.05);
    border-left: 3px solid var(--accent-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    color: #ccc;
    transition: all 0.3s;
}

.highlight-item:hover {
    background: rgba(0, 242, 255, 0.12);
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Integration Flow Summary */
.integration-summary {
    margin-top: 4rem;
    padding: 3.5rem 3rem;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.08) 0%, rgba(0, 242, 255, 0.08) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.flow-summary-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.flow-summary-step {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.flow-summary-step:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.4);
}

.flow-summary-step h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.flow-summary-step p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.flow-arrow {
    font-size: 2.5rem;
    color: var(--accent-primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .module-row,
    .module-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .module-visual {
        width: 100%;
    }

    .workflow-diagram {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-line {
        display: none;
    }

    /* Compliance responsive */
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .governance-grid {
        grid-template-columns: 1fr;
    }

    .safeguards-banner {
        flex-direction: column;
    }

    .governance-section {
        padding: 2rem 1.5rem;
    }

    /* Architecture responsive */
    .architecture-card {
        padding: 2rem 1.5rem;
    }

    .architecture-header h3 {
        font-size: 1.5rem;
    }

    .architecture-image-wrapper {
        padding: 1rem;
    }

    .architecture-highlights {
        grid-template-columns: 1fr;
    }

    .integration-summary {
        padding: 2rem 1.5rem;
    }

    .flow-summary-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
    }

    .flow-summary-step {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
}

/* Enhanced Screening Flow */
.screening-flow-vertical {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.s-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 2px solid var(--accent-secondary);
}

.s-icon {
    font-size: 1.2rem;
}

/* KB Indicator */
.kb-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 242, 255, 0.2);
    border: 1px solid var(--accent-primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.kb-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.decision-mock {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
}

.decision-mock .status {
    color: #0f0;
}