:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #f59e0b;
    --accent-soft: #fffbeb;
    --success-soft: #ecfdf5;
    --success: #059669;
    --danger-soft: #fef2f2;
    --danger: #dc2626;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --max: 760px;
    --max-wide: 960px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Hero */
.hero {
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
    color: #fff;
    padding: 56px 24px 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, rgba(255,255,255,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-inner.text-left { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero .brand {
    display: block;
    font-size: clamp(15px, 3vw, 17px);
    font-weight: 500;
    opacity: 0.92;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-inner.text-left .hero-meta { justify-content: flex-start; }

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    flex-shrink: 0;
}

.hero-meta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-meta a:hover { opacity: 0.9; text-decoration: underline; }

.lang-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.lang-pills span {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

/* Layout */
.page-wrap {
    max-width: var(--max);
    margin: -36px auto 48px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-wrap.wide { max-width: var(--max-wide); }

/* TOC */
.toc-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 28px;
}

.toc-card h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
}

.toc-grid a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
}

.toc-grid a:hover { color: var(--primary); text-decoration: none; }

/* Section cards */
.section-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 28px 28px 26px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.section-card:hover { box-shadow: var(--shadow); }

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: var(--primary-soft);
}

.section-card h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    padding-top: 8px;
}

.section-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 8px;
}

.section-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.section-card p:last-child { margin-bottom: 0; }

.section-card ul {
    margin: 12px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.section-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.section-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.section-card ul li strong {
    color: var(--text);
    font-weight: 600;
}

/* Notices */
.notice {
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
}

.notice-blue {
    background: var(--primary-soft);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.notice-green {
    background: var(--success-soft);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.notice-amber {
    background: var(--accent-soft);
    border: 1px solid #fde68a;
    color: #92400e;
}

.notice-red {
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notice strong { font-weight: 600; }

/* Store boxes */
.store-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 14px;
}

.store-box.google { border-left-color: #34a853; }

.store-box h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.store-box p { margin: 0; font-size: 14px; }

/* Steps */
.steps-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    counter-reset: step;
}

.steps-list li {
    counter-increment: step;
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 15px;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}

.faq-q {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 15px;
}

.faq-a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-a a { font-weight: 500; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
}

.feature-card .fc-icon { font-size: 28px; margin-bottom: 10px; }

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Contact card */
.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin-top: 14px;
}

.contact-card .cc-icon { font-size: 36px; margin-bottom: 12px; }

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-card a {
    font-size: 15px;
    font-weight: 600;
}

/* Buttons */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    text-decoration: none;
    color: var(--primary);
}

/* Home link grid */
.intro-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 28px 28px 8px;
    margin-bottom: 24px;
    text-align: center;
}

.intro-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.link-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #bfdbfe;
    text-decoration: none;
}

.link-card .link-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.link-card .link-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.link-card .link-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.link-card:hover .link-title { color: var(--primary); }

.contact-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-strip h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-strip a {
    font-size: 15px;
    font-weight: 600;
}

/* Footer */
.site-footer {
    max-width: var(--max-wide);
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.site-footer.narrow { max-width: var(--max); }

.footer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.back-home:hover { color: var(--primary); text-decoration: none; }

.text-muted { color: var(--text-muted); font-size: 14px; }

@media (max-width: 600px) {
    .hero { padding: 44px 18px 64px; }
    .section-card { padding: 22px 20px; }
    .toc-card { padding: 20px; }
    .section-head { gap: 12px; }
    .section-icon { width: 40px; height: 40px; font-size: 20px; }
    .links-grid { grid-template-columns: 1fr; }
}
