:root {
    --bg-main: #020617;
    --bg-soft: #07111f;
    --bg-card: rgba(255, 255, 255, 0.065);
    --bg-card-hover: rgba(255, 255, 255, 0.095);
    --border-soft: rgba(255, 255, 255, 0.12);
    --border-cyan: rgba(0, 229, 255, 0.22);
    --cyan: #00e5ff;
    --blue: #2563eb;
    --green: #22c55e;
    --orange: #f97316;
    --red: #ef4444;
    --yellow: #fde68a;
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.70);
    --text-muted: rgba(255, 255, 255, 0.48);
    --shadow-main: 0 30px 100px rgba(0, 0, 0, 0.42);
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.16), transparent 32%),
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 34%),
                radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.09), transparent 30%),
                var(--bg-main);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.custom-header {
    background: rgba(2, 6, 23, 0.86); 
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.40);
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-soft);
}

.nav-link-custom {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link-custom:hover {
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius);
    box-shadow: 0 14px 38px rgba(0, 229, 255, 0.20);
    transition: 0.2s ease;
}

.btn-success:hover {
    color: #ffffff;
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff; 
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius);
    transition: 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 82px 0 56px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    border-radius: var(--radius);
    padding: 54px;
    box-shadow: var(--shadow-main);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -170px;
    top: -170px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 68%);
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 2;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.12);
    color: #7df2ff;
    padding: 9px 15px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    padding: 9px 15px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 900;
}

.hero-title {
    font-size: clamp(40px, 6vw, 78px);
    font-weight: 900;
    line-height: 1.02;
    margin-top: 24px;
    margin-bottom: 24px;
    letter-spacing: -2.4px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
    max-width: 760px;
}

.premium-strip {
    margin-top: 36px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(37, 99, 235, 0.12));
    border-radius: var(--radius);
    padding: 24px;
}

.metric:last-child {
    border-right: none;
}

.firmware-panel,
.api-card,
.feature-box {
    position: relative;
    background: rgba(4, 14, 28, 0.84);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.firmware-panel {
    overflow: hidden;
}

.firmware-panel::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #616060;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.85);
}

.feature-box {
    height: 100%;
    background: var(--bg-card);
    transition: 0.22s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: rgba(0, 229, 255, 0.13);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.section-gap {
    margin-top: 60px;
}

.section-title {
    font-weight: 900;
    letter-spacing: -1px;
}

.text-soft {
    color: var(--text-soft);
}

.text-muted-custom {
    color: var(--text-muted);
}

.code-box {
    background: #020617;
    border-radius: var(--radius);
    padding: 20px;
    color: #c4f1ff;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-box.nowrap {
    white-space: nowrap;
}

.code-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.success-label {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.warning-label {
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
}

.danger-label {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.warning-box {
    background: rgba(249, 115, 22, 0.10);
    border-radius: var(--radius);
    padding: 18px;
    color: rgba(255, 255, 255, 0.80);
}

.info-box {
    background: rgba(0, 229, 255, 0.08);
    border-radius: var(--radius);
    padding: 18px;
    color: rgba(255, 255, 255, 0.80);
}

.mini-card {
    background: rgba(255, 255, 255, 0.055);
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 800;
    color: #bff7ff;
    background: rgba(0, 229, 255, 0.10);
}

/* Main Card */
.main-card {
    padding: 30px;
    margin-top: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: rgba(2,6,23,.78);
    color: #fff;
    outline: none;
    border:0;
}

.search-input::placeholder {
    color: rgba(255,255,255,.36);
}

/* Device Section */
.device-section {
    margin-top: 30px;
}

.device-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    padding-bottom: 6px;
}

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.file-card {
    background: #0d1117;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    transition: 0.3s;
}

.file-card:hover {
    transform: translateY(-3px);
    background: #161b22;
}

.file-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
    border-radius: 12px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.file-title {
    font-size: 16px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta-ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

.file-meta-ul li {
    margin-bottom: 2px;
}

.copy-btn {
    width: 100%;
    text-align: center; 
    border-radius: 6px;
    padding: 10px 0;
    font-weight: 900;
    font-size: 14px;
    background: linear-gradient(135deg, #00e5ff, #2563eb);
    color: #fff;
    cursor: pointer;
    border:0;
}

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

/* Status Dot untuk file card */
.status-active span.status-dot,
.status-inactive span.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.status-active span.status-dot {
    background-color: #22c55e;
}

.status-inactive span.status-dot {
    background-color: #ef4444;
}

.status-active, 
.status-inactive {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 4px;
}

footer {
    color: rgba(255, 255, 255, 0.55);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .hero-card {
        padding: 42px;
    }
}

@media (max-width: 991px) {
    .hero {
        padding: 52px 0 38px;
    }

    .hero-card {
        padding: 32px;
    }

    .hero-title {
        letter-spacing: -1.6px;
    }

    .metric {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .metric:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .status-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .file-card {
        flex-direction: column;
    }
    
    .file-thumb {
        height: 150px;
    }
}

@media (max-width: 575px) {
    .hero-card {
        padding: 24px;
    }

    .firmware-panel,
    .api-card,
    .feature-box {
        padding: 22px;
    }

    .hero-title {
        font-size: 39px;
    }

    .hero-text {
        font-size: 16px;
    }

    .btn-success,
    .btn-glass {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 13px 20px;
    }

    .code-box {
        font-size: 12px;
    }
}

    .custom-toggler {
    width: 56px;
    height: 42px;
    border-radius: 8px; 
    background: #071126;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.custom-toggler:focus {
    box-shadow: none;
}

.hamburger-svg {
    width: 30px;
    height: 30px;
    fill: #b8c0cc;   
    transition: 0.25s ease;
}

.custom-toggler:hover .hamburger-svg {
    fill: #38bdf8;  
}