/* ==========================================================================
   HALAMAN DEPAN — Algiara Skripsi (publik)
   Minimalis berwarna, sejalan dengan tampilan internal. Nama kelas tetap sama
   dengan markup CMS agar seluruh isi tetap bisa diatur dari admin.
   ========================================================================== */
:root {
    --bg: #f3f5fb;
    --surface: #ffffff;
    --ink: #1c1f3f;
    --ink-2: #3a3f63;
    --text: #262b4a;
    --muted: #6f7593;
    --line: #e3e7f3;
    --line-strong: #cdd4e8;
    --line-2: #eef1f9;
    --hover: #e9edfa;
    --brand: #4f46e5;
    --brand-2: #4338ca;
    --brand-soft: #eceefe;
    --brand-line: #c7cbfa;
    --brand-ink: #3730a3;
    --teal: #0d9488;
    --teal-soft: #e5f6f4;
    --amber: #d97706;
    --amber-soft: #fdf1dc;
    --amber-ink: #92400e;
    --rose: #e11d48;
    --rose-soft: #fdeaf0;
    --violet: #7c3aed;
    --violet-soft: #f1eafe;
    --sky: #0284c7;
    --sky-soft: #e4f2fb;
    --success: #047857;
    --success-soft: #e3f6ee;
    --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-body); color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-body); }

/* ---------- Hero ---------- */
.hero-bg {
    position: relative;
    color: var(--ink-2);
    background: linear-gradient(180deg, #e6e9fb 0%, var(--bg) 100%);
    overflow: hidden;
}
.hero-bg::after { display: none; }
.hero-bg > .container { position: relative; z-index: 1; }

.navbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px 20px;
    padding: 22px 0;
    flex-wrap: wrap;
}
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: 1 1 auto; min-width: 0; }
.nav-logo {
    width: 36px; height: 36px; border-radius: 11px; flex: none;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px;
    box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .85);
    overflow: hidden;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-brand-text b { display: block; font-size: 15px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.nav-brand-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
/* Tautan menu berada di baris kedua (di bawah garis tipis) agar tidak berebut tempat dengan tombol */
.nav-links { order: 3; flex: 0 0 100%; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .25s ease; }
.nav-links a:hover { color: var(--brand-ink); }
.nav-links a:hover::after { right: 0; }
.nav-actions { order: 2; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin-left: auto; }
.nav-actions .btn { padding: 8px 13px; font-size: 13px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 17px; border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap; line-height: 1.2;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1em; height: 1em; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 22px -14px rgba(79, 70, 229, .9); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-amber { background: var(--surface); color: var(--brand-ink); border-color: var(--brand-line); }
.btn-amber:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.btn-glass { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-glass:hover { background: var(--surface); border-color: var(--brand); color: var(--brand-ink); }
.btn-emerald { background: var(--teal-soft); color: #0f766e; border-color: #bfe6e0; }
.btn-emerald:hover { background: #d3efea; color: #0f766e; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; padding: 84px 0 56px; }
.tech-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 11px; border-radius: 999px;
    border: 1px solid var(--brand-line); background: var(--surface);
    color: var(--brand-ink); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.hero-copy h1 {
    margin: 22px 0 20px;
    font-size: clamp(40px, 5.4vw, 64px);
    font-weight: 620;
    color: var(--ink);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.hero-copy h1 span { color: var(--brand); }
.hero-copy p { font-size: 17px; color: var(--muted); max-width: 540px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Panel kanan: kartu akses */
.terminal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px -34px rgba(55, 48, 163, .45);
}
.terminal-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #f7f8fe; }
.terminal-head .dots { display: none; }
.terminal-head span { font-size: 11.5px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink) !important; font-family: var(--font-body) !important; }
.terminal-body { padding: 20px 22px 22px; }
.code-line { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-2); line-height: 1.85; word-break: break-word; }
.code-line .cm { color: #9ca1bd; font-style: italic; }
.code-line .kw { color: var(--brand-ink); font-weight: 600; }
.code-line .str { color: var(--amber-ink); }
.nim-checker { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.nim-checker h4 { font-size: 15px; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.nim-form { display: flex; gap: 8px; flex-wrap: wrap; }
.nim-form input {
    flex: 1 1 200px; min-width: 0; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font-family: inherit; font-size: 14px; font-weight: 400;
}
.nim-form input::placeholder { color: #9ca1bd; }
.nim-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .14); }
.nim-form .btn { padding: 10px 16px; }
.nim-result { margin-top: 14px; padding: 13px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.nim-result .ico { width: 16px; height: 16px; }
.nim-result.ok { background: var(--success-soft); color: #105a40; }
.nim-result.no { background: var(--rose-soft); color: #9f1239; }
.nim-result small { color: inherit; opacity: .85; }

/* ---------- Statistik ---------- */
.stats-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0; position: relative; z-index: 2;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 48px -34px rgba(55, 48, 163, .4);
}
.stat-box {
    --c: var(--brand); --c-soft: var(--brand-soft);
    padding: 24px 26px; display: flex; align-items: center; gap: 14px;
    border-right: 1px solid var(--line);
}
.stat-box:nth-child(2) { --c: var(--teal); --c-soft: var(--teal-soft); }
.stat-box:nth-child(3) { --c: var(--amber); --c-soft: var(--amber-soft); }
.stat-box:nth-child(4) { --c: var(--rose); --c-soft: var(--rose-soft); }
.stat-box:last-child { border-right: 0; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--c-soft);
    color: var(--c);
    display: flex; align-items: center; justify-content: center;
}
.stat-icon .ico { width: 19px; height: 19px; }
.stat-box b { display: block; font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-box span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ---------- Bagian konten ---------- */
.section { padding: 96px 0 0; }
.section-head { text-align: left; max-width: 720px; margin: 0 0 36px; }
.section-head small {
    display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand);
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--ink); margin: 12px 0 12px; font-weight: 620; letter-spacing: -.035em; line-height: 1.08; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.7; }

.schedule-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.schedule-col-box {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
}
.schedule-col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.schedule-col-head h3 { font-size: 16px; color: var(--ink); font-weight: 600; }
.schedule-count { background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sched-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 20px; margin-top: 12px; background: #fafbff; position: relative; }
.sched-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 14px 0 0 14px; background: var(--brand); }
.sched-card.sidang::before { background: var(--teal); }
.sched-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.sched-meta .ico { width: 13px; height: 13px; color: var(--brand); vertical-align: -2px; }
.sched-student { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.sched-student .ico { width: 15px; height: 15px; color: var(--brand); vertical-align: -2px; }
.sched-student span { font-weight: 400; color: var(--muted); font-size: 13px; }
.sched-title { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.sched-examiners { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 12.8px; color: var(--muted); }
.sched-examiners b { color: var(--text); font-weight: 600; }
.sched-notulen { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.8px; color: var(--muted); }
.sched-notulen .ico { width: 13px; height: 13px; color: var(--teal); vertical-align: -2px; }
.sched-notulen b { color: var(--text); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.topic-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
    transition: border-color .2s, box-shadow .2s;
}
.topic-card:hover { border-color: var(--brand-line); box-shadow: 0 16px 32px -24px rgba(55, 48, 163, .5); }
.topic-card .tag {
    display: inline-block; max-width: 100%; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--brand-ink); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; line-height: 1.5;
    white-space: normal; overflow-wrap: anywhere;
}
/* warna penanda tiap topik (urutan 1-6) */
.topic-grid > .topic-card:nth-child(6n+2) .tag { color: #0f766e; background: var(--teal-soft); }
.topic-grid > .topic-card:nth-child(6n+3) .tag { color: var(--amber-ink); background: var(--amber-soft); }
.topic-grid > .topic-card:nth-child(6n+4) .tag { color: #9f1239; background: var(--rose-soft); }
.topic-grid > .topic-card:nth-child(6n+5) .tag { color: #075985; background: var(--sky-soft); }
.topic-grid > .topic-card:nth-child(6n+6) .tag { color: #5b21b6; background: var(--violet-soft); }
.topic-card h3 { font-size: 17px; color: var(--ink); margin: 14px 0 8px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.topic-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.topic-card p .ico { width: 13px; height: 13px; color: var(--brand); vertical-align: -2px; }
.topic-card p b { color: var(--text); }
.topic-card > p:only-child { color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: stepn; }
.step-card {
    --c: var(--brand);
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
    position: relative;
}
.steps-grid > .step-card:nth-child(2) { --c: var(--teal); }
.steps-grid > .step-card:nth-child(3) { --c: var(--amber); }
.steps-grid > .step-card:nth-child(4) { --c: var(--rose); }
.step-num {
    font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.04em;
    color: var(--c); margin-bottom: 18px;
}
.step-card h4 { font-size: 16px; color: var(--ink); font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.footer { margin-top: 96px; background: #1f2250; color: #b8bddf; padding: 40px 0 44px; font-size: 13.5px; line-height: 1.7; text-align: left; }
.footer b { font-size: 15px; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.footer .container { max-width: 1180px; }

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
    .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-box:nth-child(2) { border-right: 0; }
    .stat-box:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .schedule-columns { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .hero-copy p { font-size: 16px; }
    .hero-copy h1 { letter-spacing: -.035em; }
    .stat-box { padding: 18px; gap: 12px; }
    .stat-box b { font-size: 26px; }
    .stat-icon { width: 36px; height: 36px; }
    .sched-examiners { grid-template-columns: 1fr; }
    .section { padding-top: 64px; }
    .btn { width: 100%; }
    .hero-cta .btn, .nav-actions .btn { width: auto; }
}
