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

:root {
    --primary: #117a4b;
    --primary-dark: #0d5f3a;
    --primary-light: #e6f7f0;
    --primary-gradient: linear-gradient(135deg, #117a4b 0%, #0d8a4e 100%);
    --text-primary: #1d1d2b;
    --text-secondary: #5a5a7a;
    --text-muted: #9a9ab0;
    --bg-white: #ffffff;
    --bg-light: #f7f8fa;
    --bg-gradient-hero: linear-gradient(135deg, #f5fdf7 0%, #eefaf3 40%, #f5f8ff 70%, #faf5ff 100%);
    --border-color: #e8e8ef;
    --border-light: #f0f0f5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 16px 48px rgba(17,122,75,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Typography ===== */
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Header & Navbar ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.navbar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-mobile-actions {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-right .btn {
    font-size: 13px;
    padding: 8px 20px;
}

/* Hamburger toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

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

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

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 6px rgba(17,122,75,0.2);
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(17,122,75,0.35);
    transform: translateY(-1px);
}

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

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

.btn-lg {
    font-size: 16px;
    padding: 13px 34px;
    border-radius: var(--radius-md);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--border-color);
}

.btn-white:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    padding: 130px 0 90px;
    background: var(--bg-gradient-hero);
    display: flex;
    align-items: center;
}

.hero-bg-deco {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-deco::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(17,122,75,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg-deco::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 0 0 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(17,122,75,0.12);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

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

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.hero-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-stat-number span {
    color: var(--primary);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Hero Visual - Code Card */
.hero-visual {
    flex: 1;
    position: relative;
    padding: 30px 10px;
}

.code-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    padding: 28px;
    border: 1px solid var(--border-color);
}

.code-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.code-line:hover {
    background: var(--primary-light);
}

.code-dot-line {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.code-dot-line.green { background: var(--primary); }
.code-dot-line.blue { background: #3b82f6; }
.code-dot-line.orange { background: #f59e0b; }
.code-dot-line.purple { background: #8b5cf6; }

.code-keyword {
    color: var(--primary);
    font-weight: 600;
}

.code-string {
    color: #3b82f6;
}

.code-card-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.code-status .status-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.code-avatars {
    display: flex;
    align-items: center;
}

.code-avatars span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid #fff;
}

.code-avatars span:first-child { margin-left: 0; }

/* Floating tags */
.float-tag {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

.float-tag .tag-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.float-tag-1 {
    top: 60px;
    right: -20px;
    animation-delay: 0s;
}

.float-tag-1 .tag-icon { background: #fef3c7; }

.float-tag-2 {
    top: 140px;
    left: -20px;
    animation-delay: 1.5s;
}

.float-tag-2 .tag-icon { background: #dbeafe; }

.float-tag-3 {
    bottom: 40px;
    right: -20px;
    animation-delay: 0.8s;
}

.float-tag-3 .tag-icon { background: #fce7f3; }

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

/* ===== Features Section ===== */
.features-section {
    padding: 90px 0;
    background: var(--bg-white);
}

.features-header {
    text-align: center;
    margin-bottom: 56px;
}

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

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

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon.green { background: var(--primary-light); color: var(--primary); }
.feature-icon.blue { background: #eff6ff; color: #3b82f6; }
.feature-icon.orange { background: #fff7ed; color: #f59e0b; }
.feature-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.feature-icon.pink { background: #fdf2f8; color: #ec4899; }
.feature-icon.teal { background: #f0fdfa; color: #14b8a6; }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Advantage Section ===== */
.advantage-section {
    padding: 90px 0;
    background: var(--bg-light);
}

.advantage-inner {
    display: flex;
    gap: 80px;
    align-items: center;
}

.advantage-content {
    flex: 1;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.advantage-check {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.advantage-visual {
    flex: 0 0 480px;
}

.compare-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.compare-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.compare-card-header h4 {
    font-size: 15px;
    font-weight: 700;
}

.compare-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.compare-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.compare-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.compare-row .cmp-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.compare-row .cmp-value {
    font-size: 14px;
    font-weight: 600;
}

.compare-row .cmp-value.yes { color: var(--primary); }
.compare-row .cmp-value.no { color: #ef4444; }

/* ===== Scenario Section ===== */
.scenario-section {
    padding: 90px 0;
    background: var(--bg-white);
}

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

.scenario-card {
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.scenario-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
}

.scenario-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.scenario-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 90px 0;
    background: var(--bg-gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(17,122,75,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 18px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--text-primary);
    color: #c8c8d8;
    padding: 56px 0 28px;
}

.footer-grid {
    display: flex;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col-brand {
    width: 320px;
    flex-shrink: 0;
}

.footer-col {
    flex: 1;
}

.footer-col-brand .logo-text { color: #fff; }

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 14px 0 18px;
    color: #8a8aaa;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8aaa;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    font-size: 14px;
    color: #8a8aaa;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #5a5a7a;
}

/* ===== Main ===== */
.main-content {
    padding-top: 60px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 36px; }
    .hero-content { flex: 0 0 460px; }
    .hero-inner { gap: 50px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .scenario-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-inner { gap: 50px; }
    .advantage-visual { flex: 0 0 400px; }
    .footer-grid { flex-wrap: wrap; }
    .footer-col-brand { width: 100%; }
    .footer-col { flex: 0 0 30%; }
}

@media (max-width: 768px) {
    .navbar-toggle { display: flex; }

    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 0 8px;
        margin-top: 8px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 2px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a:not(.nav-mobile-actions a) {
        width: 100%;
        padding: 10px 16px;
        font-size: 15px;
    }

    .navbar-right { display: none; }

    .hero-inner {
        flex-direction: column;
        gap: 50px;
    }

    .hero-content {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 15px; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 32px; }
    .hero-section { padding: 100px 0 60px; }
    .hero-visual { min-height: 380px; width: 100%; }

    .code-card { position: relative; top: 0; }
    .float-tag { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .features-header { margin-bottom: 36px; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 15px; max-width: 100%; }

    .advantage-inner { flex-direction: column; gap: 40px; }
    .advantage-visual { flex: none; width: 100%; }

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

    .cta-title { font-size: 26px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }

    .footer-grid { flex-direction: column; gap: 30px; }
    .footer-col-brand { width: 100%; }
    .footer-col { flex: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 26px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 22px; }
    .hero-section { padding: 90px 0 40px; }
    .features-section,
    .advantage-section,
    .scenario-section,
    .cta-section { padding: 60px 0; }
    .feature-card { padding: 24px 20px; }
}
