@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Syne:wght@700;800&display=swap');

:root {
    --primary: #6366f1; /* Modern Indigo */
    --accent: #f59e0b;
    --bg-dark: #0a0a0c;
    --bg-card: #141417;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Premium Navbar */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    z-index: 1000;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: lowercase;
    text-decoration: none; /* 밑줄 제거 */
    background: linear-gradient(180deg, #FFFFFF 0%, #D1D1D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition);
}

.logo:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.logo::after {
    content: '.';
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    text-shadow: 0 0 15px rgba(121, 134, 255, 0.8);
    font-size: 32px;
    margin-left: -1px;
}

.emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    vertical-align: middle;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover { color: white; }

.cta-nav {
    background: white;
    color: black !important;
    padding: 10px 25px;
    border-radius: 12px;
}

/* Icons & Emojis Fix */
.icon, .stich-item .icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
    line-height: 1;
}

.stich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.stich-item {
    background: var(--bg-dark);
    padding: 40px;
    transition: var(--transition);
}

/* Certifications Section */
.cert-section {
    padding: 100px 0;
    background: #050505;
    border-top: 1px solid var(--border);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cert-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-info {
    padding: 20px;
    text-align: center;
}

.cert-info h4 {
    font-family: 'Syne';
    font-size: 16px;
    margin-bottom: 5px;
}

.cert-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Bento Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(60px, 8vw, 110px);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 40px;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.4);
}

.hero p {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 300;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid var(--border);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.item-profile {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
}

.item-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tool Logos in Cards */
.tool-logos {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tool-logo {
    height: 24px;
    opacity: 0.8;
}

/* Course Grid */
.courses { padding: 150px 0; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-card);
    border-radius: 40px;
    border: 1px solid var(--border);
    padding: 20px;
    transition: var(--transition);
}

.course-card:hover {
    background: #1c1c21;
    border-color: var(--primary);
    transform: translateY(-10px);
}

.course-img-container {
    border-radius: 30px;
    overflow: hidden;
    height: 320px;
}

.course-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
/* --- Responsive Design (Mobile First Fix) --- */

@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .hero h1 { font-size: 80px; }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .navbar {
        top: 15px;
        padding: 10px 20px;
        width: 94%;
        border-radius: 12px;
    }
    
    .logo { font-size: 20px; }
    .nav-links a:not(.cta-nav) { display: none; }
    .nav-links a.cta-nav { margin-left: 0; padding: 6px 15px; font-size: 11px; }

    .hero { height: auto; padding: 140px 0 60px; }
    .hero h1 { font-size: 44px !important; letter-spacing: -2px; margin-bottom: 15px; }
    .hero p { font-size: 16px; margin-bottom: 25px; }
    
    /* --- BENTO GRID MOBILE FIX --- */
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .bento-item {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        padding: 40px 25px !important;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .item-profile {
        height: 400px !important;
    }

    .bento-item h3 { font-size: 32px !important; line-height: 1.1; margin-bottom: 15px; }
    .bento-item p { font-size: 16px !important; line-height: 1.5; }
    .bento-item blockquote { font-size: 20px !important; line-height: 1.4; }
    
    .automation-section h2 { font-size: 38px !important; line-height: 1; }
    .stich-grid { display: flex !important; flex-direction: column !important; }
    .stich-item { padding: 30px !important; }
    
    .course-grid { display: flex !important; flex-direction: column !important; }
    
    .inquiry-grid { display: flex !important; flex-direction: column !important; gap: 40px !important; text-align: center; }
    .inquiry-grid h2 { font-size: 36px !important; }

    #enroll div[style*="padding: 60px"] {
        padding: 40px 20px !important;
    }

    #payment-modal div[style*="padding: 50px"] {
        padding: 30px 20px !important;
    }
}