/* =============================================
   CoRAI Labs - Main Stylesheet
   ============================================= */

/* -----------------------------------------
   CSS Variables & Reset
   ----------------------------------------- */
:root {
    --primary-blue: #0055cc;
    --dark-navy: #001a4d;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --border-light: #e0e0e0;
    --accent-blue: #0066ff;
    --accent-cyan: #00d4ff;
    --accent-purple: #6366f1;
    --gradient-primary: linear-gradient(135deg, #0055cc 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(135deg, #001a4d 0%, #0055cc 100%);
    
    /* Light mode specific */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-color: #e0e0e0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --hero-gradient: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4ff 100%);
    --card-shadow: rgba(0, 85, 204, 0.1);
    --card-shadow-hover: rgba(0, 85, 204, 0.15);
}

[data-theme="dark"] {
    --primary-blue: #4d9fff;
    --dark-navy: #0a1628;
    --light-bg: #1a2332;
    --text-dark: #f0f4f8;
    --text-gray: #a0aec0;
    --border-light: #2d3748;
    --accent-blue: #63b3ed;
    --accent-cyan: #00d4ff;
    --accent-purple: #a78bfa;
    --gradient-primary: linear-gradient(135deg, #4d9fff 0%, #a78bfa 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    
    /* Dark mode specific */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1a2332;
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --nav-bg: rgba(13, 17, 23, 0.95);
    --hero-gradient: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a2332 100%);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(77, 159, 255, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* -----------------------------------------
   Navigation
   ----------------------------------------- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 18px;
}

.theme-toggle:hover {
    border-color: var(--primary-blue);
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: opacity 0.3s ease;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.lang-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

.lang-toggle:hover {
    border-color: var(--primary-blue);
    background: var(--bg-secondary);
}

.lang-toggle .lang-ro {
    display: none;
}

[data-lang="ro"] .lang-toggle .lang-en {
    display: none;
}

[data-lang="ro"] .lang-toggle .lang-ro {
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.logo img {
    height: 80px;
    width: auto;
}

.logo .logo-light {
    display: block;
}

.logo .logo-dark {
    display: none;
}

[data-theme="dark"] .logo .logo-light {
    display: none;
}

[data-theme="dark"] .logo .logo-dark {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

/* -----------------------------------------
   Buttons
   ----------------------------------------- */
.btn {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 85, 204, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-white {
    background: white;
    color: var(--primary-blue);
    padding: 14px 40px;
    position: relative;
    z-index: 1;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* -----------------------------------------
   Hero Section
   ----------------------------------------- */
.hero {
    padding: 80px 40px;
    background: var(--hero-gradient);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 85, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.2;
    position: relative;
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin-top: 24px;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 800px;
}

.hero-trust-badge {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.hero-trust-badge span {
    font-weight: 600;
    color: var(--primary-blue);
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.promise-box {
    background: var(--bg-secondary);
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding: 24px;
    margin-top: 40px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    position: relative;
    overflow: hidden;
}

.promise-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.03));
    pointer-events: none;
}

/* -----------------------------------------
   Social Proof Section
   ----------------------------------------- */
.social-proof {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.social-proof h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.social-proof-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.social-proof-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.proof-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.proof-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.proof-item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.proof-item h3 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-item h4 {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.proof-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.proof-icon {
    font-size: 56px;
    line-height: 1;
}

/* -----------------------------------------
   General Sections
   ----------------------------------------- */
.section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 24px;
}

.section p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.section-center {
    text-align: center;
    margin-top: 40px;
}

/* -----------------------------------------
   Feature Grid
   ----------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px var(--card-shadow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.feature-card .feature-result {
    margin-top: 12px;
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 500;
}

/* -----------------------------------------
   Outcomes Section
   ----------------------------------------- */
.outcomes {
    background: var(--bg-secondary);
}

.outcomes-header {
    margin-bottom: 40px;
}

.outcomes-header h2 {
    margin-bottom: 12px;
}

.outcomes-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.outcome-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--card-shadow);
}

.outcome-card:last-child {
    margin-bottom: 0;
}

.outcome-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.outcome-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.outcome-column {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.outcome-column-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
}

.outcome-column p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .outcome-table {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* -----------------------------------------
   Use Cases
   ----------------------------------------- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.use-case-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.use-case-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.use-case-card:hover {
    box-shadow: 0 16px 32px var(--card-shadow-hover);
    transform: translateY(-6px);
    border-color: var(--primary-blue);
}

.use-case-card:hover::after {
    opacity: 1;
}

.use-case-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.use-case-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* -----------------------------------------
   Trust Badges
   ----------------------------------------- */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.trust-badge {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--card-shadow);
}

.trust-badge h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.trust-badge p {
    font-size: 12px;
    color: var(--text-gray);
}

/* -----------------------------------------
   Story Toggle & Details
   ----------------------------------------- */
.story-toggle {
    cursor: pointer;
    position: relative;
}

.story-toggle:hover {
    border-color: var(--primary-blue);
}

.story-toggle-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.story-toggle.active .story-toggle-icon {
    transform: rotate(45deg);
}

/* -----------------------------------------
   Outcome Story Toggle
   ----------------------------------------- */
.outcome-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 8px;
}

.outcome-label-wrapper:hover .outcome-toggle-icon {
    background: var(--accent-blue);
}

.outcome-toggle-icon {
    width: 22px;
    height: 22px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.outcome-label-wrapper.active .outcome-toggle-icon {
    transform: rotate(45deg);
}

.outcome-story {
    display: none;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.outcome-story.active {
    display: block;
}

.story-detail {
    display: none;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-blue);
    animation: slideDown 0.3s ease;
}

.story-detail.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-detail-title {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 24px;
}

.story-detail-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.story-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 32px;
}

.story-detail-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-detail-text {
    color: var(--text-gray);
    line-height: 1.7;
}

.story-detail-list {
    color: var(--text-gray);
    line-height: 1.8;
    margin-left: 20px;
}

.story-detail-list li {
    margin-bottom: 4px;
}

.story-detail-section {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-bottom: 24px;
}

.story-detail-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-detail-timeline-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.story-detail-week {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.story-detail-week-text {
    font-size: 13px;
    color: var(--text-gray);
}

.story-detail-before-after {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.story-detail-list-small {
    color: var(--text-gray);
    line-height: 1.8;
    margin-left: 20px;
    font-size: 14px;
}

.story-detail-list-small li {
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .story-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .story-detail-timeline {
        grid-template-columns: 1fr;
    }
    
    .story-detail {
        padding: 24px;
    }
}

/* -----------------------------------------
   Pricing Section
   ----------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.3s;
    background: var(--bg-card);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px var(--card-shadow-hover);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-primary) border-box;
    box-shadow: 0 20px 40px var(--card-shadow-hover);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pricing-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.pricing-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* -----------------------------------------
   FAQ Section
   ----------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
    color: var(--primary-blue);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 16px;
}

/* -----------------------------------------
   Final CTA Section
   ----------------------------------------- */
.final-cta {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    border-radius: 20px;
    margin: 60px auto;
    padding: 80px 40px;
    max-width: 1120px;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta h2 {
    color: white;
    margin-bottom: 16px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

/* -----------------------------------------
   Integrations Section
   ----------------------------------------- */
.integrations {
    background: var(--bg-secondary);
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
footer {
    background: var(--text-dark);
    color: white;
    padding: 40px;
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
}

/* -----------------------------------------
   Scrollbar Styling
   ----------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

/* -----------------------------------------
   Responsive Design
   ----------------------------------------- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section {
        padding: 40px 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .cta-group {
        flex-direction: column;
    }

    .outcome-item,
    .outcome-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        margin: 40px 20px;
        padding: 40px 20px;
    }
}
