/* Liquid Glass & Modern Aesthetics - SlideTouch */

:root {
    --bg-start: #0a0e1a;
    --bg-mid: #1a2744;
    --bg-end: #0d1b2a;
    --primary: #4A9FFF;
    /* Blue */
    --secondary: #36D1DC;
    /* Teal */
    --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;
    -webkit-font-smoothing: antialiased;
}

/* Japanese word-break
   keep-all blocks ALL CJK line breaks (Japanese has no spaces between words).
   Override with normal to let the browser break between any CJK characters.
   Applied to all descendants via * to ensure no element inherits keep-all. */
html[lang="ja"] body,
html[lang="ja"] body * {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Protect Latin-only elements from mid-word breaking */
html[lang="ja"] .logo,
html[lang="ja"] .nav-links a,
html[lang="ja"] .lang-current,
html[lang="ja"] .lang-option,
html[lang="ja"] .cta-btn,
html[lang="ja"] .download-btn,
html[lang="ja"] .release-version,
html[lang="ja"] .release-date,
html[lang="ja"] .footer-logo {
    overflow-wrap: normal;
    white-space: nowrap;
}

html[lang="ja"] .text-group h1 {
    letter-spacing: 0;
}

/* 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;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 159, 255, 0.12), transparent 70%);
    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(10, 14, 26, 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;
}

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

.nav-links a.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a.nav-link:hover {
    color: var(--text-main);
}

.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;
}

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

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

.text-group h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #ffffff, #c8e0ff);
    -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;
}

/* Hero Videos */
.hero-videos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-videos video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

/* macOS Window Mockup */
.macos-mockup {
    width: 480px;
    background: #1c1c1e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    overflow: hidden;
}

.macos-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macos-titlebar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.macos-titlebar .dot.red { background: #ff5f57; }
.macos-titlebar .dot.yellow { background: #febc2e; }
.macos-titlebar .dot.green { background: #28c840; }

.macos-titlebar .title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 44px;
}

.macos-screen {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.macos-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.macos-screen .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.macos-screen .placeholder-content .icon {
    font-size: 3rem;
}

/* CTA Button */
.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 159, 255, 0.3);
}

.cta-btn.outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-main);
}

.cta-btn.outline:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Problem/Solution Section */
.problem-solution {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.15);
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.ps-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

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

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

.ps-card.problem {
    border-color: rgba(255, 100, 100, 0.2);
}

.ps-card.solution {
    border-color: rgba(74, 159, 255, 0.3);
}

/* Feature Grid */
.features {
    padding: 100px 0;
}

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

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

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 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;
    text-align: center;
    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-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

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

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

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 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;
}

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

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

/* System Requirements */
.system-req {
    padding: 80px 0;
}

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

.req-item {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.req-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.req-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.req-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Features Detail Page */
.features-detail {
    padding: 120px 0 80px;
}

.feature-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.feature-detail-item:nth-child(even) {
    direction: rtl;
}

.feature-detail-item:nth-child(even) > * {
    direction: ltr;
}

.feature-detail-text .feature-number {
    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: 16px;
}

.feature-detail-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-detail-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-detail-visual {
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.feature-detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Export 3-image grid */
.export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.export-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Release Notes */
.releases {
    padding: 120px 0 80px;
}

.release-entry {
    margin-bottom: 48px;
    padding: 32px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.release-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

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

.release-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.release-entry h3 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
    color: var(--primary);
}

.release-entry ul {
    list-style: none;
    padding: 0;
}

.release-entry li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.release-entry li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* 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 ul {
    padding-left: 20px;
}

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

/* FAQ Accordion */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item summary::before {
    content: '+';
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    width: 20px;
    flex-shrink: 0;
}

.faq-item[open] summary::before {
    content: '-';
}

.faq-item p {
    margin-top: 10px;
    padding-left: 28px;
}

/* 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;
}

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

/* Language Switcher */
.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;
}

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

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

    .hero-videos {
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .text-group h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-videos {
        max-width: 100%;
    }

    .macos-mockup {
        width: 100%;
        max-width: 400px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .ps-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-detail-item:nth-child(even) {
        direction: ltr;
    }

    .cta-group {
        flex-direction: column;
    }

    .lang-switcher {
        margin-left: 8px;
    }

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