/**
 * Clay.com 스타일 커스텀 CSS
 * 다빈치웹 - 웹사이트 제작 전문 회사
 * 
 * 다크 테마 기반의 현대적인 디자인 시스템
 * TailwindCSS와 함께 사용
 */

/* ========================================
   1. CSS 변수 및 기본 설정 (라이트 테마)
   ======================================== */
:root {
    /* 컬러 팔레트 - 라이트 테마 */
    --clay-dark: #ffffff;
    --clay-darker: #f8fafc;
    --clay-card: #ffffff;
    --clay-card-hover: #f1f5f9;
    --clay-border: #e2e8f0;
    --clay-text: #1e293b;
    --clay-muted: #64748b;
    --clay-accent: #6366f1;
    --clay-accent-hover: #4f46e5;
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    
    /* 그림자 - 라이트 테마용 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --shadow-glow-pink: 0 0 30px rgba(236, 72, 153, 0.15);
    
    /* 타이포그래피 */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* 트랜지션 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 간격 */
    --section-padding: 100px;
    --container-max: 1200px;
}

/* ========================================
   2. 기본 요소 리셋 및 스타일
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--clay-dark);
    color: var(--clay-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 선택 영역 스타일 */
::selection {
    background: var(--clay-accent);
    color: white;
}

/* 스크롤바 스타일 - 라이트 테마 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   3. 헤더 및 네비게이션 (라이트 테마)
   ======================================== */
.clay-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.clay-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.clay-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 16px 24px;
}

.clay-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-normal);
}

.clay-logo:hover {
    transform: scale(1.02);
}

.clay-menu {
    display: none; /* 기본: 숨김 (모바일) */
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 데스크탑에서 메뉴 표시 (1024px 이상) */
@media (min-width: 1024px) {
    .clay-menu {
        display: flex !important;
    }
}

/* 모바일 메뉴 버튼: 데스크탑에서 숨김 */
.clay-mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.clay-mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.clay-mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--clay-text);
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .clay-mobile-menu-btn {
        display: none !important;
    }
}

/* 모바일 슬라이드 메뉴 - 데스크탑에서 완전히 숨김 */
.clay-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    visibility: hidden;
}

.clay-mobile-menu.open {
    right: 0;
    visibility: visible;
}

/* 데스크탑에서 모바일 메뉴 완전히 숨김 */
@media (min-width: 1024px) {
    .clay-mobile-menu {
        display: none !important;
        visibility: hidden !important;
    }
}

.clay-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clay-mobile-menu > ul > li {
    border-bottom: 1px solid var(--clay-border);
}

.clay-mobile-menu > ul > li > a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--clay-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.clay-mobile-menu > ul > li > a:hover {
    color: var(--clay-accent);
}

/* 사이드바 (SNB) 데스크탑에서만 표시 */
.snb {
    display: none;
}

@media (min-width: 1024px) {
    .snb {
        display: block;
    }
}

/* 게시판 레이아웃 */
.lg\:col-span-1 {
    grid-column: span 1 / span 1;
}

.lg\:col-span-3 {
    grid-column: span 3 / span 3;
}

@media (max-width: 1023px) {
    .lg\:col-span-1,
    .lg\:col-span-3 {
        grid-column: span 1 / span 1;
    }
}

.clay-menu a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clay-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.clay-menu a:hover {
    color: var(--clay-text);
    background: rgba(255, 255, 255, 0.05);
}

.clay-menu .active a {
    color: var(--clay-text);
    background: rgba(99, 102, 241, 0.1);
}

/* CTA 버튼 */
.clay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.clay-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-pink);
}

.clay-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
}

.clay-btn-secondary {
    background: white;
    color: var(--clay-text);
    border: 1px solid var(--clay-border);
    box-shadow: var(--shadow-sm);
}

.clay-btn-secondary:hover {
    background: var(--clay-darker);
    border-color: var(--clay-accent);
}

.clay-btn-outline {
    background: transparent;
    color: var(--clay-text);
    border: 1px solid var(--clay-border);
}

.clay-btn-outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ========================================
   4. 히어로 섹션 (메인 비주얼) - 라이트 테마
   ======================================== */
.clay-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.clay-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* 그리드 배경 패턴 - 라이트 테마 */
.clay-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.clay-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
}

.clay-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--clay-accent);
}

.clay-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--clay-text);
}

.clay-hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clay-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--clay-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.clay-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* 플로팅 카드 효과 */
.clay-floating-card {
    position: absolute;
    background: var(--clay-card);
    border: 1px solid var(--clay-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

/* ========================================
   5. 서비스/특징 섹션
   ======================================== */
.clay-section {
    position: relative;
    padding: var(--section-padding) 24px;
}

.clay-section-dark {
    background: var(--clay-darker);
}

.clay-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.clay-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.clay-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clay-accent);
    margin-bottom: 16px;
}

.clay-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--clay-text);
    margin-bottom: 16px;
}

.clay-section-desc {
    font-size: 1.1rem;
    color: var(--clay-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 서비스 카드 */
.clay-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.clay-card {
    position: relative;
    background: var(--clay-card);
    border: 1px solid var(--clay-border);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-normal);
    overflow: hidden;
}

.clay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.clay-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.clay-card:hover::before {
    opacity: 1;
}

.clay-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    border-radius: 14px;
    font-size: 1.5rem;
}

.clay-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clay-text);
    margin-bottom: 12px;
}

.clay-card-desc {
    font-size: 0.95rem;
    color: var(--clay-muted);
    line-height: 1.6;
}

/* ========================================
   6. 가격/플랜 섹션
   ======================================== */
.clay-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.clay-pricing-card {
    position: relative;
    background: var(--clay-card);
    border: 1px solid var(--clay-border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-normal);
}

.clay-pricing-card.featured {
    border-color: var(--clay-accent);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--clay-card) 100%);
}

.clay-pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.clay-pricing-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clay-muted);
    margin-bottom: 8px;
}

.clay-pricing-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clay-text);
    margin-bottom: 8px;
}

.clay-pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--clay-muted);
}

.clay-pricing-desc {
    font-size: 0.9rem;
    color: var(--clay-muted);
    margin-bottom: 32px;
}

.clay-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.clay-pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--clay-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clay-pricing-features li:last-child {
    border-bottom: none;
}

.clay-pricing-features .check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    color: #22c55e;
    font-size: 0.7rem;
}

/* ========================================
   7. 포트폴리오/갤러리
   ======================================== */
.clay-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.clay-gallery-item {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.clay-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.clay-gallery-item:hover img {
    transform: scale(1.1);
}

.clay-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-normal);
}

.clay-gallery-item:hover .clay-gallery-overlay {
    opacity: 1;
}

.clay-gallery-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.clay-gallery-category {
    font-size: 0.85rem;
    color: var(--clay-accent);
}

/* ========================================
   8. 연락처/CTA 섹션 - 라이트 테마
   ======================================== */
.clay-cta {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.clay-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clay-cta-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.clay-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--clay-text);
    margin-bottom: 20px;
}

.clay-cta-desc {
    font-size: 1.1rem;
    color: var(--clay-muted);
    margin-bottom: 40px;
}

/* 연락처 폼 */
.clay-form {
    display: grid;
    gap: 20px;
}

.clay-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.clay-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clay-text);
    background: var(--clay-card);
    border: 1px solid var(--clay-border);
    border-radius: 12px;
    transition: var(--transition-fast);
    outline: none;
}

.clay-input::placeholder {
    color: var(--clay-muted);
}

.clay-input:focus {
    border-color: var(--clay-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.clay-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   9. 푸터 - 라이트 테마
   ======================================== */
.clay-footer {
    background: #1e293b;
    border-top: 1px solid var(--clay-border);
    padding: 60px 24px 30px;
}

.clay-footer,
.clay-footer a,
.clay-footer h4,
.clay-footer .text-white {
    color: #e2e8f0 !important;
}

.clay-footer .text-clay-muted {
    color: #94a3b8 !important;
}

.clay-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto 40px;
}

.clay-footer-brand {
    max-width: 300px;
}

.clay-footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: inline-block;
}

.clay-footer-desc {
    font-size: 0.9rem;
    color: var(--clay-muted);
    line-height: 1.7;
}

.clay-footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clay-text);
    margin-bottom: 20px;
}

.clay-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clay-footer-links li {
    margin-bottom: 12px;
}

.clay-footer-links a {
    font-size: 0.9rem;
    color: var(--clay-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.clay-footer-links a:hover {
    color: var(--clay-text);
}

.clay-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--clay-border);
    max-width: var(--container-max);
    margin: 0 auto;
}

.clay-footer-copyright {
    font-size: 0.85rem;
    color: var(--clay-muted);
}

.clay-footer-social {
    display: flex;
    gap: 16px;
}

.clay-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--clay-card);
    border-radius: 10px;
    color: var(--clay-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.clay-footer-social a:hover {
    background: var(--clay-accent);
    color: white;
}

/* ========================================
   10. 유틸리티 클래스
   ======================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

.glow-pink {
    box-shadow: var(--shadow-glow-pink);
}

/* 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 스태거드 애니메이션 딜레이 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ========================================
   동적 애니메이션 효과
   ======================================== */

/* 페이드 인 업 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 페이드 인 다운 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 페이드 인 좌우 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 스케일 인 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 플로팅 효과 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 펄스 글로우 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
    }
}

/* 그라데이션 이동 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 회전 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 바운스 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 쉐이크 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* 타이핑 커서 깜빡임 */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* 애니메이션 클래스 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

/* 호버 효과 강화 */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* 히어로 섹션 애니메이션 */
.clay-hero-content {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.clay-hero-badge {
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.clay-hero-title {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.clay-hero-subtitle {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
}

.clay-hero-actions {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
    opacity: 0;
}

/* 그라데이션 텍스트 애니메이션 */
.gradient-text {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1, #ec4899);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* 카드 호버 효과 */
.clay-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.clay-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.clay-card-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clay-card:hover .clay-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* 버튼 애니메이션 */
.clay-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease;
}

.clay-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.clay-btn:hover::after {
    width: 300px;
    height: 300px;
}

.clay-btn:active {
    transform: scale(0.98);
}

/* 프라이머리 버튼 글로우 */
.clay-btn-primary {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.clay-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

/* 링크 밑줄 애니메이션 */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* 배경 블롭 애니메이션 */
.blob {
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: 2s;
}

.blob-3 {
    animation-delay: 4s;
}

/* 스크롤 인디케이터 */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* 숫자 카운트업 효과를 위한 스타일 */
.counter {
    display: inline-block;
}

/* 로딩 스피너 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--clay-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 물결 효과 */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.ripple-effect:active::before {
    animation: ripple 0.6s ease-out;
}

/* 마우스 따라다니는 효과를 위한 기본 스타일 */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 페럴랙스 효과 */
.parallax-slow {
    will-change: transform;
}

/* 텍스트 하이라이트 애니메이션 */
@keyframes textHighlight {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

.text-highlight {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0% 100%;
    transition: background-size 0.5s ease;
}

.text-highlight:hover {
    background-size: 100% 100%;
}

/* ========================================
   11. 반응형 스타일
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .clay-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .clay-nav {
        padding: 12px 16px;
    }
    
    .clay-menu {
        display: none;
    }
    
    .clay-hero {
        padding: 80px 16px 40px;
    }
    
    .clay-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .clay-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .clay-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .clay-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .clay-section {
        padding: 50px 16px;
    }
    
    .clay-card {
        padding: 24px;
    }
    
    .clay-pricing-card {
        padding: 30px 24px;
    }
}

/* ========================================
   12. 모바일 메뉴
   ======================================== */
.clay-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.clay-mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clay-text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .clay-mobile-menu-btn {
        display: flex;
    }
}

.clay-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #ffffff;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: var(--transition-normal);
}

.clay-mobile-menu.open {
    transform: translateX(0);
}

.clay-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clay-mobile-menu li {
    border-bottom: 1px solid var(--clay-border);
}

.clay-mobile-menu a {
    display: block;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--clay-text);
    text-decoration: none;
}

/* ========================================
   13. 기존 레이아웃 오버라이드 - 라이트 테마
   ======================================== */
/* 기존 그누보드 스타일 덮어쓰기 */
#wrapper {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

#hd {
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.header {
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 메인 페이지 컨테이너 가운데 정렬 */
#container_main,
.main-page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    position: relative !important;
}

/* 기존 섹션들 라이트 테마 적용 */
.visual,
.main01,
.main03,
.main05 {
    background: #ffffff !important;
}

.main02,
.main04,
.main06 {
    background: #f8fafc !important;
}

/* 기존 링크 색상 */
a {
    color: var(--clay-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--clay-accent-hover);
}

/* 숨김 클래스 */
.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

/* 서브 비주얼 임시 숨김 */
.sub-visual {
    display: none;
}

/* ========================================
   14. 섹션 스타일
   ======================================== */
.clay-section {
    padding: 80px 24px;
    background: #ffffff;
}

.clay-section-dark {
    padding: 80px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.clay-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.clay-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clay-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.clay-section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clay-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.clay-section-desc {
    font-size: 1.1rem;
    color: var(--clay-muted);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .clay-section,
    .clay-section-dark {
        padding: 60px 16px;
    }
    
    .clay-section-title {
        font-size: 1.75rem;
    }
    
    .clay-section-desc {
        font-size: 1rem;
    }
}

/* ========================================
   15. 메인 페이지 레이아웃 오버라이드
   ======================================== */
/* HTML, Body 기본 정렬 */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* 메인 페이지 섹션들 - 기존 float 제거 */
#container_main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    float: none !important;
    overflow-x: hidden !important;
    display: block !important;
}

#container_main > section {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    clear: both !important;
}

/* 메인 섹션 개별 스타일 */
.visual,
.main01,
.main02,
.main_ai,
.main03,
.main04,
.main05,
.main06 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    overflow: hidden;
    margin: 0 auto !important;
}

/* 모든 섹션 내 clay-section 전체 너비 */
section .clay-section,
.main02 .clay-section,
.main_ai .clay-section,
.main01 .clay-section,
.main03 .clay-section,
.main05 .clay-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* main02 내부 그리드 가운데 정렬 */
.main02 .clay-container,
.main_ai .clay-container,
.main01 .clay-container,
.main03 .clay-container,
.main05 .clay-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* clay-container 최대 너비 보장 및 가운데 정렬 */
.clay-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    position: relative !important;
}

/* clay-section 가운데 정렬 보장 */
.clay-section,
.clay-section-dark {
    width: 100% !important;
    display: block !important;
    float: none !important;
    text-align: left;
}

/* 메인 페이지 전체 wrapper 정렬 */
.main-page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* 메인 콘텐츠 wrapper */
.main-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* 기존 main01 a 스타일 오버라이드 */
.main01 .clay-section a,
.main02 .clay-section a,
.main03 .clay-section a,
.main_ai .clay-section a,
.main05 .clay-section a {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    background: none !important;
}

/* 그라데이션 버튼 스타일 보장 */
.main01 .clay-section a[class*="bg-gradient"],
.main02 .clay-section a[class*="bg-gradient"],
.main_ai .clay-section a[class*="bg-gradient"],
.main03 .clay-section a[class*="bg-gradient"],
.main05 .clay-section a[class*="bg-gradient"] {
    background: linear-gradient(to right, #ec4899, #8b5cf6, #6366f1) !important;
}

/* clay-btn 스타일 강화 */
.clay-btn {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.clay-btn-primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1) !important;
    color: white !important;
}

.clay-btn-secondary {
    background: white !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
}

/* 그리드 레이아웃 수정 */
.grid {
    display: grid !important;
}

/* AI 서비스 섹션 4열 그리드 */
.main_ai .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
    .main_ai .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .main_ai .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .clay-container {
        padding: 0 16px !important;
    }
}
