/* CSS Variables */
@font-face {
    font-family: 'Delvona Extra Light';
    src: url('assets/font/Delvona-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #f5f3f0;
    --bg-tertiary: #edeae5;
    --bg-card: #ffffff;
    --bg-elevated: #f0ede8;

    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-tertiary: #8a8a8a;

    --accent-primary: #1a1a1a;
    --accent-secondary: #333333;
    --accent-glow: rgba(26, 26, 26, 0.06);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Delvona Extra Light', Georgia, serif;

    --transition-fast: 150ms ease;
    --transition-medium: 300ms ease;
    --transition-slow: 500ms ease;

    /* Type Scale - 1.343 ratio (Major Third) - Multiples of 4/8 */
    /* Base: 16px */
    --type-xs: 8px;
    /* 16 / 1.343^2 ≈ 8.9, rounded to 8 */
    --type-sm: 12px;
    /* 16 / 1.343 ≈ 11.9, rounded to 12 */
    --type-base: 16px;
    /* Base size */
    --type-md: 20px;
    /* 16 * 1.343 ≈ 21.5, rounded to 20 */
    --type-lg: 24px;
    /* 16 * 1.343^2 ≈ 28.9, rounded to 28, but 24 fits better */
    --type-xl: 32px;
    /* 16 * 1.343^3 ≈ 38.8, rounded to 40, but 32 fits better */
    --type-2xl: 48px;
    /* 16 * 1.343^4 ≈ 52.1, rounded to 48 */
    --type-3xl: 64px;
    /* 16 * 1.343^5 ≈ 70.0, rounded to 64 */
}

/* Page Transitions */
body {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.page-loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Lenis smooth scroll requirements */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
    max-width: 100vw;
    width: 100%;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    pointer-events: none;
    z-index: -1;
}

.swatch-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.logo img,
.logo svg {
    max-width: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 40px;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.logo svg,
.logo img {
    color: var(--text-primary);
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-item {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: #CD5334;
    color: var(--bg-primary);
}

/* Uniform width, height, and font size for CTA buttons in sections (excluding nav) */
section .btn-primary,
.cta-section .btn-primary,
.enterprise-section .btn-primary,
.hero .btn-primary {
    min-width: 200px;
    width: auto !important;
    padding: 14px 28px;
    font-size: 16px;
    justify-content: center;
    height: auto;
    line-height: 1.5;
    flex: 0 0 auto;
}

.btn-primary:hover {
    background: #b8482a;
    transform: none;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: #eeeeee;
    border-color: var(--text-primary);
}

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

.btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--text-primary);
}

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

/* Uniform width, height, and font size for large CTA buttons in sections */
section .btn-large,
.cta-section .btn-large,
.enterprise-section .btn-large,
.hero .btn-large {
    min-width: 200px;
    width: auto !important;
    padding: 14px 28px;
    font-size: 16px;
    justify-content: center;
    height: auto;
    line-height: 1.5;
    flex: 0 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 144px 16px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    bottom: -120px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    z-index: 1;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(var(--type-xl), 5vw, var(--type-3xl)) !important;
    font-weight: 500;
    line-height: 1.20;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
    letter-spacing: -0.9px;
    position: relative;
    z-index: 1;
}

.hero-line {
    display: block;
}

.hero-line.accent {
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 400;
}

/* Hide line breaks in support lines on desktop */
.janet-support-line br {
    display: none;
}

/* Hide mobile-only breaks on desktop */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .hero-line {
        display: inline;
    }

    .hero-line::after {
        content: ' ';
    }

    .hero-line.accent::before {
        content: ' ';
    }

    /* Remove forced line breaks in paragraphs only, keep them in headings */
    p br {
        display: none;
    }

    /* Hide br tags in section headers to allow natural wrapping */
    .section-header h2 br {
        display: none;
    }

    /* Show mobile-only breaks on mobile */
    .mobile-break {
        display: block;
    }

    /* Keep regular br tags hidden on mobile */
    .janet-support-line br:not(.mobile-break) {
        display: none;
    }

    /* Ensure all text wraps naturally */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.hero .btn {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
    position: relative;
    z-index: 1;
}

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

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

/* Features Section */
.features-section {
    padding: 0 16px 80px;
    max-width: 1140px;
    min-width: 320px;
    margin: 0 auto;
}

#section-2 {
    display: none;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 32px;
    transition: all var(--transition-medium);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(1) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 0;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: clamp(var(--type-md), 1.5vw, var(--type-lg));
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: clamp(14px, 1vw, var(--type-base));
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.feature-link:hover {
    gap: 10px;
}

/* Trusted Section */
.trusted-section {
    padding: 60px 16px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.trusted-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-tertiary);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.logo-item:hover {
    opacity: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-elevated);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(var(--type-lg), 4vw, var(--type-xl));
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0 auto 12px;
    line-height: 1.2;
    max-width: 820px;
}

.section-header p {
    font-size: clamp(14px, 1vw, var(--type-base));
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

/* Agents Section */
.agents-section {
    padding: 100px 16px;
    max-width: 1140px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.agents-demo {
    margin-bottom: 60px;
}

/* Demo Grid Layout */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1140px;
    margin: 0 auto;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* Demo Cards */
.demo-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-medium);
    height: 100%;
    border-radius: 4px !important;
    position: relative;
    z-index: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.demo-card:hover {
    border-color: rgba(0, 0, 0, 0.06);
}

.demo-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.demo-card-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}

.demo-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}

.demo-icon {
    width: 32px;
    height: 32px;
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.demo-title {
    font-size: clamp(var(--type-md), 1.5vw, var(--type-lg));
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.demo-description {
    font-size: clamp(14px, 1vw, var(--type-base));
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

.demo-card-visual {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 0px !important;
}

@media (max-width: 768px) {
    .demo-card-visual {
        overflow: visible;
    }
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.demo-card-header svg {
    opacity: 0.7;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.demo-card-header img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.demo-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-card);
    min-height: 0;
    overflow: visible;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.janet-support-line {
    padding: 8px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .demo-card-content {
        gap: 32px;
        padding: 24px;
    }

    .demo-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 16px;
    }

    .logo img {
        height: 28px;
    }

    .hero {
        padding: 80px 16px 40px;
        padding-bottom: 320px;
        min-height: 100vh;
        justify-content: center;
    }

    .hero-bg-image {
        bottom: 0;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: clamp(var(--type-lg), 8vw, var(--type-2xl)) !important;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: clamp(var(--type-sm), 1.2vw, var(--type-base));
        margin-bottom: 24px;
        padding: 0;
    }

    .section-header p {
        padding: 0;
    }

    .features-section {
        padding: 80px 16px 40px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 16px;
        font-weight: 500;
    }

    .feature-card p {
        font-size: clamp(var(--type-xs), 0.9vw, var(--type-sm));
    }

    .agents-section {
        padding: 40px 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .demo-grid {
        margin-left: 0;
        margin-right: 0;
        min-width: 0;
    }

    .section-header {
        margin-bottom: 16px;
    }

    /* Hide br tags in section headers to allow natural wrapping */
    .section-header h2 br {
        display: none;
    }

    .section-header h2 {
        font-size: clamp(var(--type-md), 5vw, var(--type-lg));
        font-weight: 600;
        margin-bottom: 8px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-header p {
        font-size: clamp(var(--type-xs), 0.9vw, var(--type-sm));
    }

    .demo-card-content {
        padding: 20px;
        gap: 16px;
    }

    .demo-title {
        font-size: 20px;
        font-weight: 500;
    }

    .demo-description {
        font-size: clamp(var(--type-xs), 0.9vw, var(--type-sm));
    }

    .demo-card-visual {
        min-height: 250px;
    }

    .copilot-section {
        padding: 40px 16px;
    }

    .copilot-demo {
        min-height: 500px;
        width: 100%;
    }

    .conversation-header {
        padding: 12px 16px;
    }

    .customer-avatar {
        width: 36px;
        height: 36px;
    }

    .customer-name {
        font-size: 14px;
    }

    .intake-tab {
        padding: 5px 10px;
        font-size: 10px;
    }

    .audio-player {
        padding: 12px 16px;
    }

    .play-btn {
        width: 36px;
        height: 36px;
    }

    .audio-time {
        font-size: 11px;
    }

    .transcript-header {
        padding: 12px 16px;
    }

    .transcript-line {
        grid-template-columns: 36px 45px 1fr;
        gap: 6px;
        padding: 10px 16px;
    }

    .transcript-timestamp {
        font-size: 9px;
    }

    .transcript-speaker {
        font-size: 9px;
    }

    .transcript-line p {
        font-size: 12px;
    }

    .conversation-cta {
        padding: 16px;
    }

    .cta-icon {
        width: 36px;
        height: 36px;
    }

    .cta-label {
        font-size: 11px;
    }

    .cta-message {
        font-size: 13px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .brief-header {
        padding: 14px 16px;
    }

    .brief-section {
        padding: 14px 16px;
    }

    .brief-customer {
        padding: 16px;
    }

    .customer-name-brief {
        font-size: 14px;
    }

    .customer-phone {
        font-size: 11px;
    }

    .brief-summary {
        font-size: 12px;
    }

    .enterprise-section {
        padding: 40px 16px;
    }

    .enterprise-features-cards {
        gap: 24px;
        margin-top: 32px;
    }

    .enterprise-feature-card {
        padding: 0;
        gap: 0;
        min-height: auto;
    }

    .enterprise-feature-card-content {
        padding: 20px 16px;
    }

    .enterprise-feature-card-title {
        font-size: 20px;
        font-weight: 500;
    }

    .enterprise-feature-card-description {
        font-size: clamp(var(--type-sm), 1vw, var(--type-base));
    }

    .enterprise-feature-card-visual {
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .industry-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .backed-by {
        padding-top: 40px;
        margin-top: 40px;
    }

    .integration-cards {
        gap: 16px;
    }

    .integration-visual {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .integration-card-content {
        padding: 16px;
    }

    .integration-title {
        font-size: 20px;
        font-weight: 500;
    }

    .integration-subtext {
        font-size: 13px;
    }

    .platform-section {
        padding: 40px 16px;
    }

    .platform-grid {
        gap: 16px;
    }

    .platform-card {
        padding: 20px;
    }

    .platform-card h4 {
        font-size: 16px;
        font-weight: 500;
    }

    .platform-card p {
        font-size: clamp(var(--type-xs), 0.9vw, var(--type-sm));
    }

    .cta-section {
        padding: 40px 16px;
    }

    .cta-section h2 {
        font-size: clamp(var(--type-lg), 4vw, var(--type-xl));
        margin-bottom: 12px;
    }

    .cta-subtitle {
        font-size: clamp(var(--type-sm), 1vw, var(--type-base));
        margin-bottom: 24px;
    }

    .footer {
        padding: 32px 16px 24px;
    }

    .footer-top {
        gap: 24px;
        margin-bottom: 32px;
    }

    .footer-links {
        gap: 24px;
    }

    .footer-column h5 {
        font-size: 13px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-column span {
        font-size: 13px;
    }

    /* Voice interface small screens */
    .voice-interface {
        padding: 12px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .voice-participants {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .participant-btn {
        min-width: 50px;
        max-width: 70px;
        padding: 6px 4px;
        gap: 4px;
        flex: 0 0 auto;
    }

    .participant-icon {
        width: 28px;
        height: 28px;
    }

    .participant-icon img {
        width: 14px;
        height: 14px;
    }

    .participant-label {
        font-size: 9px;
        line-height: 1.1;
    }

    .voice-waveform-container {
        padding: 0 4px;
        min-width: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .voice-waveform {
        height: 26px;
        gap: 1.4px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        flex-wrap: nowrap;
        transform: scale(0.9);
    }

    .wave-bar.animated {
        width: 2px;
        min-width: 1.5px;
        flex-shrink: 0;
        opacity: 0.7;
        min-height: 3px;
        display: block;
        background: #CD5334 !important;
        will-change: transform;
    }

    /* Hide more wave bars on small mobile */
    .voice-waveform .wave-bar.animated:nth-child(n+9) {
        display: none;
    }

    .transcription-container {
        height: 120px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .transcription-message p {
        font-size: 11px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .voice-controls {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .control-dropdown {
        padding: 5px 8px;
        font-size: 10px;
        flex-shrink: 0;
    }

    .control-btn {
        padding: 5px 10px;
        font-size: 10px;
        flex: 1;
        min-width: 0;
    }

    .control-btn.end-call {
        flex: 0 0 auto;
        width: auto;
    }

    /* Popup responsive within card */
    .demo-card-visual {
        overflow: visible;
    }

    .demo-card-visual .janet-popup {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: calc(100% - 48px);
        max-height: calc(100% - 48px);
        left: 24px;
        transform: translateY(-50%) scale(0.95);
        box-sizing: border-box;
        overflow: hidden;
    }

    .demo-card-visual .janet-popup.active {
        transform: translateY(-50%) scale(0.75);
    }

    .janet-popup {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        box-sizing: border-box;
        overflow: hidden;
    }

    .popup-header {
        padding: 12px 14px;
    }

    .progress-pills {
        padding: 12px 16px;
    }

    .popup-content {
        padding: 8px 14px 14px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .question-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .question-text {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .question-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-field input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .mcq-options {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .mcq-option {
        padding: 10px 12px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .option-content {
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .popup-footer {
        padding: 12px 14px;
        flex-direction: row;
        gap: 8px;
    }

    .popup-back-btn,
    .popup-next-btn {
        flex: 1;
        justify-content: center;
    }
}

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

    .demo-card-content {
        padding: 24px;
        gap: 24px;
    }

    .demo-title {
        font-size: 20px;
        font-weight: 500;
    }

    .demo-description {
        font-size: 16px;
    }
}

/* Call View Styles */
.call-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.call-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
}

.call-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-label {
    font-size: 14px;
    font-weight: 500;
}

.call-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot.pulsing {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.call-body {
    padding: 20px;
    background: var(--bg-primary);
    flex: 1;
}

.call-waveform {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.wave-bar {
    width: 4px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: waveAnimation 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) {
    animation-delay: 0s;
    height: 16px;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 28px;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 20px;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 36px;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 24px;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.5s;
    height: 32px;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.6s;
    height: 18px;
}

@keyframes waveAnimation {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

.call-transcript {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transcript-item {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
}

.transcript-item .transcript-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 600;
}

.transcript-item.caller {
    background: var(--bg-elevated);
    align-self: flex-end;
    max-width: 90%;
}

.transcript-item.janet {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    align-self: flex-start;
    max-width: 90%;
}

.transcript-item p {
    margin: 0;
    color: var(--text-secondary);
}

.call-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.call-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.call-actions {
    display: flex;
    gap: 8px;
}

.call-badge {
    padding: 6px 10px;
    background: var(--bg-elevated);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* .demo-chat styles now handled by .demo-view */

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-label {
    font-size: 14px;
    font-weight: 500;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
}

.chat-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    background: var(--bg-primary);
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    animation: messageIn 0.3s ease forwards;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message.customer {
    background: var(--bg-elevated);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.agent {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    background: var(--bg-card);
    position: relative;
}

/* Tap Hint Animation */
.tap-hint {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    animation: tapHintBounce 2s ease-in-out infinite;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tap-hint::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-primary);
}

.tap-hint-text {
    opacity: 0.9;
}

.tap-hint-hand {
    display: flex;
    align-items: center;
    animation: tapHandPoke 1.5s ease-in-out infinite;
}

.tap-hint.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: none;
}

@keyframes tapHintBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes tapHandPoke {

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

    50% {
        transform: translateY(2px) scale(0.95);
    }
}

/* Suggestion chip pulse animation */
.suggestion-chip {
    animation: chipPulse 3s ease-in-out infinite;
}

.suggestion-chip:nth-child(2) {
    animation-delay: 0.2s;
}

.suggestion-chip:nth-child(3) {
    animation-delay: 0.4s;
}

.suggestion-chip:nth-child(4) {
    animation-delay: 0.6s;
}

.suggestion-chip:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes chipPulse {

    0%,
    100% {}

    50% {}
}

.chat-suggestions.interacted .suggestion-chip {
    animation: none;
}

.suggestion-chip {
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.suggestion-chip:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

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

.agent-type {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 32px;
    transition: all var(--transition-medium);
}

.agent-type:hover {
    border-color: var(--border-medium);
}

.agent-type-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 20px;
}

.agent-type-icon.voice {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.agent-type-icon.chat {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.agent-type h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.agent-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Copilot Section */
.copilot-section {
    padding: 100px 16px;
    background: var(--bg-secondary);
}

.dashboard-disclaimer {
    max-width: 1140px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
}

.copilot-section .section-header {
    max-width: 720px;
}

.copilot-demo {
    max-width: 1140px;
    min-width: 320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: visible;
    height: calc(100vh - 200px);
    min-height: 600px;
    max-height: 800px;
    border-radius: 0px !important;
    width: 100%;
}

.copilot-sidebar {
    background: var(--bg-primary);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    opacity: 0.4;
    transition: opacity var(--transition-medium);
}

.sidebar-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sidebar-logo {
    height: 28px;
    width: auto;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.copilot-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    flex: 1;
    height: 100%;
    overflow: visible;
    opacity: 0.2;
    transition: opacity var(--transition-medium);
}

.copilot-main>.conversation-header {
    flex-shrink: 0;
}

.copilot-main>.conversation-cta {
    flex-shrink: 0;
    margin-top: auto;
}

.conversation-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.customer-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 17px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.customer-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.customer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.customer-status {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Intake Tabs - Lowest Priority */
.intake-tabs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.intake-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.intake-tab:hover {
    background: var(--bg-elevated);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.intake-tab.active {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 600;
}

.intake-tab svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.intake-tab.active svg {
    opacity: 0.8;
}

.intake-tab:hover svg {
    opacity: 0.9;
}

.conversation-messages {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 88px;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.conversation-messages.active {
    display: flex;
}

/* Call Recording View */
.call-recording-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 88px;
    display: none;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.call-recording-view.active {
    display: flex;
}

/* Voice Calling Waveforms */
.voice-call-waveforms {
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    margin-top: 0;
}

.voice-call-participants {
    display: flex;
    align-items: center;
    gap: 16px;
}

.voice-call-participant {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.voice-call-participant-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    opacity: 0.6;
}

.voice-call-participant-icon img {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
    opacity: 0.6;
}

.voice-call-participant-label {
    font-size: 11px;
    font-weight: 500;
}

.voice-call-waveform-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    min-height: 32px;
    overflow: hidden;
}

.voice-call-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    width: auto;
    max-width: 100%;
    padding: 0 8px;
}

.voice-call-waveform .wave-bar.animated {
    width: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    height: var(--height);
    min-height: 8px;
    max-height: 24px;
    animation: voiceCallWaveAnimation 2s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.25;
    flex-shrink: 0;
}

@keyframes voiceCallWaveAnimation {

    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.2;
    }

    50% {
        transform: scaleY(1);
        opacity: 0.5;
    }
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.play-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-medium);
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.08);
    background: var(--accent-secondary);
}

.audio-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 32px;
}

.waveform-bar {
    flex: 1;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0.2;
    transition: opacity var(--transition-fast);
    min-width: 2px;
}

.waveform-bar:nth-child(-n+20) {
    opacity: 0.8;
}

.audio-time {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.time-separator {
    color: var(--text-tertiary);
}

.time-total {
    color: var(--text-tertiary);
}

/* Transcript View */
.call-transcript-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.transcript-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.transcript-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.transcript-badge {
    font-size: 10px;
    color: var(--text-tertiary);
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-weight: 500;
}

.transcript-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.transcript-line {
    display: grid;
    grid-template-columns: 48px 64px 1fr;
    gap: 12px;
    padding: 14px 24px;
    align-items: start;
    transition: all var(--transition-medium);
    cursor: pointer;
    border-left: 3px solid transparent;
}

.transcript-line:hover {
    background: var(--bg-elevated);
}

.transcript-line.active {
    background: rgba(26, 26, 26, 0.03);
    border-left-color: var(--text-primary);
    padding-left: 21px;
}

.transcript-timestamp {
    font-size: 11px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: var(--text-tertiary);
    padding-top: 3px;
    font-weight: 500;
}

.transcript-speaker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 3px;
}

.transcript-speaker.janet {
    color: var(--text-primary);
}

.transcript-speaker.caller {
    color: var(--text-secondary);
}

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

.transcript-line.active p {
    color: var(--text-primary);
    font-weight: 400;
}

.conv-message {
    max-width: 75%;
    font-size: 14px;
    line-height: 1.6;
}

.conv-message.customer {
    align-self: flex-start;
}

.conv-message.customer p {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border-bottom-left-radius: 6px;
}

.conv-message.agent {
    align-self: flex-end;
}

.conv-message.agent p {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border-bottom-right-radius: 6px;
}

.conv-message.typing p {
    opacity: 0.7;
}

.conversation-input {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.conversation-input input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.conversation-input input:focus {
    border-color: var(--text-primary);
}

.conversation-input input::placeholder {
    color: var(--text-tertiary);
}

.send-btn {
    padding: 12px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.send-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* CTA Section - Highest Priority */
.conversation-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-top: 2px solid var(--border-medium);
    background: var(--bg-card);
    flex-shrink: 0;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.cta-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 101, 52, 0.12);
    border: 2px solid rgba(22, 101, 52, 0.2);
    border-radius: 50%;
    color: #166534;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 20px;
    height: 20px;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-message {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #CD5334;
    color: var(--bg-primary);
    border: 2px solid #CD5334;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
    height: auto;
    line-height: 1.5;
}

.cta-button:hover {
    background: #b8482a;
    border-color: #b8482a;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.cta-button:hover svg {
    transform: translateX(3px);
}

/* Traveller Brief Panel */
.lead-brief-panel {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.brief-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brief-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brief-header svg {
    opacity: 0.7;
}

.brief-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brief-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-medium);
    padding: 0;
}

.brief-action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.brief-action-btn svg {
    width: 16px;
    height: 16px;
    opacity: 1;
}

.brief-content {
    padding: 0;
    flex: 1;
}

.brief-section {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.brief-section:last-child {
    border-bottom: none;
}

/* Customer Details */
.brief-customer {
    background: var(--bg-card);
    padding: 20px;
}

.customer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.customer-name-brief {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.customer-phone {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-weight: 500;
}

.customer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 6px;
    font-weight: 500;
}

.meta-dot {
    color: var(--text-tertiary);
}

/* Summary */
.brief-summary {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 300;
    margin: 0 0 14px 0;
}

.summary-highlight {
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px dotted var(--text-secondary);
    padding: 2px 4px;
    border-radius: 3px;
}

.brief-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.brief-passengers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.brief-passengers:hover {
    background: var(--bg-card);
    border-color: var(--border-medium);
}

.brief-passengers .passenger-icon {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.brief-passengers .passenger-item {
    padding: 0;
}

.brief-passengers .passenger-separator {
    color: var(--text-tertiary);
    padding: 0 2px;
}

.brief-dietary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.brief-dietary:hover {
    background: var(--bg-card);
    border-color: var(--border-medium);
}

.brief-dietary .dietary-icon {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.brief-dietary .dietary-item {
    padding: 0;
}

.brief-chip {
    padding: 5px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.brief-chip:hover {
    background: var(--bg-card);
    border-color: var(--border-medium);
}

.brief-chip.constraint {
    background: rgba(180, 83, 9, 0.08);
    border-color: rgba(180, 83, 9, 0.2);
    color: #b45309;
}

/* Verdict */
.brief-verdict {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(22, 101, 52, 0.06);
    border-left: 3px solid #166534;
    padding-left: 17px;
}

.verdict-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.verdict-badge.high {
    background: #166534;
    color: white;
}

.verdict-badge.medium {
    background: #ca8a04;
    color: white;
}

.verdict-badge.low {
    background: var(--text-tertiary);
    color: white;
}

.verdict-text {
    font-size: 12px;
    color: #166534;
    margin: 0;
    font-weight: 300;
    line-height: 1.5;
    flex: 1;
}

/* Action */
.brief-action {
    background: var(--bg-card);
}

.action-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 600;
}

.action-text {
    font-size: clamp(14px, 1vw, 16px);
    color: var(--text-primary);
    margin: 0;
    font-weight: 300;
    line-height: 1.6;
}

/* Snapshot */
.brief-snapshot {
    padding: 18px 20px;
    background: var(--bg-card);
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
}

.snapshot-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.snapshot-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.snapshot-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Constraints */
.brief-constraints {
    padding: 18px 20px;
}

.constraints-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    font-weight: 600;
}

.constraints-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.constraint-item {
    font-size: 12px;
    color: #b45309;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-weight: 500;
}

.constraint-item::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 83, 9, 0.1);
    border-radius: 50%;
    color: #b45309;
}

/* Signals */
.brief-signals {
    display: flex;
    gap: 24px;
    padding: 18px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
}

.signal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signal-label {
    font-size: 9px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.signal-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.signal-value.high {
    color: #166534;
}

/* Footer */
.brief-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
    margin-top: auto;
}

.brief-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* Legacy support */
.copilot-assist {
    display: none;
}

/* Enterprise Section */
.enterprise-section {
    padding: 100px 0px;
    max-width: 1140px;
    min-width: 320px;
    margin: 0 auto;
}

.enterprise-features {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 80px;
}

.enterprise-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.enterprise-feature.reverse {
    direction: rtl;
}

.enterprise-feature.reverse>* {
    direction: ltr;
}

.enterprise-feature-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.enterprise-feature-content h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.enterprise-feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.enterprise-feature-content p:first-of-type {
    font-size: 14px;
    line-height: 1.8;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.case-study-link:hover {
    gap: 12px;
}

.case-study-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.case-study-link:hover svg {
    transform: translateX(4px);
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.industry-tag {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.industry-tag:hover {
    border-color: var(--border-medium);
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.industry-tag-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 0;
}

.enterprise-feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

/* Enterprise Feature Cards */
.enterprise-features-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 60px;
    width: 100%;
    min-width: 320px;
    padding: 0;
    position: relative;
    /* Context for sticky */
}

.enterprise-feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 0;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    transition: transform 0.1s linear, filter 0.1s linear;
    /* Smooth scaling */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    position: sticky;
    /* Enable sticking */
    top: 120px;
    /* Stick offset */
    z-index: 1;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
    /* Top separator */
    transform-origin: center top;
}

.enterprise-feature-card:hover {
    border-color: var(--border-medium);
}

.enterprise-feature-card-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 120px 56px;
    justify-content: center;
}

.enterprise-feature-card-content .industry-tags {
    margin-top: 0;
    margin-bottom: 0;
}

.enterprise-feature-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enterprise-feature-card-title {
    font-size: clamp(var(--type-md), 1.5vw, var(--type-lg));
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.enterprise-feature-card-description {
    font-size: clamp(14px, 1vw, var(--type-base));
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-weight: 300;
}

.enterprise-feature-card-link {
    display: none;
    /* Hidden for now */
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: gap var(--transition-fast);
    margin-top: 8px;
}

.enterprise-feature-card-link:hover {
    gap: 12px;
}

.enterprise-feature-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.enterprise-feature-card-link:hover svg {
    transform: translateX(4px);
}

.enterprise-feature-card-visual {
    position: relative;
    background: var(--bg-elevated);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    min-height: 0;
    display: flex;
    /* Ensure immediate fill */
}

.enterprise-feature-card-visual>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.image-overlay-white-box {
    width: 100%;
    height: 100%;
    background-color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Transparent background for integration cards so background images show through */
.integration-visual .image-overlay-white-box {
    background-color: transparent;
    width: 160px;
    height: 160px;
    margin: auto;
}

/* White background when there's actual content (image) in the container */
.integration-visual .image-overlay-white-box:has(.animation-container img) {
    background-color: white;
}

/* Set animation container size for integration cards */
.integration-visual .animation-container {
    width: 160px;
    height: 160px;
}

/* Animation styles within white container */
.image-overlay-white-box .animation-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
}

/* Subtle background glow when animation is active */
.image-overlay-white-box .animation-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.02) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.image-overlay-white-box .animation-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

/* Conveyor Flow Styles */
.image-overlay-white-box .conveyor-flow {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 30px;
}

.image-overlay-white-box .conveyor-circles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}

.image-overlay-white-box .conveyor-circle {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.image-overlay-white-box .circle-track {
    width: 100%;
    height: 100%;
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.05);
    animation: rotateCircle 20s linear infinite;
}

.image-overlay-white-box .conveyor-circle[data-circle="0"] .circle-track {
    animation-duration: 15s;
}

.image-overlay-white-box .conveyor-circle[data-circle="1"] .circle-track {
    animation-duration: 18s;
    animation-direction: reverse;
}

.image-overlay-white-box .conveyor-circle[data-circle="2"] .circle-track {
    animation-duration: 22s;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-overlay-white-box .requirement-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    padding: 6px 12px;
    background: #1e40af;
    color: white;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.image-overlay-white-box .requirement-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 8px;
    height: 2px;
    background: #1e40af;
    transform: translateY(-50%);
}

.image-overlay-white-box .flow-connector {
    flex: 0 0 180px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.image-overlay-white-box .connector-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.image-overlay-white-box .connector-path {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
}

.image-overlay-white-box .connector-path-active {
    fill: none;
    stroke: url(#connectorGradient);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: connectorFlow 4s ease-in-out infinite;
}

@keyframes connectorFlow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
}

.image-overlay-white-box .flow-destination-center {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    position: relative;
}

.image-overlay-white-box .destination-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    animation: destinationPulse 2s ease-in-out infinite;
}

@keyframes destinationPulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
        transform: scale(1.05);
    }
}

.image-overlay-white-box .destination-icon svg {
    width: 50px;
    height: 50px;
}

.image-overlay-white-box .destination-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Branching Flow Styles (keeping for reference) */
.image-overlay-white-box .branching-flow {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.image-overlay-white-box .flow-source {
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.image-overlay-white-box .source-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    animation: sourcePulse 2s ease-in-out infinite;
}

@keyframes sourcePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
        transform: scale(1.05);
    }
}

.image-overlay-white-box .source-icon svg {
    width: 40px;
    height: 40px;
}

.image-overlay-white-box .flow-paths-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.image-overlay-white-box .flow-path {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2;
}

.image-overlay-white-box .flow-path-active {
    fill: none;
    stroke: url(#activePathGradient);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
    opacity: 0;
}

.image-overlay-white-box .flow-path-active.animating {
    animation: pathDraw 2.5s ease-in-out forwards;
    opacity: 1;
}

@keyframes pathDraw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

.image-overlay-white-box .flow-destinations {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    z-index: 10;
    position: relative;
}

.image-overlay-white-box .flow-destination {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-overlay-white-box .flow-destination.active {
    transform: scale(1.2);
}

.image-overlay-white-box .flow-destination.active svg {
    fill: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.image-overlay-white-box .signals-section {
    flex: 0 0 auto;
    min-width: 180px;
}

.image-overlay-white-box .signals-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 12px;
}

.image-overlay-white-box .signal-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-overlay-white-box .signal-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 16px;
    font-size: 11px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.image-overlay-white-box .signal-chip.active {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.image-overlay-white-box .signal-chip-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.image-overlay-white-box .inputs-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.image-overlay-white-box .input-source {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.image-overlay-white-box .input-source.active {
    border-color: #3b82f6;
    background: #f0f7ff;
    color: #3b82f6;
}

.image-overlay-white-box .input-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.image-overlay-white-box .janet-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.image-overlay-white-box .janet-processor {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.image-overlay-white-box .janet-processor.pulsing {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1), 0 0 0 12px rgba(59, 130, 246, 0.05), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-overlay-white-box .janet-processor svg {
    width: 40px;
    height: 40px;
}

.image-overlay-white-box .janet-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.image-overlay-white-box .brief-section {
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 320px;
}

.image-overlay-white-box .brief-card {
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.image-overlay-white-box .brief-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9e9ee;
}

.image-overlay-white-box .brief-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.image-overlay-white-box .brief-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-overlay-white-box .brief-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.image-overlay-white-box .brief-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay-white-box .brief-row-label {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    min-width: 70px;
    flex-shrink: 0;
}

.image-overlay-white-box .brief-row-value {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
}

.image-overlay-white-box .brief-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9e9ee;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.image-overlay-white-box .brief-action.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay-white-box .brief-action-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
}

.image-overlay-white-box .brief-action-text {
    font-size: 11px;
    color: #333;
    font-weight: 500;
}

.image-overlay-white-box .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    filter: blur(0.5px);
}

.image-overlay-white-box .particle.active {
    opacity: 1;
}

/* Shimmering particle effect */
.image-overlay-white-box .particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0.6) 50%, transparent 100%);
    border-radius: 50%;
    animation: particleShimmer 1.5s ease-in-out infinite;
}

.image-overlay-white-box .particle::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleGlow 1.5s ease-in-out infinite;
}

@keyframes particleShimmer {

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

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes particleGlow {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

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

/* SVG Path container for elegant curves */
.image-overlay-white-box .flow-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.image-overlay-white-box .flow-path.active {
    opacity: 1;
}

.image-overlay-white-box .flow-path svg {
    width: 100%;
    height: 100%;
}

.image-overlay-white-box .flow-path-line {
    fill: none;
    stroke: url(#flowGradient);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: flowPathDraw 2s ease-in-out forwards;
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.4));
}

@keyframes flowPathDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Trail effect for particles */
.image-overlay-white-box .particle-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Enhanced input source glow */
.image-overlay-white-box .input-source.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    border-radius: 12px;
    z-index: -1;
    animation: inputShimmer 1.5s ease-in-out infinite;
}

@keyframes inputShimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Enhanced chip glow */
.image-overlay-white-box .signal-chip.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 70%);
    border-radius: 17px;
    z-index: -1;
    animation: chipPulseGlow 0.6s ease-out;
}

@keyframes chipPulseGlow {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.enterprise-feature-visual-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* Knowledge Graph */
.knowledge-graph {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-node {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-medium);
}

.node-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.node-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.node-4 {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.graph-node:hover {
    border-color: var(--border-medium);
}

.node-1:hover {
    transform: translateX(-50%) scale(1.1);
}

.node-2:hover {
    transform: translateY(-50%) scale(1.1);
}

.node-3:hover {
    transform: translateX(-50%) scale(1.1);
}

.node-4:hover {
    transform: translateY(-50%) scale(1.1);
}

.graph-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.graph-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--border-subtle);
    z-index: 1;
    opacity: 0.4;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
}

.flow-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    position: relative;
}

.flow-icon {
    font-size: 12px;
}

.flow-label {
    position: absolute;
    top: -8px;
    right: 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
}

.flow-node.trigger {
    border-color: var(--text-primary);
    background: var(--bg-elevated);
}

.flow-node.qualified {
    border-color: #2d2d2d;
    background: rgba(45, 45, 45, 0.05);
}

.flow-node.bad-fit {
    border-color: #8a8a8a;
    background: rgba(138, 138, 138, 0.08);
}

.flow-arrow {
    color: var(--text-tertiary);
    font-size: 14px;
    text-align: center;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
    border-left: 2px solid var(--border-subtle);
}

.branch-path {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Backed By */
.backed-by {
    text-align: center;
    padding-top: 80px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 80px;
}

.backed-by .section-header {
    margin-bottom: 60px;
}

.integration-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1140px;
    min-width: 320px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    box-shadow: none;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
}

.integration-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}

.integration-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-elevated);
    border-radius: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.integration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.integration-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.integration-title {
    font-size: clamp(var(--type-md), 1.5vw, var(--type-lg));
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.integration-subtext {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.backed-by .btn-primary {
    width: auto;
    min-width: 200px;
    max-width: none;
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    box-sizing: border-box;
}

.investor-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.investor-logos span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* Platform Section */
.platform-section {
    padding: 100px 16px;
    background: var(--bg-secondary);
}

.platform-section .section-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.platform-grid {
    max-width: 1140px;
    min-width: 320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 28px;
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}

.platform-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.platform-icon {
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-icon svg {
    color: #CD5334;
    transition: color 0.3s ease;
}

.platform-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.platform-card p {
    font-size: clamp(14px, 1vw, var(--type-base));
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 16px;
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
}

.cta-section h2 {
    font-size: clamp(var(--type-lg), 4vw, var(--type-xl));
    font-weight: 500;
    max-width: 820px;
    margin: 0 auto 12px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: clamp(14px, 1vw, var(--type-base));
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.cta-buttons .btn {
    width: auto !important;
    min-width: 200px;
    flex: 0 0 auto;
}

/* Footer */
.footer {
    padding: 60px 16px 40px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.footer-brand .logo {
    font-size: 22px;
    margin-bottom: 0;
}

.footer-ai-icons {
    margin-top: 4px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-icons-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.ai-icons-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.ai-icon:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.ai-icon:hover img {
    opacity: 0.8;
}

.ai-icon>img,
.ai-icon>svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.ai-icon-openai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ai-icon .ai-icon-openai img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.4);
    display: block;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex: 1;
    justify-content: flex-end;
}

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

.footer-column h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 16px;
        gap: 24px;
    }

    /* Hide br tags in section headers to allow natural wrapping */
    .section-header h2 br {
        display: none;
    }

    .section-header h2 {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-title {
        font-size: clamp(var(--type-xl), 4vw, var(--type-2xl)) !important;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .agents-section {
        padding: 80px 16px 40px 16px;
    }

    .copilot-section {
        padding: 80px 16px;
    }

    .copilot-demo {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
        max-height: none;
        width: 100%;
    }

    .copilot-sidebar {
        display: none;
    }

    .copilot-main {
        display: none;
        /* Hide conversation on mobile, show only travel brief */
    }

    .lead-brief-panel {
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    .copilot-assist {
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    .enterprise-section {
        padding: 80px 16px;
    }

    .enterprise-feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .enterprise-feature.reverse {
        direction: ltr;
    }

    .enterprise-feature-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        min-height: auto;
    }

    .enterprise-feature-card-content {
        padding: 32px 24px;
    }

    .enterprise-feature-card-title {
        font-size: 20px;
    }

    .enterprise-feature-card-description {
        font-size: 16px;
    }

    .enterprise-feature-card-visual {
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        order: -1;
        /* Image first */
    }

    .integration-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 0px;
    }

    .platform-section {
        padding: 80px 16px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 80px 16px;
    }

    .footer {
        padding: 60px 16px 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 16px;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    .hero {
        padding: 160px 16px 320px;
        min-height: 100vh;
        justify-content: center;
    }

    .hero-bg-image {
        bottom: 0;
    }

    .backed-by .section-header {
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: clamp(var(--type-xl), 8vw, var(--type-2xl)) !important;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
        padding: 0;
    }

    .hero .btn-large {
        min-width: auto;
        width: 100%;
        max-width: none;
        /* Full width on mobile */
    }

    .section-header p {
        padding: 0;
    }

    .features-section {
        padding: 80px 16px 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .agents-section {
        padding: 80px 16px 40px 16px;
    }

    .section-header {
        margin-bottom: 24px;
        text-align: left !important;
    }

    /* Hide br tags in section headers to allow natural wrapping */
    .section-header h2 br {
        display: none;
    }

    .section-header h2 {
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 12px;
        line-height: 1.2;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-header p {
        font-size: 16px;
        line-height: 1.6;
        text-align: left;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .demo-card-content {
        padding: 24px;
        gap: 20px;
    }

    .demo-title {
        font-size: 20px;
        font-weight: 500;
    }

    .demo-description {
        font-size: 16px;
    }

    .demo-card-visual {
        min-height: 300px;
        overflow: visible;
    }

    .demo-card-visual .janet-popup {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: calc(100% - 48px);
        max-height: calc(100% - 48px);
        left: 24px;
        transform: translateY(-50%) scale(0.95);
    }

    .demo-card-visual .janet-popup.active {
        transform: translateY(-50%) scale(0.95);
    }

    .copilot-section {
        padding: 60px 16px;
    }

    .copilot-demo {
        border-radius: 0;
        width: 100%;
    }

    .conversation-header {
        padding: 14px 16px;
    }

    .conversation-cta {
        padding: 20px 16px;
        flex-direction: column;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        min-width: auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn,
    .cta-section .btn-primary,
    .cta-section .btn-large {
        width: 100% !important;
        min-width: auto;
        max-width: none;
        flex: 1 1 100%;
    }

    .lead-brief-panel {
        max-height: none;
        /* Show full brief without height limit */
    }

    .enterprise-section {
        padding: 60px 16px;
    }

    .enterprise-features-cards {
        /* padding: 0 16px; */
        gap: 24px;
        margin-top: 40px;
    }

    .enterprise-feature-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        min-height: auto;
    }

    .enterprise-feature-card-content {
        padding: 24px 20px;
    }

    .enterprise-feature-card-title {
        font-size: 20px;
        font-weight: 500;
    }

    .enterprise-feature-card-description {
        font-size: 16px;
    }

    .enterprise-feature-card-visual {
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .backed-by {
        padding-top: 60px;
        margin-top: 60px;
    }

    .integration-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 0px;
    }

    .integration-visual {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .integration-card-content {
        padding: 20px;
    }

    .integration-title {
        font-size: 20px;
        font-weight: 500;
    }

    .backed-by .btn-primary {
        width: 100%;
        max-width: 100%;
        padding: 14px 28px;
        margin-left: 0;
        margin-right: 0;
    }

    .platform-section {
        padding: 60px 16px;
    }

    .platform-section .section-header h2 {
        font-size: 16px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .platform-card {
        padding: 24px;
    }

    .platform-card h4 {
        font-size: 16px;
        font-weight: 500;
    }

    .cta-section {
        padding: 60px 16px;
    }

    .cta-section h2 {
        text-align: left !important;
        font-size: clamp(var(--type-lg), 4vw, var(--type-xl));
    }

    .cta-subtitle {
        text-align: left !important;
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100% !important;
        max-width: none;
        /* Full width on mobile */
        margin: 0;
        flex: 1 1 100%;
    }

    .footer {
        padding: 40px 16px 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
        justify-content: flex-start;
    }

    .footer-brand {
        margin-bottom: 0;
    }

    .footer-ai-icons {
        margin-top: 12px;
    }

    .ai-icons-row {
        gap: 8px;
    }

    .ai-icon {
        width: 32px;
        height: 32px;
    }

    .ai-icon img,
    .ai-icon svg {
        width: 24px;
        height: 24px;
    }

    .trusted-logos {
        gap: 24px;
    }

    .investor-logos {
        flex-wrap: wrap;
        gap: 24px;
    }

    /* Voice interface responsive */
    .voice-interface {
        padding: 16px;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .voice-participants {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        width: 100%;
        flex-wrap: nowrap;
    }

    .participant-btn {
        min-width: 60px;
        max-width: 80px;
        padding: 8px 6px;
        gap: 6px;
        flex: 0 0 auto;
    }

    .participant-icon {
        width: 32px;
        height: 32px;
    }

    .participant-icon img {
        width: 16px;
        height: 16px;
    }

    .participant-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .voice-waveform-container {
        flex: 1;
        padding: 0 8px;
        min-width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .voice-waveform {
        height: 29px;
        gap: 1.8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        flex-wrap: nowrap;
        transform: scale(0.9);
    }

    .wave-bar.animated {
        width: 2.3px;
        min-width: 2px;
        flex-shrink: 0;
        opacity: 0.7;
        min-height: 4px;
        display: block;
        background: #CD5334 !important;
        will-change: transform;
    }

    /* Hide some wave bars on mobile to reduce clutter */
    .voice-waveform .wave-bar.animated:nth-child(n+11) {
        display: none;
    }

    .transcription-container {
        height: 150px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .transcription-messages {
        gap: 8px;
    }

    .transcription-message p {
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .message-label {
        font-size: 9px;
    }

    .voice-controls {
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .control-dropdown {
        padding: 6px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .control-btn {
        padding: 6px 12px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .control-btn.end-call {
        flex: 0 0 auto;
        width: auto;
    }

    /* Popup responsive */
    .janet-popup {
        width: calc(100% - 32px);
        max-width: 360px;
        height: calc(100% - 40px);
        max-height: calc(100% - 40px);
    }

    .popup-content {
        padding: 8px 16px 16px;
    }

    .popup-footer {
        padding: 14px 16px;
    }

    /* Audio player responsive */
    .audio-player {
        padding: 16px;
        flex-wrap: wrap;
    }

    .audio-progress {
        width: 100%;
        margin-top: 8px;
    }

    /* Transcript responsive */
    .transcript-line {
        grid-template-columns: 40px 50px 1fr;
        gap: 8px;
        padding: 12px 16px;
    }

    .transcript-timestamp {
        font-size: 10px;
    }

    .transcript-speaker {
        font-size: 10px;
    }

    .transcript-line p {
        font-size: 13px;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Web Intake Demo Styles */
#web-intake-demo .demo-card-body {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

/* Voice Interface Styles */
.voice-interface {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    overflow: visible;
}

.voice-participants {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.participant-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    min-width: 80px;
    transition: all var(--transition-medium);
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

.participant-btn.active {
    border-color: #CD5334;
    animation: breathingBorder 2s ease-in-out infinite;
}

@keyframes breathingBorder {

    0%,
    100% {
        border-color: #CD5334;
    }

    50% {
        border-color: rgba(205, 83, 52, 0.6);
    }
}

.participant-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.participant-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.participant-btn.active .participant-icon {
    background: rgba(205, 83, 52, 0.1);
    color: #CD5334;
}

.participant-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: color var(--transition-fast);
}

.participant-btn.active .participant-label {
    color: #CD5334;
    font-weight: 600;
}

.voice-waveform-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    min-width: 0;
    overflow: visible;
}

.voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.wave-bar.animated {
    width: 3px;
    background: #CD5334;
    border-radius: 2px;
    height: var(--height);
    animation: waveAnimation 1.5s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.4;
    flex-shrink: 0;
    min-width: 2px;
    display: block;
}

@keyframes waveAnimation {

    0%,
    100% {
        transform: scaleY(0.3);
        opacity: 0.3;
    }

    50% {
        transform: scaleY(1);
        opacity: 0.7;
    }
}

.transcription-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    height: 200px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.transcription-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
    padding-bottom: 32px;
}

.transcription-messages::-webkit-scrollbar {
    width: 4px;
}

.transcription-messages::-webkit-scrollbar-track {
    background: transparent;
}

.transcription-messages::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

.transcription-messages::-webkit-scrollbar-thumb:hover {
    background: var(--border-medium);
}

.transcription-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transcription-message p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.transcription-message.customer-msg .message-label {
    color: var(--text-primary);
}

.transcription-message.agent-msg .message-label {
    color: var(--text-primary);
}

.transcription-message.typing p {
    position: relative;
}

.transcription-message.typing p::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--text-primary);
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.voice-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    z-index: 9;
}

.control-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-dropdown:hover {
    border-color: var(--border-medium);
    background: var(--bg-elevated);
}

.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 10;
    overflow: visible;
}

.control-dropdown {
    position: relative;
}

.control-dropdown:hover .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-option:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.dropdown-option.selected {
    color: var(--text-primary);
    font-weight: 500;
}

.control-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-primary);
}

.control-btn.end-call {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    flex: 0 0 auto;
}

.control-btn.end-call:hover {
    background: var(--bg-elevated);
}

.control-btn.end-call svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transform: rotate(90deg);
}

.demo-card-visual .website-mockup {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-card-visual .package-mockup {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-card-visual .call-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.demo-card-visual .call-transcript {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.demo-card-visual .janet-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 48px);
    height: calc(100% - 48px);
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    box-sizing: border-box;
}

.demo-card-visual .janet-popup.active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Website Mockup */
.website-mockup {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

/* Package Card Mockup */
.package-mockup {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.janet-brand-note {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 12px 16px 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    line-height: 1.4;
}

.package-image {
    position: relative;
    height: 160px;
    background-image: url('assets/backgrounds/singapore.webp');
    background-size: 120%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    overflow: hidden;
    animation: singaporePan 12s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes singaporePan {
    0% {
        background-position: 50% 50%;
    }

    33.333% {
        background-position: 58% 48%;
    }

    66.666% {
        background-position: 58% 52%;
    }

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

.package-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(255, 200, 100, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(100, 180, 255, 0.1) 0%, transparent 40%);
    opacity: 0.3;
}

.package-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.package-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: #e85d4c;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.package-image-content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: white;
}

.package-duration {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
}

.package-destination {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.package-details {
    padding: 16px;
    background: var(--bg-card);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.package-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.highlight-item svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.package-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: visible;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.price-per {
    font-size: 11px;
    color: var(--text-tertiary);
}

.book-now-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

.book-now-btn>span:first-child {
    line-height: 1.2;
}

.book-now-btn .powered-by {
    font-size: 9px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.3px;
    margin-top: 2px;
    opacity: 0.9;
    line-height: 1;
}

.book-now-btn::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;
}

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

.book-now-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

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

/* Janet Popup */
.janet-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 360px;
    height: calc(100% - 40px);
    max-width: 360px;
    max-height: calc(100% - 40px);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease-out;
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.janet-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.popup-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.popup-brand svg,
.popup-brand img {
    width: auto;
    height: 40px;
}

.popup-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: auto;
    margin-right: 8px;
}

.popup-call-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

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

/* Progress Pills */
.progress-pills {
    display: flex;
    gap: 6px;
    padding: 16px 20px;
    justify-content: center;
}

.pill {
    width: 100%;
    max-width: 40px;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.pill.completed {
    background: var(--text-primary);
}

.pill.active {
    background: var(--text-primary);
    animation: pillPulse 2s ease-in-out infinite;
}

@keyframes pillPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Popup Content */
.popup-content {
    padding: 8px 20px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease-out;
    box-sizing: border-box;
    width: 100%;
}

/* Celebratory State */
.celebration-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.celebration-icon {
    width: 80px;
    height: 80px;
    animation: celebrationBounce 0.6s ease-out;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebration-icon svg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.celebration-icon svg circle {
    fill: rgba(255, 255, 255, 0.2);
}

.celebration-icon svg path {
    stroke: white;
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
    }

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

.celebration-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FF6B35;
    animation: confettiFall 3s ease-out forwards;
}

.confetti-piece:nth-child(2n) {
    background: #F7931E;
    animation-delay: 0.1s;
}

.confetti-piece:nth-child(3n) {
    background: #4ECDC4;
    animation-delay: 0.2s;
}

.confetti-piece:nth-child(4n) {
    background: #45B7D1;
    animation-delay: 0.3s;
}

.confetti-piece:nth-child(5n) {
    background: #FFA07A;
    animation-delay: 0.4s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

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

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

/* Popup Loader */
.popup-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
    transition: opacity 0.2s ease-out;
}

.loader-icon {
    width: 64px;
    height: 64px;
    animation: loaderFade 1.5s ease-in-out infinite;
}

@keyframes loaderFade {

    0%,
    100% {
        opacity: 0;
    }

    12.5% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    37.5% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    62.5% {
        opacity: 1;
    }

    75% {
        opacity: 0;
    }

    87.5% {
        opacity: 1;
    }
}

.question-content {
    width: 100%;
    transition: opacity 0.2s ease-out;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.form-field input:focus {
    border-color: var(--text-primary);
    background: var(--bg-card);
}

.form-field input::placeholder {
    color: var(--text-tertiary);
}

.question-section {
    margin-bottom: 20px;
}

.question-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* MCQ Options */
.mcq-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.mcq-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
    min-width: 0;
}

.mcq-option:hover {
    border-color: var(--border-medium);
    background: var(--bg-elevated);
}

.mcq-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--text-primary);
    cursor: pointer;
}

.mcq-option input[type="radio"]:checked+.option-content {
    color: var(--text-primary);
}

.mcq-option:has(input:checked) {
    border-color: var(--text-primary);
    background: var(--bg-elevated);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.option-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.option-desc {
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.2;
}

/* Popup Footer */
.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.popup-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.popup-back-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.popup-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.popup-next-btn:hover {
    background: var(--accent-secondary);
}

/* Overlay when popup is active */
.website-mockup.dimmed {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

/* Legal Content Pages */
.legal-content {
    padding: 120px 24px 80px;
    min-height: calc(100vh - 200px);
}

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

.legal-content h1 {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal-last-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.legal-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-body h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.legal-body ul,
.legal-body ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--transition-fast);
}

.legal-body a:hover {
    opacity: 0.7;
}

.legal-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 100px 20px 60px;
    }

    .legal-content h1 {
        font-size: 36px;
    }

    .legal-body h2 {
        font-size: 24px;
    }

    .legal-body h3 {
        font-size: 20px;
    }
}

/* =============================================
   FAQ Section
   ============================================= */

.faq-section {
    padding: 100px 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

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

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

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer p {
    padding: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 20px;
    }

    .faq-container {
        margin-top: 32px;
    }

    .faq-question {
        padding: 20px 0;
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 15px;
        padding-bottom: 20px;
    }
}