* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #161617;
    color: #FEFEFE;
    overflow-x: hidden;
}

.color-brand {
    color: #65B6F2;
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 720px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 11.54%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(45deg, #0D1623 0%, #1A1023 100%);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 272px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.hero-left {
    flex: 1;
    max-width: 640px;
}

.hero-title {
    font-weight: 700;
    font-size: 64px;
    line-height: 76px;
    color: #FEFEFE;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    color: #A4ADB3;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-weight: 700;
    font-size: 36px;
    line-height: 43px;
    color: #65B6F2;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 400;
    font-size: 16px;
    color: #A4ADB3;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    height: 56px;
    padding: 0 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: #65B6F2;
    color: #161617;
}

.btn-primary:hover {
    background: #4E9DF7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(101, 182, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #FEFEFE;
    border: 2px solid #34363A;
}

.btn-secondary:hover {
    background: #34363A;
    border-color: #65B6F2;
}

.hero-right {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Section */
.category-section {
    width: 100%;
    padding: 100px 0;
    background: #161617;
}

.section-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 272px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 57px;
    color: #FEFEFE;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-title img {
    width: 32px;
    height: 32px;
}

.section-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    color: #A4ADB3;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.category-card {
    background: #222325;
    border-radius: 16px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.category-card.plugin:hover { border-color: #4E9DF7; }
.category-card.building:hover { border-color: #C27AFF; }
.category-card.redstone:hover { border-color: #F94E51; }
.category-card.resource:hover { border-color: #05DF72; }
.category-card.command:hover { border-color: #FF8904; }
.category-card.server:hover { border-color: #65B6F2; }

.category-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.category-card.plugin .category-icon { background: rgba(78, 157, 247, 0.1); }
.category-card.building .category-icon { background: rgba(194, 122, 255, 0.1); }
.category-card.redstone .category-icon { background: rgba(249, 78, 81, 0.1); }
.category-card.resource .category-icon { background: rgba(5, 223, 114, 0.1); }
.category-card.command .category-icon { background: rgba(255, 137, 4, 0.1); }
.category-card.server .category-icon { background: rgba(101, 182, 242, 0.1); }

.category-icon img {
    width: 48px;
    height: 48px;
}

.category-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    color: #FEFEFE;
    margin-bottom: 12px;
}

.category-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: #A4ADB3;
    margin-bottom: 16px;
}

.category-count {
    font-weight: 600;
    font-size: 14px;
    color: #65B6F2;
}

/* Courses Section */
.courses-section {
    width: 100%;
    padding: 100px 0;
    background: #161617;
    border-top: 2px solid #222325;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.course-card {
    background: #222325;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.course-thumbnail {
    width: 100%;
    height: 225px;
    position: relative;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    z-index: 5;
}

.course-badge.bestseller {
    background: linear-gradient(135deg, #FFB800 0%, #FF8904 100%);
    color: #161617;
}

.course-badge.new {
    background: linear-gradient(135deg, #05DF72 0%, #04B35E 100%);
    color: #161617;
}

.course-badge.free {
    background: linear-gradient(135deg, #65B6F2 0%, #4E9DF7 100%);
    color: #161617;
}

.course-badge.hot {
    background: linear-gradient(135deg, #F94E51 0%, #E6393C 100%);
    color: #FEFEFE;
}

.course-level {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 5;
}

.course-level.beginner { color: #05DF72; }
.course-level.intermediate { color: #FFB800; }
.course-level.advanced { color: #F94E51; }

.course-info {
    padding: 24px;
}

.course-category {
    font-weight: 600;
    font-size: 12px;
    color: #65B6F2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.course-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    color: #FEFEFE;
    margin-bottom: 16px;
    min-height: 56px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-name {
    font-weight: 500;
    font-size: 14px;
    color: #A4ADB3;
}

.course-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #34363A;
}

.course-rating,
.course-students {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-rating img,
.course-students img {
    width: 16px;
    height: 16px;
}

.rating-score {
    font-weight: 600;
    font-size: 14px;
    color: #FFB800;
}

.rating-count,
.course-students span {
    font-weight: 400;
    font-size: 14px;
    color: #616470;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-weight: 700;
    font-size: 24px;
    color: #FEFEFE;
}

.current-price.free {
    color: #05DF72;
}

.original-price {
    font-weight: 400;
    font-size: 16px;
    text-decoration: line-through;
    color: #616470;
}

.discount-badge {
    background: #3D1414;
    color: #F94E51;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Instructors Section */
.instructors-section {
    width: 100%;
    padding: 100px 0;
    background: #161617;
    border-top: 2px solid #222325;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.instructor-card {
    background: #222325;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.instructor-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid #34363A;
}

.instructor-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-name {
    font-weight: 600;
    font-size: 20px;
    color: #FEFEFE;
    margin-bottom: 8px;
}

.instructor-title {
    font-weight: 500;
    font-size: 14px;
    color: #65B6F2;
    margin-bottom: 16px;
}

.instructor-bio {
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: #A4ADB3;
    margin-bottom: 24px;
    min-height: 66px;
}

.instructor-stats-row {
    display: flex;
    justify-content: space-around;
    padding-top: 24px;
    border-top: 1px solid #34363A;
}

.instructor-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 20px;
    color: #FEFEFE;
    margin-bottom: 4px;
}

.stat-label {
    font-weight: 400;
    font-size: 12px;
    color: #A4ADB3;
}

/* CTA Section */
.cta-section {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #0D1623 0%, #1A1023 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.cta-title {
    font-weight: 700;
    font-size: 56px;
    line-height: 67px;
    color: #FEFEFE;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    color: #A4ADB3;
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-primary,
.btn-cta-secondary {
    height: 56px;
    padding: 0 40px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-cta-primary {
    background: #65B6F2;
    color: #161617;
}

.btn-cta-primary:hover {
    background: #4E9DF7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(101, 182, 242, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: #FEFEFE;
    border: 2px solid #65B6F2;
}

.btn-cta-secondary:hover {
    background: rgba(101, 182, 242, 0.1);
}

/* Responsive Design */
@media (max-width: 1920px) {
    .hero-content,
    .section-content {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 1400px) {
    .hero-content,
    .section-content {
        padding-left: 60px;
        padding-right: 60px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-right {
        max-width: 100%;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .hero {
        min-height: 600px;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-image {
        height: 400px;
    }

    .section-title {
        font-size: 40px;
        line-height: 48px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-card {
        padding: 32px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-title {
        font-size: 40px;
        line-height: 48px;
    }
}

@media (max-width: 768px) {
    .hero-content,
    .section-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-image {
        height: 300px;
    }

    .category-section,
    .courses-section,
    .instructors-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 32px;
        line-height: 38px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .category-card {
        padding: 24px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon img {
        width: 40px;
        height: 40px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-desc {
        font-size: 14px;
    }

    .course-thumbnail {
        height: 200px;
    }

    .course-info {
        padding: 20px;
    }

    .course-title {
        font-size: 18px;
        min-height: auto;
    }

    .current-price {
        font-size: 20px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 32px;
        line-height: 38px;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        line-height: 38px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        height: 48px;
        font-size: 16px;
        padding: 0 24px;
    }

    .hero-image {
        height: 250px;
    }

    .section-title {
        font-size: 28px;
        line-height: 34px;
    }

    .section-title img {
        width: 24px;
        height: 24px;
    }

    .category-card {
        padding: 20px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .category-icon img {
        width: 36px;
        height: 36px;
    }

    .category-title {
        font-size: 18px;
    }

    .course-info {
        padding: 16px;
    }

    .course-title {
        font-size: 16px;
    }

    .current-price {
        font-size: 18px;
    }

    .instructor-card {
        padding: 24px;
    }

    .instructor-avatar-large {
        width: 100px;
        height: 100px;
    }

    .instructor-name {
        font-size: 18px;
    }

    .cta-title {
        font-size: 28px;
        line-height: 34px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.category-card:focus,
.course-card:focus,
.instructor-card:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-cta-primary:focus,
.btn-cta-secondary:focus {
    outline: 2px solid #65B6F2;
    outline-offset: 2px;
}