:root {
    --brand-dark: #110E1B;
    --brand-primary: #2F1747;
    --brand-light: #583D89;
    --brand-accent: #A779FF;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--brand-dark);
    background-image: radial-gradient(circle at 50% 0%, rgba(47, 23, 71, 0.5) 0%, transparent 40%);
    background-repeat: no-repeat;
}

#mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 23, 71, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -10;
    transition: opacity 0.3s;
}

.glass-header, .glass-header-mobile {
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(135deg, rgba(47, 23, 71, 0.1), rgba(47, 23, 71, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3), 0 0 20px 0 rgba(167, 121, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #cbd5e1; /* slate-300 */
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-accent);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-mobile {
    color: #cbd5e1;
    transition: background-color 0.3s, color 0.3s;
}
.nav-link-mobile:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.glass-button {
    font-weight: bold;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(167, 121, 255, 0.2);
    border: 1px solid var(--brand-accent);
    box-shadow: 0 0 10px 0 rgba(167, 121, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: var(--brand-accent);
    box-shadow: 0 0 20px 0 rgba(167, 121, 255, 0.6);
    transform: translateY(-2px);
}

.cta-button-lg {
    display: inline-block;
    font-weight: bold;
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    background: var(--brand-light);
    box-shadow: 0 0 25px 0 rgba(88, 61, 137, 0.8);
    transition: all 0.3s ease;
    border: 1px solid var(--brand-light);
}

.cta-button-lg:hover {
    background-color: var(--brand-accent);
    box-shadow: 0 0 35px 0 rgba(167, 121, 255, 0.8);
    transform: translateY(-3px) scale(1.02);
}

.product-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-showcase::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-light) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.5;
    z-index: 0;
    transition: all 0.5s ease;
}

.product-showcase:hover::before {
    opacity: 0.7;
    transform: scale(1.1);
}

.product-image {
    max-width: 100%;
    border-radius: 1rem;
    position: relative;
    z-index: 1;
    transform: rotate(-5deg);
    transition: all 0.5s ease;
}

.product-showcase:hover .product-image {
    transform: rotate(0) scale(1.05);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(167, 121, 255, 0.1), rgba(167, 121, 255, 0.2));
    border: 1px solid rgba(167, 121, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(167, 121, 255, 0.2), rgba(167, 121, 255, 0.3));
    border-color: var(--brand-accent);
}

.step-number {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--brand-accent);
    background-color: rgba(167, 121, 255, 0.2);
}

.cta-card {
    background: linear-gradient(160deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 50px -10px var(--brand-primary);
}

/* Animation Styles */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s 0.2s ease-out forwards;
}
