/*
* 파일명: main.css
* 경로: /assets/css/
* 기능: 메인 랜딩 페이지 스타일
*/

/* ========== Variables ========== */
:root {
    --color-primary: #4a7c59;
    --color-primary-light: #5a9a6a;
    --color-primary-dark: #3d6649;
    
    --color-text: #2d2d2d;
    --color-text-secondary: #5a5a5a;
    --color-text-muted: #888888;
    
    --color-bg: #e8e8e0;
    --color-bg-white: #ffffff;
    --color-border: #d0d0c8;
    
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 20px;
    --radius-sm: 8px;
}

/* ========== Reset ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    min-height: 100vh;
    padding: 24px;
}


a {
    color: inherit;
    text-decoration: none;
}

/* ========== Main Container ========== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-bg-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}



/* ========== Navbar ========== */
.navbar {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 32px;
    position: relative;
    z-index: 1000;
    background: var(--color-bg-white);
}



.navbar.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-placeholder {
    height: 64px;
    display: none;
}

.navbar-placeholder.show {
    display: block;
}




.navbar-left {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--color-primary);
    margin: -0px -0px -0px -32px;
    padding: 0 32px;
    height: 64px;
    border-radius: 0 32px 32px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.navbar-nav {
    display: flex;
    gap: 16px;
    list-style: none;
}

.navbar-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--color-text);  /* 어두운 글씨 색상 */
    background: #fff;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(1px);
}



.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-primary);
    margin: -0px -32px -0px -0px;
    padding: 0 32px;
    height: 64px;
    border-radius: 32px 0 0 32px;
}

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-switch a {
    padding: 4px 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-switch a:hover {
    color: #fff;
}

.lang-switch a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-light:hover {
    background: rgba(255,255,255,0.25);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

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

.btn-outline:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg);
}


.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

/* ========== Hero Section ========== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.hero-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 320px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-buttons .btn {
    padding: 12px 24px;
}

.hero-social {
    display: flex;
    gap: 24px;
}

.hero-social a {
    font-size: 12px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.hero-social a:hover {
    color: var(--color-primary);
}

.hero-visual {
    background: var(--color-primary);
    border-radius: 100px 0 0 100px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: var(--color-bg);
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
}



.hero-card {
    background: var(--color-bg-white);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    border-radius: 12px;
    opacity: 0.5;
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--color-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon i {
    font-size: 24px;
    color: var(--color-primary);
}

.card-domain {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
	text-align: center;
}

.card-status {
    display: block;
    width: fit-content;
    margin: 0 auto 16px auto;  /* 좌우 auto로 가운데 정렬 */
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

.card-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
	text-align: center;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.card-btn:hover {
    background: var(--color-primary-dark);
}

/* ========== Features Section ========== */
.features {
    padding: 80px 60px;
    border-top: 1px solid var(--color-border);
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon i {
    font-size: 22px;
    color: var(--color-primary);
}

.feature-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========== Steps Section ========== */
.steps {
    padding: 80px 60px;
    background: var(--color-bg);
}

.steps-list {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.step-item {
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.step-num {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.step-item p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ========== CTA Section ========== */
.cta {
    padding: 60px;
    text-align: center;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.cta h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.cta p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.cta .btn {
    padding: 14px 32px;
    font-size: 14px;
}

/* ========== Footer ========== */
.footer {
    padding: 32px 60px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.footer-brand .brand-icon {
    background: var(--color-primary);
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }
    
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 60px 40px;
        text-align: center;
        align-items: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-visual {
        padding: 40px 24px 60px;
    }
    
    .steps-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }
    
    .navbar-left {
        margin-left: -16px;
        padding: 0 20px;
        border-radius: 0 24px 24px 0;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-center {
        display: none;
    }
    
    .navbar-right {
		margin-right: -16px;
		margin-left: auto;
		padding: 0 16px;
		border-radius: 24px 0 0 24px;
		gap: 12px;
	}


    
    .navbar-right .btn-light {
		display: none;
	}

    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 48px 24px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .features,
    .cta {
        padding: 48px 24px;
    }
    
    .steps {
        padding: 48px 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        text-align: center;
    }
    
    .footer-links {
        order: 2;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .card-domain {
        font-size: 20px;
    }
    
    .card-price {
        font-size: 24px;
    }
}

/* ========== Mobile Menu ========== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--color-bg-white);
    padding: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    background: var(--color-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-text);
}

.mobile-menu-nav {
    list-style: none;
    margin-bottom: 24px;
}

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

.mobile-menu-nav a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
}
