/* ==========================================================================
   TUYỂN SINH SỐ – Landing page
   Palette (tab "Tone visual", đã đối chiếu poster):
     #1267F0 chủ đạo 15% · #082F78 navy 10% · #69A2EC 5%
     #EAF3FF nền 20% · #FFFFFF 45-50% · #F1D91F accent 5%
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body  { font-family: 'Inter', system-ui, sans-serif; }

/* ============================== HERO ============================== */
/* Nền gradient xanh rất nhạt, dựng lại cảm giác của poster */
.hero-bg {
    background:
        radial-gradient(1200px 600px at 20% 10%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
        radial-gradient(900px 500px at 85% 25%, rgba(105,162,236,.28) 0%, rgba(105,162,236,0) 65%),
        linear-gradient(160deg, #F5FAFF 0%, #EAF3FF 45%, #D8E8FF 100%);
}

/* Vòng cung công nghệ mờ phía sau (motif poster) */
.hero-arc {
    position: absolute;
    top: -18%;
    right: -6%;
    width: 60vw;
    max-width: 900px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(18, 103, 240, .10);
    box-shadow:
        inset 0 0 0 40px rgba(18, 103, 240, .04),
        inset 0 0 0 90px rgba(105, 162, 236, .05),
        inset 0 0 0 150px rgba(18, 103, 240, .03);
    pointer-events: none;
}

/* Lưới phối cảnh ở đáy hero (motif poster) */
.hero-grid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background-image:
        linear-gradient(to right,  rgba(18,103,240,.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(18,103,240,.14) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(320px) rotateX(58deg);
    transform-origin: bottom center;
    mask-image:       linear-gradient(to top, #000 10%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    pointer-events: none;
}

/* Lưới mờ cho block CTA cuối (nền navy) */
.cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right,  rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image:       radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    pointer-events: none;
}

/* Ảnh model ở hero: cutout nền trong, đứng trên "bục" xanh */
/* Ảnh model đứng trên nền gradient chung của hero, không có khung ảnh phía sau.
   Chỉ còn thanh xanh dưới chân làm điểm tựa thị giác. */
.hero-model {
    position: relative;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    aspect-ratio: 1 / 1.05;
}

.hero-model-glow {
    position: absolute;
    inset: 12% 0 6%;
    border-radius: 2rem;
    background: radial-gradient(ellipse at 50% 55%, rgba(255,255,255,.7) 0%, rgba(234,243,255,0) 70%);
    filter: blur(12px);
}

/* Thanh xanh dưới cùng */
.hero-model-bar {
    position: absolute;
    left: 1%;
    right: 1%;
    bottom: 1%;
    height: 12%;
    border-radius: .875rem;
    background: linear-gradient(180deg, #1D6FF2 0%, #0B52C9 100%);
    box-shadow: 0 18px 34px -18px rgba(8,47,120,.55);
}

/* Model cutout. Ảnh đã cắt sát viền (616x653) nên % dưới đây ăn trực tiếp
   vào người, không tính viền trong suốt thừa. */
.hero-model-img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14%;
    width: 76%;
    height: auto;
    filter: drop-shadow(0 20px 26px rgba(8,47,120,.32));
}

/* Đếm ngược */
#countdown.is-on { display: flex; }
.cd-box {
    min-width: 68px;
    background: #fff;
    border: 1px solid #B9D4FD;
    border-radius: 1rem;
    padding: .6rem .5rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(8,47,120,.06);
}
.cd-box span  { display: block; font-size: 1.5rem; font-weight: 800; color: #1267F0; line-height: 1.1; }
.cd-box small { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-top: .15rem; }

/* ====================== COMPONENT DÙNG CHUNG ====================== */

/* Pill badge mở đầu mỗi section */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #B9D4FD;
    color: #0A429E;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(8,47,120,.06);
}

/* Nét gạch chân vẽ tay dưới cụm chữ nhấn */
.squiggle {
    position: absolute;
    left: 0;
    bottom: -.375rem;
    width: 100%;
    height: .5rem;
}

/* Chấm bi trang trí góc section */
.dot-deco {
    background-image: radial-gradient(circle, #69A2EC 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: .5;
}

/* Bullet dấu tick tròn */
.check-dot {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .15rem;
    border-radius: 9999px;
    background: #1267F0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon của 4 USP */
.usp-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #EAF3FF;
    color: #1267F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo thật: bản đen nền trong */
.logo-img {
    width: auto;
    object-fit: contain;
}

/* Nền trắng cho logo khi đặt trên nền navy (footer) */
.logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: .5rem;
    padding: .5rem .75rem;
}

/* Ô logo placeholder – xoá khi có file logo thật */
.logo-ph {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .02em;
    color: #082F78;
    background: rgba(255,255,255,.75);
    border: 1px dashed #B9D4FD;
    border-radius: .625rem;
    padding: .4rem .9rem;
}
.logo-ph-lg   { font-size: 1.15rem; padding: .7rem 1.4rem; }
.logo-ph-dark { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }

/* Khung chờ ảnh – xoá khi có ảnh thật */
.img-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    border: 2px dashed #B9D4FD;
    background: linear-gradient(160deg, #FFFFFF 0%, #EAF3FF 100%);
    color: #69A2EC;
    text-align: center;
    padding: 1.5rem;
}
.img-slot i     { font-size: 2.5rem; }
.img-slot span  { font-weight: 700; color: #0A429E; }
.img-slot small { font-size: .8125rem; color: #94a3b8; max-width: 22rem; }

.logo-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 64px;
    border-radius: .75rem;
    border: 1px dashed #B9D4FD;
    background: #fff;
    color: #94a3b8;
    font-size: .75rem;
    font-weight: 600;
}

/* ============================ PAIN CARD ============================ */
.pain-card {
    position: relative;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2rem 1.75rem 1.75rem;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.pain-card:hover {
    border-color: #69A2EC;
    box-shadow: 0 18px 40px -18px rgba(8,47,120,.28);
    transform: translateY(-4px);
}
.pain-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    color: #B9D4FD;
    margin-bottom: .75rem;
    transition: color .3s;
}
.pain-card:hover .pain-num { color: #1267F0; }
.pain-title { font-size: 1.0625rem; font-weight: 700; color: #082F78; margin-bottom: .5rem; }
.pain-desc  { font-size: .9375rem; color: #64748b; line-height: 1.65; }

/* ========================== BENEFIT CARD ========================== */
.benefit-card {
    position: relative;
    background: #fff;
    border: 1px solid #D8E8FF;
    border-radius: 1.5rem;
    padding: 1.75rem;
    transition: box-shadow .3s, transform .3s;
}
.benefit-card:hover {
    box-shadow: 0 20px 44px -20px rgba(8,47,120,.3);
    transform: translateY(-4px);
}
.benefit-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1267F0, #69A2EC);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 18px -8px rgba(18,103,240,.6);
}
.benefit-num {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-size: .8125rem;
    font-weight: 800;
    color: #F1D91F;
    letter-spacing: .05em;
}
.benefit-title { font-size: 1rem; font-weight: 800; color: #082F78; margin-bottom: .625rem; line-height: 1.35; }
.benefit-desc  { font-size: .9375rem; color: #64748b; line-height: 1.65; }

/* =========================== SPEAKER CARD =========================== */
.speaker-card {
    flex-shrink: 0;
    width: 82%;
    scroll-snap-align: center;
    background: #fff;
    border: 1px solid #D8E8FF;
    border-radius: 1.5rem;
    padding: 1.75rem;
    text-align: center;
    transition: box-shadow .3s, transform .3s;
}
@media (min-width: 640px) { .speaker-card { width: 320px; } }
@media (min-width: 768px) { .speaker-card { width: auto; } }
.speaker-card:hover {
    box-shadow: 0 24px 50px -24px rgba(8,47,120,.35);
    transform: translateY(-4px);
}

/* Khung hình thang xanh nghiêng, lấy motif từ poster */
.speaker-frame {
    position: relative;
    width: 9.5rem;
    height: 11rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(160deg, #1267F0 0%, #082F78 100%);
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.speaker-frame img { width: 100%; height: 100%; object-fit: cover; }
.speaker-photo-ph  { color: rgba(255,255,255,.4); font-size: 3.5rem; }
.speaker-badge {
    position: absolute;
    bottom: .75rem;
    right: .5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #F1D91F;
    color: #082F78;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(8,47,120,.25);
}
/* Ô diễn giả chưa có thông tin: nhạt hơn để không cạnh tranh với ô đã có */
.speaker-card-empty              { border-style: dashed; background: #FCFDFF; }
.speaker-card-empty .speaker-name { color: #94a3b8; }
.speaker-card-empty .speaker-role { color: #B9D4FD; }

.speaker-name  { font-size: 1.0625rem; font-weight: 800; color: #082F78; }
.speaker-role  { font-size: .875rem; font-weight: 600; color: #1267F0; margin-top: .25rem; }
.speaker-rule  { width: 2.5rem; height: 1px; background: #D8E8FF; margin: 1rem auto; }
.speaker-bio   { font-size: .875rem; color: #64748b; line-height: 1.6; }
.speaker-topic { font-size: .875rem; color: #94a3b8; font-style: italic; margin-top: .75rem; line-height: 1.6; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #fff;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(8,47,120,.14);
    transition: color .2s;
}
.carousel-btn:hover { color: #1267F0; }
.carousel-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #B9D4FD; }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ============================= TIMELINE ============================= */
.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border: 1px solid #D8E8FF;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
@media (min-width: 768px) { .timeline-item { flex-direction: row; } }
.timeline-item:hover {
    border-color: #69A2EC;
    box-shadow: 0 16px 36px -18px rgba(8,47,120,.3);
    transform: translateY(-3px);
}
.timeline-time { position: relative; flex-shrink: 0; }
@media (min-width: 768px) { .timeline-time { width: 12rem; padding-left: 1.25rem; } }

.timeline-dot {
    display: none;
    position: absolute;
    left: 0;
    top: .5rem;
    width: .625rem;
    height: .625rem;
    border-radius: 9999px;
    background: #1267F0;
    box-shadow: 0 0 0 4px #fff;
    animation: timeline-pulse 2s ease-in-out infinite;
}
.timeline-line {
    display: none;
    position: absolute;
    left: .25rem;
    top: 1.25rem;
    bottom: -1.5rem;
    width: 1px;
    background: #B9D4FD;
}
@media (min-width: 768px) { .timeline-dot, .timeline-line { display: block; } }

@keyframes timeline-pulse {
    0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 4px rgba(18,103,240,.35); }
    50%      { box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgba(18,103,240,0); }
}

.timeline-title { font-size: 1.0625rem; font-weight: 700; color: #082F78; margin-bottom: .5rem; }
.timeline-desc  { color: #64748b; line-height: 1.65; }
.timeline-by    { font-size: .875rem; font-weight: 500; color: #94a3b8; margin-top: .5rem; }

/* ============================== GIFT CARD ============================== */
.gift-card {
    background: linear-gradient(160deg, #FFFFFF 0%, #F5FAFF 100%);
    border: 1px solid #D8E8FF;
    border-radius: 1.5rem;
    padding: 1.75rem;
    text-align: center;
    transition: box-shadow .3s, transform .3s;
}
.gift-card:hover {
    box-shadow: 0 20px 44px -20px rgba(8,47,120,.3);
    transform: translateY(-4px);
}
.gift-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    background: #F1D91F;
    color: #082F78;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(241,217,31,.9);
}
.gift-title { font-size: .9375rem; font-weight: 800; color: #082F78; margin-bottom: .5rem; line-height: 1.4; }
.gift-desc  { font-size: .875rem; color: #64748b; line-height: 1.6; }

/* ================================ FORM ================================ */
.f-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .5rem;
}
.f-ico {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #EAF3FF;
    color: #1267F0;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.f-input {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: .875rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #1e293b;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.f-input::placeholder { color: #94a3b8; }
.f-input:focus        { border-color: #1267F0; box-shadow: 0 0 0 3px #D8E8FF; }
.f-input.is-invalid   { border-color: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }

/* Label dài ngắn khác nhau vẫn giữ 2 ô input trong cùng hàng thẳng nhau */
#reg-form .grid > div          { display: flex; flex-direction: column; }
#reg-form .grid > div .f-label { flex: 1 0 auto; align-items: flex-start; }

/* Honeypot: giấu khỏi mắt người nhưng bot vẫn điền */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ================================= FAQ ================================= */
.faq-item {
    background: #fff;
    border: 1px solid #D8E8FF;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: #69A2EC; box-shadow: 0 12px 30px -16px rgba(8,47,120,.28); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: #082F78;
    cursor: pointer;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #1267F0; }
.faq-chevron { flex-shrink: 0; color: #1267F0; font-size: .8rem; transition: transform .25s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 1.5rem 1.25rem; color: #64748b; line-height: 1.7; }

/* ============================ SCROLL REVEAL ============================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }
.reveal:nth-child(6) { transition-delay: 400ms; }
.reveal:nth-child(7) { transition-delay: 480ms; }
.reveal:nth-child(8) { transition-delay: 560ms; }

/* Sticky CTA mobile */
#sticky-cta.is-on { transform: translateY(0); }

/* Chừa chỗ cho sticky CTA để không che footer */
@media (max-width: 1023px) {
    body { padding-bottom: 4.5rem; }
}

/* ========================= GIẢM CHUYỂN ĐỘNG ========================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .timeline-dot { animation: none; }
    .pain-card, .benefit-card, .speaker-card, .timeline-item, .gift-card { transition: none; }
    .pain-card:hover, .benefit-card:hover, .speaker-card:hover,
    .timeline-item:hover, .gift-card:hover { transform: none; }
    #sticky-cta { transition: none; }
}
