:root {
    --bg: #0f1419;
    --bg-card: #1a2028;
    --bg-card-hover: #232b36;
    --border: #2a3441;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --accent: #58a6ff;
    --accent-dim: #1f6feb;
    --green: #3fb950;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 0 20px 40px;
}

/* ==== HERO ==== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #58a6ff, #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.online {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==== MAIN ==== */
main {
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.section-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ==== GRID ==== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ==== CARD ==== */
.card {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.15);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-url {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: "SF Mono", Consolas, monospace;
    opacity: 0.85;
    word-break: break-all;
}

.card-local {
    opacity: 0.75;
    cursor: default;
}

.card-local:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    background: var(--bg-card);
}

/* ==== TABLE ==== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.info-table td:first-child {
    color: var(--text-dim);
    width: 30%;
}

.info-table code {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "SF Mono", Consolas, monospace;
}

/* ==== TECH LIST ==== */
.tech-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.tech-list li {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.tech-list strong {
    color: var(--accent);
}

/* ==== SECTION GRID 2 ==== */
.section-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text);
}

.info-list code {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ==== FOOTER ==== */
.footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
    .info-table td:first-child { width: 40%; }
    body { padding: 0 12px 30px; }
}
