:root {
    --bg: #F5F7F8;
    --surface: #FFFFFF;
    --border: #DEE3E7;
    --ink: #0B1420;
    --ink-soft: #4B5A67;
    --ink-faint: #8393A0;
    --teal: #0C8C82;
    --teal-strong: #086C64;
    --teal-dim: #E4F3F1;
    --amber: #C97A1E;
    --amber-dim: #FBF0DF;
    --amber-border: #EAC98C;
    --navy-deep: #0A1622;
    --navy-panel: #0E1D2C;
    --grid-line: rgba(255, 255, 255, 0.06);
    --radius: 10px;
    --max: 1180px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

@media (max-width:720px) {
    section {
        padding: 64px 0;
    }
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-strong);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 16px;
    height: 1px;
    background: var(--teal);
    display: inline-block;
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 16px;
    margin: 0;
}

/* ---------- NAV ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 247, 248, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-links {
    display: flex;
    gap: 20px; /* Diturunkan dari 32px ke 20px agar muat 7 link */
    font-size: 14px;
    color: var(--ink-soft);
}

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

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-dim);
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: var(--ink-soft);
}

.nav-links a {
    text-decoration: none;
    transition: color .15s ease;
}

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

.nav-cta {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    background: var(--ink);
    color: #fff;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width:820px) {
    .nav-links {
        display: none;
    }
}

/* ---------- BUTTONS ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

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

.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 4px 14px rgba(12, 140, 130, 0.25);
}

.btn-primary:hover {
    background: var(--teal-strong);
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--ink-faint);
}

.btn-arrow {
    transition: transform .15s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(2px);
}

/* ---------- HERO ---------- */
.hero {
    padding: 72px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

@media (max-width:940px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero h1 {
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal-strong);
}

.hero p.lede {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-note {
    font-size: 13px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
}

.hero-note a {
    color: var(--teal-strong);
    text-decoration: underline;
}

/* scan viewer signature element */
.scan-panel {
    background: var(--navy-panel);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #1B2E3F;
    box-shadow: 0 30px 60px -20px rgba(10, 22, 34, 0.45);
}

.scan-hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #6E8A9C;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.scan-hud-row .live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3FBDAE;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3FBDAE;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.scan-frame {
    position: relative;
    aspect-ratio: 4/3.1;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 55% 42%, rgba(63, 189, 174, 0.16), transparent 55%),
        linear-gradient(180deg, #0C1A26 0%, #081119 100%);
    border: 1px solid #16283A;
}

.scan-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 24px 24px;
}

.scan-blob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62%;
    height: 62%;
    transform: translate(-50%, -50%);
    filter: blur(0.5px);
    opacity: 0.9;
}

.scan-corner {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #5C7A8C;
    letter-spacing: 0.03em;
}

.scan-corner.tl {
    top: 10px;
    left: 12px;
}

.scan-corner.tr {
    top: 10px;
    right: 12px;
    text-align: right;
}

.scan-corner.bl {
    bottom: 10px;
    left: 12px;
}

.scan-corner.br {
    bottom: 10px;
    right: 12px;
    text-align: right;
}

.scan-box {
    position: absolute;
    border: 1.5px dashed #3FBDAE;
    border-radius: 3px;
    stroke-dasharray: none;
}

.scan-box-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #0A1622;
    background: #3FBDAE;
    padding: 2px 6px;
    border-radius: 3px;
    top: -20px;
    left: -1.5px;
    white-space: nowrap;
}

.scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, transparent, rgba(63, 189, 174, 0.10), transparent);
    animation: sweep 3.2s linear infinite;
}

@keyframes sweep {
    0% {
        top: -70px;
    }

    100% {
        top: 100%;
    }
}

.scan-footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #6E8A9C;
    margin-top: 12px;
}

.scan-footer .conf {
    color: #3FBDAE;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .scanline {
        animation: none;
        display: none;
    }

    .live-dot {
        animation: none;
    }
}

/* ---------- APA ITU ONCOVISION AI ---------- */
.overview-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Kolom kiri sedikit lebih lebar */
    gap: 64px;
    align-items: flex-start;
}

.overview-about h2,
.overview-faq h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    margin-bottom: 24px;
}

.about-content p {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0 0 16px 0;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ---------- SMOOTH ACCORDION STYLING ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--teal);
}

/* Mengubah summary jadi button agar aksesibel & hilangkan default style */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Icon Indikator (+ / -) */
.faq-icon {
    font-family: var(--font-mono);
    color: var(--teal-strong);
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Wrapper pembungkus animasi */
.faq-collapse {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Konten jawaban bagian dalam */
.faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.faq-answer p {
    margin: 0;
}

/* State Aktif saat Terbuka (Dipicu via JS) */
.faq-item.active {
    border-color: var(--teal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Mengubah ikon + jadi silang secara smooth */
    color: var(--amber); /* Opsional: ganti warna pas kebuka */
}

.faq-answer ul li {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.faq-answer ul li strong {
    color: var(--ink);
}

@media (max-width: 940px) {
    .overview-grid {
        grid-template-columns: 1fr; /* Berubah menjadi 1 kolom (atas-bawah) */
        gap: 48px; /* Mengurangi jarak antar kolom */
    }

    .overview-about h2,
    .overview-faq h2 {
        margin-bottom: 16px; /* Memperpendek jarak judul di layar medium */
    }
}

/* Untuk layar HP / Smartphone (Lebar Maksimal 480px) */
@media (max-width: 480px) {
    .faq-question {
        padding: 16px 16px; /* Memperkecil padding tombol pertanyaan agar teks lebih luas */
        font-size: 14px; /* Sedikit memperkecil ukuran font teks FAQ */
    }

    .faq-answer {
        padding: 0 16px 16px 16px; /* Menyesuaikan padding konten jawaban */
    }
    
    .about-content p {
        font-size: 14.5px; /* Mengoptimalkan keterbacaan teks utama di HP */
    }
}

/* ---------- MODULES ---------- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width:900px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

.module-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .15s ease, transform .15s ease;
}

.module-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.module-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-strong);
    letter-spacing: 0.04em;
}

.module-card h3 {
    font-size: 19px;
    margin: 0;
}

.module-card .model-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 5px;
    display: inline-block;
    width: fit-content;
}

.module-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.module-metric {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.module-metric .val {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
}

.module-metric .lbl {
    font-size: 12px;
    color: var(--ink-faint);
}

/* ---------- PROCESS ---------- */
.process {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

@media (max-width:900px) {
    .process-row {
        grid-template-columns: 1fr;
    }
}

.process-step {
    padding: 26px 24px;
    border-right: 1px solid var(--border);
    position: relative;
}

.process-row .process-step:last-child {
    border-right: none;
}

@media (max-width:900px) {
    .process-step {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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

.process-step .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--teal-strong);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: block;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 0 0 8px;
}

.process-step p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ---------- PERFORMANCE ---------- */
.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width:860px) {
    .perf-grid {
        grid-template-columns: 1fr;
    }
}

.perf-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.perf-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 0 0 4px;
}

.perf-card .sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 18px;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

th,
td {
    text-align: left;
    padding: 9px 6px;
    border-bottom: 1px solid var(--border);
}

th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    text-transform: uppercase;
    font-weight: 500;
}

td {
    font-family: var(--font-mono);
    color: var(--ink-soft);
}

td:first-child,
th:first-child {
    font-family: var(--font-body);
    color: var(--ink);
}

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

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.stat-row .k {
    color: var(--ink-soft);
}

.stat-row .v {
    font-family: var(--font-mono);
    font-weight: 600;
}

.caveat {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--amber-dim);
    border: 1px solid var(--amber-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 13.5px;
    color: #6B4715;
}

.caveat strong {
    color: #573A10;
}

/* ---------- TECH STACK ---------- */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-pill {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 20px;
    color: var(--ink-soft);
}

/* ---------- API ---------- */
.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width:860px) {
    .api-grid {
        grid-template-columns: 1fr;
    }
}

.code-panel {
    background: var(--navy-deep);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #16283A;
}

.code-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-bottom: 1px solid #16283A;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #6E8A9C;
}

.code-panel-head .d {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2A3F52;
}

.code-panel pre {
    margin: 0;
    padding: 18px 16px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.65;
    color: #B7E4DD;
    overflow-x: auto;
}

.code-panel .k {
    color: #3FBDAE;
}

.code-panel .s {
    color: #E8C07D;
}

.code-panel .c {
    color: #6E8A9C;
}

/* ---------- IMPACT / MANFAAT ---------- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width:900px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

.impact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.impact-card .impact-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-strong);
    letter-spacing: 0.06em;
}

.impact-card h3 {
    font-size: 18px;
    margin: 0;
}

.impact-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.impact-intro {
    color: var(--ink-soft);
    font-size: 15px;
    max-width: 760px;
    margin: -24px 0 40px;
}

/* ---------- DISCLAIMER ---------- */
.disclaimer-section {
    background: var(--amber-dim);
    border-top: 1px solid var(--amber-border);
    border-bottom: 1px solid var(--amber-border);
}

.disclaimer-box {
    background: #fff;
    border: 1px solid var(--amber-border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 820px;
}

.disclaimer-box .eyebrow {
    color: var(--amber);
}

.disclaimer-box .eyebrow::before {
    background: var(--amber);
}

.disclaimer-box h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.disclaimer-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.disclaimer-box li {
    margin-bottom: 10px;
}

.disclaimer-box li:last-child {
    margin-bottom: 0;
}

/* ---------- DATASET ---------- */
.dataset-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dataset-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.dataset-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    max-width: 460px;
}

/* ---------- FOOTER REAMPED ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 48px 0;
    background-color: var(--bg-subtle, #fafafa);
    /* Opsional: memberi sedikit warna latar berbeda */
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

/* Kolom Branding */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}

.brand-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 360px;
}

/* Grouping & Judul Kolom */
.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-group h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin: 0;
}

/* Profile Section */
.developer-profile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.dev-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.dev-role {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--ink-faint);
    background: var(--bg-badge, #eef2f6);
    padding: 2px 8px;
    border-radius: 4px;
    width: max-content;
}

/* Link Navigasi */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-links a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ink);
}

/* Meta Informasi */
.footer-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 12px;
}

/* Responsif untuk Layar Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-desc {
        max-width: 100%;
    }
}