/* CSS Reset & Base Variables */
:root {
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --surface-hover: #f1f5f9;
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --primary-shadow-color: rgba(168, 85, 247, 0.4);
    --primary-hover-shadow-color: rgba(168, 85, 247, 0.6);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;
    --logo-dark: #0f172a;
    --border-color: #e2e8f0;
}

/* Logo Styles */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo-box {
  display: flex;
  border: 3px solid #1e1b4b;
  height: 36px;
  background-color: #1e1b4b;
  gap: 3px;
  border-radius: 0;
  overflow: hidden;
}

.logo-rl {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}

.logo-icon {
  background-color: #ffffff;
  color: #0f172a;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.theme-b2b {
    --primary: #f97316 !important;
    --primary-hover: #ea580c !important;
    --primary-shadow-color: rgba(249, 115, 22, 0.4) !important;
    --primary-hover-shadow-color: rgba(249, 115, 22, 0.6) !important;
}

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

html {
    font-size: 15px;
}

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

/* Language Toggle Logic */
body.lang-zh .en {
    display: none !important;
}

body.lang-en .zh {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.highlight {
    color: var(--primary);
}

/* Layout & Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-shadow-color);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-hover-shadow-color);
}

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

.btn-outline:hover {
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    transform: translateY(-2px);
    box-shadow: none;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}



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

.nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 99;
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.hamburger-menu {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        gap: 24px;
        align-items: center;
        margin-right: 20px;
        background-color: transparent;
    }

    .hamburger-menu {
        display: none;
    }
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.lang-switch {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.lang-switch:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.nav-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--primary) 15%, transparent) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background-color: color-mix(in srgb, var(--primary) 12%, transparent);
    padding: 8px 24px;
    border-radius: 99px;
    font-size: 0.95rem;
    border: none;
    color: var(--primary);
    font-weight: 600;
}

/* Grid Layouts for Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--surface-color);
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.card h3 {
    margin-bottom: 10px !important;
}

.card p {
    line-height: 1.45;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

/* ROI Section */
.roi-card {
    text-align: center;
}

.roi-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Timeline (9 Steps) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.step.left {
    left: 0;
}

.step.right {
    left: 50%;
}

.step-content {
    padding: 20px 30px;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--primary);
    border: 4px solid var(--bg-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.step.right::after {
    left: -8px;
}

.step::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(168, 85, 247, 0.3);
    top: 15px;
    bottom: -15px;
    right: -1px;
    z-index: 0;
}

.step.right::before {
    left: -1px;
    right: auto;
}

.step:last-child::before {
    display: none;
}

/* Pricing */
.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features {
    list-style: none;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.pricing-features li.cross::before {
    content: '×';
    color: var(--danger);
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header .icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 500px; 
    padding-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-cta {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-cta h2 {
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .step {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .step.left::after,
    .step.right::after {
        left: 23px;
    }

    .step::before,
    .step.right::before {
        left: 31px;
        right: auto;
    }

    .step.right {
        left: 0;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
}
