/* ─────────────────────────────────────────────────────────────
   JUDOL DETECTOR — Landing Page Stylesheet
   Design: Clean light, minimal, no AI-slop decorations
   ───────────────────────────────────────────────────────────── */

/* Nohemi Font */
@font-face {
    font-family: 'Nohemi';
    src: url('fonts/Nohemi/Nohemi/Variable-TT/Nohemi-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --white:        #ffffff;
    --bg:           #f6f6f6;
    --surface:      #ffffff;
    --border:       #e4e4e4;
    --border-dark:  #cecece;
    --text:         #111111;
    --text-2:       #444444;
    --text-3:       #888888;
    --accent:       #070707;
    --accent-light: #f0f0f0;
    --accent-mid:   #cccccc;
    --danger:       #c92a2a;
    --danger-light: #fff5f5;
    --danger-mid:   #ffc9c9;
    --success:      #2f9e44;
    --mono:         'SF Mono', 'Fira Code', 'Consolas', monospace;
    --font:         'Nohemi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r-s:          6px;
    --r:            10px;
    --r-l:          16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(246,246,246,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.site-nav.scrolled {
    border-color: var(--border);
}

.nav-inner {
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-img-nav {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.install-card-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 1px solid var(--border);
}

.install-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.logo-icon svg { width: 15px; height: 15px; }

.logo span {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo strong { font-weight: 900; }

nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--r-s);
    transition: color 0.15s, background 0.15s;
}

nav a:hover {
    color: var(--text);
    background: rgba(0,0,0,0.04);
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    margin-left: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: #333333 !important;
    color: white !important;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    background: var(--accent);
    color: white;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--r);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-1px);
}

.btn-primary svg { width: 15px; height: 15px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    background: white;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-dark);
    border-radius: var(--r);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, transform 0.1s;
    line-height: 1;
}

.btn-outline:hover {
    border-color: #aaaaaa;
    color: var(--text);
    transform: translateY(-1px);
}

.btn-outline svg { width: 15px; height: 15px; transition: transform 0.15s; }
.btn-outline:hover svg { transform: translateX(3px); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    padding: 100px 24px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 460px;
    min-height: calc(16px * 1.7 * 3); /* reserve 3 lines height to prevent layout shift */
}

.typewriter-cursor {
    display: inline-block;
    color: var(--text-2);
    font-weight: 300;
    animation: tw-blink 0.8s step-end infinite;
    margin-left: 1px;
}

@keyframes tw-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── MOCKUP ─────────────────────────────────────────────── */
.mockup {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-l);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.08),
        0 24px 48px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mockup:hover {
    transform: scale(1.03);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.06),
        0 12px 32px rgba(0,0,0,0.12),
        0 32px 64px rgba(0,0,0,0.1);
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-l);
    image-rendering: -webkit-optimize-contrast;
}

.mockup-chrome {
    background: #f0f0f0;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chrome-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: #ffbd2e; }
.chrome-dots span:nth-child(3) { background: #28c840; }

.chrome-bar {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-3);
    overflow: hidden;
}

.chrome-lock { width: 10px; height: 10px; color: var(--success); flex-shrink: 0; }

.mockup-content {
    padding: 18px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* fake article content */
.fake-heading {
    height: 14px;
    width: 75%;
    background: #e8e8e8;
    border-radius: 4px;
}

.fake-para {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fake-line {
    height: 8px;
    background: #efefef;
    border-radius: 3px;
}

.w-full { width: 100%; }
.w-90   { width: 90%; }
.w-80   { width: 80%; }
.w-65   { width: 65%; }
.w-55   { width: 55%; }

/* detection alert inside mockup */
.mock-alert {
    border: 1px solid var(--danger-mid);
    background: var(--danger-light);
    border-radius: var(--r);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-alert-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mock-alert-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    margin-top: 1px;
}

.mock-alert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-alert-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--danger);
}

.mock-alert-sub {
    font-size: 10.5px;
    color: var(--text-3);
}

.mock-scores {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-score-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--text-3);
}

.mock-score-row span:first-child { width: 80px; flex-shrink: 0; }

.mock-bar-track {
    flex: 1;
    height: 4px;
    background: var(--danger-mid);
    border-radius: 2px;
    overflow: hidden;
}

.mock-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.mock-bar-fill.red { background: var(--danger); }

.mock-score-val { font-weight: 700; width: 26px; text-align: right; flex-shrink: 0; }
.mock-score-val.red { color: var(--danger); }

.mock-alert-btns {
    display: flex;
    gap: 6px;
}

.mock-btn {
    flex: 1;
    padding: 5px 8px;
    border: none;
    border-radius: 5px;
    font-family: var(--font);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
}

.mock-btn-red   { background: var(--danger); color: white; }
.mock-btn-ghost { background: white; color: var(--text-2); border: 1px solid var(--border-dark); }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.section-white { background: white; }

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-inner h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 48px;
}

/* ─── CARA KERJA — Card Stack ────────────────────────────── */
.ck-stage {
    position: relative;
    max-width: 400px;
    margin: 32px auto 0;
    user-select: none;
}

/* The stack container */
.ck-stack {
    position: relative;
    overflow: hidden;        /* clip cards peeking below */
    padding-bottom: 56px;    /* peek space */
}

/* Each card — natural height, stacked absolutely */
.ck-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: #111111;
    border-radius: 20px;
    padding: 24px 22px 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1),
                opacity  0.45s ease;
    will-change: transform, opacity;
}

.ck-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.45);
}

.ck-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ck-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.ck-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ck-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

/* Dots */
.ck-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.ck-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: var(--border-dark);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.ck-dot.active {
    background: var(--accent);
    transform: scale(1.35);
}

/* ─── FITUR ──────────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-l);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.feature:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.feature-text {
    padding: 20px 22px 24px;
}

.feature-icon {
    display: none;
}

.feature h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

/* ── Feature video ── */
.feature-video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    flex-shrink: 0;
}

.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature:hover .feature-video {
    transform: scale(1.03);
}

/* lightbox overlay */
.fv-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
    animation: fv-fadein 0.2s ease;
}

@keyframes fv-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fv-lightbox video {
    max-width: min(900px, 92vw);
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    cursor: default;
    animation: fv-scalein 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fv-scalein {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.fv-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.fv-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ─── INSTALL ────────────────────────────────────────────── */
.install-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 0;
}

/* Left brand column */
.install-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.install-brand-logo {
    width: 240px;
    height: auto;
    object-fit: contain;
    display: block;
}

.install-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.install-list {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--r-l);
    overflow: hidden;
    background: white;
}

.install-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.install-item:last-child { border-bottom: none; }
.install-item:hover { background: #fafafa; }

.install-num {
    width: 24px;
    height: 24px;
    background: var(--text);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.install-body strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.install-body span {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
}

/* Footer: version / date / download */
.install-footer {
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

.install-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
}

.install-footer-label {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}

.install-footer-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.install-download {
    display: flex;
    justify-content: center;
    margin: 24px auto 0;
    min-width: 220px;
    width: fit-content;
    animation: btn-float 2.2s ease-in-out infinite;
}

@keyframes btn-float {
    0%,  100% { transform: translateY(0); }
    50%        { transform: translateY(-7px); }
}

.install-note {
    font-size: 11.5px;
    color: var(--text-3);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: #f0f0f0;
    border: 1px solid var(--border-dark);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--text-2);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    background: white;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }

.footer-brand p {
    font-size: 12px;
    color: var(--text-3);
    max-width: 360px;
    line-height: 1.5;
}

.footer-meta {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-meta span { opacity: 0.5; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero p { max-width: 100%; }
    .features { grid-template-columns: 1fr 1fr; }
    .install-grid { grid-template-columns: 1fr; }
    .install-brand { flex-direction: column; align-items: center; text-align: center; }
    .install-brand-logo { width: 120px; }
}

@media (max-width: 640px) {
    .hero { padding: 88px 20px 60px; }
    .section { padding: 60px 20px; }
    .nav-inner { padding: 0 20px; }
    nav a:not(.nav-cta) { display: none; }
    .features { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .ck-stage { max-width: 100%; }
    .ck-stack { height: auto; min-height: 480px; }
    .ck-title { font-size: 17px; }
}

/* ─── INTRO SPLASH ───────────────────────────────────────── */
#intro-overlay {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 99999;
    pointer-events: none;
}

#intro-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 100000;
    pointer-events: none;
}

/* ─── CARD EQUAL HEIGHT ──────────────────────────────────── */
.ck-card {
    min-height: 480px;
}

/* ─── WORD REVEAL ON SCROLL ──────────────────────────────── */
.reveal-words .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-words.revealed .word {
    opacity: 1;
    transform: translateY(0);
}

/* ─── LOGO SPIN + GROW ON SCROLL ─────────────────────────── */
.scroll-spin-grow {
    transform: scale(0.15) rotate(0deg);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    transform-origin: center center;
}

.scroll-spin-grow.spin-done {
    transform: scale(1) rotate(720deg);
    opacity: 1;
}
