@charset "utf-8";

@font-face {
    font-family: 'Freesentation';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

/* =========================================
   1. Base & Reset
========================================= */
html,
body {
    min-width: 20rem;
}

.inline-block {
    display: inline-block;
}

.classgen-main {
    --primary: #6C63FF;
    --secondary: #52BCCD;
    --primary-light: #eff6ff;
    --text-main: #0f172a;
    --text-sub: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --radius-lg: 1.875rem;
    --radius-md: 1rem;
    --shadow-sm: 0 0.25rem 0.375rem -1px rgba(0, 0, 0, 0.05), 0 0.125rem 0.25rem -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 0.625rem 1.5625rem -0.3125rem rgba(37, 99, 235, 0.08), 0 0.5rem 0.625rem -0.375rem rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 0.75rem 1.75rem -0.3125rem rgba(15, 23, 42, 0.12);

    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    word-break: keep-all;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.classgen-main *,
.classgen-main *::before,
.classgen-main *::after {
    box-sizing: border-box;
}

.classgen-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.classgen-main a {
    text-decoration: none;
}

.classgen-main .container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 3.75rem;
    min-height: 1px;
}

.classgen-main>section {
    padding: 7.5rem 0;
}

.font-freesentation {
    font-family: 'Freesentation', sans-serif;
}

/* =========================================
   2. Hero Section
========================================= */
.classgen-main .hero-section {
    margin: 0;
    background: linear-gradient(330.29deg, #E5D5FF -22.16%, #E5F1FF 97.62%);
    border: 0;
    border-radius: 0;
    position: relative;
    overflow: visible;
}

.classgen-main .hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.75rem;
}

.classgen-main .hero-text-content {
    position: relative;
    z-index: 10;
    flex: 1;
    max-width: 32.5rem;
}

.classgen-main .hero-brand-area {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.classgen-main .hero-brand-area svg {
    color: #6366f1;
}

.classgen-main .brand-name {
    font-family: 'Freesentation', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #6366f1;
    line-height: 1;
    letter-spacing: -0.0312rem;
    margin-left: 0.625rem;
}


/* 픽셀 고정 요소 */

.classgen-main .brand-logo {
    display: inline-flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
}

.classgen-main .brand-logo .brand-ai {
    color: var(--secondary);
}

.classgen-main .brand-logo .font-freesentation {
    color: var(--primary);
}

.classgen-main .brand-logo .badge-beta {
    display: inline-block;
    position: absolute;
    bottom: calc(100% - 0.8rem);
    top: auto;
    right: 0%;
    background: #2C80FF;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    padding: 4px 7px 4px;
    border-radius: 4px;
    letter-spacing: -0.5px;
}

.classgen-main .hero-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.0938rem;
    color: #000;
    margin-bottom: 0.75rem;
}

.classgen-main .hero-title span {
    font-size: 3.75rem;
    font-family: 'Freesentation', sans-serif;
    color: var(--primary);
}

.classgen-main .hero-desc {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.classgen-main .hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.classgen-main .hero-cta-desc {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
    max-width: 320px;
}

.classgen-main .hero-cta-desc span {
    color: var(--primary);
    font-weight: 700;
}

.classgen-main .hero-cta-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    border-radius: 2.5rem;
    box-shadow: 0 0.625rem 1.25rem rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.classgen-main .hero-cta-btn:hover {
    background: #4f46e5;
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.875rem 1.75rem rgba(99, 102, 241, 0.4);
}

/* 2-1. News Ticker (Inside Hero Text Content) */
.classgen-main .news-ticker-positioner {
    position: relative;
    width: 100%;
    max-width: 30rem;
    height: 3.2rem;
    /* header computed height */
    margin-top: 2.5rem;
    z-index: 50;
}

.classgen-main .news-ticker-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f6f6f6;
    border-radius: 1.5rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 30rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.classgen-main .news-ticker-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.6rem;
}

.classgen-main .news-ticker-container.open {
    border-color: #6366f1;
}

.classgen-main .news-badge {
    background: var(--secondary);
    color: #ffffff;
    border: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 1.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.classgen-main .news-ticker-wrapper {
    height: 2rem;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.classgen-main .news-ticker-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.classgen-main .news-ticker-item {
    height: 2rem;
    line-height: 2rem;
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
}

.classgen-main .news-ticker-item a {
    display: block;
    width: 100%;
    min-height: 100%;
    color: inherit;
}

.classgen-main .news-arrow-icon {
    display: flex;
    align-items: center;
    color: #cccccc;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.classgen-main .news-ticker-container.open .news-arrow-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.classgen-main .news-dropdown-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    background: #ffffff;
    border-top: 1px solid transparent;
}

.classgen-main .news-ticker-container.open .news-dropdown-menu {
    max-height: 25rem;
    opacity: 1;
    border-top-color: #f1f5f9;
    padding: 0.5rem 0;
}

.classgen-main .news-dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.classgen-main .news-dropdown-item:hover {
    background-color: var(--primary-light);
}

.classgen-main .news-dropdown-item a {
    color: #334155;
    font-size: 0.8438rem;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
}

.classgen-main .news-dropdown-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 2-2. Hero Slider (Inside Hero Image Wrapper) */
.classgen-main .hero-img-wrapper {
    flex: 1;
    max-width: 33.75rem;
    width: 100%;
}

.classgen-main .hero-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 540 / 538;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: #ffffff;
}

.classgen-main .hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.classgen-main .hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.classgen-main .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #ffffff;
}

.classgen-main .slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.classgen-main .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.classgen-main .dot.active {
    width: 20px;
    border-radius: 10px;
    background: #ffffff;
}

/* =========================================
   3. How-to Section
========================================= */
.classgen-main .how-to-section {
    padding: 6.25rem 0;
    background: linear-gradient(135deg, #6366f1 0%, var(--secondary) 100%);
    color: #ffffff;
}

.classgen-main .section-header {
    position: relative;
    text-align: center;
    margin-bottom: 3.75rem;
}

.classgen-main .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.classgen-main .section-title {
    font-size: 2.5rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.classgen-main .how-to-section .section-title {
    color: #ffffff;
}

.classgen-main .section-desc {
    font-size: 1.375rem;
    line-height: 1.4;
    color: var(--text-sub);
    margin-top: 0.75rem;
}

.classgen-main .how-to-section .section-desc {
    color: rgba(255, 255, 255, 0.85);
}

.classgen-main .steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 0 auto;
}

.classgen-main .step-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    gap: 5rem;
    transition: all 0.2s ease;
}

.classgen-main .step-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.classgen-main .step-card:nth-child(even) {
    flex-direction: row-reverse;
}

.classgen-main .step-content {
    width: 100%;
    flex: 1;
}

.classgen-main .step-number {
    font-size: 0.875rem;
    font-weight: 900;
    line-height: 1.25rem;
    color: var(--primary);
    background: #ffffff;
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 1.875rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.0312rem;
}

.classgen-main .step-title {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.classgen-main .how-to-section .step-title {
    color: #ffffff;
}

.classgen-main .step-desc {
    font-size: 1.25rem;
    line-height: 1.875rem;
    color: #f6f6f6;
}

.classgen-main .how-to-section .step-desc {
    color: rgba(255, 255, 255, 0.85);
}

.classgen-main .step-img-box {
    width: 33.75rem;
    aspect-ratio: 540 / 300;
    background: transparent;
    border: none;
    border-radius: inherit;
    overflow: hidden;
    flex-shrink: 0;
}

.classgen-main .step-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #fff;
}

/* =========================================
   4. Demo Section
========================================= */
.classgen-main .demo-section {
    padding: 6.25rem 0 7.5rem;
    background: #f8fafc;
    text-align: center;
}

.classgen-main .demo-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.classgen-main .demo-section .brand-name {
    font-size: 3rem;
}

.classgen-main .video-container {
    max-width: 53.75rem;
    width: 100%;
    aspect-ratio: 852 / 478;
    margin: 0 auto 2.5rem;
    border: none;
    display: flex;
    /* background: #0f172a; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 1.25rem 3.75rem -0.625rem rgba(99, 102, 241, 0.15), 0 0 2.5rem rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.classgen-main .video-container .video-inner {
    position: absolute;
    left: -2px;
    top: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}

.classgen-main .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    border-radius: 0 !important;
    top: 0;
    left: 0;
}

.classgen-main .play-button {
    width: 4.375rem;
    height: 4.375rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0.5rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
}

/* 재생 중일 때는 버튼 숨기기 (스케일 작아지며 페이드아웃) */
.classgen-main .video-container.is-playing .play-button {
    opacity: 0;
    transform: scale(0.9);
}

/* 재생 중이더라도 화면을 조작(.show-controls)할 때만 정지 버튼 다시 표시 */
.classgen-main .video-container.is-playing.show-controls .play-button {
    opacity: 1;
    transform: scale(1);
}

.classgen-main .play-button:hover {
    transform: scale(1.1);
    background: #6366f1;
}

.classgen-main .play-icon {
    width: 0;
    height: 0;
    border-top: 0.625rem solid transparent;
    border-bottom: 0.625rem solid transparent;
    border-left: 1rem solid #ffffff;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.classgen-main .pause-icon {
    width: 1rem;
    height: 1.25rem;
    border-left: 0.3rem solid #ffffff;
    border-right: 0.3rem solid #ffffff;
    margin-left: 0;
    transition: all 0.2s ease;
}

.classgen-main .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #6366f1;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    border-radius: 2.5rem;
    box-shadow: 0 0.625rem 1.25rem rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.classgen-main .cta-btn:hover {
    background: #4f46e5;
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.875rem 1.75rem rgba(99, 102, 241, 0.4);
}

.classgen-main .cta-subtext {
    margin-top: 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #999;
}

/* =========================================
   5. Modals
========================================= */
.classgen-main .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(0.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.classgen-main .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.classgen-main .modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 35rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 1.5625rem 3.125rem -0.75rem rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(1.25rem) scale(0.95);
    transition: all 0.3s ease;
}

.classgen-main .modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.classgen-main .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #f1fafa;
}

.classgen-main .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
}

.classgen-main .modal-close-btn {
    background: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
}

.classgen-main .modal-body {
    padding: 1.5rem;
    max-height: calc(100svh - 12.5rem);
    overflow-y: auto;
    text-align: left;
}

.classgen-main .modal-placeholder-box {
    background: var(--bg-light);
    border: 0.125rem dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.classgen-main .modal-footer {
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: flex-end;
}

.classgen-main .modal-btn-confirm {
    background: #666666;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.625rem;
    border-radius: 1.875rem;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25rem;
    cursor: pointer;
}

.classgen-main .update-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.classgen-main .update-item {
    padding: 1.5rem;
    background: #f8f9fb;
    border-radius: 1rem;
}

.classgen-main .update-item-header {
    margin-bottom: 0.5rem;
}

.classgen-main .update-item-util-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.classgen-main .update-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.classgen-main .update-tag {
    background: var(--secondary);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.125rem 0.75rem;
    border-radius: 1.25rem;
}

.classgen-main .update-date {
    margin-left: auto;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #999999;
}

.classgen-main .update-item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: #000;
}

.classgen-main .update-item-desc {
    font-size: 0.875rem;
    line-height: 1.375rem;
    color: #666666;
}

/* =========================================
   6. Responsive
========================================= */

@media (max-width: 1023px) {
    html {
        font-size: 12px;
    }

    .wrapper-m {
        header {
            display: none;
        }
    }

    .classgen-main .beta-bubble {
        transform: translateX(-14.5rem);
    }

    .classgen-main .container {
        padding: 0 1.5rem;
    }

    .classgen-main .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .classgen-main .hero-cta {
        flex-direction: column;
    }

    .classgen-main .hero-cta-desc {
        font-size: 14px;
    }

    .classgen-main .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .classgen-main .news-ticker-positioner {
        margin: 2rem auto 0;
        height: 3.6rem;
    }

    .classgen-main .news-ticker-container {
        border-radius: 2rem;
    }

    /* .classgen-main .news-ticker-header {
        padding: 0.8rem;
    } */

    .classgen-main .news-badge {
        font-size: 1.125rem;
        padding: 0.5rem 1.25rem;
    }

    .classgen-main .news-ticker-wrapper,
    .classgen-main .news-ticker-item {
        height: 2.4rem;
        line-height: 2.4rem;
    }

    .classgen-main .news-ticker-item {
        font-size: 1.25rem;
    }

    .classgen-main .news-dropdown-item {
        padding: 1rem 1.5rem;
    }

    .classgen-main .news-dropdown-item a {
        font-size: 1.125rem;
    }

    .classgen-main .news-dropdown-date {
        font-size: 0.875rem;
    }

    .classgen-main .hero-img-wrapper {
        max-width: 100%;
    }

    .classgen-main .step-card {
        gap: 2rem;
    }

    .classgen-main .step-card,
    .classgen-main .step-card:nth-child(even) {
        flex-direction: column;
        padding: 1.5rem;
    }

    .classgen-main .step-img-box {
        width: 100%;
    }

    .classgen-main .brand-logo svg {
        width: 50px;
        height: 44px;
    }

    .classgen-main .brand-logo .badge-beta {
        font-size: 12px;
        padding: 3px 5px;
        bottom: calc(100% - 0.6rem);
    }


}

@media (max-width: 359px) {
    .classgen-main .hero-title {
        font-size: 2.4rem;
    }

    .classgen-main .hero-title span {
        font-size: 3rem;
    }

    .classgen-main .demo-section .brand-name {
        font-size: 2rem;
    }

    .classgen-main .step-title {
        font-size: 2rem;
    }

    .classgen-main .section-title {
        font-size: 2rem;
    }

    .classgen-main .brand-logo svg {
        width: 44px;
        height: auto;
    }
}