@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #0fa958;
    --primary-dark: #0b8a47;
    --primary-light: #34d058;
    --secondary: #00b4d8;
    --accent: #ffd166;
    --dark: #0a1628;
    --dark-2: #112240;
    --dark-3: #1a3150;
    --gray-1: #f8f9fa;
    --gray-2: #e9ecef;
    --gray-3: #dee2e6;
    --gray-4: #adb5bd;
    --gray-5: #6c757d;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --gradient-1: linear-gradient(135deg, #0fa958 0%, #00b4d8 100%);
    --gradient-2: linear-gradient(135deg, #0a1628 0%, #1a3150 100%);
    --gradient-3: linear-gradient(135deg, #0fa958 0%, #34d058 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 30px rgba(15,169,88,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(15,169,88,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

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

.section-desc {
    font-size: 18px;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15,169,88,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(15,169,88,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 18px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    z-index: 1001;
}

.header.scrolled .logo {
    color: var(--dark);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

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

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    position: relative;
    padding: 4px 0;
}

.header.scrolled .nav a {
    color: var(--text);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

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

.header.scrolled .nav a:hover {
    color: var(--primary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta .btn {
    padding: 10px 24px;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .mobile-toggle span {
    background: var(--dark);
}

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

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

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

/* Hero */
.hero {
    min-height: 100vh;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg canvas {
    width: 100%;
    height: 100%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(15,169,88,0.15);
    border: 1px solid rgba(15,169,88,0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

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

.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-globe {
    width: 100%;
    max-width: 480px;
    animation: float 6s ease-in-out infinite;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    border: 1px solid var(--gray-2);
    position: relative;
    overflow: hidden;
}

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

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
}

.card-icon.green {
    background: rgba(15,169,88,0.1);
    color: var(--primary);
}

.card-icon.blue {
    background: rgba(0,180,216,0.1);
    color: var(--secondary);
}

.card-icon.yellow {
    background: rgba(255,209,102,0.15);
    color: #e6a817;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.card-link:hover {
    gap: 12px;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Feature Section */
.feature-section {
    background: var(--gray-1);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-visual {
    position: relative;
}

.feature-img {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.feature-img-inner {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gradient-2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.feature-float-card.top-right {
    top: -20px;
    right: -20px;
    animation-delay: 0.5s;
}

.feature-float-card.bottom-left {
    bottom: -20px;
    left: -20px;
    animation-delay: 1s;
}

.feature-content .section-tag {
    text-align: left;
}

.feature-content .section-title {
    text-align: left;
    font-size: 36px;
}

.feature-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-list-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(15,169,88,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    margin-top: 2px;
}

.feature-list-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-list-text p {
    font-size: 14px;
    color: var(--text-light);
}

/* Data Section */
.data-section {
    background: var(--gradient-2);
    color: var(--white);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.data-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.data-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.data-value {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.data-label {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
}

.data-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* Tech Section */
.tech-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-2);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tech-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.tech-card-body {
    padding: 28px;
}

.tech-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(15,169,88,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.tech-card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-2);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(15,169,88,0.2);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-2);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Case Card */
.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-2);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.case-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.case-card-body {
    padding: 28px;
}

.case-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.case-card-tag {
    padding: 4px 12px;
    background: rgba(15,169,88,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.case-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.case-card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.case-card-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-2);
}

.case-stat {
    text-align: center;
}

.case-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
}

.case-stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* News Card */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-2);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.news-card-body {
    padding: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.news-card-tag {
    padding: 3px 10px;
    background: rgba(15,169,88,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15,169,88,0.15), transparent 70%);
    top: -200px;
    right: -200px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,180,216,0.1), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* AI Chat Widget */
.ai-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(15,169,88,0.4);
    transition: var(--transition);
    position: relative;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(15,169,88,0.5);
}

.ai-chat-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.ai-chat-toggle .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulseRing 2s infinite;
}

.ai-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.ai-chat-panel.active {
    display: flex;
}

.ai-chat-header {
    background: var(--gradient-1);
    padding: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-avatar svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.ai-chat-header-info h4 {
    font-size: 16px;
    font-weight: 700;
}

.ai-chat-header-info p {
    font-size: 12px;
    opacity: 0.8;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 320px;
}

.ai-message {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
}

.ai-message.bot {
    flex-direction: row;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ai-message.bot .ai-message-avatar {
    background: rgba(15,169,88,0.1);
    color: var(--primary);
}

.ai-message.user .ai-message-avatar {
    background: var(--gradient-1);
    color: var(--white);
}

.ai-message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    max-width: 80%;
}

.ai-message.bot .ai-message-bubble {
    background: var(--gray-1);
    color: var(--text);
}

.ai-message.user .ai-message-bubble {
    background: var(--gradient-1);
    color: var(--white);
}

.ai-chat-input {
    padding: 16px;
    border-top: 1px solid var(--gray-2);
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-3);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.ai-chat-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,169,88,0.1);
}

.ai-chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-chat-input button:hover {
    transform: scale(1.1);
}

.ai-chat-input button svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

/* Page Banner */
.page-banner {
    min-height: 400px;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.page-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15,169,88,0.08), transparent 70%);
    top: -50px;
    right: 5%;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.page-banner-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb .sep {
    font-size: 12px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--gray-3);
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* SVG Illustration Placeholder */
.illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration svg {
    width: 100%;
    height: 100%;
}

/* Loading */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--gray-4);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

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

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 32px;
    }
    .hero-title {
        font-size: 42px;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        gap: 48px;
    }
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .section-desc {
        font-size: 16px;
    }
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    .hero .container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stat-value {
        font-size: 28px;
    }
    .hero-visual {
        display: none;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-slow);
        z-index: 1000;
    }
    .nav.active {
        right: 0;
    }
    .nav a {
        color: var(--text) !important;
        font-size: 18px;
    }
    .mobile-toggle {
        display: flex;
    }
    .header-cta {
        display: none;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-content .section-title {
        text-align: center;
    }
    .feature-content .section-tag {
        text-align: center;
        display: block;
    }
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .data-value {
        font-size: 36px;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-content {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .page-banner {
        min-height: 300px;
    }
    .page-banner-title {
        font-size: 32px;
    }
    .cta-title {
        font-size: 28px;
    }
    .ai-chat-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .hero-stat {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-1);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-5);
}

/* Selection */
::selection {
    background: rgba(15,169,88,0.2);
    color: var(--dark);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 9999;
    transition: width 0.1s;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.back-to-top:hover svg {
    fill: var(--white);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
    transition: var(--transition);
}
