@import url('/public_assets/css/public-theme.css?v=3');

:root {
    --cf-primary: #0077ed;
    --cf-secondary: #1d1d1f;
    --cf-accent: #5e5ce6;
    --cf-surface: #ffffff;
    --cf-surface-strong: #f4f4f7;
    --cf-border: rgba(0,0,0,0.08);
    --cf-border-soft: rgba(0,0,0,0.05);
    --cf-text: #1d1d1f;
    --cf-muted: #6e6e73;
    --cf-shadow: 0 40px 90px rgba(0,0,0,0.08);
    --cf-shadow-soft: 0 24px 60px rgba(0,0,0,0.06);
    --cf-radius-lg: 24px;
    --cf-radius-md: 18px;
}

body.cf-page {
    margin: 0;
    min-height: 100vh;
    background: #fbfbfd;
    color: var(--cf-text);
    font-family: var(--public-font);
    -webkit-font-smoothing: antialiased;
}

.cf-page-wrapper {
    padding-top: 120px;
}

.cf-page a {
    color: var(--cf-secondary);
    text-decoration: none;
    transition: color .2s ease;
}

.cf-page a:hover {
    color: var(--cf-primary);
}

.cf-hero {
    position: relative;
    padding: clamp(5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5rem);
    overflow: hidden;
    background: linear-gradient(180deg, #fbfbfd 0%, #f4f4f7 80%, #eef1ff 100%);
    border-bottom: 1px solid var(--cf-border);
}

.cf-hero::before,
.cf-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.cf-hero::before {
    inset: 0;
    background: radial-gradient(120% 80% at 10% 5%, rgba(0,119,237,0.15), transparent 60%);
}

.cf-hero::after {
    top: -160px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(94,92,230,0.18), transparent 70%);
    filter: blur(70px);
}

.cf-hero > * {
    position: relative;
    z-index: 1;
}

.cf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 1.2rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--cf-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    font-size: 0.78rem;
}

.cf-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cf-accent);
    box-shadow: 0 0 0 4px rgba(244,114,182,0.22);
}

.cf-hero-title {
    margin: clamp(1.2rem, 2.4vw, 1.8rem) 0 0.7rem;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
}

.cf-hero-lead {
    color: #4b4b4f;
    font-size: 1.15rem;
    max-width: 640px;
}

.cf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.cf-btn-primary,
.cf-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 999px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.cf-btn-primary {
    background: linear-gradient(135deg, #0a84ff, #0077ed);
    color: #fff;
    border: none;
    box-shadow: 0 26px 48px rgba(0,119,237,0.32);
}

.cf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 60px rgba(0,119,237,0.4);
}

.cf-btn-secondary {
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
    color: var(--cf-text);
}

.cf-btn-secondary:hover {
    border-color: rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cf-hero-note {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cf-muted);
    font-size: 0.92rem;
}

.cf-hero-note .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cf-primary);
    box-shadow: 0 0 0 4px rgba(0,119,237,0.2);
}

.cf-support-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cf-support-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-radius: var(--cf-radius-lg);
    background: #fff;
    border: 1px solid var(--cf-border);
    box-shadow: var(--cf-shadow-soft);
    padding: 1.6rem 1.8rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.cf-support-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(0,119,237,0.12);
    color: var(--cf-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cf-support-card strong {
    color: #fff;
    font-weight: 600;
    display: block;
}

.cf-support-card span {
    color: var(--cf-muted);
    font-size: 0.94rem;
}

.cf-demo {
    padding: clamp(4rem, 8vw, 5.5rem) 0;
}

.cf-demo-shell {
    position: relative;
    background: var(--cf-surface);
    border-radius: var(--cf-radius-lg);
    border: 1px solid var(--cf-border);
    box-shadow: var(--cf-shadow-soft);
    padding: clamp(2.1rem, 3.5vw, 3rem);
    overflow: hidden;
}

.cf-demo-shell::after {
    content: '';
    position: absolute;
    inset: 25% -30% -20% 45%;
    background: radial-gradient(70% 60% at 50% 50%, rgba(96,165,250,0.18), transparent);
    pointer-events: none;
}

.cf-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(96,165,250,0.2);
    border: 1px solid rgba(96,165,250,0.28);
    color: var(--cf-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.78rem;
}

.cf-demo-lead {
    color: var(--cf-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

.cf-demo-player {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.18);
    box-shadow: var(--cf-shadow);
}

.cf-demo-player video {
    display: block;
    width: 100%;
    height: auto;
}

.cf-demo-caption {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: var(--cf-muted);
}

.cf-demo-caption .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cf-accent);
    box-shadow: 0 0 0 4px rgba(244,114,182,0.16);
}

.cf-demo-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.cf-section {
    padding: clamp(4rem, 7vw, 5.6rem) 0;
    position: relative;
    background: #fff;
}

.cf-section.alt {
    background: #f6f6f8;
    border-top: 1px solid var(--cf-border);
    border-bottom: 1px solid var(--cf-border);
}

.cf-section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

.cf-section-subtitle {
    color: #6e6e73;
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.cf-media {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.18);
    box-shadow: var(--cf-shadow-soft);
}

.cf-media img {
    width: 100%;
    height: auto;
    display: block;
}

.cf-card-hero {
    background: #fff;
    border-radius: var(--cf-radius-md);
    border: 1px solid var(--cf-border);
    padding: clamp(2rem, 3vw, 2.6rem);
    box-shadow: var(--cf-shadow-soft);
}

.cf-card-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2.4rem;
}

.cf-card {
    background: #fff;
    border-radius: var(--cf-radius-md);
    border: 1px solid var(--cf-border);
    padding: 1.8rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--cf-shadow-soft);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cf-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96,165,250,0.28);
    box-shadow: var(--cf-shadow);
}

.cf-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(96,165,250,0.18);
    color: var(--cf-primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.cf-text-muted {
    color: var(--cf-muted) !important;
}

.cf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cf-secondary);
    font-weight: 600;
}

.cf-card-link .fa-solid {
    transition: transform .2s ease;
}

.cf-card:hover .cf-card-link .fa-solid {
    transform: translateX(4px);
}

.cf-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.cf-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--cf-border);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    color: var(--cf-text);
    box-shadow: var(--cf-shadow-soft);
}

.cf-feature-item .cf-icon {
    background: rgba(0,119,237,0.12);
    color: var(--cf-primary);
}

.cf-license {
    background: #fff;
    border-radius: var(--cf-radius-md);
    border: 1px solid var(--cf-border);
    padding: 1.8rem;
    box-shadow: var(--cf-shadow-soft);
}

.cf-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    color: var(--cf-secondary);
    font-weight: 600;
}

.cf-callout {
    background: #fff;
    border-radius: var(--cf-radius-md);
    border: 1px solid var(--cf-border);
    padding: 1.8rem;
    box-shadow: var(--cf-shadow-soft);
}

.cf-callout strong {
    color: #000;
    font-size: 1.1rem;
}

.cf-stat-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cf-stat-card {
    background: rgba(17,24,39,0.85);
    border-radius: 20px;
    border: 1px solid var(--cf-border);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--cf-shadow-soft);
    text-align: center;
    color: var(--cf-muted);
}

.cf-stat-card strong {
    display: block;
    color: #fff;
    font-size: 1.9rem;
}

.cf-cta-strip {
    background: rgba(37,99,235,0.18);
    border-radius: var(--cf-radius-md);
    border: 1px solid rgba(96,165,250,0.24);
    padding: 1.8rem 2rem;
    box-shadow: var(--cf-shadow-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cf-cta-strip strong {
    color: #fff;
    font-size: 1.1rem;
}

.cf-cta-strip p {
    color: var(--cf-muted);
    margin: 0;
}

@media (max-width: 991px) {
    .cf-page-wrapper {
        padding-top: 96px;
    }

    .cf-hero {
        text-align: center;
    }

    .cf-hero-lead {
        margin: 0 auto;
    }

    .cf-hero-actions {
        justify-content: center;
    }

    .cf-support-grid {
        margin-top: 2.2rem;
    }

    .cf-cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .cf-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cf-btn-primary,
    .cf-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cf-section {
        padding: 3.6rem 0;
    }

    .cf-demo-shell {
        padding: 1.8rem;
    }
}

@media (max-width: 575px) {
    .cf-hero-title {
        font-size: clamp(2.1rem, 7vw, 2.6rem);
    }

    .cf-hero {
        padding: 4.8rem 0 3.8rem;
    }
}

/* === Module template === */
.module-page {
    margin: 0;
    background: #fbfbfd;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

.module-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 160px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.module-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: center;
}

.module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.04);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    letter-spacing: -0.03em;
    margin: 18px 0 12px;
}

.module-lead {
    font-size: 1.2rem;
    color: #4b4b4f;
    margin-bottom: 32px;
}

.module-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.module-btn-primary,
.module-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.module-btn-primary {
    background: linear-gradient(135deg, #0a84ff, #0077ed);
    color: #fff;
    box-shadow: 0 22px 36px rgba(0,119,237,0.3);
}

.module-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 48px rgba(0,119,237,0.38);
}

.module-btn-secondary {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.12);
    color: #1d1d1f;
}

.module-btn-secondary:hover {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.2);
}

.module-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6e6e73;
    font-size: 0.95rem;
}

.module-note .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0077ed;
    box-shadow: 0 0 0 4px rgba(0,119,237,0.2);
}

.module-hero__media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.08);
}

.module-support__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.module-support__card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.05);
}

.module-support__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0,119,237,0.12);
    color: #0077ed;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.module-demo {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.05);
}

.module-demo__media video,
.module-demo__media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
}

.module-demo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.module-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    align-items: center;
}

.module-about__media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 22px 48px rgba(0,0,0,0.08);
}

.module-features__intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.module-features__list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.module-features__list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0,0,0,0.04);
}

.module-features__list .icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0,119,237,0.12);
    color: #0077ed;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .module-wrapper {
        padding: 100px 18px 120px;
        gap: 60px;
    }
    .module-cta {
        flex-direction: column;
    }
    .module-btn-primary,
    .module-btn-secondary {
        width: 100%;
    }
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.directory-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.directory-card .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,119,237,0.12);
    color: #0077ed;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.directory-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6e6e73;
    margin-top: 8px;
}

.directory-card__meta strong {
    color: #000;
    font-size: 1.1rem;
}

.module-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0077ed;
    font-weight: 600;
    margin-top: auto;
}

.module-card-link i {
    transition: transform 0.2s ease;
}

.module-card-link:hover i {
    transform: translateX(4px);
}

.module-cta-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}
