/* Design System & Variables */
:root {
    --primary: #ea580c; /* Amber Orange like qclawai.com */
    --hover: #c2410c;
    --secondary: #f97316; 
    --bg-light: #ffffff;
    --bg-card: #f8fafc;
    --bg-section: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.8);
    --gradient: linear-gradient(135deg, #ea580c, #fb923c);
    
    --container-width: 1400px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Background Decorations */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.03) 1px, transparent 0);
    background-size: 60px 60px;
    z-index: -1;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.05) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

#orb-1 { top: -200px; right: -200px; }
#orb-2 { bottom: -200px; left: -200px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.logo-icon {
    background: var(--gradient);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    color: white;
}

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

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

.nav-links a:not(.nav-cta):hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.nav-cta:hover {
    background: var(--hover);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 6rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
    min-height: 80vh;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* 优化副标题字号，创建更好的视觉层次 */
.hero-title .gradient-text {
    font-size: 0.85em; /* 相对于主标题缩小15% */
    font-weight: 600; /* 稍微减轻字重 */
    display: block;
    margin-top: 0.2rem;
}

/* 小龙虾动画效果 */
.animated-text {
    display: inline-block;
    position: relative;
    /* 确保继承渐变背景 */
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    -webkit-text-fill-color: inherit;
}

.animated-text .char {
    display: inline-block;
    animation: charBounce 2s ease-in-out infinite;
    animation-delay: var(--delay);
    transform-origin: center bottom;
    transition: all 0.3s ease;
    /* 确保每个字符都继承渐变色 */
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 备用方案：如果渐变不工作，显示橙色 */
    color: var(--primary);
}

/* 确保在支持背景裁剪的浏览器中使用渐变 */
@supports (-webkit-background-clip: text) {
    .animated-text .char {
        -webkit-text-fill-color: transparent;
    }
}

.animated-text:hover .char {
    animation: charWiggle 0.6s ease-in-out;
    animation-delay: calc(var(--delay) * 0.5);
}

/* 字符弹跳动画 */
@keyframes charBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    40% {
        transform: translateY(-12px) scale(1.1) rotate(-2deg);
    }
    60% {
        transform: translateY(-6px) scale(1.05) rotate(1deg);
    }
}

/* 悬停字符摆动动画 */
@keyframes charWiggle {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
    }
    25% { 
        transform: rotate(-8deg) scale(1.15); 
    }
    75% { 
        transform: rotate(8deg) scale(1.15); 
    }
}

/* 移除彩虹色彩效果，保持原有渐变 */

/* 添加一个闪烁效果 */
.animated-text::after {
    content: '✨';
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 0.5em;
    opacity: 0;
    animation: sparkle 4s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 90%, 100% { 
        opacity: 0; 
        transform: scale(0.3) rotate(0deg);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1) rotate(180deg);
    }
}

/* 添加鼠标悬停时的额外效果 */
.animated-text:hover::before {
    content: '🦐';
    position: absolute;
    top: -20px;
    left: -25px;
    font-size: 0.6em;
    animation: crabWalk 1s ease-in-out;
}

@keyframes crabWalk {
    0% { 
        transform: translateX(-20px) rotate(-10deg); 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        transform: translateX(0) rotate(0deg); 
        opacity: 0; 
    }
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
    background: var(--hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Outfit';
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    animation: slideUp 1s ease-out;
}

.mockup-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0.75rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.mockup-img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* Base Reveal Styles - Default Visible for reliability */
.reveal {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State when JS is active and waiting for scroll */
.reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Logo Wall Enhancement */
.logo-wall {
    padding: 6rem 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-height: 200px; /* Prevent collapse */
}

.logo-wall-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    flex-wrap: wrap;
    opacity: 0.8;
    filter: grayscale(0.5);
    transition: var(--transition);
}

.logo-wall-inner:hover {
    opacity: 1;
    filter: grayscale(0);
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.logo-item i {
    width: 24px;
    height: 24px;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: #fdfdfd;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(234, 88, 12, 0.05);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.bento-hero {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding-right: 0;
    overflow: hidden;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
}

.card-content {
    flex: 1;
}

.card-visual {
    flex: 1.2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.05), transparent);
    position: relative;
    border-left: 1px solid var(--border);
}

.mini-terminal {
    background: #0f172a;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
}

.terminal-line {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
    white-space: nowrap;
}

.prompt {
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

.terminal-line.success {
    color: #4ade80;
    margin-top: 0.8rem;
    font-weight: 600;
}

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

.comp-card {
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
}

.comp-card.highlight {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.05);
}

.comp-list {
    margin-top: 2rem;
}

.comp-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.comp-item i {
    flex-shrink: 0;
    margin-top: 4px;
}

.comp-item.pro i { color: #10b981; }
.comp-item.con i { color: #ef4444; }

.comp-item span {
    font-size: 1.05rem;
    color: var(--text-main);
}
.guide-section {
    background: var(--bg-section);
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 36px; /* Exact center of the 72px circle */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: flex-start;
}

.timeline-number {
    flex-shrink: 0; /* Prevents the circle from becoming an ellipse */
    width: 72px;
    height: 72px;
    background: var(--bg-light);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit';
    font-size: 1.4rem;
    font-weight: 800;
    z-index: 2;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
}

.timeline-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Download Section */
.download-section {
    padding: 10rem 0;
}

.download-card {
    background: var(--gradient);
    border-radius: 48px;
    padding: 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
}

.download-card .section-title, 
.download-card p {
    color: white;
}

.os-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.os-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 220px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.os-option i {
    width: 48px;
    height: 48px;
}

.os-option span {
    font-weight: 600;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

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

.terms {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white !important;
}

/* Footer */
.footer {
    padding-top: 6rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 5rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title { 
        font-size: 3.5rem; 
    }
    /* 响应式下也保持副标题的相对大小 */
    .hero-title .gradient-text {
        font-size: 0.85em;
    }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-title { 
        font-size: 2.8rem; 
    }
    /* 移动端保持副标题的相对比例 */
    .hero-title .gradient-text {
        font-size: 0.85em;
        font-weight: 600;
    }
    /* 移动端减少动画强度 */
    .animated-text .char {
        animation-duration: 3s;
    }
    @keyframes charBounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0) scale(1);
        }
        40% {
            transform: translateY(-6px) scale(1.05);
        }
    }
    /* 移动端隐藏装饰性emoji */
    .animated-text::after,
    .animated-text:hover::before {
        display: none;
    }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; flex-direction: column; padding: 2.5rem; }
    .card-visual { display: none; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .download-card { padding: 3rem 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; gap: 2rem; justify-content: flex-start; }
}

/* FAQ Styles */
.faq-section {
    padding: 8rem 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.faq-question i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}
.faq-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
}
.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    transition: var(--transition);
}
.back-to-top:hover {
    background: var(--hover);
    transform: translateY(-5px);
}

/* Mobile Menu Animation Enhancement */
.nav-links.active {
    display: flex !important;
    animation: slideDownFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDownFade {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

