:root {
    --primary: #0a0a0a;
    --accent: #4f46e5;
    --accent-light: #818cf8;
    --surface: #ffffff;
    --surface-dim: #f8f9fa;
    --surface-alt: #f3f4f6;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --gradient-start: #4f46e5;
    --gradient-end: #7c3aed;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfbff 42%, #ffffff 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    color: var(--text);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 200;
    padding: 1.5rem;
    flex-direction: column;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-close svg {
    width: 28px;
    height: 28px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links a {
    padding: 1rem;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.mobile-nav-links a:hover {
    background: var(--surface-dim);
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.06)),
        white;
    box-shadow: var(--shadow);
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -80px;
    top: -140px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.24), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    max-width: 760px;
    margin-top: 1.25rem;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.02;
}

.page-hero p {
    max-width: 720px;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.meta-line {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    background: var(--primary);
    color: white;
    box-shadow: 0 16px 32px rgba(10, 10, 10, 0.16);
}

.primary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
}

.secondary-button:hover {
    background: white;
    transform: translateY(-2px);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-card,
.note-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.card-accent {
    background:
        linear-gradient(180deg, rgba(79, 70, 229, 0.04), rgba(79, 70, 229, 0)),
        white;
}

.info-card h2,
.note-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.check-list,
.step-list {
    padding-left: 1.25rem;
}

.check-list li,
.step-list li {
    margin-bottom: 0.9rem;
    color: var(--text);
}

.note-panel {
    margin-top: 1.5rem;
}

.note-panel p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.note-panel p:last-child {
    margin-bottom: 0;
}

footer {
    margin-top: 5rem;
    background: var(--primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-family {
    margin-top: 0.5rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-family a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.lang-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lang-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lang-popup-overlay.active {
    display: flex !important;
}

.lang-popup {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.lang-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.lang-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.lang-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lang-popup-close:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.lang-popup .lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.lang-popup .lang-grid a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.lang-popup .lang-grid a:hover {
    background: var(--surface-alt);
    border-color: var(--border);
}

.lang-popup .lang-grid a.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav,
    .page-shell,
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-hero {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .info-card,
    .note-panel {
        padding: 1.5rem;
        border-radius: 22px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .lang-popup .lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .page-hero h1 {
        font-size: 2.4rem;
    }

    .lang-popup .lang-grid {
        grid-template-columns: 1fr;
    }
}
