/* Liquid Glass & Modern Aesthetics */

:root {
    --bg-start: #0f0c29;
    --bg-mid: #302b63;
    --bg-end: #24243e;
    --primary: #ff9a76;
    /* Coral Orange */
    --secondary: #ff7a59;
    /* Deep Orange */
    --text-main: #ffffff;
    --text-muted: #d0d0d0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-start);
    overflow-x: hidden;
    line-height: 1.6;
    word-break: keep-all;
    /* Prevent Korean words from breaking mid-word */
    -webkit-font-smoothing: antialiased;
}

/* Japanese word-break - allow natural breaking */
html[lang="ja"] body {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Background Gradients */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
    z-index: -1;
}

/* Subtle Animated Orbs (Optional for premium feel) */
.background-gradient::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 154, 118, 0.15), transparent 70%);
    /* Reduced opacity for subtlety */
    border-radius: 50%;
    animation: drift 20s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50px, 50px);
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 12, 41, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.download-btn {
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn.small {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.download-btn.small:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* navbar height */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.text-group .badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 154, 118, 0.15);
    border: 1px solid rgba(255, 154, 118, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff9a76;
    margin-bottom: 24px;
}

.text-group h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    /* Reduced from 4rem for conciseness */
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #ffffff, #ffe0d5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: black;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* iPhone Mockup (CSS only) */
.iphone-mockup {
    width: 300px;
    /* Reduced for demo */
    height: 600px;
    background: #000;
    border-radius: 50px;
    border: 8px solid #333;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    overflow: hidden;
}

.iphone-mockup .notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.iphone-mockup .screen {
    width: 100%;
    height: 100%;
    background: #1c1c1e;
    overflow: hidden;
    position: relative;
}

/* App Video in Mockup */
.app-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screenshot Gallery */
.screenshots {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.1);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.screenshot-grid img.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.screenshot-grid img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Feature List (Simple) */
.features-simple {
    padding: 100px 0;
}

.feature-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--glass-border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Features Section (Legacy - kept for Why Remin) */
.features {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Feature Visual (Screenshots) */
.feature-visual {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feature-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-visual img {
    transform: scale(1.05);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.9rem;
}

/* Simple content pages (privacy/support) */
.page {
    padding: 120px 0 80px;
}

.page .page-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.page h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
}

.page h2 {
    font-size: 1.25rem;
    margin: 28px 0 10px;
}

.page p,
.page li {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.page a {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero {
        height: auto;
        padding-bottom: 60px;
    }

    .text-group h1 {
        font-size: 2.2rem;
        /* Reduced from 2.5rem */
    }

    .subtitle {
        font-size: 1rem;
    }

    .iphone-mockup {
        width: 260px;
        height: 520px;
    }

    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.15);
}

.how-it-works-details {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
}

.how-it-works-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.flow-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.flow-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.flow-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.flow-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Why Remin Section */
.why-remin {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* What's New Section */
.whats-new {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.15);
}

.version-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.new-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.new-feature-item {
    padding: 32px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.new-feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.new-feature-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.new-feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

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

/* iPad Showcase Section */
.ipad-showcase {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

.ipad-gallery {
    display: flex;
    gap: 24px;
    margin-top: 50px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ipad-gallery::-webkit-scrollbar {
    height: 8px;
}

.ipad-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ipad-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.ipad-gallery img {
    flex-shrink: 0;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    scroll-snap-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ipad-gallery img:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .ipad-gallery img {
        max-width: 85vw;
    }

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

/* 핵심 차별점 강조 */
.feature-item.highlight {
    background: rgba(255, 154, 118, 0.08);
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-left: -20px;
    border-radius: 8px;
}

.feature-item.highlight strong {
    color: var(--primary);
}

/* 통합 기능 섹션 */
.features-combined {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card img {
    width: 140px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.feature-info {
    flex: 1;
}

.feature-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feature-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    padding: 16px 24px;
    background: rgba(255, 154, 118, 0.1);
    border: 1px solid rgba(255, 154, 118, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.privacy-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-card img {
        width: 200px;
    }
}

/* Language Switcher */
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    position: relative;
    margin-left: 4px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-heading);
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-code {
    min-width: 22px;
    text-align: center;
}

.lang-arrow {
    transition: transform 0.2s;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 8px;
    }

    .lang-current {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}