:root {
    scroll-behavior: smooth;
    --primary-color: #ec4899;
    --primary-hover: #db2777;
    --secondary-color: #8b5cf6;
    --accent-color: #ef4444;
    /* Standardized Red for Risk */
    --background-dark: #050816;
    --surface-dark: #1e293b;
    --surface-light: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #050816;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

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

/* Header & Nav */
/* Header & Nav */
header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    /* Semi-transparent dark bg */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    grid-column: 1;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: inherit;
}

.dashboard-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 0;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn-highlight {
    background: rgba(236, 72, 153, 0.1);
    color: var(--primary-color) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 20px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-btn-highlight:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.nav-btn-outline {
    padding: 0.5rem 1.25rem !important;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-1px);
}

.header-cta {
    grid-column: 3;
    justify-self: end;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Hero CTA Button Specifics */
.hero-content .btn-primary {
    font-size: 1.25rem !important;
    padding: 1rem 2.5rem !important;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-content .btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    /* Brighter gradient */
}

/* Analysis Layout */
/* Analysis Layout handled in dynamic section below */

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.message-row {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    gap: 1rem;
    align-items: start;
    animation: fadeIn 0.3s ease-out;
}

.sender-input,
.message-input,
.form-input,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-light);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
}

.sender-input:focus,
.message-input:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Results Section */
#results,
#financialResults {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.risk-meter-container {
    background: var(--surface-dark);
    height: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.risk-meter-fill {
    height: 100%;
    width: 0%;
    background: var(--success);
    transition: width 1s ease-out, background-color 0.5s;
}

.risk-score-display {
    text-align: center;
    margin-bottom: 1rem;
}

.risk-score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pattern-item,
.flag-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.insight-card {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.insight-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
}

.insight-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
}

.insight-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
}

.actions-list ul {
    list-style-type: none;
}

.actions-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Landing Page Specifics */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Unified Card Grid (Matches Image 2 Style) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Feature/Card Styles */
.feature-card,
.team-card,
.pillar,
.why-card {
    text-align: center;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 280px;
    /* Ensure space for text */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.team-card:hover,
.pillar:hover,
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.8);
}

.feature-icon,
.pillar-icon,
.team-icon-large {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: rgba(236, 72, 153, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Specific Typography for Cards */
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Team Specifics Clean-up */
.social-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

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

/* Remove old specific styles that conflict */
.team-grid,
.mission-pillars,
.why-grid {
    /* These will now use card-grid in HTML */
}

/* --- Dashboard Animation and Centering --- */
.dashboard-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    margin-top: 4rem;
}

.input-section,
.results-section {
    display: flex;
    flex-direction: column;
}

.input-section>.card:last-child,
.results-section>.card:last-child {
    margin-bottom: 0 !important;
}

/* When analysis has started/completed, this class is added */
.dashboard-grid.active-analysis {
    justify-content: flex-start;
    margin-top: 0;
}

.input-section {
    width: 100%;
    max-width: 600px;
    flex-shrink: 0;
    transition: all 0.6s ease;
}

/* Initially hidden results */
.results-section {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Show results on active analysis */
.dashboard-grid.active-analysis .results-section {
    width: 100%;
    max-width: 600px;
    opacity: 1;
    transform: translateX(0);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.dashboard-grid.active-analysis .results-section #results {
    flex: 1;
    /* Stretch the results panel to fill vertical space */
    display: flex;
    flex-direction: column;
}

/* --- Loading Overlay --- */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.results-section .glass-panel {
    position: relative;
    /* For loading overlay positioning */
    min-height: 400px;
    /* Ensure height for loading state */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-grid.active-analysis .results-section {
        width: 100%;
    }
}

/* Section Spacing */
.team-section,
.mission-section,
.why-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Chatbot Section - Dark Theme */
.chatbot-section {
    background: var(--surface-dark);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid var(--glass-border);
}

.image-upload-section {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    border: 1px dashed var(--surface-light);
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.analyze-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.analysis-results {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: left;
    white-space: pre-wrap;
    line-height: 1.8;
}

/* Chat Interface - Dark Theme */

/* --- Global Layout & Container --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    /* Desktop padding */
    width: 100%;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* --- Typography & Section Titles --- */
.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    /* Space for underline */
    position: relative;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- Component Spacing --- */
section {
    margin-bottom: 120px;
    position: relative;
    z-index: 1;
    /* Ensure sections stack properly */
}

/* --- Features & Why Cards --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    /* Increased padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    /* Increased gap */
    margin-top: 2rem;
}

/* --- Why CupidSecure Specifics --- */
.why-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content in card */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(236, 72, 153, 0.3);
}

.why-icon {
    font-size: 64px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}

/* --- Our Mission --- */
.mission-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.mission-slideshow {
    position: relative;
    width: calc(100% + 100px);
    margin-left: -100px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.mission-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mission-slide.active {
    opacity: 1;
}

.mission-content .section-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
}

.mission-content .section-title::after {
    margin: 16px 0 0;
    /* Align underline to left */
}

.mission-content h3 {
    font-size: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
    font-weight: 600;
}

.mission-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.mission-citation {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 32px;
}

/* --- Meet The Team --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-card {
    width: 360px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.team-card:hover {
    transform: scale(1.03);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-icon-large {
    font-size: 80px;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-role {
    font-size: 14px;
    color: #9333EA;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Chat Interface - Dark Theme */
.chat-interface {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}


/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Floating Chat Assistant (Improved & Fixed) */
.floating-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.floating-chat-window {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 380px;
    height: 550px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.chat-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(139, 92, 246, 0.9));
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    /* Header doesn't shrink */
}

.chat-close {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.floating-chat-window .chat-messages {
    background: transparent;
    padding: 1.5rem;
    flex-grow: 1;
    /* Takes available space */
    overflow-y: auto;
    /* Enable vertical scrolling */
    scrollbar-width: thin;
    scrollbar-color: var(--surface-light) transparent;
}

/* Scrollbar styling for Webkit browsers */
.floating-chat-window .chat-messages::-webkit-scrollbar {
    width: 6px;
}

.floating-chat-window .chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.floating-chat-window .chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--surface-light);
    border-radius: 20px;
}

.floating-chat-window .chat-message {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.floating-chat-window .chat-message.user {
    border-radius: 18px 18px 4px 18px;
    background: var(--primary-color);
    margin-left: 20%;
}

.floating-chat-window .chat-message.ai {
    border-radius: 18px 18px 18px 4px;
    background: var(--surface-light);
    margin-right: 20%;
}

.floating-chat-window .chat-input-container {
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.8);
    /* Slightly more opaque background for input area */
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    /* Input container doesn't shrink */
}

.floating-chat-window input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s;
    flex-grow: 1;
}

.floating-chat-window input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    outline: none;
}

.chat-upload-btn,
.chat-send-btn {
    background: var(--primary-gradient);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
    flex-shrink: 0;
}

.chat-upload-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

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

.chat-send-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.4);
}

.suggested-questions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 1.25rem 1rem 1.25rem;
    background: transparent;
}

.question-chip {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    white-space: nowrap;
}

.question-chip:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.floating-chat-window.dragging {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Limit Message Input Height */
.message-input {
    max-height: 120px;
    min-height: 60px;
    overflow-y: auto;
    resize: vertical;
}

/* New Structured Analysis Blocks */
.analysis-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.score-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-banner.critical {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.1));
    border-color: rgba(220, 38, 38, 0.3);
}

.score-banner.safe {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    text-align: right;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.scam-type-chip {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.flag-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid rgba(245, 158, 11, 0.5);
}

.flag-card h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: white;
}

.flag-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.verdict-box {
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid var(--primary-color);
}

/* Results Panel Scrolling */
#results.glass-panel {
    /* Allow panel to grow with content but constrained by viewport/layout mainly */
    /* Ideally we want it to match the input section height, but that is dynamic. 
       Let's stick to a solid max-height for consistency or use flexbox if possible. */
    height: 800px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding-bottom: 0;
}

#resultContentArea {
    /* robust flex sizing */
    flex: 1 1 auto;
    /* Force scrollbar track to appear */
    overflow-y: scroll;
    height: 600px;
    max-height: 100%;
    padding-right: 10px;
    margin-top: 1rem;
    padding-bottom: 6rem;
}

/* Custom Scrollbar for results */
#resultContentArea::-webkit-scrollbar {
    width: 6px;
}

#resultContentArea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#resultContentArea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#resultContentArea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Timeline Styles */
.timeline-container {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    /* center on border */
    top: 0.4rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    border: 2px solid var(--background-dark);
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-risk {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
}

/* --- Hero Animation Styles --- */

.hero-wrapper {
    background: radial-gradient(circle at 50% 65%, #1e293b 0%, transparent 100%),
        linear-gradient(to bottom, #0f172a 0%, #050816 100%);
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 120px !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hero-features {
    /* New class I will add to index.html for the features section */
    margin-top: -40px;
    /* Pull up */
    position: relative;
    z-index: 5;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 27, 141, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    perspective: 1000px;
    opacity: 0.6;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px !important;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    background: linear-gradient(to right, #FF1B8D, #9333EA) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.hero-content p {
    font-size: 18px !important;
    color: #e5e7eb !important;
    max-width: 700px !important;
    margin: 0 auto 32px !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-cta-wrapper {
    margin-top: 32px !important;
}

/* Add a pseudo-element for the scanning effect */
.cyber-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(236, 72, 153, 0.05) 50%);
    background-size: 100% 4px;
    animation: scanlines 10s linear infinite;
    z-index: 2;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.icon-float {
    position: absolute;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(139, 92, 246, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.4;
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.3));
    animation: floatIcon 25s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(10px, -30px) rotate(0deg);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulseParticle 4s ease-in-out infinite;
    opacity: 0.6;
}

.particle:nth-child(even) {
    background: var(--secondary-color);
    animation-duration: 6s;
    animation-delay: 1s;
}

@keyframes pulseParticle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

.corner-accent {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid transparent;
    z-index: 4;
}

.corner-accent.top-left {
    top: 2rem;
    left: 2rem;
    border-top: 2px solid rgba(236, 72, 153, 0.3);
    border-left: 2px solid rgba(236, 72, 153, 0.3);
}

.corner-accent.top-right {
    top: 2rem;
    right: 2rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    border-right: 2px solid rgba(139, 92, 246, 0.3);
}

/* Enhance Hero Text for readability over background */
.hero-content h1 {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* =========================================
   MODERN FRONTEND REFACTOR STYLES (REACT-STYLE)
   ========================================= */

/* --- Animation Utilities --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* --- Section Divider --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    width: 100%;
    max-width: 800px;
    /* Shorter than full width for elegance */
    margin: 0 auto;
    opacity: 0.6;
}

/* --- Feature Highlights Component --- */
.features-section-modern {
    padding: 0;
    position: relative;
    z-index: 20;
    /* Move cards up to sit on the hero grid */
    transform: translateY(-80px);
    margin-bottom: -80px;
}

.feature-highlight-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-highlight-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #f472b6;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.feature-desc {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* --- Meet The Team Component (Modern) --- */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.team-member-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(236, 72, 153, 0.2);
}

.team-member-card:hover::before {
    opacity: 1;
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-avatar i {
    font-size: 32px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.875rem;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 16px;
}

.team-bio {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
}

.team-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: white;
    color: #0f172a;
    transform: scale(1.1);
}

/* --- FAQ Accordion Component --- */
details.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.005);
}

summary.faq-summary {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    list-style: none;
}

summary.faq-summary::-webkit-details-marker {
    display: none;
}

summary.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #ec4899;
    transition: transform 0.3s ease;
}

details[open] summary.faq-summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer-body {
    padding: 0 24px 24px 24px;
    color: #9ca3af;
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.main-content-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
    /* Smooth vertical gradient with localized tech highlights */
    background:
        /* Glow behind 'Why CupidSecure?' (Magenta) */
        radial-gradient(circle at 85% 15%, rgba(255, 27, 141, 0.08) 0%, transparent 40%),
        /* Glow behind 'Our Mission' (Purple) */
        radial-gradient(circle at 12% 38%, rgba(147, 51, 234, 0.09) 0%, transparent 45%),
        /* Glow behind 'Meet The Team' (Magenta) */
        radial-gradient(circle at 88% 62%, rgba(255, 27, 141, 0.07) 0%, transparent 40%),
        /* Glow behind 'FAQ' (Purple) */
        radial-gradient(circle at 18% 82%, rgba(147, 51, 234, 0.08) 0%, transparent 45%),
        /* Smooth Base Gradient */
        linear-gradient(to bottom,
            #050816 0%,
            #070c1a 15%,
            #0b1220 50%,
            #0e1524 85%,
            #111827 100%);
}

/* Faint tech grid overlay for depth */
.main-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(147, 51, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 27, 141, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent);
}

.faq-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* =========================================
   FOOTER STYLES (MODERN)
   ========================================= */
.site-footer-modern {
    background: linear-gradient(to bottom, #020617, #050816);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    color: #cbd5e1;
    /* Light gray text */
    padding-top: 60px;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    /* Base padding */
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 80px;
        /* generous padding on desktop */
    }
}

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

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        /* Brand wider, others narrower */
        gap: 60px;
    }
}

/* Column Styles */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Brand Column */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo i {
    color: #ec4899;
    /* Pink brand color */
}

.footer-tagline {
    line-height: 1.6;
    max-width: 360px;
    color: #94a3b8;
}

/* Links Column */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Contact Column */
.footer-email {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.footer-email:hover {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
    border-color: transparent;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* faint border */
    padding: 30px 0 40px;
    text-align: center;
}

.footer-bottom-content {
    color: #64748b;
    /* Muted gray */
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

/* =========================================
   WHY CUPIDSECURE PREMIUM COMPONENT
   ========================================= */
.why-section-premium {
    padding: 40px 0;
    position: relative;
    z-index: 5;
}

.why-panel {
    background: rgba(15, 23, 42, 0.4);
    /* Transparent Slate-900 to blend */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 80px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decorative background glow for the panel */
.why-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08), transparent 70%);
    transform: rotate(30deg);
    z-index: 0;
    pointer-events: none;
}

.why-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title-premium {
    font-size: 2.75rem;
    /* 44px */
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #ec4899, #8b5cf6);
    margin: 0 auto;
    border-radius: 2px;
}

.why-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

.why-card-premium {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle overlay */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Inner glow at top */
.why-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.why-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(236, 72, 153, 0.2);
}

.why-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: #f472b6;
    /* Light pink */
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.why-card-premium:hover .why-icon-badge {
    transform: scale(1.1);
    color: white;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

.card-title-premium {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.card-text-premium {
    color: #d1d5db;
    /* Light gray */
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .why-panel {
        padding: 60px 24px;
    }

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

/* Reduced padding for sections */
.mission-section,
.team-section {
    padding: 40px 0;
}

.faq-section {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* --- Mission Section Glass Panel --- */
.mission-glass-panel {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-right: -100px;
    /* Counter-balance the slideshow's negative margin if needed */
}

@media (max-width: 1200px) {
    .mission-glass-panel {
        margin-right: 0;
    }
}

.mission-header-alt {
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ec4899;
    /* Different font color - Primary Pink */
    margin-bottom: 24px !important;
    font-weight: 800 !important;
    text-align: left;
}

.mission-subtitle {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* --- Hero Glow Divider --- */
.hero-glow-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, transparent, #FF1B8D, #9333EA, transparent);
    filter: blur(4px);
    z-index: 5;
    opacity: 0.8;
}

/* --- Safety Assistant Buttons --- */
.btn-script {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-script:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.btn-script i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-script-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-script-danger:hover {
    background: #ef4444 !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

.script-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.script-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}