:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --accent-color: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-hover: rgba(255, 255, 255, 0.95);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #fff;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: #3b82f6;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* Navbar Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.lang-switch:hover,
.lang-switch.active {
    color: var(--primary-color);
}

.lang-separator {
    color: var(--secondary-color);
    opacity: 0.5;
}

.nav-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.nav-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--accent-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-text p.hero-desc {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    max-width: 500px;
}

.service-notice {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 500px;
}

.service-notice i {
    color: var(--primary-color);
    margin-top: 4px;
}

.service-notice p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Hero CTA Group */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: fit-content;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
    background: #1d4ed8;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.contact-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Flowchart Styles */
.process-flowchart {
    width: 100%;
    min-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.process-flowchart:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}


.flow-node {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.flow-node:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.node-icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.node-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--accent-color);
}

.node-content p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Specific Node Styles */
.input-node .node-icon {
    background: #ecfdf5;
    color: #059669;
}

.process-node .node-icon {
    background: #eff6ff;
    color: #2563eb;
}

.output-node .node-icon {
    background: #fef3c7;
    color: #d97706;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tag {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-score {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.9rem;
}

.paper-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.4;
    color: var(--accent-color);
}

.analysis-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-section {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.analysis-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-weight: 700;
}

.analysis-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Benefits Section */
.benefits-section {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 20px;
}

.benefit-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 1px solid #dbeafe;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.benefit-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Features Section */
.section {
    padding: 120px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

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

.feature-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.feature-item p {
    color: var(--secondary-color);
}

/* Showcase Section */
.showcase {
    overflow: hidden;
    background: #f1f5f9;
    padding: 60px 0;
}

.showcase-container {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    animation: scroll 40s linear infinite;
}

.showcase-container:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    border-top: 1px solid #e2e8f0;
    padding: 80px 0 40px;
    margin-top: 0;
    background: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--accent-color);
}

.footer-brand p {
    color: var(--secondary-color);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.link-group a {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

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

.copyright {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p.hero-desc {
        margin: 0 auto 30px;
        font-size: 1.1rem;
    }

    .service-notice {
        margin: 0 auto 30px;
        text-align: left;
    }

    .cta-group {
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .process-flowchart {
        transform: none !important;
        min-height: auto;
        padding: 20px;
    }

    .flow-node {
        padding: 15px;
        gap: 15px;
    }

    .node-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .node-content h4 {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .showcase {
        padding: 40px 0;
    }

    .showcase-container {
        flex-direction: column;
        animation: none;
        padding: 0;
    }

    .showcase-container:hover {
        animation: none;
    }

    .paper-card {
        min-width: 100% !important;
        transform: none !important;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 16px auto 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        align-items: center;
    }

    .link-group {
        text-align: center;
    }
}