/* CSS Variables - Abu Brand */
:root {
    --color-primary: #d97757;
    --color-primary-dark: #c46545;
    --color-primary-light: #e8917a;
    --color-bg: #faf9f5;
    --color-bg-alt: #f5f3ed;
    --color-bg-white: #ffffff;
    --color-text: #29261b;
    --color-text-secondary: #5a5549;
    --color-text-muted: #8a8577;
    --color-border: #e5e2d9;
    --shadow-sm: 0 2px 8px rgba(41, 38, 27, 0.06);
    --shadow-md: 0 4px 20px rgba(41, 38, 27, 0.1);
    --shadow-lg: 0 8px 40px rgba(41, 38, 27, 0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s ease;
    --nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(250, 249, 245, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 249, 245, 0.95);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.nav-title-cn {
    color: var(--color-text-secondary);
    font-weight: 400;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(41, 38, 27, 0.05);
}

.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    background: var(--color-text);
    color: var(--color-bg) !important;
    padding: 7px 16px;
}

.nav-github:hover {
    background: #3d3a2e !important;
    color: var(--color-bg) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    text-align: center;
    padding: calc(var(--nav-height) + 64px) 24px 72px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.mascot-wrapper {
    margin-bottom: 28px;
}

.mascot {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 750;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tagline {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(217, 119, 87, 0.3);
}

.btn-secondary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-secondary:hover {
    background: #3d3a2e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   Section Common
   ============================================ */
section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: 88px 24px;
    background: var(--color-bg-white);
}

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

.feature-card {
    background: var(--color-bg);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ============================================
   Screenshots
   ============================================ */
.screenshots {
    padding: 88px 24px;
    background: var(--color-bg-alt);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 12px 12px 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-align: center;
}

.screenshot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.screenshot-card img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.screenshot-label {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--color-text);
}

.screenshot-caption {
    margin-top: 4px;
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ============================================
   Use Cases
   ============================================ */
.use-cases {
    padding: 88px 24px;
    background: var(--color-bg-white);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--color-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.use-case-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.use-case-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    padding: 8px;
}

.use-case-icon svg {
    width: 100%;
    height: 100%;
}

.use-case-card h3 {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--color-text);
}

.use-case-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-item {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding: 10px 12px;
    background: var(--color-bg-white);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
    line-height: 1.5;
}

/* ============================================
   Tech Architecture
   ============================================ */
.tech {
    padding: 88px 24px;
    background: var(--color-bg-alt);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tech-card {
    background: var(--color-bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.tech-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.tech-value {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 6px;
}

.tech-detail {
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ============================================
   Community / Get Started
   ============================================ */
.community {
    padding: 88px 24px;
    background: var(--color-bg-white);
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.step {
    max-width: 220px;
    text-align: center;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 6px;
}

.step p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.community-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Social / Community
   ============================================ */
.social {
    padding: 88px 24px;
    background: var(--color-bg-alt);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.social-card-wechat {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.social-card-wechat:hover {
    box-shadow: var(--shadow-md);
    border-color: #07c160;
}

.social-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: #07c160;
}

.social-card-icon svg {
    width: 100%;
    height: 100%;
}

.social-card-wechat h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 6px;
}

.social-card-wechat p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.social-qr-wrapper {
    display: flex;
    justify-content: center;
}

.social-qr {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
}

.social-card-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: var(--transition);
}

.social-link-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-text-secondary);
    transform: translateX(4px);
}

.social-link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.social-link-icon svg {
    width: 100%;
    height: 100%;
}

.social-link-card-static {
    cursor: default;
}

.social-link-card-static:hover {
    transform: none;
}

.social-link-xhs {
    background: #fe2c55;
    color: white;
}

.social-link-wechat-mp {
    background: #07c160;
    color: white;
}

.social-link-x {
    background: #000;
    color: white;
}

.social-link-github {
    background: #24292f;
    color: white;
}

.social-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-link-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.social-link-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.social-link-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.social-link-card:hover .social-link-arrow {
    color: var(--color-text);
    transform: translateX(2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-text);
    padding: 40px 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-bg);
    font-weight: 600;
    font-size: 1rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(250, 249, 245, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-bg);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(250, 249, 245, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 249, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--color-border);
        gap: 2px;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-github {
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 56px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .mascot {
        width: 110px;
        height: 110px;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .features, .screenshots, .use-cases, .tech, .community, .social {
        padding: 64px 20px;
    }

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

    .social-qr {
        width: 160px;
        height: 160px;
    }

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

    .use-case-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-meta {
        gap: 16px;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .steps {
        gap: 32px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .community-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .footer-links {
        gap: 16px;
    }
}
