:root {
    --primary: #0071E3;
    --primary-gradient: linear-gradient(135deg, #0071E3 0%, #00C6FF 100%);
    --text: #1D1D1F;
    --text-sub: #6E6E73;
    --text-light: #86868B;
    --bg: #FFFFFF;
    --bg-soft: #F5F5F7;
    --line: rgba(0, 0, 0, 0.1);
    --radius-xl: 32px;
    --radius-lg: 20px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.logo-area:link,
.logo-area:visited,
.logo-area:hover,
.logo-area:active,
.logo-area:focus {
    color: var(--text);
    text-decoration: none;
    outline: none;
}

.logo-area * {
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 22px;
    color: inherit;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
}

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

.nav-cta {
    background: var(--text);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
}

.language-link {
    color: var(--primary);
    font-weight: 700;
}

.language-switcher {
    position: relative;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #F6F7F9;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.language-toggle::after {
    content: '▾';
    margin-left: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.language-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    z-index: 20;
}

.language-switcher.is-open .language-menu {
    display: grid;
    gap: 4px;
}

.language-choice {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.language-choice:hover,
.language-choice.is-active {
    background: #F6F7F9;
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #F0F7FF 0%, #FFFFFF 60%);
}

.hero-logo-large {
    width: 200px;
    height: 200px;
    margin-bottom: 48px;
    border-radius: 44px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
}

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

.hero-sub {
    font-size: 22px;
    color: var(--text-sub);
    max-width: 700px;
    margin: 0 auto 56px;
}

.hero-mobile-break {
    display: none;
}

.app-status {
    display: inline-block;
    background: var(--text);
    color: #fff;
    padding: 18px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 18px;
}

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

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

.section-title h2 {
    font-size: 48px;
    font-weight: 800;
}

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

.feature-card {
    background: var(--bg);
    padding: 64px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 32px;
    display: inline-block;
    background: var(--bg-soft);
    width: 90px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    border-radius: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 17px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Data & Notice */
.data-box {
    background: var(--text);
    color: #fff;
    padding: 100px 60px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 140px;
}

.data-box h2 { font-size: 44px; margin-bottom: 24px; }
.data-box p { font-size: 19px; opacity: 0.7; max-width: 800px; margin: 0 auto; }

.notice-box {
    background: var(--bg-soft);
    padding: 44px 52px;
    border-radius: var(--radius-xl);
    max-width: 860px;
    margin: 0 auto;
}

.notice-box h3 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 24px;
}

.notice-box ul {
    display: grid;
    gap: 16px;
    padding-left: 22px;
}

.notice-box li {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-sub);
    word-break: keep-all;
}

/* Policy Content (Simplified) */
.policy-header { padding: 120px 0 60px; text-align: center; }
.policy-header h1 { font-size: 48px; }
.policy-main { max-width: 800px; margin: 0 auto 100px; }
.policy-card {
    background: var(--bg);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

/* Simple Footer Styling */
.footer-simple {
    padding: 60px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    margin-top: 80px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.copyright {
    font-size: 13px;
    color: var(--text-light);
}

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

.footer-right a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.footer-right a:hover {
    color: var(--primary);
}

/* Responsive & Safe Area */
body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.menu-toggle {
    display: none;
    background: var(--bg-soft);
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    * {
        box-sizing: border-box !important;
    }

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

    .nav-wrapper {
        height: 72px;
        width: 100%;
    }

    .logo-area {
        max-width: calc(100% - 100px);
    }

    .logo-text {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        padding: 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        z-index: 1001;
    }

    header.nav-open nav {
        display: block !important;
    }

    nav ul {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px;
    }

    nav a {
        display: block;
        font-size: 16px;
        padding: 12px 0;
        white-space: nowrap !important;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .language-switcher {
        width: 100%;
        padding: 4px 0;
    }

    .language-toggle {
        width: 100%;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 18px;
    }

    .language-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
        box-shadow: none;
    }

    .language-choice {
        width: 100%;
        padding: 10px 12px;
        white-space: normal !important;
        text-align: left;
        word-break: keep-all;
    }

    /* Hero & Sections */
    h1 { font-size: 32px; line-height: 1.2; word-break: keep-all; margin-bottom: 16px; }
    .hero { padding: 60px 0 40px; width: 100%; }
    .hero-sub { 
        font-size: 15px; 
        line-height: 1.6;
        margin: 0 auto 32px; 
        padding: 0 16px;
        max-width: 100%;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-mobile-break {
        display: block;
    }
    
    .section-title h2 { font-size: 28px; }
    .feature-grid { grid-template-columns: 1fr; gap: 20px; width: 100%; }
    .feature-card { padding: 40px 24px; width: 100%; }
    
    .data-box { padding: 60px 24px; margin-bottom: 60px; width: 100%; }
    .data-box h2 { font-size: 28px; }
    .data-box p { font-size: 16px; line-height: 1.65; }
    .notice-box {
        padding: 32px 24px;
        border-radius: 24px;
    }
    .notice-box h3 {
        font-size: 22px;
        margin-bottom: 18px;
    }
    .notice-box ul {
        gap: 12px;
        padding-left: 18px;
    }
    .notice-box li {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Policy Documents */
    .policy-header { 
        padding: 60px 0 40px; 
        text-align: center; 
        width: 100%;
    }
    .policy-header h1 { font-size: 32px; margin-bottom: 20px; }
    .policy-header p { 
        font-size: 15px; 
        line-height: 1.65; 
        max-width: 100%;
        margin: 0 auto;
        padding: 0 12px;
        word-break: keep-all;
        color: var(--text-sub);
    }
    
    .policy-main { 
        padding: 0; 
        margin-bottom: 60px; 
        width: 100%;
    }
    .policy-card { 
        padding: 24px; 
        margin-bottom: 24px; 
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 20px;
        overflow-wrap: break-word;
    }
    .policy-card h2 { font-size: 20px; margin-bottom: 16px; line-height: 1.4; }
    .policy-card p, .policy-card li { 
        font-size: 15px; 
        line-height: 1.7; 
        word-break: keep-all; 
        overflow-wrap: break-word; 
    }
    .policy-card ul { 
        padding-left: 20px; 
        margin: 16px 0;
        width: 100%;
    }
    .policy-card li { margin-bottom: 12px; }

    .footer-simple { padding: 40px 0; width: 100%; }
    .footer-bottom {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        width: 100%;
    }
    .footer-left {
        flex-direction: column;
        gap: 8px;
    }
    .footer-right {
        gap: 16px 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-right a { font-size: 13px; }
}
