/* 1. 폰트 임포트: 로고와 유사한 기하학적 샌스세리프(Montserrat)와 가독성 좋은 Pretendard */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Pretendard:wght@400;600;700&display=swap');

:root {
    /* Flutter splash_page.dart에서 추출한 시그니처 컬러 시스템 */
    --primary-main: #2D7A7D;    /* 로고 이미지와 가장 잘 어우러지는 Deep Teal */
    --primary-bright: #3D8B8E;  /* 그라데이션 및 강조용 */
    --accent-color: #4DD0E1;    /* 액센트 포인트 */
    --text-white: #F0F4F4;      /* 로고 폰트의 미색 느낌을 살린 화이트 */
    --text-muted: rgba(240, 244, 244, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: var(--primary-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 2. Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(45, 122, 125, 0.85);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.2em; /* 로고 특유의 넓은 자간 반영 */
    color: var(--text-white);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 3. Hero Section (Splash Page 감성) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Flutter의 RadialGradient 재현 */
    background: radial-gradient(circle, var(--primary-bright) 0%, var(--primary-main) 100%);
    padding: 0 20px;
}

.hero-logo-wrapper {
    margin-bottom: 2.5rem;
}

.hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px; /* Flutter 코드의 BorderRadius.circular(32) 반영 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease;
}

.hero-icon:hover {
    transform: scale(1.05);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem); /* 반응형 폰트 크기 */
    font-weight: 900;
    letter-spacing: 0.25em; /* 공식 로고의 고급스러운 간격 */
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

/* 4. Buttons (App-like Interface) */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

button {
    padding: 16px 36px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary-main);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-guest {
    background: #1A1A1A; /* 다크 모드 포인트 */
    color: white;
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 10px;
}

button:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* 5. Features Section */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 120px 10%;
    background: #FFFFFF;
    color: var(--primary-main);
}

.feature-card {
    background: #F8FAFA;
    padding: 50px 35px;
    border-radius: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(45, 122, 125, 0.08);
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-15px);
    background: white;
    box-shadow: 0 30px 60px rgba(45, 122, 125, 0.15);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #556B6B;
    font-size: 1rem;
    line-height: 1.7;
}

/* 6. Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 로고 애니메이션 지연 효과 */
.hero-logo-wrapper.fade-in { transition-delay: 0.2s; }
h1.fade-in { transition-delay: 0.4s; }
.hero-content p.fade-in { transition-delay: 0.6s; }
.cta-group.fade-in { transition-delay: 0.8s; }