/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A2540;
    --primary-dark: #081b2f;
    --primary-light: #1f3c58;
    --secondary-color: #1A7F8C;
    --accent-color: #5C6B7A;
    --text-primary: #0A2540;
    --text-secondary: #5C6B7A;
    --text-light: #7c8b98;
    --bg-primary: #ffffff;
    --bg-secondary: #F4F6F8;
    --bg-dark: #0A2540;
    --border-color: #dbe2e8;
    --gradient-1: linear-gradient(135deg, #0A2540 0%, #1A7F8C 100%);
    --gradient-2: linear-gradient(135deg, #0A2540 0%, #5C6B7A 100%);
    --gradient-3: linear-gradient(135deg, #1A7F8C 0%, #5C6B7A 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Recursive', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.nav-links a,
.nav-link,
.btn-primary,
.btn-secondary {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Enhanced Focus Indicators */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gradient-1);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Performance Optimizations */
* {
    will-change: auto;
}

img, svg {
    max-width: 100%;
    height: auto;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
}

.nav-brand .nav-logo {
    height: 44px;
    width: auto;
    display: block;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-wordmark-main {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: #0A2540;
}

.brand-wordmark-iq {
    font-family: 'Recursive', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: #1A7F8C;
}

.brand-wordmark--nav {
    font-size: 32px; /* 24pt */
    line-height: 1;
}

.brand-wordmark--hero {
    font-size: 55px; /* 30% larger than previous 42px */
    line-height: 1;
}

.brand-wordmark--hero .brand-wordmark-main,
.brand-wordmark--hero .brand-wordmark-iq {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

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

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(92, 107, 122, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 64px 0 120px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 37, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 127, 140, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Brand + tagline (left) and hero video (right) */
.hero-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: start;
    margin-bottom: 2rem;
}

.hero-intro-text {
    min-width: 0;
}

.hero-intro-video {
    min-width: 0;
}

.hero-video-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(145deg, #0A2540 0%, #1A7F8C 100%);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.hero-promo-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: min(52vh, 440px);
    object-fit: cover;
    vertical-align: bottom;
}

.hero-video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.hero-video-actions .btn-secondary {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.hero-content {
    max-width: 800px;
    margin-left: auto;
}

/* Brand line: same gradient wordmark treatment as .nav-brand .brand-text, scaled for hero */
.hero-brand-line {
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.hero-tagline {
    /* Match .about-vision h3 (“Our Vision”) */
    font-size: 32px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 1.75rem;
    letter-spacing: -0.02em;
    font-family: 'Recursive', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Headline, body, and CTA — right-aligned (brand line + tagline stay left) */
.hero-copy-aligned {
    text-align: right;
}

.hero-copy-aligned .hero-actions {
    justify-content: flex-end;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero stats: deferred — remove class hero-stats--deferred (and this rule) to show again */
.hero-stats.hero-stats--deferred {
    display: none !important;
}

/* Solutions Section */
.solutions-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.solution-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.solution-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.solution-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.solution-features li:last-child {
    border-bottom: none;
}

.solution-features li::before {
    content: "→ ";
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-secondary);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(4px);
}

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

.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    display: block;
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--bg-secondary);
    padding-left: 24px;
    color: var(--primary-color);
}

.mobile-menu a:hover::before,
.mobile-menu a:focus::before {
    transform: scaleY(1);
}

.mobile-menu .btn-primary {
    margin-top: 16px;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.work-with-us-card {
    display: flex;
    flex-direction: column;
}

.features-section--pathways .work-with-us-card {
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.features-section--pathways .work-with-us-card--access {
    border-top-color: var(--primary-color);
}

.features-section--pathways .work-with-us-card--license {
    border-top-color: var(--accent-color);
}

.features-section--pathways .pathway-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    background: var(--bg-secondary);
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 12px;
    width: fit-content;
}

.work-with-us-card .feature-description {
    margin-top: 0;
    margin-bottom: 16px;
}

.work-with-us-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-with-us-points li {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.work-with-us-points li::before {
    content: '•';
    position: absolute;
    left: 6px;
    top: 0;
    color: var(--secondary-color);
}

.work-with-us-card .feature-description:last-of-type {
    margin-bottom: 0;
}

.work-with-us-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legal-page {
    background: var(--bg-secondary);
}

.legal-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 128px 20px 80px;
}

.legal-header {
    margin-bottom: 32px;
}

.legal-header h1 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-last-updated {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.legal-content-shell {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.legal-content {
    color: var(--text-primary);
    line-height: 1.75;
}

.legal-content--loading {
    color: var(--text-secondary);
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content h2:first-child,
.legal-content h3:first-child,
.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 22px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-error {
    margin-top: 16px;
    color: #dc2626;
    font-size: 14px;
}

.legal-retry-button {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .legal-layout {
        padding-top: 108px;
    }

    .legal-content-shell {
        padding: 20px;
    }
}

/* Insurance Types Section */
.insurance-types-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.insurance-type {
    text-align: center;
    padding: 32px 24px;
}

.insurance-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.insurance-type h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.insurance-type p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Compliance Section */
.compliance-section {
    padding: 120px 0;
}

.compliance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.compliance-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.compliance-list {
    list-style: none;
}

.compliance-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

.compliance-list li:last-child {
    border-bottom: none;
}

.compliance-visual {
    display: flex;
    justify-content: center;
}

.compliance-badge {
    background: var(--gradient-1);
    color: white;
    padding: 64px 48px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.badge-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.compliance-badge h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.compliance-badge p {
    font-size: 18px;
    opacity: 0.9;
}

/* API Section */
.api-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.api-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.api-code {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 32px;
    overflow-x: auto;
}

.api-code pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.api-code code {
    color: #e5e7eb;
}

.api-code .code-key {
    color: #c792ea;
}

.api-code .code-string {
    color: #c3e88d;
}

.api-code .code-number {
    color: #f78c6c;
}

.api-code .code-brace {
    color: #89ddff;
}

.api-code .code-bracket {
    color: #ffcb6b;
}

/* Testimonials Section */
.testimonials-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Pricing Section */
.pricing-section {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

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

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price {
    margin-bottom: 16px;
}

.price .currency {
    font-size: 24px;
    color: var(--text-secondary);
    vertical-align: top;
}

.price .amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
}

.price .period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Benefits Section */
.benefits-section[hidden] {
    display: none !important;
}
.benefits-section {
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.benefit-item {
    text-align: center;
    padding: 32px 24px;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 96px 0;
    background: var(--bg-primary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-vision,
.about-mission {
    text-align: center;
    margin-bottom: 64px;
}

.about-vision h3,
.about-mission h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-vision p,
.about-mission p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.executive-team {
    margin-top: 64px;
}

.executive-team h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.team-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.team-member {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.team-member h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.team-role {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.team-bio {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.linkedin-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .about-section {
        padding: 64px 0;
    }

    .about-vision h3,
    .about-mission h3,
    .executive-team h3,
    .hero-tagline {
        font-size: 28px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-member {
        padding: 24px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 64px auto 0;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Error Notification Container */
.error-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.error-container.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.error-notification {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.error-notification.error-notification-error {
    border-left-color: #ef4444;
}

.error-notification.error-notification-success {
    border-left-color: #10b981;
}

.error-notification.error-notification-info {
    border-left-color: var(--primary-color);
}

.error-notification.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.error-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.error-notification-error .error-icon {
    background: #fee2e2;
    color: #dc2626;
}

.error-notification-success .error-icon {
    background: #d1fae5;
    color: #059669;
}

.error-notification-info .error-icon {
    background: #dbeafe;
    color: var(--primary-color);
}

.error-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.error-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.error-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.error-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .error-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .error-notification {
        padding: 14px 16px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn-accept {
    background: var(--gradient-1);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.cookie-btn-reject:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.cookie-btn-settings {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cookie-btn-settings:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.cookie-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-settings-modal.active {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 48px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.cookie-settings-modal.active .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cookie-settings-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cookie-category {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.cookie-category h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cookie-category p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background: var(--gradient-1);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-toggle.disabled input:checked + .cookie-slider {
    background: var(--primary-color);
}

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #9ca3af;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #374151;
    color: #6b7280;
}

.footer-cookie-link {
    margin-top: 10px;
    background: none;
    border: none;
    color: #9ca3af;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.footer-cookie-link:hover {
    color: #ffffff;
}

.footer-entity {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Recursive', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

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

    .mobile-menu.active {
        display: flex;
    }

    .hero-intro-grid {
        grid-template-columns: 1fr;
    }

    .hero-intro-video {
        order: 2;
    }

    .hero-intro-text {
        order: 1;
    }

    .hero-title {
        font-size: 48px;
    }

    .brand-wordmark--hero {
        font-size: 51px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .compliance-content,
    .api-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-title {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 0 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .brand-wordmark--nav {
        font-size: 26px;
    }

    .brand-wordmark--hero {
        font-size: 40px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .work-with-us-actions {
        flex-direction: column;
    }

    .work-with-us-actions .btn-primary,
    .work-with-us-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .features-section,
    .insurance-types-section,
    .compliance-section,
    .api-section,
    .benefits-section,
    .cta-section,
    .solutions-section,
    .testimonials-section,
    .pricing-section {
        padding: 80px 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .section-title {
        font-size: 32px;
    }

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-1);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

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

.modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 122, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Icon Styles */
.feature-icon svg,
.solution-icon svg,
.insurance-icon svg,
.benefit-icon svg {
    color: var(--primary-color);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon svg,
.solution-card:hover .solution-icon svg {
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Statistics Counter */
.stat-counter {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.insurance-type,
.benefit-item {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

