/* =========================================
   Call Center Analyzer - Premium Dark Theme
   ========================================= */

:root {
    /* Color Palette */
    --bg-primary: #0a0c10;
    --bg-secondary: #131722;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-teal: #14b8a6;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(59, 130, 246, 0.15);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-pad: 100px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Custom Selection Highlight */
::selection {
    background-color: var(--accent-purple);
    color: #ffffff;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

::-moz-selection {
    background-color: var(--accent-purple);
    color: #ffffff;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Typography styles */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-purple);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.mt-xl {
    margin-top: 4rem;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* =========================================
   Background Ambient Glows
   ========================================= */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    will-change: transform;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.glow-3 {
    top: 40%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    opacity: 0.15;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo-text {
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

/* Mobile Nav Open State */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    gap: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.15rem;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
    color: white;
}

.btn-primary .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
    z-index: -1;
}

.btn-primary:hover .btn-glow {
    transform: translate(-50%, -50%) scale(1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* =========================================
   Glass Cards & UI Elements
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 0 0 20px var(--glass-glow);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 1s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Problem & Promise Section
   ========================================= */
.section {
    padding: var(--section-pad) 0;
}

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

.split-text .body-copy p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.highlight-text {
    color: #e2e8f0 !important;
    font-weight: 500;
    border-left: 4px solid var(--accent-purple);
    padding-left: 1rem;
    margin-top: 1.5rem;
}

/* Visual Mockup inside Problem Section */
.visual-mockup {
    background: linear-gradient(180deg, rgba(20, 24, 36, 0.8) 0%, rgba(10, 12, 16, 0.9) 100%);
    padding: 24px;
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 100%;
}

.skeleton-short {
    width: 40%;
}

.skeleton-medium {
    width: 70%;
}

.mockup-insight {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.insight-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.insight-text {
    font-size: 0.9rem;
    color: #f8fafc;
}

.insight-text strong {
    color: #fca5a5;
}

/* =========================================
   How It Works Section
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 3rem;
}

.step-card {
    text-align: left;
    position: relative;
    padding-top: 48px;
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   Features Section
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 1.35rem;
    color: #f8fafc;
}

.feature-desc {
    color: var(--text-secondary);
}

/* =========================================
   Headshots Section
   ========================================= */
.headshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.headshot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
}

.headshot-link {
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.headshot-link:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.headshot-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.headshot-name {
    font-size: 1.1rem;
    color: #f8fafc;
    margin-bottom: 4px;
}

.headshot-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================
   Footer Section
   ========================================= */
.footer {
    padding: 80px 0 40px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px auto;
}

.trust-marker {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    margin-bottom: 48px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.trust-marker:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.trust-logo {
    height: 28px;
    width: auto;
    transform: translateY(2px);
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.trust-marker:hover .trust-text {
    color: #f8fafc;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links .divider {
        display: none;
    }
}

/* =========================================
   Upload Modal
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #f8fafc;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.wizard-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.wizard-options-grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wizard-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
}

.wizard-card-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    /* Prevents 'a' tag from changing color on hover */
}

.wizard-card-btn.outline-card {
    background: transparent;
    border-style: dashed;
}

.wizard-card-btn.outline-card:hover {
    border-style: solid;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.drop-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.drop-text {
    color: var(--text-primary);
    font-weight: 500;
}

.hidden-input {
    display: none;
}

.file-list {
    margin-top: 16px;
    max-height: 150px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    color: var(--text-primary);
}

.remove-file {
    color: #ef4444;
    cursor: pointer;
    font-weight: bold;
}

.modal-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.modal-actions .btn {
    min-width: 140px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #334155;
    box-shadow: none;
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-divider span {
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .steps-grid,
    .features-grid,
    .headshots-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section {
        padding: 60px 0;
    }

    h2.section-title {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 72px;
        /* Adjust according to navbar height */
        flex-direction: column;
        background: rgba(10, 12, 16, 0.95);
        backdrop-filter: blur(16px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 99;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        padding-bottom: 100px;
    }

    .grecaptcha-badge {
        bottom: 16px !important;
    }
}

@media (max-width: 500px) {

    .wizard-options-grid,
    .wizard-options-grid.col-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Tooltips
   ========================================= */
.tooltip-container {
    text-decoration: underline dashed rgba(255, 255, 255, 0.3);
    text-underline-offset: 4px;
    cursor: help;
}

#global-tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 999999;
}

#global-tooltip.active {
    opacity: 1;
    visibility: visible;
}

#global-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.goal-children {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}


@media (max-width: 500px) {
    .goal-children {
        grid-template-columns: 1fr;
    }
}