:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --primary-color: #FFD700;
    --secondary-color: #FFA500;
    --accent-color: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 215, 0, 0.2);
    --font-main: 'Outfit', sans-serif;
    --font-zh: 'Noto Sans TC', sans-serif;
}

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

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

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
    width: auto;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.lang-toggle {
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    border: 1px solid var(--glass-border);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.nav-links .btn-primary {
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 0 10%;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-primary.glow-effect:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
    background: #fff;
}

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

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Hero Visual - Meeting Window */
.hero-visual {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meeting-window {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: visible;
    /* Changed from hidden to visible */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.window-header {
    background: #2a2a2a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
    border-radius: 12px 12px 0 0;
    /* Added radius */
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dot.red {
    background: #ff5f56;
}

.window-dot.yellow {
    background: #ffbd2e;
}

.window-dot.green {
    background: #27c93f;
}

.window-title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.meeting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #000;
    padding: 1px;
    border-radius: 0 0 12px 12px;
    /* Added radius to container */
}

.audio-card {
    background: #1a1a1a;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}

/* Added radius to bottom cards */
.audio-card:nth-child(3) {
    border-bottom-left-radius: 11px;
}

.audio-card:nth-child(4) {
    border-bottom-right-radius: 11px;
}

.audio-card.speaking {
    box-shadow: inset 0 0 0 2px var(--primary-color);
    background: #222;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
}

.audio-card.speaking .avatar-circle {
    background: var(--primary-color);
    color: #000;
    animation: pulse 1.5s infinite;
}

.user-name {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.mic-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.8rem;
    color: #666;
}

.audio-card.speaking .mic-icon {
    color: var(--primary-color);
}

/* Speech Bubbles */
.speech-bubble {
    position: absolute;
    background: #fff;
    color: #000;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 260px;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.speech-bubble.visible {
    opacity: 1;
    transform: scale(1);
}

/* Bubble Positioning - ALL POP UP */
.audio-card:nth-child(1) .speech-bubble {
    bottom: 80%;
    left: 50%;
    transform-origin: bottom left;
}

.audio-card:nth-child(2) .speech-bubble {
    bottom: 80%;
    right: 50%;
    transform-origin: bottom right;
}

.audio-card:nth-child(3) .speech-bubble {
    bottom: 80%;
    left: 50%;
    transform-origin: bottom left;
}

.audio-card:nth-child(4) .speech-bubble {
    bottom: 80%;
    right: 50%;
    transform-origin: bottom right;
}

/* Tails - ALL AT BOTTOM */
.speech-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.audio-card:nth-child(1) .speech-bubble::after {
    border-top-color: #fff;
    bottom: -15px;
    left: 20px;
}

.audio-card:nth-child(2) .speech-bubble::after {
    border-top-color: #fff;
    bottom: -15px;
    right: 20px;
}

.audio-card:nth-child(3) .speech-bubble::after {
    border-top-color: #fff;
    bottom: -15px;
    left: 20px;
}

.audio-card:nth-child(4) .speech-bubble::after {
    border-top-color: #fff;
    bottom: -15px;
    right: 20px;
}

/* Translation Style */
.speech-bubble.translated {
    background: var(--primary-color);
    color: #000;
}

.speech-bubble.translated::after {
    border-top-color: var(--primary-color) !important;
    /* Removed border-bottom-color override as it's not needed with top-color */
}

.trans-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.trans-original {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.2rem;
    display: flex;
    align-items: center;
}

.trans-result {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wave-icon {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    height: 10px;
    margin-right: 8px;
}

.wave-icon span {
    width: 2px;
    background: #000;
    animation: wave 1s infinite;
}

.wave-icon span:nth-child(1) {
    height: 5px;
    animation-delay: 0s;
}

.wave-icon span:nth-child(2) {
    height: 10px;
    animation-delay: 0.1s;
}

.wave-icon span:nth-child(3) {
    height: 7px;
    animation-delay: 0.2s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Features Section */
.features {
    padding: 5rem 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
}

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

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Demo Section */
.demo-section {
    padding: 5rem 10%;
    text-align: center;
}

.video-placeholder {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.triangle {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    margin-left: 5px;
}

.glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.3);
    pointer-events: none;
}

/* Roadmap */
.roadmap {
    padding: 5rem 10%;
}

.roadmap-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
}

.roadmap-item {
    margin-bottom: 3rem;
    position: relative;
}

.dot {
    position: absolute;
    left: -2.6rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.roadmap-item .content {
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

/* Footer */
.footer {
    padding: 3rem 10%;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].visible {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-visual {
        width: 100%;
        height: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        /* Simple hide for mobile for now */
    }
}