:root {
    --primary-color: #1E3A8A;
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    --bg-main: #FAFAFC;
    --text-main: #111827;
    --text-sub: #4B5563;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

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

/* Animated Background Mesh */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #FAFAFC;
}
.mesh-bg .blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 10s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #DBEAFE; }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: #E2E8F0; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Navbar */
.navbar {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}
.logo-text-img {
    height: 24px;
    object-fit: contain;
}

/* Main Centered Logo */
.main-logo-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.main-logo {
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}
.main-logo-text {
    height: 40px;
    object-fit: contain;
}

/* Document Pages (Terms, Privacy) */
.doc-container {
    max-width: 800px;
    margin: 6rem auto 3rem;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.doc-container h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-main);
    color: var(--text-main);
}
.doc-content {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.65;
}
.doc-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 1.2rem;
    margin-bottom: 0.15rem;
}
.doc-line {
    margin: 0.05rem 0;
    line-height: 1.65;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 10rem auto 6rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}
.hero-content {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: #111;
    word-break: keep-all;
}

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

.subtitle {
    font-size: 1.4rem;
    color: var(--text-sub);
    margin-bottom: 3rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}
.store-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.store-btn img {
    height: 54px;
    display: block;
}
.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Premium Phone Mockup */
.hero-mockup {
    flex: none;
    display: flex;
    justify-content: center;
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.phone-frame {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 55px;
    padding: 14px;
    position: relative;
    box-shadow: 
        0 0 0 2px #555,
        0 0 0 6px #e5e5ea,
        0 0 0 8px #d1d1d6,
        0 40px 80px -20px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease;
}
.phone-frame:hover {
    transform: scale(1.02);
}

.dynamic-island {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background: #fff;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
}
.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Features */
.features {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.9);
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}
.feature-card p {
    color: var(--text-sub);
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-info p {
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-color); }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero { margin-top: 8rem; gap: 3rem; }
    .title { font-size: 3rem; }
    .features { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; }
}
