/* ============================================
   Codex Layout Refinement - 2026-03-08
   Goal: denser desktop rhythm, clearer section separation,
   unified pillar interactions, aligned pricing CTAs
   ============================================ */

:root {
    --container-max: 1160px;
    --section-padding: clamp(72px, 5vw, 96px);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-desc,
.pillar-desc,
.hero-subtitle,
.cta-desc {
    max-width: 760px;
}

:is(.scenarios, .capabilities, .ios-integration, .providers, .trust, .pricing, .faq, .testimonials, .security, .cta) {
    position: relative;
}

.scenarios,
.providers,
.faq,
.security {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%),
        var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.capabilities,
.pricing,
.trust,
.testimonials {
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 58%),
        var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ios-integration,
.cta {
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(139, 92, 246, 0.07), transparent 56%),
        var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}

.capability-pillar {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 28px 32px;
    align-items: start;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
    border: 1px solid var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.capability-pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    border-color: rgba(99, 102, 241, 0.28);
}

.capability-pillar > :not(.pillar-header) {
    grid-column: 2;
}

.pillar-header {
    margin-bottom: 0;
    padding-right: 8px;
}

.pillar-header h3 {
    font-size: 1.65rem;
    line-height: 1.15;
}

.pillar-number {
    padding: 5px 14px;
    letter-spacing: 0.04em;
}

.pillar-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pillar-feature {
    min-height: 104px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-primary);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.pillar-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.24);
    background: rgba(255,255,255,0.045);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.pf-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.10));
    border: 1px solid rgba(99, 102, 241, 0.14);
}

.pf-text strong {
    font-size: 0.98rem;
}

.pf-text span {
    font-size: 0.86rem;
    line-height: 1.5;
}

.agents-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.agent-chip {
    min-height: 120px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-primary);
    border-radius: 18px;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.agent-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.24);
    background: rgba(255,255,255,0.045);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.capability-pillar .model-tags {
    margin-top: 4px;
    gap: 10px;
}

.model-tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border-primary);
    font-size: 0.82rem;
}

.pricing {
    padding-top: calc(var(--section-padding) - 8px);
}

.pricing-grid {
    align-items: stretch;
    gap: 24px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 28px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.pricing-card-featured {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.09));
    box-shadow: 0 18px 48px rgba(79, 70, 229, 0.14);
}

.pricing-header {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.pricing-features li {
    align-items: flex-start;
    min-height: 52px;
    padding: 12px 0;
    line-height: 1.45;
}

.pricing-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.pricing-note {
    max-width: 880px;
    margin: 28px auto 0;
}

.faq-grid {
    max-width: 1080px;
    gap: 20px;
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.faq-item,
.testimonial-card,
.security-card,
.trust-badge-item {
    border-radius: 18px;
}

.faq-item {
    padding: 22px 22px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
}

.faq-item:hover,
.testimonial-card:hover,
.security-card:hover,
.trust-badge-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.testimonials-grid,
.security-grid,
.trust-badges-grid {
    gap: 20px;
}

.testimonial-card,
.security-card {
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
}

.trust-badge,
.trust-badge-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-primary);
}

.footer-company-info {
    margin-top: 26px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--border-primary) !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

@media (min-width: 1440px) {
    :root {
        --section-padding: 84px;
        --container-max: 1180px;
    }

    .capability-pillar {
        gap: 28px 36px;
    }

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

@media (max-width: 1024px) {
    .capability-pillar {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px;
    }

    .capability-pillar > :not(.pillar-header) {
        grid-column: auto;
    }

    .pillar-features,
    .agents-compact {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        gap: 18px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 72px;
    }

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

    .capability-pillar,
    .pricing-card,
    .faq-item,
    .testimonial-card,
    .security-card {
        padding: 22px;
    }

    .pricing-header {
        min-height: auto;
    }
}

/* ============================================
   Codex Refinement Pass 2 - icons, trust, motion
   ============================================ */

.pf-icon,
.agent-chip-icon,
.trust-fact-icon,
.testimonial-avatar {
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pf-icon,
.trust-fact-icon,
.testimonial-avatar {
    color: #c7d2fe;
}

.agent-chip-icon {
    color: var(--agent-color, #818cf8);
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.pf-icon .icon-svg,
.agent-chip-icon .icon-svg,
.trust-fact-icon .icon-svg,
.testimonial-avatar .icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.testimonials-grid {
    align-items: stretch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08));
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.testimonial-stars {
    display: inline-flex;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: #f59e0b;
}

.testimonial-text {
    flex: 1;
    line-height: 1.7;
}

.testimonial-date {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.trust-flow {
    padding: 30px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.flow-node-v2 {
    min-width: 172px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.flow-icon-v2 {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
}

.trust-facts {
    align-items: stretch;
    gap: 20px;
}

.trust-fact {
    min-height: 170px;
    height: 100%;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.022));
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.trust-fact:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.trust-fact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08));
}

.pro-features-summary {
    max-width: 1080px;
    margin: 28px auto 0;
    padding: 24px 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.pro-features-grid span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border-primary);
    font-size: 0.92rem;
    font-weight: 500;
}

.pricing-note {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-primary);
}

.pricing-note p:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.faq-item {
    min-height: 0;
    border: 1px solid var(--border-primary);
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.45;
}

.faq-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content {
    align-items: flex-start;
    gap: 40px;
}

.footer-company-info {
    max-width: 760px;
    padding-top: 22px !important;
}

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

.hero-particles,
.particle {
    opacity: 0.45;
}

.hero-glow,
.device-glow,
.device-glow-2 {
    animation: none !important;
    opacity: 0.36;
}

.scroll-indicator {
    animation: none !important;
    opacity: 0.65;
}

.dynamic-island,
.island-camera,
.island-content,
.island-progress-circle {
    animation-duration: 12s !important;
    animation-timing-function: ease-in-out !important;
}

.kb-feature:hover,
.usage-card:hover,
.hs-widget-v2:hover,
.iphone-frame:hover,
.pricing-card:hover,
.testimonial-card:hover,
.faq-item:hover,
.trust-fact:hover {
    transform: translateY(-2px) !important;
}

@media (max-width: 1024px) {
    .trust-facts,
    .pro-features-grid {
        grid-template-columns: 1fr;
    }

    .flow-node-v2 {
        min-width: 0;
        width: 100%;
    }
}

/* ============================================
   Codex Refinement Pass 3 - scenarios and iOS app icons
   ============================================ */

.scenario-card {
    border-radius: 22px;
    border: 1px solid var(--border-primary);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.scenario-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.scenario-icon {
    font-size: 0;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #c7d2fe;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.scenario-icon .icon-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

.scenario-arrow {
    color: var(--primary-light);
}

.ios-emoji {
    display: none;
}

.ios-app-icon {
    position: relative;
    overflow: hidden;
}

.ios-app-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 62% 62%;
}

.ios-app-icon.wechat::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 15c-2.8 0-5-1.8-5-4s2.2-4 5-4 5 1.8 5 4-2.2 4-5 4Z'/%3E%3Cpath d='m5.5 14.3-.8 2.2 2.5-1.3'/%3E%3Cpath d='M16 17c-2.2 0-4-1.4-4-3.2s1.8-3.2 4-3.2 4 1.4 4 3.2-1.8 3.2-4 3.2Z'/%3E%3Cpath d='m14.8 16.8-.6 1.6 1.8-.9'/%3E%3C/svg%3E");
}

.ios-app-icon.safari::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='m12 7 3.4 8-8-3.4L12 7Z'/%3E%3C/svg%3E");
}

.ios-app-icon.settings::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1 1 0 0 0 .2 1.1l.1.1a1 1 0 0 1 0 1.4l-1.2 1.2a1 1 0 0 1-1.4 0l-.1-.1a1 1 0 0 0-1.1-.2 1 1 0 0 0-.6.9V20a1 1 0 0 1-1 1h-1.6a1 1 0 0 1-1-1v-.2a1 1 0 0 0-.6-.9 1 1 0 0 0-1.1.2l-.1.1a1 1 0 0 1-1.4 0l-1.2-1.2a1 1 0 0 1 0-1.4l.1-.1a1 1 0 0 0 .2-1.1 1 1 0 0 0-.9-.6H4a1 1 0 0 1-1-1v-1.6a1 1 0 0 1 1-1h.2a1 1 0 0 0 .9-.6 1 1 0 0 0-.2-1.1l-.1-.1a1 1 0 0 1 0-1.4l1.2-1.2a1 1 0 0 1 1.4 0l.1.1a1 1 0 0 0 1.1.2 1 1 0 0 0 .6-.9V4a1 1 0 0 1 1-1h1.6a1 1 0 0 1 1 1v.2a1 1 0 0 0 .6.9 1 1 0 0 0 1.1-.2l.1-.1a1 1 0 0 1 1.4 0l1.2 1.2a1 1 0 0 1 0 1.4l-.1.1a1 1 0 0 0-.2 1.1 1 1 0 0 0 .9.6h.2a1 1 0 0 1 1 1v1.6a1 1 0 0 1-1 1h-.2a1 1 0 0 0-.9.6Z'/%3E%3C/svg%3E");
    background-size: 58% 58%;
}

.ios-app-icon.photos::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Cpath d='M12 4v3'/%3E%3Cpath d='M12 17v3'/%3E%3Cpath d='M4 12h3'/%3E%3Cpath d='M17 12h3'/%3E%3Cpath d='m6.3 6.3 2.1 2.1'/%3E%3Cpath d='m15.6 15.6 2.1 2.1'/%3E%3Cpath d='m17.7 6.3-2.1 2.1'/%3E%3Cpath d='m8.4 15.6-2.1 2.1'/%3E%3C/svg%3E");
}

.ios-app-icon.camera::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

.ios-app-icon.clock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 8v4l2.5 2.5'/%3E%3C/svg%3E");
}

.ios-app-icon.notes::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='16' rx='2'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E");
}

.ios-app-icon.music::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V7l9-2v11'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='16' r='2'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
    .scenario-icon {
        width: 46px;
        height: 46px;
    }

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

/* ============================================
   Codex Refinement Pass 4 - hero and iOS showcase polish
   ============================================ */

.hero {
    min-height: clamp(760px, 90vh, 920px);
    padding: 108px 24px 52px;
}

.hero-gradient {
    background:
        radial-gradient(ellipse 60% 42% at 50% 18%, rgba(99, 102, 241, 0.14), transparent 68%),
        radial-gradient(ellipse 42% 30% at 75% 28%, rgba(139, 92, 246, 0.10), transparent 72%),
        linear-gradient(180deg, rgba(8, 11, 25, 0.02), rgba(8, 11, 25, 0.18));
}

.hero-content {
    max-width: 760px;
}

.hero-badge {
    margin-bottom: 26px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.badge-dot {
    animation: none !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero-title {
    margin-bottom: 18px;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    margin-bottom: 30px;
    font-size: clamp(1rem, 2vw, 1.14rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.78);
}

.hero-cta {
    gap: 16px;
    margin-bottom: 42px;
}

.hero .btn {
    min-height: 50px;
    border-radius: 14px;
}

.hero .btn-primary {
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}

.hero .btn-primary:hover,
.hero .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.hero-scroll {
    bottom: 22px;
    gap: 8px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.68;
}

.scroll-indicator {
    width: 22px;
    height: 34px;
}

.hero-particles::before,
.hero-particles::after {
    filter: blur(110px);
    opacity: 0.16;
}

.particle {
    opacity: 0.35;
    box-shadow: none;
}

.ios-showcase-v2 {
    display: grid;
    gap: 28px;
}

.di-showcase,
.widget-showcase-v2 {
    gap: 40px;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--border-primary);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.di-text-content,
.ws-text-content {
    gap: 16px;
}

.di-text-content h3,
.ws-text-content h3 {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-primary);
}

.di-text-content > p,
.ws-text-content > p {
    font-size: 0.94rem;
    line-height: 1.7;
}

.di-badge,
.ws-badge {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
}

.di-features,
.ws-features {
    gap: 10px;
}

.di-feature-item,
.ws-feature-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.di-phone-mockup,
.ws-phone-mockup {
    align-items: center;
}

.di-iphone,
.ws-iphone {
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

.di-wallpaper,
.ws-wallpaper {
    filter: saturate(0.82) brightness(0.92);
}

.dynamic-island {
    background: rgba(5, 5, 8, 0.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.di-app-bubble,
.di-app-line,
.hsw-chat-item,
.hsw-new-chat,
.hsw-qa-btn,
.hsw-action-btn {
    box-shadow: none;
}

.ws-widget-stage {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
}

.hs-widget-v2 {
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.ws-size-selector {
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-primary);
}

.ws-size-dot {
    min-width: 42px;
    min-height: 42px;
}

.ws-dock {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
}

.ws-dock-icon {
    opacity: 0.82;
}

@media (max-width: 1024px) {
    .di-showcase,
    .widget-showcase-v2 {
        padding: 24px;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 96px 20px 40px;
    }

    .hero-cta {
        margin-bottom: 28px;
    }

    .hero-scroll {
        display: none;
    }

    .di-showcase,
    .widget-showcase-v2 {
        padding: 20px;
        border-radius: 22px;
    }
}

/* ============================================
   Codex Refinement Pass 5 - formalization and light mode
   ============================================ */

.agent-chip-icon-blue { --agent-color: #3B82F6; }
.agent-chip-icon-purple { --agent-color: #8B5CF6; }
.agent-chip-icon-green { --agent-color: #10B981; }
.agent-chip-icon-amber { --agent-color: #F59E0B; }
.agent-chip-icon-red { --agent-color: #EF4444; }
.agent-chip-icon-pink { --agent-color: #EC4899; }

/* Featured agent chips — highlight for Legal & Social Media */
.agent-chip.agent-chip-featured {
    position: relative;
    border: 1.5px solid rgba(129, 140, 248, 0.35) !important;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.12), 0 4px 12px rgba(99, 102, 241, 0.08) !important;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, rgba(251, 146, 60, 0.04) 100%) !important;
}
.agent-chip.agent-chip-featured::after {
    content: attr(data-badge);
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    line-height: 1.4;
    z-index: 1;
}
.agent-chip.agent-chip-featured.agent-chip-featured-orange {
    border-color: rgba(251, 146, 60, 0.35) !important;
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.12), 0 4px 12px rgba(249, 115, 22, 0.08) !important;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08) 0%, rgba(129, 140, 248, 0.04) 100%) !important;
}
.agent-chip.agent-chip-featured.agent-chip-featured-orange::after {
    background: linear-gradient(135deg, #fb923c, #f97316);
}
.agent-chip.agent-chip-featured .agent-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.agent-chip.agent-chip-featured .agent-chip-link:hover {
    color: rgba(255,255,255,0.8);
}
[data-lang="en"] .agent-chip.agent-chip-featured::after {
    content: attr(data-badge-en);
}

.inline-link {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(129, 140, 248, 0.45);
    transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.inline-link:hover {
    color: var(--text-primary);
    text-decoration-color: currentColor;
}

.pricing-note-centered {
    text-align: center;
}

.pricing-legal-note,
.pricing-legal-links {
    margin-top: 8px;
    font-size: 0.8rem;
}

.pricing-legal-note {
    opacity: 0.68;
}

.providers-scroll {
    margin-top: 36px;
    mask-image: none;
    -webkit-mask-image: none;
}

.providers-track {
    width: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    animation: none;
}

.providers-track .provider-logo:nth-child(n + 9) {
    display: none;
}

.provider-logo {
    min-width: 0;
    padding: 22px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.provider-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.22);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.provider-name {
    margin-bottom: 6px;
    font-size: 1rem;
}

.provider-models {
    line-height: 1.5;
}

.footer-company-info {
    display: grid;
    gap: 6px;
    text-align: left;
}

.footer-brand .footer-company-info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-primary);
}

.footer-company-title {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-company-name,
.footer-company-address {
    margin-bottom: 4px;
}

@media (max-width: 1024px) {
    .providers-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .providers-track {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: light) {
    .scenarios,
    .providers,
    .faq,
    .security {
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.015) 0%, transparent 100%),
            var(--bg-secondary);
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    }

    .capabilities,
    .pricing,
    .trust,
    .testimonials {
        background:
            radial-gradient(ellipse 90% 60% at 50% 0%, rgba(99, 102, 241, 0.06), transparent 58%),
            var(--bg-primary);
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    }

    .ios-integration,
    .cta {
        background:
            radial-gradient(ellipse 80% 55% at 50% 0%, rgba(139, 92, 246, 0.05), transparent 56%),
            var(--bg-secondary);
    }

    .capability-pillar,
    .pricing-card,
    .faq-item,
    .testimonial-card,
    .trust-fact,
    .provider-logo,
    .di-showcase,
    .widget-showcase-v2,
    .pro-features-summary,
    .pricing-note {
        background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.9));
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .pillar-feature,
    .agent-chip,
    .pro-features-grid span,
    .di-feature-item,
    .ws-feature-item,
    .flow-node-v2,
    .ws-size-selector,
    .ws-widget-stage {
        background: rgba(255,255,255,0.78);
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: none;
    }

    .pf-icon,
    .agent-chip-icon,
    .trust-fact-icon,
    .testimonial-avatar,
    .scenario-icon,
    .flow-icon-v2 {
        color: #4f46e5;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(139, 92, 246, 0.05));
        border-color: rgba(99, 102, 241, 0.16);
    }

    .hero-gradient {
        background:
            radial-gradient(ellipse 60% 42% at 50% 18%, rgba(99, 102, 241, 0.10), transparent 68%),
            radial-gradient(ellipse 42% 30% at 75% 28%, rgba(139, 92, 246, 0.06), transparent 72%),
            linear-gradient(180deg, rgba(255,255,255,0.6), rgba(248,250,252,0.88));
    }

    .hero-subtitle {
        color: var(--text-secondary);
    }

    .hero-badge,
    .di-badge,
    .ws-badge,
    .pricing-note,
    .footer-company-info {
        background: rgba(255,255,255,0.8);
    }

    .footer-brand .footer-company-info {
        border-top-color: rgba(15, 23, 42, 0.08);
    }

    .hero .btn-secondary {
        background: rgba(255,255,255,0.86);
    }

    .ws-dock {
        background: rgba(255,255,255,0.72);
        border-color: rgba(15, 23, 42, 0.08);
    }

    .dynamic-island {
        background: rgba(10, 10, 12, 0.94);
    }

    .testimonial-stars {
        color: #92400e;
    }

    .agent-chip.agent-chip-featured {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(251, 146, 60, 0.04) 100%) !important;
        border-color: rgba(99, 102, 241, 0.28) !important;
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.10), 0 4px 12px rgba(99, 102, 241, 0.06) !important;
    }
    .agent-chip.agent-chip-featured.agent-chip-featured-orange {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%) !important;
        border-color: rgba(249, 115, 22, 0.28) !important;
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.10), 0 4px 12px rgba(249, 115, 22, 0.06) !important;
    }
    .agent-chip.agent-chip-featured .agent-chip-link {
        color: rgba(15, 23, 42, 0.45);
    }
    .agent-chip.agent-chip-featured .agent-chip-link:hover {
        color: rgba(15, 23, 42, 0.7);
    }
}

/* ============================================
   Codex Refinement Pass 6 - capability pillars unified
   ============================================ */

.capability-pillar {
    align-items: stretch;
}

.capability-pillar > :not(.pillar-header) {
    grid-column: auto;
}

.pillar-body {
    grid-column: 2;
    display: grid;
    gap: 16px;
    align-content: start;
    min-height: 100%;
}

.pillar-features,
.agents-compact {
    align-items: stretch;
}

.pillar-features-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar-feature,
.agent-chip {
    min-height: 118px;
}

.pillar-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-top: 2px;
}

.pillar-meta-tag,
.model-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border-primary);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0 !important;
}

.agent-chip-text {
    gap: 6px;
}

.agent-chip-text small {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 1;
}

@media (max-width: 1200px) {
    .pillar-features-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .pillar-body {
        grid-column: auto;
    }
}

/* ============================================
   Codex Refinement Pass 7 - capability pillar balance
   ============================================ */

.capability-pillar {
    position: relative;
    overflow: hidden;
}

.capability-pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.34), rgba(139, 92, 246, 0.12), transparent 80%);
    pointer-events: none;
}

.pillar-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pillar-desc {
    max-width: 30ch;
}

.pillar-body {
    grid-template-rows: minmax(0, 1fr) auto;
}

.pillar-footer {
    padding-top: 4px;
}

.capability-pillar-chat .pillar-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-pillar-chat .pillar-feature,
.capability-pillar-privacy .pillar-feature {
    min-height: 120px;
}

.capability-pillar-agents .agents-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.capability-pillar-agents .agent-chip {
    min-height: 112px;
    padding: 16px;
}

.capability-pillar-agents .agent-chip-text strong,
.capability-pillar-chat .pf-text strong,
.capability-pillar-privacy .pf-text strong {
    font-size: 0.96rem;
}

.capability-pillar-agents .agent-chip-desc,
.capability-pillar-chat .pf-text span,
.capability-pillar-privacy .pf-text span {
    line-height: 1.55;
}

.capability-pillar-privacy .pillar-features-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.capability-pillar-privacy .pillar-footer {
    justify-content: flex-start;
}

.homepage-v2 .ios-integration,
.homepage-v2 .providers {
    display: none;
}

.homepage-v2 .pro-features-summary {
    display: none;
}

.homepage-v2 .cta .hero-cta {
    justify-content: center;
    margin-top: 28px;
}

.homepage-v2 .site-footer-v2 {
    padding: 48px 0 24px;
    background: var(--bg-secondary);
}

.homepage-v2 .footer-grid-v2 {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) repeat(4, minmax(120px, 0.6fr));
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.homepage-v2 .footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.homepage-v2 .footer-links-v2 {
    display: grid;
    gap: 10px;
    align-content: start;
    color: var(--text-secondary);
}

.homepage-v2 .footer-links-v2 strong {
    color: var(--text-primary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.homepage-v2 .footer-links-v2 a:hover {
    color: var(--text-primary);
}

.homepage-v2 .footer-blurb {
    max-width: 44ch;
    margin: 0;
}

.homepage-v2 .footer-bottom-v2 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.homepage-v2 .footer-company-v2 {
    display: grid;
    gap: 4px;
}

.homepage-v2 .footer-company-v2 p,
.homepage-v2 .footer-meta-v2 p {
    margin: 0;
}

.homepage-v2 .footer-company-v2 strong {
    color: var(--text-primary);
}

.homepage-v2 .footer-meta-v2 {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

@media (max-width: 1180px) {
    .homepage-v2 .footer-grid-v2,
    .homepage-v2 .footer-bottom-v2 {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .homepage-v2 .footer-meta-v2 {
        justify-items: start;
        text-align: left;
    }
}

@media (min-width: 1100px) {
    .capability-pillar {
        min-height: 340px;
        padding: 34px;
        gap: 30px 34px;
    }

    .capability-pillar-chat {
        min-height: 360px;
    }

    .capability-pillar-agents {
        min-height: 392px;
    }

    .capability-pillar-privacy {
        min-height: 340px;
    }

    .capability-pillar-agents .pillar-header {
        padding-top: 4px;
    }

    .capability-pillar-agents .agents-compact {
        align-content: start;
    }

    .capability-pillar-privacy .pillar-body {
        align-content: start;
    }
}

@media (max-width: 1200px) {
    .capability-pillar-privacy .pillar-features-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .capability-pillar::before {
        left: 24px;
        right: 24px;
    }

    .capability-pillar-chat .pillar-features,
    .capability-pillar-agents .agents-compact,
    .capability-pillar-privacy .pillar-features-3 {
        grid-template-columns: 1fr;
    }
}
