:root {
    --primary: #00E5FF;
    /* Cyan / Electric Blue */
    --primary-hover: #00B8D4;
    --secondary: #7C4DFF;
    /* Deep Purple */
    --accent: #18FFFF;
    --bg-dark: #050b14;
    /* Deep Night Blue */
    --bg-darker: #020408;
    --text-white: #ffffff;
    --text-gray: #b0c4de;
    /* Light Steel Blue */
    --glass-bg: rgba(10, 20, 40, 0.7);
    /* Bluish dark glass */
    --glass-border: rgba(0, 229, 255, 0.2);
    --font-main: 'Noto Sans TC', sans-serif;
    --neon-glow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    /* Starry Sky Gradient */
    background-image:
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 20% 20%, #fff, transparent),
        radial-gradient(2px 2px at 30% 30%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.2) 0%, transparent 60%),
        /* Purple Nebula */
        radial-gradient(circle at 10% 100%, rgba(0, 229, 255, 0.15) 0%, transparent 50%),
        /* Cyan Nebula */
        linear-gradient(180deg, #020205 0%, #0a1020 100%);
    background-attachment: fixed;
    background-size: 550px 550px, 350px 350px, 250px 250px, 100% 100%, 100% 100%, 100% 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #0091EA 0%, #00E5FF 100%);
    /* Blue to Cyan */
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    border: 1px solid #18FFFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00B8D4 0%, #84FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

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

.btn-secondary:hover {
    border-color: var(--text-white);
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 40px;
    /* Match logo height for absolute reference */
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
    text-decoration: none;
    line-height: 1;
    /* Prevent text from creating its own box height */
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.nav-logo {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--primary));
    display: block;
    /* Remove baseline spacing entirely */
    transform: translateY(4px);
    /* Manual nudge down to align with text */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Dynamic background element */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    animation: pulseBlue 5s infinite alternate;
}

@keyframes pulseBlue {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
}

/* Global Hero Title (Used on sub-pages) */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-title .highlight {
    background: linear-gradient(180deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    display: inline-block;
}

/* --- Homepage Hero Title Styles (v2.1) --- */
.hero-banner-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
}

.cool-banner {
    position: relative !important;
    display: inline-block !important;
    padding: 20px 80px !important;
    background: rgba(10, 20, 40, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 229, 255, 0.5) !important;
    border-radius: 100px !important;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.1) !important;
    overflow: hidden;
    animation: floatingUpAndDown 3s ease-in-out infinite;
    z-index: 10;
}

.cool-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    animation: sweep 4s infinite linear;
    z-index: 1;
}

@keyframes sweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.floating-main-text {
    font-size: 5rem !important;
    font-weight: 900 !important;
    letter-spacing: 4px !important;
    line-height: normal;
}

/* Specific highlight gradient for the banner text */
.cool-banner .highlight {
    background: linear-gradient(180deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    position: relative;
    z-index: 2;
}

@keyframes floatingUpAndDown {

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

    50% {
        transform: translateY(-20px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px;
    transition: all 0.4s;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.card-desc {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Pricing */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-top: 4px solid var(--secondary);
}

.pricing-card.featured {
    border-top: 4px solid var(--primary);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.2) 0%, rgba(10, 20, 50, 0.8) 100%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -15px;
    background: var(--primary);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--text-gray);
}

.revenue-share {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 5px 10px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 4px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    width: 100%;
}

.plan-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* Pricing Table */
.table-container {
    overflow-x: auto;
    background: var(--glass-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.pricing-table th,
.pricing-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table th {
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 20px;
}

.pricing-table td {
    color: var(--text-white);
    font-weight: 500;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Hosting Cards */
.hosting-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.hosting-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.hosting-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
    z-index: 5;
}

.hosting-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
    z-index: 4;
}

.hosting-card.recommended:hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
    transform: translateY(-10px) scale(1.08);
    z-index: 10;
}

.hosting-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hosting-price {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 900;
    margin-bottom: 15px;
}

.hosting-limit {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Package List */
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.package-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.package-item span {
    color: #fff;
    font-weight: 500;
}

/* TOS Section */
.tos-box {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--secondary);
    padding: 40px;
    border-radius: 8px;
    margin-top: 50px;
}

.tos-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}

.tos-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid var(--primary);
}

.tos-item h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tos-item p {
    color: #ccc;
    font-size: 0.95rem;
}

.highlight-warning {
    color: #ff5252;
    font-weight: 700;
}

.alert-danger {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff8a80;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    font-weight: 700;
    text-shadow: none;
}

/* Contact */
.contact-wrapper {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

    .hero-buttons {
        flex-direction: column;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
        /* Simplify for now, or add hamburger menu */
    }

    .pricing-table {
        font-size: 0.9rem;
    }
}