﻿/* ==========================================================
   Class Public Page — Light, elegant, Apple × Luyện AI
   v3: clearer brand lockup, hero ticker, feature badges,
   rotating tips, Why cards, final CTA, sticky CTA, confetti
   ========================================================== */

:root {
    --clp-text: #1d1d1f;
    --clp-text-2: #424245;
    --clp-text-3: #6e6e73;
    --clp-text-4: #86868b;
    --clp-bg: #ffffff;
    --clp-bg-alt: #f5f5f7;
    --clp-bg-soft: #fbfbfd;
    --clp-bg-tint: #f4f9f6;
    --clp-border: #e8e8ed;
    --clp-border-strong: #d2d2d7;
    --clp-border-soft: #f0f0f3;

    --clp-blue: #0071e3;
    --clp-blue-hover: #0077ed;
    --clp-blue-active: #006edb;
    --clp-blue-link: #0066cc;
    --clp-blue-bright: #2997ff;
    --clp-blue-deep: #0a3a6a;

    --clp-green: #10b981;
    --clp-green-light: #ecfdf5;
    --clp-green-dark: #059669;
    --clp-teal: #06b6d4;

    --clp-pink: #f9a8d4;
    --clp-yellow: #fcd34d;
    --clp-lavender: #c4b5fd;
    --clp-amber: #f59e0b;
    --clp-purple: #8b5cf6;

    --clp-radius-pill: 980px;
    --clp-radius-lg: 20px;
    --clp-radius: 14px;
    --clp-radius-sm: 10px;

    --clp-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
    --clp-font-body: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;

    --clp-shadow-xs: 0 1px 2px rgba(10, 37, 74, 0.04);
    --clp-shadow-sm: 0 2px 8px rgba(10, 37, 74, 0.05), 0 1px 2px rgba(10, 37, 74, 0.04);
    --clp-shadow: 0 8px 28px rgba(10, 37, 74, 0.07), 0 2px 6px rgba(10, 37, 74, 0.04);
    --clp-shadow-md: 0 12px 36px rgba(10, 37, 74, 0.08), 0 4px 10px rgba(10, 37, 74, 0.05);
    --clp-shadow-lg: 0 20px 50px -12px rgba(0, 113, 227, 0.16), 0 8px 20px rgba(10, 37, 74, 0.06);
    --clp-shadow-blue: 0 10px 30px -8px rgba(0, 113, 227, 0.45), 0 4px 12px -4px rgba(0, 113, 227, 0.25);

    --clp-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --clp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--clp-font-body);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.011em;
    color: var(--clp-text);
    background: var(--clp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01", "ss03";
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection {
    background: rgba(0, 113, 227, 0.22);
    color: var(--clp-text);
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    border: 3px solid #ffffff;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); background-clip: padding-box; }

/* ==========================================================
   KEYFRAMES
   ========================================================== */
@keyframes clp-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes clp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes clp-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes clp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.82); }
}

@keyframes clp-pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes clp-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -20px) scale(1.05); }
    66%      { transform: translate(-15px, 25px) scale(0.95); }
}

@keyframes clp-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-35px, 20px) scale(1.08); }
}

@keyframes clp-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%      { transform: translate(25px, 30px) scale(0.92); }
    80%      { transform: translate(-20px, -15px) scale(1.06); }
}

@keyframes clp-sparkle {
    0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
    50%      { opacity: 0.6; transform: rotate(180deg) scale(1.15); }
}

@keyframes clp-arrow-drift {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
}

@keyframes clp-confetti-fly {
    0%   { transform: translate(-50%, -50%) scale(0.6) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.4) rotate(var(--rot)); opacity: 0; }
}

@keyframes clp-sticky-rise {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================
   TOP BAR — glass, clear brand lockup
   ========================================================== */
.clp-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--clp-border);
    animation: clp-fade-in 0.6s ease both;
}

.clp-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(16px, 3vw, 32px);
}

/* Brand lockup — logo badge + two-line wordmark */
.clp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.25s var(--clp-ease), transform 0.25s var(--clp-ease);
}

.clp-brand:hover { opacity: 0.85; transform: translateY(-1px); }

.clp-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(0, 113, 227, 0.10) 0%, rgba(16, 185, 129, 0.10) 100%),
        #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(0, 113, 227, 0.14),
        0 4px 14px -4px rgba(0, 113, 227, 0.2);
}

.clp-brand-logo-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.clp-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    letter-spacing: -0.012em;
    min-width: 0;
}

.clp-brand-text-main {
    font-family: var(--clp-font-display);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    padding: 2px 0;
    background: linear-gradient(135deg, #1d1d1f 0%, #0a3a6a 35%, #0071e3 65%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--clp-text);
}

.clp-brand-text-sub {
    font-family: var(--clp-font-body);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.015em;
    color: var(--clp-text-3);
    white-space: nowrap;
}

.clp-topnav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.clp-nav {
    position: relative;
    padding: 8px 4px;
    font-family: var(--clp-font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--clp-text-2);
    transition: color 0.2s var(--clp-ease);
}

.clp-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 1.5px;
    background: var(--clp-blue);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.28s var(--clp-ease);
}

.clp-nav:hover { color: var(--clp-blue); }
.clp-nav:hover::after { width: 70%; }

.clp-nav--cta {
    padding: 8px 16px;
    border-radius: var(--clp-radius-pill);
    background: var(--clp-text);
    color: #ffffff;
    font-weight: 500;
    transition: background 0.22s var(--clp-ease), transform 0.22s var(--clp-ease);
}

.clp-nav--cta::after { display: none; }

.clp-nav--cta:hover {
    background: var(--clp-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================
   HERO — airy canvas with floating colour orbs
   ========================================================== */
.clp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 52%, #f5f5f7 100%);
    padding: clamp(72px, 12vw, 140px) 22px clamp(56px, 8vw, 96px);
    text-align: center;
}

.clp-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.clp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}

.clp-orb--1 {
    top: 8%;
    left: 6%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.38) 0%, rgba(0, 113, 227, 0) 70%);
    animation: clp-float-1 18s ease-in-out infinite;
}

.clp-orb--2 {
    top: 12%;
    right: 4%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(16, 185, 129, 0) 70%);
    animation: clp-float-2 22s ease-in-out infinite;
}

.clp-orb--3 {
    bottom: -10%;
    left: 30%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.28) 0%, rgba(196, 181, 253, 0) 70%);
    animation: clp-float-3 26s ease-in-out infinite;
}

.clp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 85%);
}

.clp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 113, 227, 0.22) 25%,
        rgba(16, 185, 129, 0.32) 50%,
        rgba(0, 113, 227, 0.22) 75%,
        transparent 100%);
}

.clp-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

/* Eyebrow group — badge + ticker side by side */
.clp-eyebrow-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 26px;
    animation: clp-fade-up 0.7s var(--clp-ease) both;
    animation-delay: 0.08s;
}

.clp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--clp-font-display);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clp-blue-link);
    padding: 8px 16px;
    border-radius: var(--clp-radius-pill);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(0, 113, 227, 0.4), rgba(16, 185, 129, 0.4)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px -4px rgba(0, 113, 227, 0.18);
}

.clp-eyebrow svg { color: var(--clp-amber); }

.clp-ticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border-radius: var(--clp-radius-pill);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    font-family: var(--clp-font-body);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--clp-green-dark);
    letter-spacing: -0.008em;
}

.clp-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clp-green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: clp-pulse-dot 2s ease-out infinite;
}

.clp-ticker-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 20px;
    min-width: 160px;
    line-height: 1.4;
}

.clp-ticker-msg {
    position: absolute;
    left: 0;
    right: 0;
    text-align: left;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--clp-ease), transform 0.35s var(--clp-ease);
    padding: 2px 0;
}

.clp-ticker-msg--active {
    opacity: 1;
    transform: translateY(0);
}

/* Title — shimmering tri-colour gradient */
.clp-title {
    font-family: var(--clp-font-display);
    font-size: clamp(36px, 6.2vw, 68px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.026em;
    margin: 0 0 20px;
    padding: 0.08em 0.02em 0.12em;
    text-wrap: balance;
    background: linear-gradient(100deg,
        #1d1d1f 0%,
        #0a3a6a 28%,
        #0071e3 50%,
        #10b981 78%,
        #1d1d1f 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--clp-text);
    animation:
        clp-fade-up 0.8s var(--clp-ease) both,
        clp-shimmer 12s ease-in-out infinite;
    animation-delay: 0.18s, 0.8s;
}

.clp-subtitle {
    font-family: var(--clp-font-display);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 400;
    line-height: 1.52;
    letter-spacing: -0.013em;
    color: var(--clp-text-2);
    max-width: 720px;
    margin: 0 auto 32px;
    text-wrap: pretty;
    animation: clp-fade-up 0.8s var(--clp-ease) both;
    animation-delay: 0.26s;
}

/* Feature badges row */
.clp-features {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    animation: clp-fade-up 0.8s var(--clp-ease) both;
    animation-delay: 0.34s;
}

.clp-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: var(--clp-radius-pill);
    background: #ffffff;
    border: 1px solid var(--clp-border);
    font-family: var(--clp-font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--clp-text-2);
    letter-spacing: -0.008em;
    box-shadow: var(--clp-shadow-xs);
    transition: transform 0.25s var(--clp-ease), border-color 0.25s var(--clp-ease), box-shadow 0.25s var(--clp-ease);
}

.clp-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 6px 18px -6px rgba(0, 113, 227, 0.18);
}

.clp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
    color: var(--clp-blue);
    flex-shrink: 0;
}

.clp-feature:nth-child(2) .clp-feature-icon { color: var(--clp-green); }
.clp-feature:nth-child(3) .clp-feature-icon { color: var(--clp-purple); }
.clp-feature:nth-child(4) .clp-feature-icon { color: var(--clp-amber); }

.clp-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    animation: clp-fade-up 0.8s var(--clp-ease) both;
    animation-delay: 0.42s;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.clp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--clp-font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.012em;
    padding: 14px 26px;
    border-radius: var(--clp-radius-pill);
    border: 1px solid transparent;
    transition:
        background 0.25s var(--clp-ease),
        color 0.25s var(--clp-ease),
        border-color 0.25s var(--clp-ease),
        transform 0.25s var(--clp-ease),
        box-shadow 0.3s var(--clp-ease);
    min-width: 168px;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
}

.clp-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.38) 50%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.75s var(--clp-ease);
    pointer-events: none;
}

.clp-btn:hover::before { left: 140%; }

.clp-btn--lg {
    padding: 16px 32px;
    font-size: 17px;
    min-width: 200px;
}

.clp-btn--primary {
    background: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    color: #ffffff;
    border-color: rgba(0, 113, 227, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        var(--clp-shadow-blue);
}

.clp-btn--primary:hover {
    background: linear-gradient(135deg, #0077ed 0%, #3aa1ff 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 16px 40px -10px rgba(0, 113, 227, 0.6),
        0 6px 16px -4px rgba(0, 113, 227, 0.3);
    color: #ffffff;
}

.clp-btn--primary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #006edb 0%, #2997ff 100%);
}

.clp-btn--outline {
    background: #ffffff;
    color: var(--clp-blue-link);
    border-color: var(--clp-border-strong);
}

.clp-btn--outline:hover {
    color: var(--clp-blue);
    border-color: var(--clp-blue);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px -6px rgba(0, 113, 227, 0.18);
}

.clp-btn:focus-visible {
    outline: 2px solid var(--clp-blue);
    outline-offset: 3px;
}

.clp-btn-arrow {
    display: inline-block;
    font-size: 1.15em;
    line-height: 1;
    margin-left: -2px;
    animation: clp-arrow-drift 2s ease-in-out infinite;
}

.clp-btn--sparkle::after {
    content: "✦";
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    animation: clp-sparkle 2.4s ease-in-out infinite;
}

.clp-btn--outline.clp-btn--sparkle::after { color: rgba(0, 113, 227, 0.7); }

/* Confetti particles */
.clp-confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 9999;
    animation: clp-confetti-fly 0.85s cubic-bezier(0.12, 0.8, 0.3, 1) forwards;
}

/* ==========================================================
   FACEBOOK / COMMUNITY CHIP
   ========================================================== */
.clp-fb-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--clp-font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.011em;
    color: var(--clp-text-2);
    background: #ffffff;
    padding: 9px 18px 9px 10px;
    border-radius: var(--clp-radius-pill);
    border: 1px solid var(--clp-border);
    transition:
        color 0.25s var(--clp-ease),
        border-color 0.25s var(--clp-ease),
        transform 0.25s var(--clp-ease),
        box-shadow 0.3s var(--clp-ease);
    box-shadow: var(--clp-shadow-sm);
    animation: clp-fade-up 0.8s var(--clp-ease) both;
    animation-delay: 0.50s;
}

.clp-fb-chip:hover {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.4);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 26px -8px rgba(24, 119, 242, 0.35);
}

.clp-fb-chip-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2 0%, #3b92ff 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}

.clp-fb-icon {
    width: 16px;
    height: 16px;
    color: #ffffff;
    flex-shrink: 0;
}

/* ==========================================================
   ROTATING TIP STRIP
   ========================================================== */
.clp-tip-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 10px 16px;
    border-radius: var(--clp-radius-pill);
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--clp-border-soft);
    font-family: var(--clp-font-body);
    font-size: 13.5px;
    font-style: italic;
    color: var(--clp-text-3);
    letter-spacing: -0.008em;
    animation: clp-fade-up 0.8s var(--clp-ease) both;
    animation-delay: 0.58s;
}

.clp-tip-emoji {
    font-style: normal;
    font-size: 14px;
    animation: clp-sparkle 3s ease-in-out infinite;
}

.clp-tip-text {
    display: inline-block;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

/* ==========================================================
   WHY / BENEFITS SECTION
   ========================================================== */
.clp-why {
    position: relative;
    background: var(--clp-bg);
    padding: clamp(72px, 9vw, 112px) 22px clamp(56px, 8vw, 88px);
    overflow: hidden;
}

.clp-why::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 64px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(0, 113, 227, 0.3), transparent);
}

.clp-why-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.clp-why-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(44px, 6vw, 72px);
}

.clp-section-label {
    display: inline-block;
    font-family: var(--clp-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clp-blue-link);
    margin-bottom: 14px;
}

.clp-section-title {
    font-family: var(--clp-font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.024em;
    color: var(--clp-text);
    margin-bottom: 16px;
    padding: 0.04em 0 0.06em;
    text-wrap: balance;
}

.clp-section-sub {
    font-family: var(--clp-font-display);
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.012em;
    color: var(--clp-text-2);
    /* balance: chia đều 2 dòng, tránh dòng cuối mồ côi vài chữ */
    text-wrap: balance;
}

.clp-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.clp-why-card {
    position: relative;
    padding: 30px 26px 28px;
    background: #ffffff;
    border: 1px solid var(--clp-border);
    border-radius: var(--clp-radius-lg);
    box-shadow: var(--clp-shadow-xs);
    transition: transform 0.32s var(--clp-ease), box-shadow 0.32s var(--clp-ease), border-color 0.32s var(--clp-ease);
    overflow: hidden;
    isolation: isolate;
}

.clp-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24%;
    right: 24%;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    color: var(--clp-blue);
    transition: opacity 0.35s ease, left 0.35s ease, right 0.35s ease;
}

.clp-why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 113, 227, 0.25);
    box-shadow: var(--clp-shadow-md);
}

.clp-why-card:hover::before {
    opacity: 0.9;
    left: 10%;
    right: 10%;
}

.clp-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--clp-blue);
}

.clp-why-icon--blue {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.12) 0%, rgba(41, 151, 255, 0.12) 100%);
    color: var(--clp-blue);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.16);
}

.clp-why-icon--green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    color: var(--clp-green-dark);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.clp-why-icon--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(196, 181, 253, 0.18) 100%);
    color: var(--clp-purple);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.clp-why-icon--amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(252, 211, 77, 0.18) 100%);
    color: var(--clp-amber);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.clp-why-card h3 {
    font-family: var(--clp-font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.018em;
    color: var(--clp-text);
    margin-bottom: 8px;
}

.clp-why-card p {
    font-family: var(--clp-font-body);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.008em;
    color: var(--clp-text-2);
}

/* ==========================================================
   HỌC LIỆU KHAI MỞ — playlist video nền tảng của lớp
   ========================================================== */
.clp-playlist {
    position: relative;
    background: var(--clp-bg-soft);
    padding: clamp(64px, 9vw, 104px) 22px;
    border-top: 1px solid var(--clp-border-soft);
}

.clp-playlist-inner {
    max-width: 880px;
    margin: 0 auto;
}

.clp-playlist-card {
    background: #ffffff;
    border: 1px solid var(--clp-border);
    border-radius: var(--clp-radius-lg);
    box-shadow: var(--clp-shadow);
    padding: clamp(12px, 1.8vw, 16px);
}

/* Khung video 16:9 — nền tối trong lúc iframe nạp */
.clp-playlist-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--clp-radius);
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--clp-border);
}
.clp-playlist-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Danh sách toàn bộ video trong playlist */
.clp-playlist-panel {
    margin-top: 12px;
    border: 1px solid var(--clp-border);
    border-radius: var(--clp-radius);
    background: #ffffff;
    overflow: hidden;
}
.clp-playlist-panel[hidden] { display: none; }

.clp-playlist-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--clp-border-soft);
}
.clp-playlist-panel-title {
    font-family: var(--clp-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clp-text-2);
}
.clp-playlist-count {
    font-family: var(--clp-font-display);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--clp-text-4);
    font-variant-numeric: tabular-nums;
}

.clp-playlist-items {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 312px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--clp-border-strong) transparent;
}
.clp-playlist-items::-webkit-scrollbar { width: 6px; }
.clp-playlist-items::-webkit-scrollbar-thumb { background: var(--clp-border-strong); border-radius: 3px; }
.clp-playlist-items::-webkit-scrollbar-track { background: transparent; }

.clp-playlist-item-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--clp-radius-sm);
    background: transparent;
    font-family: var(--clp-font-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s var(--clp-ease);
}
.clp-playlist-item-btn:hover { background: var(--clp-bg-alt); }
.clp-playlist-item-btn:focus-visible {
    outline: 2px solid var(--clp-blue);
    outline-offset: -2px;
}

.clp-playlist-item-num {
    flex: none;
    width: 22px;
    font-family: var(--clp-font-display);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--clp-text-4);
    font-variant-numeric: tabular-nums;
}

.clp-playlist-item-thumb {
    flex: none;
    width: 68px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--clp-bg-alt);
}

.clp-playlist-item-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--clp-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clp-playlist-item-play {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 999px;
    color: var(--clp-text-4);
    opacity: 0;
    transition: opacity 0.18s var(--clp-ease);
}
.clp-playlist-item-btn:hover .clp-playlist-item-play { opacity: 1; }

/* Video đang phát */
.clp-playlist-item.is-playing .clp-playlist-item-btn { background: rgba(0, 113, 227, 0.07); }
.clp-playlist-item.is-playing .clp-playlist-item-num { color: var(--clp-blue); }
.clp-playlist-item.is-playing .clp-playlist-item-title { color: var(--clp-text); font-weight: 600; }
.clp-playlist-item.is-playing .clp-playlist-item-play { opacity: 1; color: var(--clp-blue); }

.clp-playlist-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 6px 2px;
}
.clp-playlist-note {
    flex: 1 1 240px;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--clp-text-3);
}
.clp-playlist-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 9px 16px;
    border-radius: var(--clp-radius-pill);
    background: #ffffff;
    border: 1px solid var(--clp-border-strong);
    font-family: var(--clp-font-display);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--clp-text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s var(--clp-ease), color 0.2s var(--clp-ease), transform 0.2s var(--clp-ease);
}
.clp-playlist-link:hover {
    border-color: var(--clp-blue);
    color: var(--clp-blue);
    transform: translateY(-1px);
}
.clp-playlist-link:focus-visible {
    outline: 2px solid var(--clp-blue);
    outline-offset: 2px;
}

/* Desktop: khi danh sách đã nạp → bố cục 2 cột kiểu YouTube (player trái, danh sách phải,
   cao bằng nhau). Trình duyệt không hỗ trợ :has() giữ bố cục xếp dọc — vẫn dùng tốt. */
@media (min-width: 1000px) {
    .clp-playlist-inner:has(.clp-playlist-panel:not([hidden])) { max-width: 1160px; }

    .clp-playlist-card:has(.clp-playlist-panel:not([hidden])) {
        display: grid;
        grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
        gap: 14px;
        align-items: stretch;
    }
    .clp-playlist-card:has(.clp-playlist-panel:not([hidden])) .clp-playlist-panel {
        margin-top: 0;
        /* height:0 + min-height:100% = khóa chiều cao cột phải theo chiều cao player */
        height: 0;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }
    .clp-playlist-card:has(.clp-playlist-panel:not([hidden])) .clp-playlist-items {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
    }
    .clp-playlist-card:has(.clp-playlist-panel:not([hidden])) .clp-playlist-foot {
        grid-column: 1 / -1;
        padding-top: 6px;
    }
}

@media (max-width: 640px) {
    .clp-playlist-items { max-height: 260px; }
    .clp-playlist-item-thumb { width: 56px; height: 32px; }
    .clp-playlist-link { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .clp-playlist-item-btn, .clp-playlist-item-play, .clp-playlist-link { transition: none; }
}

/* ==========================================================
   CONTENT WRAPPER — hosts ClassContentList
   ========================================================== */
.clp-content {
    position: relative;
    background: var(--clp-bg-alt);
    padding: clamp(60px, 8vw, 104px) 22px clamp(64px, 9vw, 104px);
    border-top: 1px solid var(--clp-border);
    border-bottom: 1px solid var(--clp-border);
}

.clp-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 92%);
    height: 420px;
    background:
        radial-gradient(ellipse 50% 60% at 20% 10%, rgba(0, 113, 227, 0.06) 0%, transparent 65%),
        radial-gradient(ellipse 50% 60% at 80% 10%, rgba(16, 185, 129, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.clp-content > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   FINAL CTA SECTION
   ========================================================== */
.clp-final {
    position: relative;
    background: #ffffff;
    padding: clamp(72px, 10vw, 128px) 22px;
    text-align: center;
    overflow: hidden;
}

.clp-final::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 113, 227, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.clp-final-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    z-index: 1;
}

.clp-final-title {
    font-family: var(--clp-font-display);
    font-size: clamp(28px, 4.4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.024em;
    color: var(--clp-text);
    margin-bottom: 14px;
    padding: 0.04em 0 0.06em;
    text-wrap: balance;
}

.clp-final-sub {
    font-family: var(--clp-font-display);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.5;
    letter-spacing: -0.012em;
    color: var(--clp-text-2);
    margin-bottom: 32px;
    text-wrap: pretty;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.clp-footer {
    position: relative;
    background: var(--clp-bg-alt);
    padding: 34px 22px 30px;
}

.clp-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 113, 227, 0.2) 30%,
        rgba(16, 185, 129, 0.28) 50%,
        rgba(0, 113, 227, 0.2) 70%,
        transparent 100%);
}

.clp-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--clp-font-body);
    font-size: 13px;
    letter-spacing: -0.011em;
    color: var(--clp-text-3);
}

.clp-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.clp-footer-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clp-blue) 0%, var(--clp-green) 100%);
}

.clp-footer-links {
    display: inline-flex;
    gap: 22px;
}

.clp-footer-links a {
    color: var(--clp-text-3);
    transition: color 0.25s var(--clp-ease);
}

.clp-footer-links a:hover { color: var(--clp-blue); }

/* ==========================================================
   STICKY FLOATING CTA
   ========================================================== */
.clp-sticky-cta {
    position: fixed;
    bottom: 22px;
    /* Neo góc phải để không che player video / nội dung giữa trang */
    right: 26px;
    transform: translate(0, 20px) scale(0.96);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px 12px 18px;
    border-radius: var(--clp-radius-pill);
    font-family: var(--clp-font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: #ffffff;
    background: linear-gradient(135deg, #0071e3 0%, #2997ff 55%, #10b981 120%);
    background-size: 180% auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 14px 36px -12px rgba(0, 113, 227, 0.55),
        0 6px 14px -4px rgba(0, 113, 227, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s var(--clp-ease), transform 0.38s var(--clp-ease-spring);
}

.clp-sticky-cta--visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    pointer-events: auto;
    animation: clp-shimmer 6s ease-in-out infinite;
}

.clp-sticky-cta:hover {
    transform: translate(0, -2px) scale(1.02);
    box-shadow:
        0 20px 50px -12px rgba(0, 113, 227, 0.7),
        0 8px 18px -4px rgba(0, 113, 227, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.clp-sticky-icon {
    animation: clp-sparkle 2.2s ease-in-out infinite;
}

.clp-sticky-arrow {
    font-size: 1.2em;
    line-height: 1;
    animation: clp-arrow-drift 2s ease-in-out infinite;
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.clp-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--clp-ease), transform 0.7s var(--clp-ease);
    transition-delay: var(--clp-reveal-delay, 0ms);
}

.clp-reveal--in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   NOT-FOUND STATE
   ========================================================== */
.clp-notfound {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 22px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 10%, rgba(0, 113, 227, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    overflow: hidden;
}

.clp-notfound-inner {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 56px 36px 48px;
    background: #ffffff;
    border: 1px solid var(--clp-border);
    border-radius: var(--clp-radius-lg);
    box-shadow: var(--clp-shadow-lg);
    animation: clp-fade-up 0.7s var(--clp-ease) both;
}

.clp-notfound-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--clp-blue);
    margin: 0 auto 18px;
}

.clp-notfound-inner h1 {
    font-family: var(--clp-font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.022em;
    margin: 0 0 12px;
    color: var(--clp-text);
}

.clp-notfound-inner p {
    margin: 0 0 28px;
    color: var(--clp-text-2);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.011em;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .clp-orb--1 { width: 280px; height: 280px; }
    .clp-orb--2 { width: 260px; height: 260px; }
    .clp-orb--3 { width: 320px; height: 320px; }
    .clp-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 734px) {
    .clp-topbar-inner { padding: 10px 16px; gap: 8px; }
    .clp-brand-text-sub { display: none; }
    .clp-brand-logo-wrap { width: 36px; height: 36px; }
    .clp-brand-logo-wrap img { width: 24px; height: 24px; }
    .clp-brand-text-main { font-size: 15px; }
    .clp-topnav .clp-nav:not(.clp-nav--cta) { display: none; }

    .clp-hero { padding: 70px 18px 56px; }
    .clp-hero::before { background-size: 22px 22px; }
    .clp-eyebrow-group { gap: 8px; }
    .clp-ticker-track { min-width: 120px; }
    .clp-actions {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
    }
    .clp-btn { width: 100%; }
    .clp-features { gap: 8px; }
    .clp-feature { padding: 7px 12px 7px 8px; font-size: 12.5px; }
    .clp-why-grid { grid-template-columns: 1fr; }
    .clp-footer-inner { justify-content: center; text-align: center; }
    .clp-orb { opacity: 0.45; filter: blur(50px); }
    .clp-sticky-cta { bottom: 14px; right: 12px; padding: 11px 18px 11px 14px; font-size: 14px; }
}

@media (max-width: 480px) {
    .clp-notfound-inner { padding: 44px 24px 36px; }
    .clp-title { font-size: clamp(30px, 9vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
    .clp-eyebrow-group,
    .clp-title,
    .clp-subtitle,
    .clp-features,
    .clp-actions,
    .clp-fb-chip,
    .clp-tip-strip,
    .clp-topbar,
    .clp-notfound-inner,
    .clp-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .clp-orb,
    .clp-ticker-dot,
    .clp-btn-arrow,
    .clp-btn--sparkle::after,
    .clp-sticky-icon,
    .clp-sticky-arrow,
    .clp-tip-emoji,
    .clp-sticky-cta--visible {
        animation: none !important;
    }
    .clp-btn::before { display: none; }
    .clp-confetti { display: none; }
}
