/* ===== CSS Variables ===== */
:root {
    --color-primary: #22a86e;
    --color-primary-light: #38d291;
    --color-bg-dark: #0a1c12;
    --color-bg-darker: #0e2016;
    --color-text-primary: #fff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    --color-border: rgba(34, 168, 110, 0.15);
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'HarmonyOS Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.loaded { opacity: 1; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ===== Loading Spinner ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.page-loader.hidden {
    opacity: 0;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(34, 168, 110, 0.2);
    border-top-color: var(--color-primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Utilities ===== */
.gradient-text {
    background: linear-gradient(135deg, #22a86e, #38d291);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 28, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 168, 110, 0.15);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-icon { font-size: 24px; color: #22a86e; }
.nav-brand { font-size: 20px; font-weight: 700; }
.nav-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(34, 168, 110, 0.4);
    color: #22a86e;
}
.nav-center { display: flex; gap: 32px; }
.nav-link {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
    cursor: pointer;
}
.nav-link:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-outline {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(34, 168, 110, 0.4);
    background: transparent;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-outline:hover { background: rgba(34, 168, 110, 0.1); transform: translateY(-1px); }
.btn-primary {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #22a86e, #38d291);
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(34, 168, 110, 0.4); }

/* ===== Hero ===== */
.hero {
    padding: 160px 40px 80px;
    background: linear-gradient(180deg, #0a1c12 0%, #0e2016 50%, #0a1c12 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(34, 168, 110, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 24px;
    border: 1px solid rgba(34, 168, 110, 0.3);
    background: rgba(34, 168, 110, 0.08);
    font-size: 14px;
    color: #22a86e;
    margin-bottom: 32px;
    transition: all 0.2s;
}
.hero-badge:hover { background: rgba(34, 168, 110, 0.15); }
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22a86e;
}
.hero-badge-arrow { font-size: 16px; }
.hero-title {
    font-size: 80px;
    font-weight: 400;
    line-height: 1.18;
    margin-bottom: 24px;
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', '宋体', serif;
    letter-spacing: 0.025em;
}
.hero-title span { display: block; }
.hero-title span:first-child {
    color: #edf7f2;
    font-weight: 400;
}
.hero-title .gradient-text {
    margin-top: -2px;
    background: linear-gradient(90deg, #0a5a40 0%, #10c989 30%, #1bd0a5 55%, #28c7df 82%, #28c7df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 400;
}
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto 16px;
}
.hero-tags {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 40px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}
.hero-search {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
}
.cta-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-radius: 14px;
    min-width: 240px;
    border: none;
    font-family: inherit;
    text-align: left;
    color: #fff;
    transition: all 0.25s;
    cursor: pointer;
}
.cta-primary {
    background: linear-gradient(135deg, #22a86e, #38d291);
    border: 1px solid rgba(56, 210, 145, 0.6);
    box-shadow: 0 4px 16px rgba(34, 168, 110, 0.25);
}
.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(34, 168, 110, 0.45);
}
.cta-secondary {
    background: rgba(34, 168, 110, 0.12);
    border: 1px solid rgba(34, 168, 110, 0.35);
}
.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 168, 110, 0.25);
    background: rgba(34, 168, 110, 0.18);
    border-color: rgba(34, 168, 110, 0.45);
}
.cta-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.cta-primary .cta-icon {
    background: rgba(255,255,255,0.25);
}
.cta-secondary .cta-icon {
    background: rgba(34, 168, 110, 0.25);
    color: rgba(255, 255, 255, 0.95);
}
.cta-text { display: flex; flex-direction: column; text-align: left; gap: 2px; }
.cta-title { font-size: 15px; font-weight: 600; color: #fff; }
.cta-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); }
.cta-primary .cta-title { font-weight: 700; color: #fff; }
.cta-primary .cta-subtitle { color: rgba(255,255,255,0.85); }
.cta-secondary .cta-title { color: rgba(255,255,255,0.95); }
.cta-secondary .cta-subtitle { color: rgba(255,255,255,0.55); }
.cta-arrow { font-size: 18px; margin-left: auto; color: rgba(255,255,255,0.7); }

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.hero-features-group { display: flex; align-items: center; gap: 8px; }
.hero-features-label { color: rgba(255,255,255,0.8); font-weight: 500; }
.hero-features-item { margin-left: 4px; }

/* Hero Mockup */
.hero-mockup {
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(34, 168, 110, 0.25);
    background: #0e2016;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.mockup-browser { width: 100%; }
.mockup-toolbar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dots { display: flex; gap: 6px; margin-right: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    padding: 4px 16px;
    border-radius: 6px;
}
.mockup-content { display: flex; min-height: 400px; }
.mockup-sidebar {
    width: 180px;
    padding: 16px;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.mockup-sidebar-title { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.mockup-sidebar-item {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.6);
}
.mockup-sidebar-item.active {
    background: rgba(34, 168, 110, 0.15);
    color: #22a86e;
}
.mockup-main { flex: 1; padding: 16px 24px; }
.mockup-main-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
}
.mockup-count {
    font-size: 12px;
    background: rgba(34, 168, 110, 0.2);
    color: #22a86e;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 400;
}
.mockup-note-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
    font-size: 13px;
}
.mockup-note-dot { width: 6px; height: 6px; border-radius: 50%; background: #22a86e; }
.mockup-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}
.tag-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tag-green { background: rgba(34, 168, 110, 0.2); color: #22a86e; }
.tag-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.mockup-date { font-size: 11px; color: rgba(255,255,255,0.3); width: 40px; text-align: right; }
.mockup-ai-bar {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(34, 168, 110, 0.08);
    border: 1px solid rgba(34, 168, 110, 0.2);
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.mockup-ai-avatar { font-size: 16px; }
.mockup-ai-label { color: #22a86e; font-weight: 500; white-space: nowrap; }
.mockup-ai-text { line-height: 1.5; }

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    padding: 20px;
    background: rgba(34, 168, 110, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(34, 168, 110, 0.15);
    max-width: 700px;
    margin: 0 auto;
}
.hero-avatars { display: flex; gap: 8px; }
.avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
}
.hero-users strong { 
    color: #38d291; 
    font-size: 18px;
    font-weight: 700;
}
.hero-rating { color: #fbbf24; letter-spacing: 2px; }
.hero-rating-text { font-size: 13px; }

/* ===== Sections Common ===== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    text-align: center;
}
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(34, 168, 110, 0.3);
    background: rgba(34, 168, 110, 0.08);
    font-size: 13px;
    color: #22a86e;
    margin-bottom: 20px;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 48px;
}

/* ===== Features ===== */
.features { 
    background: #0e2016;
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 168, 110, 0.3), transparent);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
.feature-card {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(34, 168, 110, 0.15);
    background: rgba(10, 28, 18, 0.6);
    transition: all 0.25s;
    cursor: pointer;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 168, 110, 0.15);
    border-color: rgba(34, 168, 110, 0.4);
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}
.icon-ai { background: rgba(34, 168, 110, 0.15); color: #22a86e; }
.icon-link { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-search { background: rgba(168, 85, 247, 0.15); color: #a78bfa; }
.icon-team { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.icon-generate { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.icon-security { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== Scenarios ===== */
.scenarios { 
    background: #0a1c12;
    position: relative;
}
.scenarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 168, 110, 0.3), transparent);
}
.scenarios-content {
    display: flex;
    gap: 32px;
    text-align: left;
}
.scenarios-tabs {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.scenario-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.scenario-tab:hover { background: rgba(34, 168, 110, 0.05); }
.scenario-tab.active {
    background: rgba(34, 168, 110, 0.18);
    border-color: rgba(34, 168, 110, 0.5);
    box-shadow: 0 4px 12px rgba(34, 168, 110, 0.15);
}
.tab-icon {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
    line-height: 1;
}
.scenario-tab:hover .tab-icon { color: rgba(255, 255, 255, 0.7); }
.scenario-tab.active .tab-icon {
    color: #38d291;
    filter: drop-shadow(0 0 8px rgba(56, 210, 145, 0.35));
}
.tab-text { display: flex; flex-direction: column; }
.tab-title { font-size: 14px; font-weight: 500; }
.tab-desc { font-size: 12px; color: rgba(255,255,255,0.4); }
.scenarios-panel { flex: 1; }
.panel-content {
    display: none;
    gap: 32px;
}
.panel-content.active { display: flex; }
.panel-left { flex: 1; }
.panel-left h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.panel-subtitle { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.panel-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 20px; }
.panel-cta {
    color: #22a86e;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.panel-cta:hover { color: #38d291; }
.panel-right { width: 320px; flex-shrink: 0; }
.panel-file-list {
    background: rgba(14, 32, 22, 0.8);
    border: 1px solid rgba(34, 168, 110, 0.15);
    border-radius: 12px;
    padding: 16px;
}
.panel-file-header {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.panel-file-item {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.7);
}
.panel-file-item.highlight {
    background: rgba(34, 168, 110, 0.1);
    color: #22a86e;
    border: 1px solid rgba(34, 168, 110, 0.2);
}

/* ===== Pricing ===== */
.pricing { 
    background: #0e2016;
    position: relative;
}
.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 168, 110, 0.3), transparent);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
.pricing-card {
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid rgba(34, 168, 110, 0.15);
    background: rgba(10, 28, 18, 0.6);
    position: relative;
    transition: all 0.25s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 168, 110, 0.15);
}
.pricing-card.popular {
    border-color: rgba(34, 168, 110, 0.6);
    background: rgba(34, 168, 110, 0.08);
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(34, 168, 110, 0.2);
}
.popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22a86e, #38d291);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(34, 168, 110, 0.4);
}
.pricing-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pricing-icon { font-size: 20px; }
.pricing-header h3 { font-size: 16px; font-weight: 600; }
.pricing-price { margin-bottom: 12px; display: flex; align-items: baseline; gap: 2px; }
.price-currency { font-size: 18px; font-weight: 600; }
.price-amount { font-size: 40px; font-weight: 800; }
.price-period { font-size: 14px; color: rgba(255,255,255,0.5); margin-left: 4px; }
.pricing-desc { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    margin-bottom: 24px;
    transition: all 0.2s;
    cursor: pointer;
}
.pricing-btn-outline {
    border: 1px solid rgba(34, 168, 110, 0.4);
    background: transparent;
    color: #22a86e;
}
.pricing-btn-outline:hover { background: rgba(34, 168, 110, 0.1); transform: translateY(-1px); }
.pricing-btn-primary {
    border: none;
    background: linear-gradient(135deg, #22a86e, #38d291);
    color: #fff;
}
.pricing-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(34, 168, 110, 0.4); }
.pricing-features { margin-top: 0; }
.pricing-features li {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 6px 0;
}

/* ===== Footer ===== */
.footer {
    background: #0a1c12;
    border-top: 1px solid rgba(34, 168, 110, 0.1);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}
.footer-top { display: flex; gap: 80px; margin-bottom: 40px; }
.footer-brand { width: 260px; flex-shrink: 0; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-slogan { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(34, 168, 110, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.social-icon:hover {
    color: #38d291;
    border-color: rgba(56, 210, 145, 0.6);
    background: rgba(34, 168, 110, 0.08);
    transform: translateY(-2px);
}
.footer-links { display: flex; flex: 1; justify-content: space-between; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    cursor: pointer;
    line-height: 1.6;
}
.footer-col a:hover { color: #22a86e; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-beian {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    transition: all 0.2s;
    cursor: pointer;
}
.beian-link i { font-size: 14px; }
.beian-link:hover { color: #22a86e; }

/* ===== Back to Top & FAB ===== */
.fab-contact {
    position: fixed;
    bottom: 88px;
    right: 32px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(34, 168, 110, 0.4);
    background: linear-gradient(135deg, #22a86e, #38d291);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(34, 168, 110, 0.35);
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}
.fab-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 168, 110, 0.5);
}

/* ===== Chat Panel ===== */
.chat-panel {
    position: fixed;
    bottom: 88px;
    right: 32px;
    z-index: 100;
    width: 360px;
    height: 520px;
    border-radius: 16px;
    background: #0e2016;
    border: 1px solid rgba(34, 168, 110, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 210, 145, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(34, 168, 110, 0.15);
    background: rgba(10, 28, 18, 0.6);
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 168, 110, 0.2), rgba(56, 210, 145, 0.1));
    border: 1px solid rgba(56, 210, 145, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #38d291;
}
.chat-header-info { display: flex; flex-direction: column; gap: 2px; }
.chat-header-name { font-size: 14px; font-weight: 600; color: #fff; }
.chat-header-status { font-size: 11px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 5px; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #38d291; }
.chat-close {
    width: 30px; height: 30px; border-radius: 8px; border: none;
    background: transparent; color: rgba(255,255,255,0.5);
    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.chat-close:hover { color: #fff; background: rgba(255,255,255,0.06); }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(34,168,110,0.3); border-radius: 2px; }
.chat-msg { display: flex; gap: 8px; max-width: 85%; animation: msg-in 0.3s ease; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.chat-msg.bot .chat-msg-avatar { background: rgba(34,168,110,0.15); color: #38d291; }
.chat-msg.user .chat-msg-avatar { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.chat-msg-bubble {
    padding: 10px 14px; border-radius: 12px;
    font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.85);
}
.chat-msg.bot .chat-msg-bubble {
    background: rgba(34,168,110,0.08);
    border: 1px solid rgba(34,168,110,0.2);
    border-top-left-radius: 4px;
}
.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, #22a86e, #38d291);
    color: #fff;
    border-top-right-radius: 4px;
}
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 10px 14px; }
.chat-typing-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #38d291; opacity: 0.4;
    animation: typing-bounce 1.2s infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-quick {
    padding: 8px 16px 4px;
    display: flex; flex-wrap: wrap; gap: 6px;
    border-top: 1px solid rgba(34,168,110,0.1);
}
.chat-quick-btn {
    padding: 5px 12px; border-radius: 14px;
    border: 1px solid rgba(34,168,110,0.3); background: transparent;
    color: #38d291; font-size: 12px; cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
}
.chat-quick-btn:hover { background: rgba(34,168,110,0.1); transform: translateY(-1px); }
.chat-input-area {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(34,168,110,0.15);
}
.chat-input {
    flex: 1; padding: 10px 14px; border-radius: 10px;
    border: 1px solid rgba(34,168,110,0.2); background: rgba(10,28,18,0.8);
    color: #fff; font-size: 13px; outline: none;
    transition: border-color 0.2s;
}
.chat-input::placeholder { color: rgba(255,255,255,0.35); }
.chat-input:focus { border-color: rgba(34,168,110,0.5); }
.chat-input.error {
    border-color: rgba(239, 68, 68, 0.5);
    animation: shake 0.3s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.chat-send {
    width: 36px; height: 36px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #22a86e, #38d291);
    color: #fff; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.chat-send:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,168,110,0.4); }
.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.chat-send:disabled:hover {
    transform: none;
    box-shadow: none;
}
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(34, 168, 110, 0.3);
    background: rgba(10, 28, 18, 0.85);
    backdrop-filter: blur(8px);
    color: #38d291;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(34, 168, 110, 0.15);
    border-color: rgba(56, 210, 145, 0.5);
    transform: translateY(-2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .nav-inner { padding: 0 24px; }
    .hero { padding: 140px 24px 60px; }
    .section-inner { padding: 80px 24px; }
    .footer-inner { padding: 50px 24px 24px; }
    
    .hero-title { font-size: 64px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .scenarios-content { flex-direction: column; }
    .scenarios-tabs { width: 100%; flex-direction: row; overflow-x: auto; }
    .scenario-tab { flex-shrink: 0; min-width: 200px; }
    .panel-right { width: 100%; margin-top: 24px; }
    .panel-content.active { flex-direction: column; }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-inner { padding: 0 16px; height: 60px; }
    .nav-center { display: none; }
    .nav-brand { font-size: 18px; }
    .nav-badge { font-size: 11px; padding: 2px 8px; }
    .btn-outline, .btn-primary { padding: 6px 14px; font-size: 13px; }
    
    /* Hero */
    .hero { padding: 100px 16px 40px; }
    .hero-title { font-size: 42px; }
    .hero-title span:first-child { font-size: 42px; }
    .hero-desc { font-size: 16px; }
    .hero-tags { font-size: 13px; }
    .hero-cta { flex-direction: column; gap: 12px; }
    .cta-btn { min-width: 100%; }
    .hero-features { flex-direction: column; gap: 16px; align-items: flex-start; }
    .hero-features-group { flex-wrap: wrap; }
    
    /* Mockup */
    .mockup-content { flex-direction: column; min-height: auto; }
    .mockup-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    
    /* Social Proof */
    .hero-social-proof { flex-wrap: wrap; gap: 12px; font-size: 13px; }
    
    /* Sections */
    .section-inner { padding: 60px 16px; }
    .section-title { font-size: 28px; }
    .section-desc { font-size: 15px; }
    
    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }
    
    /* Scenarios */
    .scenarios-tabs { 
        flex-direction: column; 
        width: 100%; 
        gap: 6px;
    }
    .scenario-tab { min-width: auto; }
    
    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
    
    /* Footer */
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-brand { width: 100%; }
    .footer-links { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    
    /* Chat Panel */
    .chat-panel { 
        width: 100%; 
        height: 100%; 
        bottom: 0; 
        right: 0; 
        border-radius: 0; 
    }
    
    /* FAB Buttons */
    .fab-contact, .back-to-top { 
        bottom: 20px; 
        right: 20px; 
        width: 48px; 
        height: 48px; 
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 24px; }
    .mockup-toolbar { padding: 8px 12px; }
    .mockup-url { font-size: 11px; }
    .mockup-main { padding: 12px 16px; }
}

/* ===== Accessibility Improvements ===== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}
.skip-to-content:focus {
    top: 0;
}

/* Focus visible styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Reduced motion support */
@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;
    }
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.open { display: flex; }
.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 10, 0.7);
    backdrop-filter: blur(8px);
    animation: modal-fade 0.2s ease;
}
.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, #102a1c 0%, #0a1c12 100%);
    border: 1px solid rgba(34, 168, 110, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 210, 145, 0.05);
    text-align: center;
    animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 168, 110, 0.2), rgba(56, 210, 145, 0.1));
    border: 1px solid rgba(56, 210, 145, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #38d291;
}
.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 20px;
}
.modal-contact {
    background: rgba(34, 168, 110, 0.06);
    border: 1px solid rgba(34, 168, 110, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
    text-align: left;
}
.modal-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
}
.modal-contact-item + .modal-contact-item {
    border-top: 1px solid rgba(34, 168, 110, 0.1);
    margin-top: 4px;
    padding-top: 10px;
}
.modal-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 12px;
    border-bottom: 1px solid rgba(34, 168, 110, 0.1);
    margin-bottom: 4px;
}
.modal-qr-image {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.modal-qr-image img { width: 100%; height: 100%; display: block; }
.modal-qr-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.modal-qr-label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.modal-qr-label i { color: #38d291; font-size: 16px; }
.modal-qr-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}
.modal-contact-label {
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.modal-contact-label i { color: #38d291; font-size: 15px; }
.modal-contact-value {
    color: #fff;
    font-family: 'Inter', monospace;
    font-weight: 500;
    user-select: all;
}
.modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #22a86e, #38d291);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 168, 110, 0.35);
}
@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modal-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
