:root {
    --primary-color: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    transition: padding 0.4s ease;
}

.navbar.scrolled .nav-container {
    padding: 16px 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 24px 140px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.08) 0%, rgba(255,255,255,0) 50%);
    z-index: -1;
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-2%, -2%); }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 18px 42px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Shared Sections */
.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 72px;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* About Section */
.about {
    background-color: var(--bg-alt);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.about-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -10px rgba(79, 70, 229, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.about-card .icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Apps Section */
.apps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.app-mockup {
    width: 360px;
    background: white;
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.app-mockup:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12);
}

.mockup-placeholder {
    height: 480px;
    border-radius: 20px;
    display: flex;
    align-items: flex-end; /* Push phone frame down so it gets cut off */
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

/* Phone Frame Wireframe */
.phone-frame {
    width: 250px;
    height: 480px; /* Slightly taller than container to overflow at bottom */
    background: #ffffff;
    border-radius: 36px 36px 0 0;
    border: 8px solid #cbd5e1;
    border-bottom: none;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    margin-bottom: -20px; /* Slide down to clip */
    transition: transform 0.4s ease;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #cbd5e1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    opacity: 0.8;
}

/* Abstract UI Elements */
.ui-header {
    width: 50%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ui-box {
    width: 100%;
    height: 140px;
    background: #e2e8f0;
    border-radius: 16px;
}

.ui-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-circle {
    width: 44px;
    height: 44px;
    background: #e2e8f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.ui-line-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ui-line {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
}

.ui-line.short {
    width: 60%;
}

/* Styling overlays text */
.overlay-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    white-space: nowrap;
    z-index: 10;
}

/* App 1: Lifestyle (Blue Theme) */
.mockup-lifestyle { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.mockup-lifestyle .phone-frame { border-color: #bfdbfe; }
.mockup-lifestyle .phone-notch { background: #bfdbfe; }
.mockup-lifestyle .ui-header, .mockup-lifestyle .ui-box, 
.mockup-lifestyle .ui-circle, .mockup-lifestyle .ui-line { background: #dbeafe; }
.mockup-lifestyle .ui-circle { border-radius: 12px; } /* Square icons */
.mockup-lifestyle .overlay-badge { 
    color: var(--primary-color); 
    border: 1px solid rgba(79, 70, 229, 0.15); 
}

/* App 2: Utility (Yellow Theme) */
.mockup-utility { background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%); }
.mockup-utility .phone-frame { border-color: #fde047; }
.mockup-utility .phone-notch { background: #fde047; }
.mockup-utility .ui-header, .mockup-utility .ui-box, 
.mockup-utility .ui-circle, .mockup-utility .ui-line { background: #fef08a; }
.mockup-utility .overlay-badge { 
    color: #b45309; 
    border: 1px solid rgba(234, 179, 8, 0.2); 
}

.app-mockup:hover .phone-frame {
    transform: translateY(-5px);
}

.app-info {
    text-align: center;
    padding: 0 16px 20px;
}

.app-info h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.app-info p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="a" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
    opacity: 0.5;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 64px 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.contact-card h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: white;
}

.contact p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.email-link {
    display: inline-block;
    padding: 20px 48px;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

.footer-links a {
    font-weight: 500;
}

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

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .section {
        padding: 80px 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .about-card {
        padding: 32px 24px;
    }
    .contact-card {
        padding: 40px 20px;
    }
    .contact-card h2 {
        font-size: 2.25rem;
    }
    .contact p {
        font-size: 1.05rem;
    }
    .email-link {
        padding: 16px 24px;
        font-size: 1.05rem;
        width: 100%;
        box-sizing: border-box;
        word-break: break-word; /* 긴 이메일이나 글씨가 카드 밖으로 삐져나가지 않도록 자동 줄바꿈 추가 */
    }
}
