/* ==========================================================================
   DHYRION - SITUS (landing, artikel)
   Warna dari logo: biru #2563eb -> toska #2dd4bf, teks navy. Gelap = default
   kalau sistem gelap; tombol tema menyimpan pilihan di localStorage.
   ========================================================================== */
:root {
    --brand-1: #2563eb;
    --brand-2: #2dd4bf;
    --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));

    --bg: #f6f9fc;
    --bg-alt: #edf3f9;
    --surface: #ffffff;
    --border: #dbe4ee;
    --text: #0f2440;
    --text-2: #46607e;
    --text-3: #6b819b;
    --code-bg: #e8f0f8;
    --link: #1d4ed8;
    --term-bg: #06101d;
    --shadow: 0 1px 2px rgba(15, 36, 64, .06), 0 8px 24px rgba(15, 36, 64, .08);
    --radius: 16px;
    --nav-bg: rgba(246, 249, 252, .78);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #07111f;
        --bg-alt: #0a1728;
        --surface: #0e1d31;
        --border: #1c3150;
        --text: #e7eef7;
        --text-2: #a5b7cc;
        --text-3: #7d93ad;
        --code-bg: #13263f;
        --link: #5eead4;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
        --nav-bg: rgba(7, 17, 31, .72);
    }
}
:root[data-theme="dark"] {
    --bg: #07111f;
    --bg-alt: #0a1728;
    --surface: #0e1d31;
    --border: #1c3150;
    --text: #e7eef7;
    --text-2: #a5b7cc;
    --text-3: #7d93ad;
    --code-bg: #13263f;
    --link: #5eead4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --nav-bg: rgba(7, 17, 31, .72);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; }
p { margin: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.container-narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 6px 20px -6px rgba(37, 99, 235, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -6px rgba(37, 99, 235, .65); }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: #0f2440 !important; }
.btn-light:hover { transform: translateY(-1px); }

.icon-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .i-sun { display: none; }
    :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ---------- Navigasi ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text) !important; text-decoration: none; }
.brand-sm { font-size: 16px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { color: var(--text-2) !important; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text) !important; background: var(--bg-alt); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-burger { display: none; }
@media (max-width: 820px) {
    .nav-burger { display: inline-grid; }
    .nav-actions .btn { display: none; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
@media (min-width: 960px) { .hero { padding: 104px 0 88px; } }
.hero-glow {
    position: absolute; inset: -30% -10% auto; height: 640px; pointer-events: none;
    background:
        radial-gradient(40% 50% at 25% 40%, rgba(37, 99, 235, .22), transparent 70%),
        radial-gradient(35% 45% at 75% 30%, rgba(45, 212, 191, .2), transparent 70%);
    filter: blur(10px);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2);
    background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(45, 212, 191, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); } }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 750; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--text-3); font-size: 14px; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Terminal NMEA */
.terminal { min-width: 0; background: var(--term-bg); border: 1px solid #1c3150; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(2, 10, 25, .55), 0 0 0 1px rgba(45, 212, 191, .06); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #16273f; background: #091628; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.terminal-title { margin-left: 8px; color: #7d93ad; font-size: 13px; font-weight: 600; }
.terminal-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #5eead4; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.terminal-live .dot { width: 6px; height: 6px; }
.terminal-body {
    margin: 0; padding: 16px 18px; height: 296px; overflow: hidden;
    font: 12.5px/1.75 ui-monospace, "Cascadia Code", Consolas, monospace; color: #9fb4cc; white-space: pre;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%);
}
@media (max-width: 520px) { .terminal-body { font-size: 10.5px; height: 250px; padding: 12px; } }
.terminal-body .ln { display: block; }
.terminal-body .t-gps { color: #5eead4; }
.terminal-body .t-hdg { color: #93c5fd; }
.terminal-body .t-mru { color: #c4b5fd; }
.terminal-body .t-dep { color: #fcd34d; }
.terminal-body .t-usbl { color: #f9a8d4; }
.terminal-body .t-cs { color: #4b6383; }

/* ---------- Statistik ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--border); }
@media (max-width: 759px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }
.stat strong { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 750; letter-spacing: -0.02em; }
.stat span { color: var(--text-3); font-size: 14px; }

/* ---------- Seksi ---------- */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { color: var(--brand-1); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
:root[data-theme="dark"] .kicker { color: var(--brand-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--brand-2); } }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 720; }
.section-lead { margin-top: 14px; color: var(--text-2); font-size: 1.06rem; }

/* Bento fitur */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } .card-wide { grid-column: span 2; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-2) 45%, var(--border)); }
.card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.card p { color: var(--text-2); font-size: .98rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(45, 212, 191, .16)); color: var(--brand-1); }
:root[data-theme="dark"] .card-icon { color: var(--brand-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-icon { color: var(--brand-2); } }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-accent { background: linear-gradient(160deg, color-mix(in srgb, var(--brand-1) 9%, var(--surface)), var(--surface) 60%); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg-alt); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }

/* Screenshot */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 60px -24px rgba(2, 10, 25, .45); background: #121212; }
.shot img { width: 100%; height: auto; }

/* Langkah */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }
.step h3 { font-size: 1.12rem; margin: 16px 0 8px; }
.step p { color: var(--text-2); font-size: .98rem; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-2); font-size: .97rem; }
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--brand-1); stroke-width: 2; stroke-linecap: round; }
.callout strong { color: var(--text); }

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--bg-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:last-child { white-space: nowrap; color: var(--text-2); }
.table code + code { margin-left: 4px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--text-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 18px; }

/* CTA */
.section-cta { padding-top: 0; }
.cta-band { text-align: center; border-radius: 24px; padding: 56px 24px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255, 255, 255, .22), transparent 60%); pointer-events: none; }
.cta-band h2 { position: relative; color: #fff; }
.cta-band p { position: relative; margin: 12px auto 28px; max-width: 52ch; opacity: .92; font-size: 1.06rem; }
.cta-band .btn { position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-text { color: var(--text-3); font-size: 14px; }
.footer-text a { color: var(--text-2) !important; }

/* ---------- Artikel ---------- */
.preview-bar { background: #d97706; color: #fff; font-size: 14px; font-weight: 600; padding: 8px 0; }
.preview-bar a { color: #fff; }
.article { padding: 56px 0 88px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 750; }
.article-head .lead { margin-top: 16px; }
.article-meta { margin-top: 16px; color: var(--text-3); font-size: 14px; }
.article-cover { margin: 36px auto 0; max-width: 1000px; }
.article-cover img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.prose { margin-top: 40px; font-size: 1.07rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-2); color: var(--text-2); }
.prose pre { border: 1px solid var(--border); background: var(--term-bg); color: #cfe0f3; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: .9em; line-height: 1.6; }
.prose pre code { background: none; padding: 0; white-space: pre; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.section-alt + .section-cta { padding-top: 80px; }

/* ---------- Kartu & daftar artikel ---------- */
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit !important; transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-2) 45%, var(--border)); }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(45, 212, 191, .25)); display: grid; place-items: center; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .post-cover-logo { width: 56px; height: 56px; opacity: .85; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { font-size: 1.15rem; }
.post-body p { color: var(--text-2); font-size: .97rem; }
.post-meta { margin-top: auto; padding-top: 8px; color: var(--text-3); font-size: 13.5px; }
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 750; }
.page-hero .lead { margin-top: 14px; }
.list-section { padding: 24px 0 96px; }
.empty-note { color: var(--text-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-3); }
.article-cta { margin-top: 56px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-alt); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-cta p { color: var(--text-2); }
.article-cta strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 2px; }
.more { border-top: 1px solid var(--border); padding: 64px 0 88px; background: var(--bg-alt); }
.more h2 { font-size: 1.5rem; margin-bottom: 24px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { display: inline-block; font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; }
.notfound h1 { margin-top: 12px; font-size: 1.8rem; }
.notfound p { color: var(--text-2); margin: 12px auto 28px; max-width: 46ch; }
.notfound .hero-cta { justify-content: center; }
