:root {
    --bg-dark: #070709;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent-1: #3b82f6; /* Blue */
    --accent-2: #8b5cf6; /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary, .btn-primary-small {
    background: var(--accent-gradient);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Graphics / Mockups */
.hero-graphics {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 600px;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: var(--accent-2);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: pulse 8s infinite alternate;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.mockup-1 {
    position: absolute;
    width: 260px;
    height: 520px;
    right: 40px;
    top: 20px;
    border-radius: 32px;
    transform: rotate(-8deg);
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
    border: 2px solid rgba(255,255,255,0.1);
}

.mockup-1::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.mockup-2 {
    position: absolute;
    width: 220px;
    height: 440px;
    right: 220px;
    top: 120px;
    border-radius: 28px;
    transform: rotate(6deg);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(255,255,255,0.05);
}

/* Sections */
section {
    padding: 8rem 5%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
}

/* Products Banner */
.product-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-info {
    flex: 1;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.product-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.product-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.chat-mockup {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.chat-bubble {
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    max-width: 85%;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.02);
}

.chat-bubble.left {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-bubble.right {
    background: var(--accent-gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

/* Ranky Mockup */
.ranky-mockup {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    animation: loadProgress 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loadProgress {
    from { width: 0%; }
}

/* About */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-stats {
    flex: 1;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent-1);
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.8rem;
    font-weight: 500;
}

/* Contact */
.contact {
    display: flex;
    justify-content: center;
}

.contact-box {
    max-width: 650px;
    width: 100%;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.contact-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-2);
}

.contact-form button {
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.35; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Responsive */
@media (max-width: 968px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-graphics { width: 400px; }
    .mockup-1, .mockup-2 { transform: scale(0.8); right: 0; }
    .about { flex-direction: column; gap: 3rem; text-align: center; }
    .section-title { text-align: center !important; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add hamburger menu for real prod */
    .hero { flex-direction: column; text-align: center; justify-content: center; padding-top: 8rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-graphics { position: relative; width: 100%; height: 400px; transform: none; top: 0; right: 0; margin-top: 2rem; display: flex; justify-content: center; align-items: center; }
    .mockup-1 { position: relative; right: auto; top: auto; transform: rotate(-5deg); z-index: 2; }
    .mockup-2 { position: absolute; right: auto; top: 10%; transform: rotate(5deg) translateX(50px); z-index: 1; }
    .product-banner { flex-direction: column; padding: 2.5rem 1.5rem; gap: 3rem; text-align: center; }
    .product-info h3 { font-size: 2rem; }
    .about-stats { flex-direction: column; gap: 2rem; }
    .contact-box { padding: 2.5rem 1.5rem; }
}
