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

:root {
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --white: #ffffff;
    --accent: #0071e3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.47;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== Header / Nav ===== */
.header {
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.72);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    height: 44px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 5.5rem 1.5rem 2rem;
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: -0.003em;
}

.hero-headline {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.hero-subheadline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    letter-spacing: -0.005em;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: -0.005em;
}

.download-icon {
    flex-shrink: 0;
}

.btn-download-win {
    background: var(--accent);
    color: var(--white);
}

.btn-download-win:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-download-mac {
    background: var(--text);
    color: var(--white);
}

.btn-download-mac:hover {
    background: #333336;
    transform: scale(1.02);
}

.btn-download-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.download-buttons-large {
    gap: 1rem;
}

.btn-secondary {
    display: inline-block;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.005em;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* ===== Showcase ===== */
.showcase {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
}

.showcase-card {
    background: linear-gradient(165deg, #f5f5f7 0%, #e8e8ed 40%, #dcdce2 100%);
    border-radius: 28px;
    overflow: hidden;
    padding: 3rem 3rem 0;
    position: relative;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.showcase-screen {
    position: relative;
    z-index: 1;
    background: #1d1d1f;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    overflow: hidden;
    box-shadow: 0 -4px 80px rgba(0, 0, 0, 0.08);
}

/* App UI simulation */
.app-ui {
    display: flex;
    min-height: 380px;
}

.app-sidebar {
    width: 180px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 0.15rem;
}

.sidebar-dot:first-child { margin-top: 0; }
.dot-green { background: #34c759; }
.dot-blue { background: #5ac8fa; }
.dot-purple { background: #af52de; }

.sidebar-item {
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 0.35rem;
    transition: background 0.2s ease;
}

.sidebar-item.active {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.app-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-query-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.query-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.query-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
}

.query-cursor {
    width: 2px;
    height: 16px;
    background: var(--accent);
    border-radius: 1px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.app-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.result-row:hover:not(.result-header) {
    background: rgba(255, 255, 255, 0.03);
}

.result-header {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.positive {
    color: #30d158;
}

/* ===== Features ===== */
.features {
    max-width: 980px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Bottom CTA ===== */
.bottom-cta {
    text-align: center;
    padding: 6rem 1.5rem 7rem;
    max-width: 780px;
    margin: 0 auto;
}

.bottom-headline {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.75rem 1.5rem;
    background: var(--bg-secondary);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

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

.footer-divider {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.footer-copyright {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.72rem;
}

.footer-icp {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.72rem;
    margin-top: 0.5rem;
}

.footer-icp a {
    color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-icp a:hover {
    color: var(--text-secondary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.1s forwards;
}

.hero-headline {
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.2s forwards;
}

.hero-subheadline {
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.3s forwards;
}

.hero-desc {
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.4s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.5s forwards;
}

.showcase-card {
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.6s forwards;
}

.feature-item {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.8s; }
.feature-item:nth-child(2) { animation-delay: 0.9s; }
.feature-item:nth-child(3) { animation-delay: 1.0s; }

/* ===== Homepage ===== */
.home-hero {
    text-align: center;
    padding: 6rem 1.5rem 2rem;
    max-width: 780px;
    margin: 0 auto;
}

.home-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.1s forwards;
}

.home-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.55;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.25s forwards;
}

.home-products {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.35s forwards;
}

/* Product Card */
.home-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(165deg, #f5f5f7 0%, #e8e8ed 50%, #dcdce2 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.45s forwards;
}

.home-product-card:hover {
    transform: scale(1.008);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.1);
}

.home-card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-card-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.07) 0%, transparent 65%);
}

.home-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

.home-card-info {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-card-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.home-card-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.home-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 340px;
    margin-bottom: 1.5rem;
}

.home-card-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s ease;
}

.home-product-card:hover .home-card-link {
    color: #005bb5;
}

/* Mini App Preview */
.home-card-visual {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 2rem 0;
}

.home-card-app {
    width: 100%;
    max-width: 380px;
    background: #1d1d1f;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.mini-titlebar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mini-red { background: #ff5f57; }
.mini-yellow { background: #febc2e; }
.mini-green { background: #28c840; }

.mini-body {
    display: flex;
    min-height: 200px;
}

.mini-sidebar {
    width: 70px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-sidebar-item {
    height: 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
}

.mini-sidebar-item.active {
    background: rgba(99, 102, 241, 0.25);
}

.mini-main {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-query {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.mini-ai-icon {
    flex-shrink: 0;
}

.mini-query-text {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.mini-cursor {
    width: 1.5px;
    height: 12px;
    background: var(--accent);
    border-radius: 1px;
    animation: blink 1s step-end infinite;
}

.mini-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mini-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.7fr;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mini-row span {
    height: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mini-row.header span {
    background: rgba(255, 255, 255, 0.06);
    height: 6px;
}

.mini-green-text {
    background: rgba(48, 209, 88, 0.25) !important;
}

.logo {
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .home-hero {
        padding: 4rem 1.25rem 1.5rem;
    }

    .home-card-content {
        flex-direction: column;
        min-height: auto;
    }

    .home-card-info {
        padding: 2rem 2rem 1rem;
    }

    .home-card-visual {
        padding: 0 1.5rem;
    }

    .home-card-name {
        font-size: 2rem;
    }

    .home-product-card {
        border-radius: 22px;
    }

    .hero {
        padding: 4rem 1.25rem 1.5rem;
    }

    .showcase-card {
        padding: 2rem 1.5rem 0;
        border-radius: 22px;
    }

    .app-sidebar {
        width: 120px;
        padding: 1rem;
    }

    .app-ui {
        min-height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .feature-item {
        padding: 1.5rem 1rem;
    }

    .bottom-cta {
        padding: 4rem 1.25rem 5rem;
    }
}

@media (max-width: 480px) {
    .app-sidebar {
        display: none;
    }

    .showcase-card {
        padding: 1.5rem 1rem 0;
        border-radius: 18px;
    }

    .showcase-screen {
        border-radius: 12px 12px 0 0;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-download {
        justify-content: center;
        width: 100%;
    }
}
