/* ============================================
   힐스테이트 장안 센트럴 - 고효율 세일즈 랜딩페이지
   모바일 우선 반응형 디자인
   ============================================ */

/* 기본 리셋 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #007AFF;
    --primary-green: #34C759;
    --kakao-yellow: #FEE500;
    --urgent-red: #FF3B30;
    --urgent-bg: #FFE5E5;
    --dark-bg: #1C1C1E;
    --text-dark: #1C1C1E;
    --text-gray: #8E8E93;
    --text-light: #F2F2F7;
    --border-light: #E5E5EA;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   1. 메인 히어로 섹션
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://sspark.genspark.ai/cfimages?u1=PXiDjWuVz95QYjbAIN5heUBf5c9ZwQpSV4Qz0VicKwikYzVXNcVfzPerAU2J%2Fxq9vD%2F6JMPYYP%2FxvU3Y&u2=sTUvOogJDdIm27fa&width=1024');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #E5E5EA;
    line-height: 1.6;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-message {
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: #C7C7CC;
    animation: fadeInUp 1.4s ease-out;
}

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

/* ============================================
   2. 긴급 공지 섹션
   ============================================ */
.urgent-section {
    background: var(--urgent-bg);
    padding: 50px 20px;
    border-bottom: 3px solid var(--urgent-red);
}

.urgent-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--urgent-red);
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.4;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.status-box {
    background: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.status-box:hover {
    transform: translateY(-5px);
}

.status-type {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-label {
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.status-box.sold-out .status-type {
    color: var(--text-gray);
}

.status-box.sold-out .status-label {
    background: #F2F2F7;
    color: var(--text-gray);
}

.status-box.urgent .status-type {
    color: var(--urgent-red);
}

.status-box.urgent .status-label {
    background: var(--urgent-red);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 특별혜택 박스 */
.special-benefit-box {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 30px 25px;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    border: 3px solid #FFD700;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    animation: benefitPulse 2s ease-in-out infinite;
}

@keyframes benefitPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(255, 215, 0, 0.5);
    }
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: benefitIconSpin 3s ease-in-out infinite;
}

@keyframes benefitIconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.benefit-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.benefit-text strong {
    font-size: 1.4rem;
    color: #FF6B00;
    font-weight: 900;
    display: block;
    margin-top: 8px;
}

/* ============================================
   3. 핵심 경쟁력 섹션
   ============================================ */
.features-section {
    padding: 80px 20px;
    background: #fff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #48484A;
}

.feature-desc strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ============================================
   4. CTA 버튼 섹션
   ============================================ */
.cta-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.cta-section.cta-middle {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
}

.cta-section.cta-bottom {
    background: linear-gradient(135deg, #fff3e0, #f8f9fa);
}

.cta-heading {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-dark);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 30px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-height: 80px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

.cta-icon {
    font-size: 2rem;
}

.cta-text {
    line-height: 1.4;
}

.cta-phone {
    background: var(--primary-blue);
    color: #fff;
}

.cta-phone:hover {
    background: #0051D5;
}

.cta-sms {
    background: var(--primary-green);
    color: #fff;
}

.cta-sms:hover {
    background: #248A3D;
}

.cta-kakao {
    background: var(--kakao-yellow);
    color: #000;
}

.cta-kakao:hover {
    background: #F7D600;
}

/* ============================================
   5. 단지 정보 섹션
   ============================================ */
.info-section {
    padding: 80px 20px;
    background: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    background: #f8f9fa;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #fff;
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.info-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #48484A;
}

.info-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ============================================
   7. 갤러리 섹션
   ============================================ */
.gallery-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background: #f0f0f0;
}

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

/* ============================================
   9. 푸터 섹션
   ============================================ */
.footer-section {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-company {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-ceo {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-message {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #C7C7CC;
}

.footer-address {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-gray);
    padding-top: 20px;
    border-top: 1px solid #3A3A3C;
}

/* ============================================
   반응형 디자인 - 태블릿
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-message {
        font-size: 0.9rem;
    }

    .urgent-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   반응형 디자인 - 모바일
   ============================================ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .urgent-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        font-size: 1rem;
        padding: 20px 25px;
    }

    .feature-card {
        padding: 30px 20px;
    }
    
    .special-benefit-box {
        padding: 25px 20px;
        margin: 30px auto 0;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    .benefit-text {
        font-size: 1.05rem;
    }
    
    .benefit-text strong {
        font-size: 1.2rem;
    }
}

/* ============================================
   성능 최적화
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
