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

:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --bg-card: #161616;
    --border: #262626;
    --text: #ededed;
    --text-secondary: #888;
    --accent: #00d4aa;
    --accent-dim: rgba(0, 212, 170, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-bar {
    width: 40px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    margin: 12px auto 0;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 16px;
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(44px); }
}

.loader-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    gap: 6px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    border-color: var(--text-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/1920/1080') center/cover;
    filter: blur(40px) brightness(0.3);
    transform: scale(1.1);
    z-index: 0;
}

.hero-content {
    max-width: 720px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 32px 0;
    text-align: left;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #a5b4fc;
    white-space: pre;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    text-align: center;
}

.section-desc {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    font-size: 15px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    transition: border-color 0.15s ease;
}

.model-card:hover {
    border-color: var(--text-secondary);
}

.model-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.model-provider {
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-list {
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    font-family: 'SF Mono', monospace;
    min-width: 28px;
}

.feature-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pricing-table {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.header {
    background: var(--bg-card);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    justify-content: center;
}

.pricing-row.action {
    background: var(--bg-card);
    justify-content: center;
}

.pricing-row.header span,
.pricing-row.action span {
    grid-column: 1 / -1;
    text-align: center;
}

.pricing-row span:first-child {
    color: var(--text-secondary);
}

.pricing-row .highlight {
    background: var(--accent-dim);
}

.steps {
    max-width: 500px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    padding: 28px 0;
}

.step-num {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', monospace;
    color: var(--accent);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.footer-right {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.footer-right a {
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.footer-right a:hover {
    color: var(--text);
}

.main-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-list {
    max-width: 640px;
    margin: 0 auto;
}

.blog-card {
    max-width: 500px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.blog-card a {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    transition: border-color 0.15s ease;
}

.blog-card:hover a {
    border-color: var(--text-secondary);
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
    margin-bottom: 6px;
}

.blog-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    transition: color 0.15s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
}

.blog-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item a {
    display: block;
}

.blog-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    transition: color 0.15s ease;
}

.blog-item:hover .blog-item-title {
    color: var(--accent);
}

.blog-item-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
    margin-bottom: 6px;
}

.blog-item-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.blog-more-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.blog-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.monitor-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.monitor-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    transition: border-color 0.15s ease;
}

.status-card:hover {
    border-color: var(--text-secondary);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.status-card-name {
    font-weight: 600;
    font-size: 15px;
}

.status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-up {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
}

.status-down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.status-maintain {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
}

.status-unknown {
    background: rgba(136, 136, 136, 0.12);
    color: var(--text-secondary);
}

.status-bar-track {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.status-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

.status-bar-fill.status-up {
    background: #00d4aa;
}

.status-bar-fill.status-down {
    background: #ef4444;
}

.status-bar-fill.status-maintain {
    background: #facc15;
}

.status-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-inner {
        padding: 14px 16px;
    }
    
    .nav-links {
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        border-top: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .hero {
        padding: 100px 16px 60px;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 28px;
        letter-spacing: -1px;
    }
    
    .hero-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .code-block {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .model-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .model-card {
        padding: 16px;
    }

    .feature-item {
        gap: 16px;
        padding: 24px 0;
    }

    .feature-num {
        min-width: 24px;
        font-size: 12px;
    }

    .feature-content h3 {
        font-size: 15px;
    }

    .feature-content p {
        font-size: 13px;
    }

    .pricing-table {
        font-size: 13px;
    }

    .pricing-row {
        grid-template-columns: 90px 1fr;
        padding: 12px 16px;
    }
    
    .step {
        gap: 16px;
        padding: 20px 0;
    }
    
    .step-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step h3 {
        font-size: 15px;
    }
    
    .step p {
        font-size: 13px;
    }
    
    .blog-card {
        margin-top: 24px;
    }
    
    .blog-card a {
        padding: 16px;
    }
    
    .blog-item {
        padding: 16px 0;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .status-card {
        padding: 16px;
    }

    .footer {
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }
}
