/* ================================
   OFISENSE — VIBE CODING COURSE PAGE
   Purple/violet themed, modern, immersive
   ================================ */

:root {
    --vibe-purple: #8b5cf6;
    --vibe-violet: #a855f7;
    --vibe-deep: #6d28d9;
    --vibe-pink: #E94560;
    --vibe-glow: rgba(139, 92, 246, 0.5);
    --vibe-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #E94560 100%);
}

.vibe-page {
    background: #0a0a12;
    color: #fff;
    font-family: 'Heebo', 'Assistant', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.vibe-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Animated Background ---- */
.vibe-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.vibe-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

.vibe-page > section,
.vibe-page > header,
.vibe-page > footer,
.vibe-nav {
    position: relative;
    z-index: 2;
}

/* ---- Navigation ---- */
.vibe-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    transition: background 0.3s ease;
}

.vibe-nav.scrolled {
    background: rgba(10, 10, 18, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.vibe-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.vibe-nav-logo-img {
    height: 34px;
}

.vibe-nav-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--vibe-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vibe-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.vibe-nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.vibe-nav-link:hover {
    color: #fff;
}

.vibe-nav-cta {
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--vibe-gradient);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.vibe-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

/* ---- Hero ---- */
.vibe-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
}

.vibe-hero-inner {
    max-width: 820px;
}

.vibe-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 28px;
    animation: vibeFadeUp 0.8s ease both;
}

.vibe-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vibe-violet);
    box-shadow: 0 0 12px var(--vibe-violet);
    animation: vibePulseDot 1.5s ease-in-out infinite;
}

@keyframes vibePulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.vibe-hero-title {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.vibe-hero-line {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    background: var(--vibe-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: vibeFadeUp 0.8s ease 0.1s both;
}

.vibe-hero-sub {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    animation: vibeFadeUp 0.8s ease 0.2s both;
}

.vibe-hero-text {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 640px;
    margin: 0 auto 38px;
    animation: vibeFadeUp 0.8s ease 0.3s both;
}

.vibe-hero-text strong {
    color: #c4b5fd;
}

.vibe-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: vibeFadeUp 0.8s ease 0.4s both;
}

.vibe-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 50px;
    background: var(--vibe-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vibe-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(139, 92, 246, 0.65);
}

.vibe-btn-primary .arrow {
    transition: transform 0.3s ease;
}

.vibe-btn-primary:hover .arrow {
    transform: translateX(-6px);
}

.vibe-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 16px 34px;
    border-radius: 50px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.vibe-btn-ghost:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--vibe-violet);
}

.vibe-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 22px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: vibeFadeUp 0.8s ease 0.5s both;
}

.vibe-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vibe-stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: var(--vibe-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vibe-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.vibe-stat-sep {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
}

.vibe-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.vibe-scroll-arrow {
    width: 18px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.vibe-scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    border-radius: 2px;
    background: var(--vibe-violet);
    animation: vibeScrollDot 1.5s ease-in-out infinite;
}

@keyframes vibeScrollDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

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

/* ---- Section shared ---- */
.vibe-about,
.vibe-syllabus,
.vibe-included,
.vibe-formats,
.vibe-register {
    padding: 100px 0;
}

.vibe-section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.vibe-section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--vibe-violet);
    margin-bottom: 14px;
}

.vibe-section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

.vibe-section-subtitle {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
}

/* ---- About ---- */
.vibe-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.vibe-about-text .vibe-section-tag {
    display: block;
}

.vibe-about-text .vibe-section-title {
    text-align: right;
    margin-bottom: 22px;
}

.vibe-about-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.vibe-about-text strong {
    color: #c4b5fd;
}

.vibe-about-card {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(168, 85, 247, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 36px;
}

.vibe-about-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 22px;
    color: #fff;
}

.vibe-outcome-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vibe-outcome-list li {
    position: relative;
    padding-right: 32px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.vibe-outcome-list li::before {
    content: '◆';
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--vibe-violet);
    font-size: 0.85rem;
}

.vibe-format-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 56px;
}

.vibe-format-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.vibe-format-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--vibe-gradient);
    font-weight: 900;
    font-size: 0.9rem;
}

/* ---- Syllabus ---- */
.vibe-lessons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
}

.vibe-lesson {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vibe-lesson.open {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.18);
}

.vibe-lesson-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    color: #fff;
    font-family: inherit;
}

.vibe-lesson-num {
    flex-shrink: 0;
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--vibe-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 44px;
}

.vibe-lesson-titles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vibe-lesson-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.vibe-lesson-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.vibe-lesson-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    color: var(--vibe-violet);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform 0.3s ease, background 0.3s ease;
}

.vibe-lesson.open .vibe-lesson-toggle {
    transform: rotate(45deg);
    background: var(--vibe-gradient);
    color: #fff;
}

.vibe-lesson-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
    padding: 0 28px;
}

.vibe-lesson.open .vibe-lesson-body {
    max-height: 800px;
    padding: 0 28px 28px;
}

.vibe-lesson-body p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-right: 64px;
}

.vibe-lesson-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 64px;
}

.vibe-lesson-body li {
    position: relative;
    padding-right: 24px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.vibe-lesson-body li::before {
    content: '◆';
    position: absolute;
    right: 0;
    top: 3px;
    color: var(--vibe-violet);
    font-size: 0.75rem;
}

.vibe-lesson-gift {
    margin-top: 20px;
    margin-right: 64px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(168, 85, 247, 0.1));
    border: 1px dashed rgba(168, 85, 247, 0.5);
    color: #fff;
    font-weight: 600;
}

/* ---- Included ---- */
.vibe-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.vibe-included-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vibe-included-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
}

.vibe-included-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.vibe-included-card p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Formats ---- */
.vibe-formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
}

.vibe-format-card {
    padding: 36px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vibe-format-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 18px 44px rgba(139, 92, 246, 0.2);
}

.vibe-format-card.featured {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(168, 85, 247, 0.06));
    border-color: rgba(168, 85, 247, 0.5);
}

.vibe-format-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--vibe-gradient);
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.4);
}

.vibe-format-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.vibe-format-card p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ---- Register ---- */
.vibe-register-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(10, 10, 18, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    padding: 50px;
}

.vibe-register-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.vibe-register-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 28px;
}

.vibe-register-direct {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vibe-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.vibe-direct-link:hover {
    color: #fff;
}

.vibe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vibe-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.vibe-field label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.vibe-field input,
.vibe-field select,
.vibe-field textarea {
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.vibe-field input::placeholder,
.vibe-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.vibe-field input:focus,
.vibe-field select:focus,
.vibe-field textarea:focus {
    outline: none;
    border-color: var(--vibe-violet);
    background: rgba(139, 92, 246, 0.08);
}

.vibe-field select option {
    background: #16121f;
    color: #fff;
}

.vibe-form-submit {
    position: relative;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--vibe-gradient);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 8px;
}

.vibe-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.6);
}

.vibe-form-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.vibe-submit-loading,
.vibe-submit-success {
    display: none;
}

.vibe-form-submit.loading .vibe-submit-text { display: none; }
.vibe-form-submit.loading .vibe-submit-loading { display: inline; }
.vibe-form-submit.success { background: linear-gradient(135deg, #10b981, #059669); }
.vibe-form-submit.success .vibe-submit-text { display: none; }
.vibe-form-submit.success .vibe-submit-success { display: inline; }

/* ---- Footer ---- */
.vibe-footer {
    text-align: center;
    padding: 50px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
}

.vibe-footer-back {
    display: inline-block;
    margin-top: 12px;
    color: var(--vibe-violet);
    text-decoration: none;
    font-weight: 600;
}

.vibe-footer-back:hover {
    color: #fff;
}

/* ---- Scroll Reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .vibe-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .vibe-formats-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
    .vibe-register-card {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px 28px;
    }
}

@media (max-width: 640px) {
    .vibe-nav {
        padding: 14px 20px;
    }
    .vibe-nav-links {
        gap: 14px;
    }
    .vibe-nav-link:not(.vibe-nav-cta) {
        display: none;
    }
    .vibe-hero-stats {
        flex-wrap: wrap;
        gap: 18px;
        padding: 18px 24px;
    }
    .vibe-lesson-head {
        padding: 18px 18px;
        gap: 14px;
    }
    .vibe-lesson-body p,
    .vibe-lesson-body ul,
    .vibe-lesson-gift {
        padding-right: 0;
        margin-right: 0;
    }
    .vibe-about,
    .vibe-syllabus,
    .vibe-included,
    .vibe-formats,
    .vibe-register {
        padding: 70px 0;
    }
}
