/* Zeta Core AI — laman awam (zetacoreai.cloud). CSS tempatan, tiada CDN / fon luar. */
:root {
    --bg: #0b0f19;
    --card: #111827;
    --line: #1f2937;
    --line-2: #374151;
    --chip: #1f2937;
    --text: #d1d5db;
    --muted: #9ca3af;
    --dim: #6b7280;
    --white: #f9fafb;
    --green: #10b981;
    --green-2: #34d399;
    --cyan: #06b6d4;
    --red: #ef4444;
    --mono: ui-monospace, "Fira Code", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Courier New", monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: #000; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Bar atas */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px clamp(16px, 5vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { color: var(--white); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.btn-outline, .btn-solid {
    display: inline-block; text-decoration: none; font-weight: 700; border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.btn-outline { border: 1px solid var(--green); color: var(--green); padding: 8px 16px; font-size: 0.85rem; white-space: nowrap; }
.btn-outline:hover { background: var(--green); color: #000; }
.btn-solid { background: var(--green); color: #000; padding: 12px 32px; }
.btn-solid:hover { background: var(--green-2); }

/* Kandungan */
.wrap {
    flex: 1;
    width: 100%; max-width: 1024px;
    margin: 0 auto;
    padding: 48px 16px;
    display: flex; flex-direction: column; gap: 48px;
}
h1, h2, h3 { margin: 0; }
h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 24px; }
.accent { color: var(--green); margin-right: 8px; }

/* Terminal */
.terminal { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.terminal-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #0d1320; border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lights .r { background: #ef4444; } .lights .y { background: #eab308; } .lights .g { background: #22c55e; }
.terminal-title { font-size: 0.75rem; color: var(--dim); }
.terminal-body { padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.terminal-body p { margin: 0; }
.cmd { color: var(--muted); overflow-wrap: anywhere; }
.prompt { color: var(--green); }
.terminal h1 { color: var(--cyan); font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.25; padding: 4px 0; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8rem; }
.badge { background: var(--chip); color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 12px; }
.badge.online { color: var(--green-2); border-color: var(--green); }
.badge.offline { color: var(--red); border-color: var(--red); }

/* Kad keupayaan */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; transition: border-color 0.15s; }
.card:hover { border-color: rgba(16, 185, 129, 0.5); }
.card-tag { color: var(--cyan); font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Contoh API */
.code-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; min-width: 0; }
.code-label { font-size: 0.75rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; font-weight: 400; }
pre { margin: 0; background: #000; border-radius: 6px; padding: 16px; overflow-x: auto; font-size: 0.82rem; color: #4ade80; line-height: 1.55; }
code { font-family: var(--mono); }

/* CTA */
.cta { text-align: center; padding: 32px 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(to bottom, var(--card), transparent); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--muted); font-size: 0.9rem; max-width: 34rem; margin: 0 auto 24px; }

.footer { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; font-size: 0.75rem; color: var(--dim); }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .dot { animation: none; }
    * { transition: none !important; }
}
