:root {
    /* Apple-like color palette */
    --bg-color: #fbfbfd;
    --surface-color: #ffffff;
    --surface-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #FF7A00; /* FL Studio Orange */
    --accent-hover: #E06A00;
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 60px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 120px 0; }
@media (max-width: 768px) { .section-padding { padding: 80px 0; } }

.text-center { text-align: center; }

/* Typography System */
.h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lead {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

.nav-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i { color: var(--accent-color); }

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
}
.nav-link:hover { opacity: 1; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
}
.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn-secondary {
    background-color: var(--surface-secondary);
    color: var(--text-primary);
}
.btn-secondary:hover { background-color: #e5e5ea; }

.btn-nav-download {
    background-color: var(--text-primary);
    color: #fff;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 999px;
}
.btn-nav-download:hover { background-color: #000; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 30%, rgba(255,122,0,0.05) 0%, rgba(255,255,255,0) 60%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 24px;
}

.hero-title {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-primary) 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-meta {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

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

/* Intro Section */
.intro-section {
    background-color: #fff;
}
.intro-statement {
    max-width: 900px;
    margin: 0 auto;
}
.intro-statement p {
    font-size: clamp(22px, 3.2vw, 36px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 48px;
}

/* Apple-style subtle underline highlight for key terms */
.keyword-highlight {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 2px;
}
.keyword-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.keyword-highlight.is-in-view::after {
    transform: scaleX(1);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-list li i { color: var(--accent-color); }

/* Bento Features Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
    margin-top: 64px;
}

.bento-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-lg);
}

.bento-card .icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--surface-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.bento-card.accent .icon-wrapper {
    background: rgba(255, 122, 0, 0.1);
    color: var(--accent-color);
}

.bento-card h3 {

    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}
.bento-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

.btn-copy {
    background: var(--surface-color); 
    border: 1px solid var(--border-color); 
    border-radius: 6px;
    padding: 6px 12px; 
    font-size: 12px; 
    color: var(--text-primary); 
    cursor: pointer;
    transition: all 0.2s; 
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
    margin-top: 8px;
    font-weight: 500;
}

.btn-copy:hover { 
    background: var(--border-color); 
}

/* GitHub Section */
.github-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 48px 0;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* Community Section */
.community-section {
    background-color: var(--surface-color);
}

.community-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin: 48px auto 0;
    overflow: hidden;
    background-color: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.community-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    padding: 28px;
}

.community-item + .community-item {
    border-left: 1px solid var(--border-color);
}

.community-details {
    min-width: 0;
}

.community-name {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.community-id {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.community-copy {
    min-width: 72px;
    min-height: 44px;
    flex-shrink: 0;
    justify-content: center;
    margin-top: 0;
    padding: 10px 14px;
}

/* Team Section */
.team-section {
    background-color: var(--bg-color);
}
.team-section[hidden] { display: none; }
#community,
#team,
#feedback {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}
.team-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin: 48px auto 0;
}
.team-card {
    min-width: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.team-card:hover {
    translate: 0 -4px;
    box-shadow: var(--shadow-md);
}
.team-avatar {
    width: 128px;
    height: 128px;
    position: relative;
    flex: 0 0 128px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: 36px;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-avatar img { transform: scale(1.025); }
.team-avatar-fallback {
    color: var(--text-secondary);
    font-size: 36px;
    font-weight: 600;
}
.team-identity { margin-top: 24px; }
.team-alias {
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.01em;
}
.team-name {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}
.team-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.team-role {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.role-orange { color: #9a4a00; background-color: #fff1e5; }
.role-red { color: #a12a2a; background-color: #fdecec; }
.role-blue { color: #245c9e; background-color: #eaf2fb; }
.role-cyan { color: #176b75; background-color: #e5f5f6; }
.role-purple { color: #68439b; background-color: #f1ebf8; }
.role-green { color: #397047; background-color: #eaf4ec; }
.role-neutral { color: #5f6065; background-color: #ececef; }
.team-contact-section {
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
}
.team-contact-label {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}
.team-contacts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.team-contact {
    --contact-color: var(--text-secondary);
    --contact-bg: var(--surface-secondary);
    --contact-bg-hover: #ececef;
    --contact-border: transparent;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    color: var(--contact-color);
    background-color: var(--contact-bg);
    border: 1px solid var(--contact-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.team-contact-platform-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: currentColor;
    -webkit-mask: var(--platform-icon) center / contain no-repeat;
    mask: var(--platform-icon) center / contain no-repeat;
}
.team-contact-text,
.team-contact .copy-state-success {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.team-contact:hover,
button.team-contact:hover {
    color: var(--contact-color);
    background-color: var(--contact-bg-hover);
    border-color: var(--contact-color);
    transform: translateY(-1px);
}
.contact-platform--wechat {
    --contact-color: #168447;
    --contact-bg: #edf8f1;
    --contact-bg-hover: #e1f3e8;
    --contact-border: #cce9d7;
    --platform-icon: url("../assets/icons/platforms/wechat.svg");
}
.contact-platform--qq {
    --contact-color: #1769b0;
    --contact-bg: #edf5fd;
    --contact-bg-hover: #e1effb;
    --contact-border: #c9e1f6;
    --platform-icon: url("../assets/icons/platforms/qq.svg");
}
.contact-platform--telegram {
    --contact-color: #1688c4;
    --contact-bg: #edf8fd;
    --contact-bg-hover: #e0f2fa;
    --contact-border: #c7e7f5;
    --platform-icon: url("../assets/icons/platforms/telegram.svg");
}
.contact-platform--x {
    --contact-color: #252529;
    --contact-bg: #f0f0f2;
    --contact-bg-hover: #e5e5e8;
    --contact-border: #d9d9dd;
    --platform-icon: url("../assets/icons/platforms/x.svg");
}
.contact-platform--douyin {
    --contact-color: #c92f58;
    --contact-bg: #fff0f4;
    --contact-bg-hover: #ffe4eb;
    --contact-border: #f7ccd8;
    --platform-icon: url("../assets/icons/platforms/douyin.svg");
}
.contact-platform--kuaishou {
    --contact-color: #d85d17;
    --contact-bg: #fff3eb;
    --contact-bg-hover: #ffe8da;
    --contact-border: #f5d4bf;
    --platform-icon: url("../assets/icons/platforms/kuaishou.svg");
}
.contact-platform--bilibili {
    --contact-color: #d34576;
    --contact-bg: #fff0f6;
    --contact-bg-hover: #ffe4ef;
    --contact-border: #f5cddd;
    --platform-icon: url("../assets/icons/platforms/bilibili.svg");
}
.contact-platform--email {
    --contact-color: #6853a5;
    --contact-bg: #f3effd;
    --contact-bg-hover: #ebe4fa;
    --contact-border: #ddd3f2;
    --platform-icon: url("../assets/icons/platforms/email.svg");
}
.contact-platform--github {
    --contact-color: #24292f;
    --contact-bg: #f0f1f2;
    --contact-bg-hover: #e4e6e8;
    --contact-border: #d7dade;
    --platform-icon: url("../assets/icons/platforms/github.svg");
}
.contact-platform--website {
    --contact-color: #087c8e;
    --contact-bg: #eaf8fa;
    --contact-bg-hover: #dcf1f4;
    --contact-border: #c4e6eb;
    --platform-icon: url("../assets/icons/platforms/website.svg");
}
.btn-copy.team-contact-copy.is-copied {
    color: #087f5b;
    border-color: #a9dfc8;
    background-color: #e8f8f1;
    transform: none;
}
.btn-copy.team-contact-copy.is-copy-failed {
    color: #b83a2f;
    border-color: #efc3bd;
    background-color: #fff0ee;
    transform: none;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 64px auto 0;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:first-child { border-top: 1px solid var(--border-color); }

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}
.faq-question:hover { color: var(--accent-color); }
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

/* Donate Section */
.donate-section {
    text-align: center;
    padding: 80px 0;
}
.donate-trigger {
    color: var(--text-secondary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.donate-trigger:hover { color: var(--accent-color); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    color: var(--text-secondary);
    padding: 8px;
}
.qr-codes {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}
.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.qr-img {
    width: 140px;
    height: 140px;
    background: var(--surface-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    object-fit: contain;
}
.qr-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}
.feedback-panel {
    max-width: 960px;
    margin: 0 auto 48px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background-color: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.feedback-panel[hidden] { display: none; }
.feedback-copy {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.feedback-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.feedback-copy h2 {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.35;
}
.feedback-copy p {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}
.feedback-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.feedback-button {
    min-height: 44px;
    padding: 10px 18px;
    background-color: var(--surface-color);
    font-size: 14px;
}
.feedback-email-text {
    max-width: 280px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.feedback-email-text a:hover { color: var(--text-primary); }
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.modal-close::before {
    content: "×";
    font-size: 26px;
    line-height: 1;
}
.icons-ready .modal-close::before { display: none; }
.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    text-align: center;
    color: #a1a1a6;
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile Menu */
.mobile-nav-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0; width: 100%; height: calc(100vh - var(--nav-height));
    background: #fff;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-quick-links,
.mobile-bottom-nav {
    display: none;
}

/* Media Queries (Mobile Optimization) */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-2 { grid-column: span 1; }
    .bento-grid .large-card { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links, .nav-download { display: none; }
    .mobile-menu-btn { display: block; }

    /* Mobile homepage structure and navigation */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
    main {
        display: flex;
        flex-direction: column;
    }
    main > #hero { order: 1; }
    main > .mobile-quick-links { order: 2; }
    main > #faq { order: 3; }
    main > #community { order: 4; }
    main > #donate { order: 5; }
    main > #github { order: 6; }
    main > #team { order: 7; }

    #intro,
    #features {
        display: none;
    }
    .footer-links a[href="#intro"] { display: none; }

    #hero,
    #github,
    #community,
    #team,
    #faq,
    #donate {
        scroll-margin-top: calc(var(--nav-height) + 16px);
    }

    /* Compact mobile hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 36px;
        justify-content: flex-start;
    }
    .hero-content {
        width: 100%;
        padding-inline: 18px;
    }
    .hero-title {
        max-width: 430px;
        margin: 0 auto 18px;
        padding: 0 4px;
        font-size: clamp(30px, 8.4vw, 36px);
        line-height: 1.08;
    }
    .hero-subtitle {
        max-width: 360px;
        margin: 0 auto 28px;
        padding: 0;
        font-size: 15px;
        line-height: 1.55;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 430px;
        margin: 0 auto 24px;
        padding: 0;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        padding: 11px 12px;
        font-size: 14px;
    }
    .hero-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }

    /* 2×2 shortcuts, revealed once when scrolled into view */
    .mobile-quick-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 32px);
        max-width: 520px;
        margin: 0 auto 24px;
        padding: 10px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        box-shadow: var(--shadow-sm);
    }
    .mobile-quick-link {
        min-width: 0;
        min-height: 62px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        color: var(--text-primary);
        background: var(--surface-secondary);
        border: 1px solid transparent;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }
    html.quick-links-motion .mobile-quick-links:not(.is-visible) .mobile-quick-link {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    html.quick-links-motion .mobile-quick-links .mobile-quick-link {
        transition: opacity 480ms ease,
                    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
                    background-color 120ms ease,
                    border-color 120ms ease;
    }
    html.quick-links-motion .mobile-quick-links.is-visible .mobile-quick-link {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    html.quick-links-motion .mobile-quick-links .mobile-quick-link:nth-child(2) { transition-delay: 75ms; }
    html.quick-links-motion .mobile-quick-links .mobile-quick-link:nth-child(3) { transition-delay: 150ms; }
    html.quick-links-motion .mobile-quick-links .mobile-quick-link:nth-child(4) { transition-delay: 225ms; }
    .mobile-quick-link:active {
        border-color: var(--border-color);
        background: #fff;
        transform: scale(0.98);
    }
    html.quick-links-motion .mobile-quick-links.is-visible .mobile-quick-link:active {
        transform: scale(0.98);
        transition-delay: 0ms;
        transition-duration: 120ms;
    }
    .mobile-quick-link svg {
        width: 19px;
        height: 19px;
        flex: 0 0 auto;
        color: var(--accent-color);
    }

    .section-padding { padding-block: 56px; }

    .feedback-panel {
        margin-bottom: 40px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .feedback-copy { align-items: flex-start; }
    .feedback-actions { align-items: stretch; }
    .feedback-button { width: 100%; }
    .feedback-email-text {
        max-width: 100%;
        text-align: center;
    }
    /* GitHub & FAQ Mobile */
    #github { padding-block: 48px; }
    .github-stats {
        width: 100%;
        max-width: 360px;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin: 30px auto;
    }
    .github-stats .stat-item {
        min-width: 0;
        flex: 1 1 50%;
    }
    .github-stats .stat-number {
        margin-bottom: 4px;
        line-height: 1;
    }
    .faq-question { padding: 20px 0; font-size: 16px; }

    /* Community Mobile */
    .community-panel {
        grid-template-columns: 1fr;
        margin-top: 26px;
    }
    .community-item {
        min-height: 66px;
        padding: 11px 16px;
        gap: 12px;
    }
    .community-item + .community-item {
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }
    .community-name {
        margin-bottom: 2px;
        font-size: 13px;
        line-height: 1.2;
    }
    .community-id {
        font-size: 17px;
        line-height: 1.25;
    }
    .community-copy {
        min-width: 68px;
        min-height: 44px;
        padding: 8px 12px;
    }

    /* Compact mobile team cards */
    .team-list {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-top: 28px;
        gap: 14px;
    }
    .team-card {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        grid-template-areas:
            "avatar identity"
            "avatar roles"
            "contacts contacts";
        column-gap: 14px;
        row-gap: 0;
        padding: 16px;
        align-items: start;
        border-radius: 20px;
        text-align: left;
    }
    .team-avatar {
        grid-area: avatar;
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 20px;
    }
    .team-avatar-fallback { font-size: 24px; }
    .team-identity {
        grid-area: identity;
        min-width: 0;
        margin-top: 0;
    }
    .team-alias {
        font-size: 18px;
        line-height: 1.25;
    }
    .team-name {
        margin-top: 2px;
        font-size: 12px;
    }
    .team-roles {
        grid-area: roles;
        justify-content: flex-start;
        gap: 5px;
        margin-top: 8px;
    }
    .team-role {
        padding: 4px 7px;
        font-size: 10px;
        line-height: 1.25;
    }
    .team-contact-section {
        grid-area: contacts;
        width: 100%;
        margin-top: 12px;
        padding-top: 11px;
        border-top: 1px solid var(--border-color);
    }
    .team-contact-label { display: none; }
    .team-contacts {
        justify-content: flex-start;
        gap: 7px;
    }
    .team-contact {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: 10px;
    }
    .team-contact-platform-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
        background-color: transparent;
        background-image: var(--platform-icon);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .team-contact-text,
    .team-contact .copy-state-success {
        display: none !important;
    }

    .donate-section {
        width: 100%;
        padding: 52px 20px;
    }

    /* Fixed mobile bottom navigation */
    .mobile-bottom-nav {
        position: fixed;
        z-index: 90;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 58px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.94);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
        backdrop-filter: saturate(160%) blur(16px);
        -webkit-backdrop-filter: saturate(160%) blur(16px);
    }
    .mobile-bottom-nav a {
        min-width: 0;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        color: var(--text-secondary);
        border-radius: 10px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
    }
    .mobile-bottom-nav a:active {
        color: var(--text-primary);
        background: var(--surface-secondary);
    }
    .mobile-bottom-nav svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
    }
    
    /* Modal Mobile */
    .modal-content { padding: 32px 20px; }
    .qr-codes { flex-direction: column; align-items: center; gap: 24px; }
    
    /* Footer Mobile */
    .footer-content { align-items: flex-start; padding: 0 24px; }
    .footer-links { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-bottom { text-align: left; padding: 24px; align-items: flex-start; }
}

@media (max-width: 374px) {
    .hero-actions { grid-template-columns: 1fr; }
    .hero-actions .btn { min-height: 42px; }
}

@media (min-width: 769px) and (max-width: 900px) {
    .team-list {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}


/* Animation Utilities */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Section-level stagger targets: large list/panel parents stay static. */
html.js:not(.animations-unavailable) [data-stagger-section="community"] .text-center,
html.js:not(.animations-unavailable) [data-stagger-section="community"] .community-item {
    opacity: 0;
    transform: translateY(10px);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .hero-meta,
    .keyword-highlight::after,
    [data-stagger-section="community"] .text-center,
    [data-stagger-section="community"] .community-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html.quick-links-motion .mobile-quick-links .mobile-quick-link {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Engineering and accessibility safeguards */
html {
    scroll-behavior: smooth;
}

body.scroll-locked {
    overflow: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(255, 122, 0, 0.45);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-no-shrink { flex-shrink: 0; }
.intro-title { margin-bottom: 40px; }
.bento-copy-fill { margin-bottom: auto; }
.translation-count {
    margin-top: 24px;
    color: var(--accent-color);
    font-size: 48px;
    font-weight: 500;
}
.section-lead { margin-top: 16px; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.faq-section { background-color: var(--surface-secondary); }
.btn-github { background-color: #24292e; }
.donate-title { margin-bottom: 8px; }
.donate-copy {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}
.modal-title { margin-bottom: 16px; }
.modal-copy {
    color: var(--text-secondary);
    font-size: 14px;
}
.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}
.copy-state-success,
.copy-icon-success { display: none; }
.btn-copy.is-copied {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-copy.is-copied .copy-state-default,
.btn-copy.is-copied .copy-icon-default { display: none; }
.btn-copy.is-copied .copy-state-success,
.btn-copy.is-copied .copy-icon-success { display: inline; }
.faq-answer p { padding-top: 8px; }

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn::before {
    content: "☰";
    font-size: 24px;
    line-height: 1;
}
.icons-ready .mobile-menu-btn::before { display: none; }
.menu-icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.mobile-menu-btn[aria-expanded="true"] .menu-icon-close { display: block; }

.modal-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qr-img[hidden],
.qr-fallback[hidden] { display: none; }

html:not(.js) .hero-title,
html:not(.js) .hero-subtitle,
html:not(.js) .hero-actions,
html:not(.js) .hero-meta,
html:not(.js) .reveal-up,
html.animations-unavailable .hero-title,
html.animations-unavailable .hero-subtitle,
html.animations-unavailable .hero-actions,
html.animations-unavailable .hero-meta,
html.animations-unavailable .reveal-up,
html.animations-unavailable [data-stagger-section="community"] .text-center,
html.animations-unavailable [data-stagger-section="community"] .community-item {
    opacity: 1;
    transform: none;
}

@supports (min-height: 100dvh) {
    @media (min-width: 769px) {
        .hero { min-height: 100dvh; }
    }
    .mobile-nav-overlay { height: calc(100dvh - var(--nav-height)); }
}

@media (max-width: 768px) {
    html.js:not(.animations-unavailable) [data-stagger-section="community"] .text-center,
    html.js:not(.animations-unavailable) [data-stagger-section="community"] .community-item {
        transform: translateY(7px);
    }

    .nav-wrapper.scrolled {
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
    }
    .modal-overlay {
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .mobile-menu-btn { display: inline-flex; }
}

@media (hover: none) {
    .bento-card:hover,
    .btn-primary:hover,
    .btn-accent:hover { transform: none; }
}
