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

:root {
    --bg: #ffffff;
    --bg-card: #f8f9fa;
    --bg-card-hover: #f1f3f5;
    --surface: #eef0f2;
    --border: #e2e5e9;
    --border-hover: #cdd1d6;
    --text: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.08);
    --accent-hover: #1d4ed8;
    --gradient-start: #2563eb;
    --gradient-end: #7c3aed;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1100px;
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand-logo { height: 36px; width: auto; }
.nav-brand-text {
    font-family: 'Yeon Sung', cursive;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--text);
    white-space: nowrap;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-switcher {
    position: relative;
}
.lang-toggle {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius-sm);
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}
.lang-toggle:hover {
    border-color: var(--border-hover);
    background: var(--surface);
}
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    max-height: min(65vh, 480px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 150;
}
.lang-menu.open { display: block; }
.lang-option {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.lang-option:hover {
    background: var(--surface);
    color: var(--text);
}
#google_translate_element {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
}
body,
html {
    top: 0 !important;
    margin-top: 0 !important;
    position: static !important;
}
.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1;
}

/* ── Hero ── */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
}
.hero-text { flex: 1; }
.hero-text .tagline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    background: var(--accent-glow);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}
.hero-visual {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
}
.hero-visual img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius);
    filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.1));
}

/* ── Philosophy ── */
.philosophy {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}
.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color var(--transition), background var(--transition);
}
.philosophy-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.philosophy-card .icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
}
.philosophy-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.philosophy-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ── Generic Page Content ── */
.page-section { padding: 80px 0; }
.page-content {
    max-width: 820px;
    margin: 0 auto;
}
.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.page-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 28px 0 10px;
}
.page-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 18px 0 8px;
}
.page-content p {
    color: var(--text-secondary);
    margin: 10px 0;
}
.page-content ul {
    margin: 10px 0 10px 18px;
    color: var(--text-secondary);
}
.page-content li { margin: 6px 0; }
.page-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 18px;
    margin: 18px 0;
}

/* ── Software Grid ── */
.software-section { padding: 80px 0; }
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 20px;
}
.software-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.software-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.software-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.software-thumb-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.software-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    transition: opacity var(--transition);
}
.software-thumb-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    user-select: none;
}
.software-thumb:hover { opacity: 0.8; }
.software-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #e67e22;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.software-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}
.software-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}
.vibefilter-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.software-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.software-card ul li {
    font-size: 0.825rem;
    color: var(--text-muted);
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}
.software-card ul li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-weight: 700;
}
.software-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.software-links a {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    min-height: 44px;
    transition: color var(--transition);
}
.software-links a:hover { color: var(--accent-hover); }
.software-links a::after {
    content: '→';
    font-size: 0.75rem;
    transition: transform var(--transition);
}
.software-links a:hover::after { transform: translateX(2px); }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 40px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-inner p {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-inner a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-inner a:hover { color: var(--text); }

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow: auto;
}
.modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.modal-content iframe { width: 100%; height: 100%; border: none; }
.modal-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #999;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    z-index: 1001;
    transition: color var(--transition), border-color var(--transition);
}
.modal-close:hover { color: #333; border-color: var(--border-hover); background: rgba(240, 240, 240, 0.95); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 60px 0 50px; }
    .hero-inner { flex-direction: column-reverse; gap: 32px; text-align: center; }
    .hero-text p { max-width: 100%; }
    .hero-visual { flex: none; }
    .hero-visual img { max-width: 200px; }
    .nav-hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 16px;
        gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a:hover { background: none; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .software-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .philosophy-card { padding: 24px; }
    .software-card { padding: 20px; }
}
