/* ==========================================================================
   Chateasily Homepage Styles
   Custom page template for chateasily.com landing page
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --ce-primary: #7c3aed;
    --ce-primary-light: #a78bfa;
    --ce-primary-dark: #5b21b6;
    --ce-secondary: #3b82f6;
    --ce-accent: #06b6d4;
    --ce-gradient: linear-gradient(135deg, var(--ce-primary), var(--ce-secondary));
    --ce-gradient-dark: linear-gradient(135deg, #0f0a1e 0%, #1a1145 50%, #0d1b2a 100%);
    --ce-gradient-text: linear-gradient(135deg, var(--ce-primary-light), var(--ce-accent));

    --ce-white: #ffffff;
    --ce-gray-50: #f8fafc;
    --ce-gray-100: #f1f5f9;
    --ce-gray-200: #e2e8f0;
    --ce-gray-300: #cbd5e1;
    --ce-gray-500: #64748b;
    --ce-gray-600: #475569;
    --ce-gray-700: #334155;
    --ce-gray-800: #1e293b;
    --ce-gray-900: #0f172a;
    --ce-dark-bg: #0f0a1e;
    --ce-dark-card: #1a1336;
    --ce-dark-border: #2d2552;

    --ce-success: #10b981;
    --ce-warning: #f59e0b;
    --ce-danger: #ef4444;

    --ce-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ce-h1-size: clamp(2.25rem, 5vw, 3.5rem);
    --ce-h2-size: clamp(1.75rem, 3.5vw, 2.5rem);
    --ce-h3-size: clamp(1.125rem, 2vw, 1.375rem);
    --ce-body-size: 1.0625rem;
    --ce-small-size: 0.9375rem;

    --ce-section-pad: clamp(4rem, 8vw, 7rem);
    --ce-container-width: 1200px;
    --ce-container-narrow: 800px;
    --ce-gap: clamp(1.5rem, 3vw, 2.5rem);

    --ce-radius: 16px;
    --ce-radius-sm: 10px;
    --ce-radius-xs: 6px;
    --ce-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ce-shadow-md: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ce-shadow-lg: 0 20px 50px -12px rgb(0 0 0 / 0.25);
    --ce-transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Base / Astra Overrides
   -------------------------------------------------------------------------- */

/* --- Homepage header: transparent overlay on dark hero (global dark header in style.css) --- */
.chateasily-homepage .ast-primary-header-bar,
.chateasily-homepage .ast-primary-header,
.chateasily-homepage #ast-desktop-header,
.chateasily-homepage .main-header-bar {
    background: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.chateasily-homepage .main-header-container {
    background: transparent !important;
}

/* Force full-width: override Astra's max-width and flex-direction on homepage */
.chateasily-homepage .site-content > .ast-container,
.chateasily-homepage .ast-container,
.chateasily-homepage #content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    margin: 0 !important;
}

/* Restore header container alignment to match page content (1200px centered) */
.chateasily-homepage .main-header-bar .ast-container,
.chateasily-homepage #ast-desktop-header .ast-container {
    max-width: 1200px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 921px) {
    .chateasily-homepage .main-header-bar .ast-container,
    .chateasily-homepage #ast-desktop-header .ast-container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.chateasily-homepage #content.site-content,
.chateasily-homepage .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.chateasily-homepage .entry-content,
.chateasily-homepage .hentry {
    margin: 0;
}

.chateasily-homepage #primary {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ce-homepage {
    font-family: var(--ce-font);
    color: var(--ce-gray-700);
    line-height: 1.7;
    font-size: var(--ce-body-size);
    overflow-x: hidden;
}

.ce-homepage *,
.ce-homepage *::before,
.ce-homepage *::after {
    box-sizing: border-box;
}

.ce-homepage h1,
.ce-homepage h2,
.ce-homepage h3,
.ce-homepage h4 {
    font-family: var(--ce-font);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.ce-homepage p {
    margin: 0 0 1rem;
}

.ce-homepage p:last-child {
    margin-bottom: 0;
}

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

/* --------------------------------------------------------------------------
   3. Utility Classes
   -------------------------------------------------------------------------- */
.ce-container {
    max-width: var(--ce-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.ce-container--narrow {
    max-width: var(--ce-container-narrow);
}

.ce-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.ce-section-header h2 {
    font-size: var(--ce-h2-size);
    color: var(--ce-gray-900);
    margin-bottom: 1rem;
}

.ce-section-header p {
    font-size: var(--ce-body-size);
    color: var(--ce-gray-500);
    line-height: 1.7;
}

.ce-section-header--light h2 {
    color: var(--ce-white);
}

.ce-section-header--light p {
    color: var(--ce-gray-300);
}

/* Buttons */
.ce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--ce-font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--ce-transition);
    white-space: nowrap;
}

.ce-btn--primary {
    background: var(--ce-gradient);
    color: var(--ce-white);
    box-shadow: 0 4px 15px rgb(124 58 237 / 0.4);
}

.ce-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(124 58 237 / 0.5);
    color: var(--ce-white);
    text-decoration: none;
}

.ce-btn--secondary {
    background: transparent;
    color: var(--ce-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ce-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--ce-white);
    text-decoration: none;
}

.ce-btn--secondary-dark {
    color: var(--ce-primary);
    border: 2px solid var(--ce-primary);
    background: transparent;
}

.ce-btn--secondary-dark:hover {
    background: var(--ce-primary);
    color: var(--ce-white);
    text-decoration: none;
}

.ce-btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.ce-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(124, 58, 237, 0.15);
    color: var(--ce-primary-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.ce-hero {
    position: relative;
    background: var(--ce-gradient-dark);
    padding: clamp(7rem, 14vw, 11rem) 0 clamp(4rem, 10vw, 8rem);
    overflow: hidden;
}

.ce-hero::before,
.ce-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.ce-hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 70%);
    top: -100px;
    right: -100px;
    animation: ceFloat 8s ease-in-out infinite;
}

.ce-hero::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: ceFloat 10s ease-in-out infinite reverse;
}

.ce-hero .ce-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.ce-hero__content .ce-badge {
    margin-bottom: 1.5rem;
}

.ce-hero__content h1 {
    font-size: var(--ce-h1-size);
    color: var(--ce-white);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.ce-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ce-gray-300);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.ce-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ce-hero__social-proof {
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
}

/* Hero Chat Mockup */
.ce-hero__visual {
    display: none;
}

.ce-chat-mockup {
    background: #1e1b2e;
    border-radius: var(--ce-radius);
    border: 1px solid var(--ce-dark-border);
    overflow: hidden;
    box-shadow: var(--ce-shadow-lg), 0 0 60px rgba(124, 58, 237, 0.15);
    max-width: 440px;
    margin: 0 auto;
}

.ce-chat-mockup__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #16132a;
    border-bottom: 1px solid var(--ce-dark-border);
}

.ce-chat-mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ce-primary);
    opacity: 0.8;
}

.ce-chat-mockup__title {
    font-size: 0.875rem;
    color: var(--ce-gray-300);
    font-weight: 600;
}

.ce-chat-mockup__users {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ce-gray-500);
}

.ce-chat-mockup__messages {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ce-chat-msg {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.ce-chat-msg__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ce-white);
}

.ce-chat-msg__body {
    flex: 1;
    min-width: 0;
}

.ce-chat-msg__name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.ce-chat-msg__text {
    font-size: 0.8125rem;
    color: var(--ce-gray-300);
    line-height: 1.5;
}

.ce-chat-msg__reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 50px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    margin-top: 0.35rem;
    color: var(--ce-gray-300);
}

/* Voice note mockup */
.ce-chat-msg__voice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 20px;
    padding: 0.5rem 0.875rem;
    margin-top: 0.25rem;
}

.ce-chat-msg__voice-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ce-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ce-chat-msg__voice-btn svg {
    width: 10px;
    height: 10px;
    fill: var(--ce-white);
}

.ce-chat-msg__waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.ce-chat-msg__waveform span {
    display: block;
    width: 3px;
    border-radius: 3px;
    background: var(--ce-primary-light);
    opacity: 0.6;
    animation: ceWaveform 1.2s ease-in-out infinite;
}

.ce-chat-msg__voice-time {
    font-size: 0.7rem;
    color: var(--ce-gray-500);
    flex-shrink: 0;
}

.ce-chat-mockup__input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--ce-dark-border);
}

.ce-chat-mockup__input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ce-dark-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--ce-gray-500);
}

.ce-chat-mockup__input-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ce-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ce-chat-mockup__input-send svg {
    width: 14px;
    height: 14px;
    fill: var(--ce-white);
}

/* Typing indicator in mockup */
.ce-chat-msg__typing {
    display: flex;
    gap: 4px;
    padding: 0.35rem 0;
}

.ce-chat-msg__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ce-gray-500);
    animation: ceTyping 1.4s ease-in-out infinite;
}

.ce-chat-msg__typing span:nth-child(2) { animation-delay: 0.2s; }
.ce-chat-msg__typing span:nth-child(3) { animation-delay: 0.4s; }

/* --------------------------------------------------------------------------
   5. Trust / Stats Bar
   -------------------------------------------------------------------------- */
.ce-trust {
    background: var(--ce-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--ce-gray-100);
}

.ce-trust .ce-container {
    text-align: center;
}

.ce-trust__text {
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.ce-trust__stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
    flex-wrap: wrap;
}

.ce-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ce-stat__number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    background: var(--ce-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.ce-stat__label {
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. Features Grid
   -------------------------------------------------------------------------- */
.ce-features {
    background: var(--ce-gray-50);
    padding: var(--ce-section-pad) 0;
}

.ce-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ce-feature-card {
    background: var(--ce-white);
    border-radius: var(--ce-radius);
    padding: 2rem;
    border: 1px solid var(--ce-gray-200);
    transition: all var(--ce-transition);
}

.ce-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-md);
    border-color: rgba(124, 58, 237, 0.2);
}

.ce-feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.ce-feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.ce-feature-card h3 {
    font-size: var(--ce-h3-size);
    color: var(--ce-gray-900);
    margin-bottom: 0.625rem;
}

.ce-feature-card p {
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. How It Works
   -------------------------------------------------------------------------- */
.ce-how-it-works {
    background: var(--ce-white);
    padding: var(--ce-section-pad) 0;
}

.ce-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
}

.ce-step {
    text-align: center;
    position: relative;
}

.ce-step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ce-gradient);
    color: var(--ce-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgb(124 58 237 / 0.3);
}

.ce-step h3 {
    font-size: var(--ce-h3-size);
    color: var(--ce-gray-900);
    margin-bottom: 0.625rem;
}

.ce-step p {
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Connector line (desktop only) */
.ce-steps__connector {
    display: none;
}

/* --------------------------------------------------------------------------
   8. Embed Demo
   -------------------------------------------------------------------------- */
.ce-embed-demo {
    background: var(--ce-gradient-dark);
    padding: var(--ce-section-pad) 0;
    position: relative;
    overflow: hidden;
}

.ce-embed-demo::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.ce-embed-demo .ce-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.ce-embed-demo__content h2 {
    font-size: var(--ce-h2-size);
    color: var(--ce-white);
    margin-bottom: 1rem;
}

.ce-embed-demo__content > p {
    color: var(--ce-gray-300);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Code block */
.ce-code-block {
    background: #0d0b1a;
    border-radius: var(--ce-radius-sm);
    border: 1px solid var(--ce-dark-border);
    margin-bottom: 2rem;
    overflow: hidden;
}

.ce-code-block__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--ce-dark-border);
}

.ce-code-block__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ce-code-block__dot:nth-child(1) { background: #ef4444; }
.ce-code-block__dot:nth-child(2) { background: #f59e0b; }
.ce-code-block__dot:nth-child(3) { background: #10b981; }

.ce-code-block__title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ce-gray-500);
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ce-code-block pre {
    margin: 0;
    padding: 1.25rem 1.25rem;
    overflow-x: auto;
}

.ce-code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--ce-gray-300);
}

.ce-code-block .ce-code-tag { color: #ef4444; }
.ce-code-block .ce-code-attr { color: #f59e0b; }
.ce-code-block .ce-code-val { color: #10b981; }

/* Embed mockup */
.ce-embed-demo__preview {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.ce-embed-preview {
    background: #f0f0f0;
    border-radius: var(--ce-radius);
    overflow: hidden;
    border: 1px solid var(--ce-dark-border);
    box-shadow: var(--ce-shadow-lg);
    position: relative;
    min-height: 320px;
}

.ce-embed-preview__browser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #e0e0e0;
    border-bottom: 1px solid #d0d0d0;
}

.ce-embed-preview__browser-dots {
    display: flex;
    gap: 5px;
}

.ce-embed-preview__browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ce-embed-preview__browser-dots span:nth-child(1) { background: #ef4444; }
.ce-embed-preview__browser-dots span:nth-child(2) { background: #f59e0b; }
.ce-embed-preview__browser-dots span:nth-child(3) { background: #10b981; }

.ce-embed-preview__browser-bar {
    flex: 1;
    background: var(--ce-white);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    color: var(--ce-gray-500);
}

.ce-embed-preview__page {
    padding: 1.5rem;
    background: var(--ce-white);
    min-height: 260px;
    position: relative;
}

.ce-embed-preview__page-line {
    height: 10px;
    background: var(--ce-gray-200);
    border-radius: 5px;
    margin-bottom: 0.625rem;
}

.ce-embed-preview__page-line:nth-child(2) { width: 85%; }
.ce-embed-preview__page-line:nth-child(3) { width: 70%; }
.ce-embed-preview__page-line:nth-child(4) { width: 90%; margin-bottom: 1.5rem; }
.ce-embed-preview__page-line:nth-child(5) { width: 80%; }
.ce-embed-preview__page-line:nth-child(6) { width: 60%; }

/* Floating chat bubble in embed preview */
.ce-embed-preview__bubble {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ce-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgb(124 58 237 / 0.5);
    animation: cePulse 2s ease-in-out infinite;
}

.ce-embed-preview__bubble svg {
    width: 24px;
    height: 24px;
    fill: var(--ce-white);
}

/* Mini chat window in embed preview */
.ce-embed-preview__mini-chat {
    position: absolute;
    bottom: 4.5rem;
    right: 1rem;
    width: 220px;
    background: #1e1b2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ce-shadow-lg);
    border: 1px solid var(--ce-dark-border);
}

.ce-embed-preview__mini-header {
    padding: 0.5rem 0.75rem;
    background: #16132a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--ce-dark-border);
}

.ce-embed-preview__mini-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ce-success);
}

.ce-embed-preview__mini-title {
    font-size: 0.65rem;
    color: var(--ce-gray-300);
    font-weight: 600;
}

.ce-embed-preview__mini-msgs {
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ce-embed-preview__mini-msg {
    font-size: 0.6rem;
    color: var(--ce-gray-300);
    line-height: 1.4;
}

.ce-embed-preview__mini-msg strong {
    color: var(--ce-primary-light);
    font-weight: 600;
}

.ce-embed-preview__mini-input {
    padding: 0.375rem 0.75rem;
    border-top: 1px solid var(--ce-dark-border);
}

.ce-embed-preview__mini-input-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ce-dark-border);
    border-radius: 12px;
    padding: 0.3rem 0.625rem;
    font-size: 0.6rem;
    color: var(--ce-gray-500);
}

/* --------------------------------------------------------------------------
   9. Use Cases
   -------------------------------------------------------------------------- */
.ce-use-cases {
    background: var(--ce-gray-50);
    padding: var(--ce-section-pad) 0;
}

.ce-use-cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ce-use-case {
    background: var(--ce-white);
    border-radius: var(--ce-radius);
    padding: 2rem;
    border: 1px solid var(--ce-gray-200);
    border-top: 3px solid transparent;
    border-image: var(--ce-gradient) 1;
    border-image-slice: 1 0 0 0;
    transition: all var(--ce-transition);
}

.ce-use-case:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-md);
}

.ce-use-case__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-use-case__icon svg {
    width: 36px;
    height: 36px;
}

.ce-use-case h3 {
    font-size: var(--ce-h3-size);
    color: var(--ce-gray-900);
    margin-bottom: 0.5rem;
}

.ce-use-case p {
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   9b. Chat Categories (interlinks section)
   -------------------------------------------------------------------------- */
.ce-chat-categories {
    background: var(--ce-white);
    padding: var(--ce-section-pad) 0;
}

.ce-chat-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.ce-chat-categories__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ce-gray-50);
    border-radius: var(--ce-radius-sm);
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--ce-gray-100);
    text-decoration: none;
    transition: all var(--ce-transition);
}

.ce-chat-categories__link:hover {
    background: var(--ce-white);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: var(--ce-shadow);
    text-decoration: none;
    transform: translateY(-2px);
}

.ce-chat-categories__link-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ce-chat-categories__link-name {
    font-size: var(--ce-small-size);
    font-weight: 600;
    color: var(--ce-gray-700);
}

.ce-chat-categories__link:hover .ce-chat-categories__link-name {
    color: var(--ce-primary);
}

.ce-chat-categories__subtitle {
    text-align: center;
    margin-top: 2rem;
    font-size: var(--ce-small-size);
    color: var(--ce-gray-500);
}

.ce-chat-categories__subtitle a {
    color: var(--ce-primary);
    font-weight: 600;
    text-decoration: none;
}

.ce-chat-categories__subtitle a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   10. Feature Deep Dives
   -------------------------------------------------------------------------- */
.ce-deep-dives {
    background: var(--ce-white);
    padding: var(--ce-section-pad) 0;
}

.ce-deep-dive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 0;
}

.ce-deep-dive + .ce-deep-dive {
    border-top: 1px solid var(--ce-gray-100);
}

.ce-deep-dive__content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    color: var(--ce-gray-900);
    margin-bottom: 0.875rem;
}

.ce-deep-dive__content > p {
    color: var(--ce-gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ce-deep-dive__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ce-deep-dive__list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: var(--ce-small-size);
    color: var(--ce-gray-600);
}

.ce-deep-dive__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.15));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237c3aed'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Deep dive visual - mini mockup containers */
.ce-deep-dive__visual {
    background: var(--ce-gray-50);
    border-radius: var(--ce-radius);
    border: 1px solid var(--ce-gray-200);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

/* Room list mockup */
.ce-rooms-mockup {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ce-rooms-mockup__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ce-white);
    border-radius: var(--ce-radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid var(--ce-gray-200);
}

.ce-rooms-mockup__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ce-rooms-mockup__info {
    flex: 1;
    min-width: 0;
}

.ce-rooms-mockup__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ce-gray-800);
}

.ce-rooms-mockup__meta {
    font-size: 0.7rem;
    color: var(--ce-gray-500);
}

.ce-rooms-mockup__count {
    font-size: 0.7rem;
    color: var(--ce-gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ce-rooms-mockup__count::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ce-success);
}

/* DM mockup */
.ce-dm-mockup {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ce-dm-mockup__msg {
    max-width: 80%;
    border-radius: 16px;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.ce-dm-mockup__msg--sent {
    align-self: flex-end;
    background: var(--ce-gradient);
    color: var(--ce-white);
    border-bottom-right-radius: 4px;
}

.ce-dm-mockup__msg--received {
    align-self: flex-start;
    background: var(--ce-gray-100);
    color: var(--ce-gray-700);
    border-bottom-left-radius: 4px;
}

.ce-dm-mockup__msg--reaction {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.ce-dm-mockup__msg--reaction span {
    background: rgba(124, 58, 237, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Voice mockup */
.ce-voice-mockup {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ce-voice-mockup__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ce-white);
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--ce-gray-200);
}

.ce-voice-mockup__play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ce-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ce-voice-mockup__play svg {
    width: 12px;
    height: 12px;
    fill: var(--ce-white);
}

.ce-voice-mockup__bars {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.ce-voice-mockup__bars span {
    display: block;
    width: 3px;
    border-radius: 3px;
    background: var(--ce-primary);
    opacity: 0.5;
}

.ce-voice-mockup__duration {
    font-size: 0.75rem;
    color: var(--ce-gray-500);
    flex-shrink: 0;
}

/* Embed code mockup */
.ce-embed-mockup {
    width: 100%;
    max-width: 340px;
}

.ce-embed-mockup__code {
    background: #0d0b1a;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--ce-gray-300);
    margin-bottom: 1rem;
    border: 1px solid var(--ce-dark-border);
}

.ce-embed-mockup__result {
    text-align: center;
    padding: 1rem;
}

.ce-embed-mockup__result-label {
    font-size: 0.75rem;
    color: var(--ce-gray-500);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ce-embed-mockup__result-label::before,
.ce-embed-mockup__result-label::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--ce-gray-200);
}

.ce-embed-mockup__mini-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ce-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(124 58 237 / 0.4);
}

.ce-embed-mockup__mini-bubble svg {
    width: 20px;
    height: 20px;
    fill: var(--ce-white);
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.ce-faq {
    background: var(--ce-gray-50);
    padding: var(--ce-section-pad) 0;
}

.ce-faq__items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ce-faq__item {
    background: var(--ce-white);
    border-radius: var(--ce-radius-sm);
    border: 1px solid var(--ce-gray-200);
    overflow: hidden;
    transition: all var(--ce-transition);
}

.ce-faq__item:hover {
    border-color: rgba(124, 58, 237, 0.2);
}

.ce-faq__item[open] {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--ce-shadow);
}

.ce-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--ce-body-size);
    color: var(--ce-gray-800);
    list-style: none;
    user-select: none;
}

.ce-faq__item summary::-webkit-details-marker { display: none; }
.ce-faq__item summary::marker { display: none; content: ''; }

.ce-faq__item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform var(--ce-transition);
}

.ce-faq__item[open] summary::after {
    transform: rotate(180deg);
}

.ce-faq__answer {
    padding: 0 1.5rem 1.25rem;
}

.ce-faq__answer p {
    color: var(--ce-gray-600);
    line-height: 1.7;
    font-size: var(--ce-small-size);
}

/* --------------------------------------------------------------------------
   12. Final CTA
   -------------------------------------------------------------------------- */
.ce-final-cta {
    background: var(--ce-gradient-dark);
    padding: var(--ce-section-pad) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ce-final-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ce-final-cta .ce-container {
    position: relative;
    z-index: 1;
}

.ce-final-cta__content h2 {
    font-size: var(--ce-h2-size);
    color: var(--ce-white);
    margin-bottom: 1rem;
}

.ce-final-cta__content > p {
    color: var(--ce-gray-300);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.ce-final-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   13. Animations
   -------------------------------------------------------------------------- */
@keyframes ceFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

@keyframes ceWaveform {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes ceTyping {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes cePulse {
    0%, 100% { box-shadow: 0 4px 15px rgb(124 58 237 / 0.5); }
    50% { box-shadow: 0 4px 25px rgb(124 58 237 / 0.7), 0 0 40px rgb(124 58 237 / 0.2); }
}

/* Scroll-reveal animation (progressive enhancement) */
.ce-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: ceFadeInUp 0.6s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
}

@keyframes ceFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fallback: if animation-timeline not supported, show everything */
@supports not (animation-timeline: view()) {
    .ce-reveal {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   14. Responsive — Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .ce-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ce-chat-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ce-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Step connector line */
    .ce-steps__connector {
        display: block;
        position: absolute;
        top: 28px;
        left: 20%;
        right: 20%;
        height: 2px;
        background: var(--ce-gradient);
        opacity: 0.3;
        z-index: 0;
    }

    .ce-step {
        position: relative;
        z-index: 1;
    }

    .ce-embed-demo .ce-container {
        grid-template-columns: 1fr 1fr;
    }

    .ce-deep-dive {
        grid-template-columns: 1fr 1fr;
    }

    .ce-deep-dive--right .ce-deep-dive__visual {
        order: 2;
    }

    .ce-deep-dive--right .ce-deep-dive__content {
        order: 1;
    }
}

/* --------------------------------------------------------------------------
   15. Responsive — Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .ce-hero .ce-container {
        grid-template-columns: 1fr 1fr;
    }

    .ce-hero__content {
        text-align: left;
    }

    .ce-hero__subtitle {
        margin: 0 0 2rem;
    }

    .ce-hero__ctas {
        justify-content: flex-start;
    }

    .ce-hero__visual {
        display: block;
    }

    .ce-features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ce-use-cases__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ce-chat-categories__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------------------------------------
   16. Responsive — Large Desktop (1280px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
    .ce-features__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --------------------------------------------------------------------------
   17. Responsive — Small Mobile (max 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .ce-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .ce-btn--large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .ce-hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .ce-code-block pre {
        font-size: 0.75rem;
    }

    .ce-section-header {
        margin-bottom: 2.5rem;
    }
}
