/* OpenClaw — Premium Dark Theme (Apple-Inspired) */

:root {
    --black: #000000;
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(29, 29, 31, 0.72);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --brand: #0071e3;
    --brand-hover: #0077ed;
    --brand-light: #2997ff;
    --accent: #00d4ff;
    --gradient-brand: linear-gradient(135deg, #0071e3, #00d4ff);
    --gradient-hero: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1200px;
    --section-pad: clamp(60px, 10vw, 140px);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --success: #30d158;
    --error: #ff453a;
    --warning: #ffd60a;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-en), var(--font-zh);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--brand-light); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent); }

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

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
    height: 48px;
}
.navbar-container {
    max-width: var(--container); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 48px;
}
.logo { display: flex; align-items: center; font-size: 18px; font-weight: 700; color: var(--text-primary); gap: 0; }
.logo:hover { color: var(--text-primary); }
.logo-open { color: var(--text-primary); }
.logo-claw { color: var(--brand-light); }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-link {
    padding: 6px 12px; font-size: 13px; font-weight: 400; color: var(--text-secondary);
    border-radius: 6px; transition: var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-active { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    font-size: 12px; padding: 4px 10px; border: 1px solid var(--border);
    border-radius: 14px; color: var(--text-secondary); transition: var(--transition-fast);
}
.lang-switch:hover { border-color: var(--brand-light); color: var(--brand-light); }
.nav-login-btn {
    font-size: 12px; padding: 4px 14px; background: var(--brand); color: #fff;
    border-radius: 14px; border: none; cursor: pointer;
}
.nav-login-btn:hover { background: var(--brand-hover); color: #fff; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.hamburger-line { width: 18px; height: 2px; background: var(--text-primary); transition: var(--transition-fast); border-radius: 1px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero-section { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-full { min-height: 100vh; padding: 120px 0 80px; }
.hero-compact { min-height: 50vh; padding: 120px 0 60px; }
.hero-gradient-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,113,227,0.15) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0,212,255,0.08) 0%, transparent 50%);
    z-index: 0;
}
.hero-grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 0;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-title {
    font-size: clamp(40px, 7vw, 80px); font-weight: 800; line-height: 1.05;
    letter-spacing: -0.03em; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: clamp(16px, 2vw, 22px); color: var(--text-secondary); max-width: 640px; margin: 0 auto 16px; line-height: 1.5; }
.hero-description { font-size: 15px; color: var(--text-tertiary); max-width: 520px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; font-size: 15px; font-weight: 500; border-radius: 980px;
    border: none; cursor: pointer; transition: var(--transition); text-decoration: none;
    font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: scale(1.02); }
.btn-secondary { background: transparent; color: var(--brand-light); border: 1px solid var(--brand-light); }
.btn-secondary:hover { background: rgba(0,113,227,0.1); color: var(--brand-light); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 12px; line-height: 1.1;
}
.section-subtitle { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 36px; margin-bottom: 16px; }
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.card-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ── Badge ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 500;
    border-radius: 980px; background: rgba(255,255,255,0.06); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.badge-active { background: rgba(48,209,88,0.15); color: var(--success); border-color: rgba(48,209,88,0.3); }
.badge-beta { background: rgba(255,214,10,0.12); color: var(--warning); border-color: rgba(255,214,10,0.3); }
.badge-coming_soon { background: rgba(255,69,58,0.12); color: var(--error); border-color: rgba(255,69,58,0.3); }

/* ── Value Props ───────────────────────────────────────────────────── */
.value-props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vp-card {
    text-align: center; padding: 48px 32px; border-radius: var(--radius-xl);
    background: var(--gradient-card); border: 1px solid var(--border); transition: var(--transition);
}
.vp-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vp-icon { font-size: 48px; margin-bottom: 20px; display: block; }
.vp-title { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.vp-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Featured Products ─────────────────────────────────────────────── */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.featured-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; transition: var(--transition); cursor: pointer;
}
.featured-card:hover { border-color: var(--brand-light); transform: translateY(-3px); box-shadow: 0 4px 24px rgba(0,113,227,0.15); }
.featured-card-name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.featured-card-tagline { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.featured-card-meta { display: flex; align-items: center; gap: 8px; }

/* ── CTA Section ───────────────────────────────────────────────────── */
.cta-section {
    text-align: center; padding: var(--section-pad) 24px;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(0,113,227,0.12) 0%, transparent 70%);
}
.cta-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }

/* ── Tech Stats ────────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-number { font-size: 48px; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; max-width: 280px; }
.footer-heading { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-copyright { font-size: 12px; color: var(--text-tertiary); }

/* ── Back to Top ───────────────────────────────────────────────────── */
.back-to-top {
    position: fixed; bottom: 90px; right: 24px; z-index: 900;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-glass); border: 1px solid var(--border);
    backdrop-filter: blur(12px); cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: var(--text-secondary);
    opacity: 0; transform: translateY(10px); transition: var(--transition);
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { border-color: var(--brand-light); color: var(--brand-light); }

/* ── Cookie Banner ─────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
    background: var(--bg-glass); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border); padding: 16px 0;
    transform: translateY(100%); transition: transform 0.5s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-text { font-size: 13px; color: var(--text-secondary); flex: 1; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn { padding: 6px 16px; font-size: 12px; border-radius: 980px; border: none; cursor: pointer; font-family: inherit; transition: var(--transition-fast); }
.cookie-accept { background: var(--brand); color: #fff; }
.cookie-accept:hover { background: var(--brand-hover); }
.cookie-decline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.cookie-decline:hover { border-color: var(--text-secondary); }

/* ── Main Content ──────────────────────────────────────────────────── */
.main-content { min-height: 100vh; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .value-props-grid { grid-template-columns: 1fr; }
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-container { padding: 0 16px; }
    .nav-links { display: none; position: fixed; top: 48px; left: 0; right: 0; background: var(--bg-glass); backdrop-filter: blur(20px);
        flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-actions { gap: 8px; }
    .hamburger { display: flex; }
    .hero-title { font-size: clamp(28px, 8vw, 48px); }
    .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-col-brand { grid-column: 1 / -1; }
    .hero-cta { flex-direction: column; align-items: center; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
