:root {
    --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    overflow-x: hidden;
    background: #f4f6f9;
}

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

/* ===========================
   HEADER
=========================== */

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #810909;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.header {
    max-width: 1600px;
    width: 100%;
    height: 40px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-right {
    color: #fff;
    white-space: nowrap;
}

.header-left {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.header-right {
    font-size: 15px;
    font-weight: 400;
}

#main-nav a,
#main-nav span {
    color: #fff;
    text-decoration: none;
}

/* ===========================
   CONTAINER
=========================== */

.container {
    width: 100%;
    max-width: 1600px;

    /* Panah pada diagram memakai koordinat absolut dari sisi kiri viewport. */
    /* Karena itu kanvas desktop harus sejajar ke kiri, bukan dipusatkan. */
    margin: 0;
    padding: 80px 20px 20px; /* 80px = tinggi header */

    min-height: calc(100vh - 60px);

    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    width: 100%;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 992px) {

    .header {
        padding: 0 16px;
    }

    .header-left {
        font-size: 14px;
    }

    .header-right {
        font-size: 14px;
    }

    .container {
        padding: 80px 15px 15px;
    }
}

@media (max-width: 768px) {

    #main-nav {
        height: auto;
    }

    .header {
        height: auto;
        padding: 12px 15px;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .header-left,
    .header-right {
        width: 100%;
        white-space: normal;
    }

    .header-left {
        font-size: 15px;
    }

    .header-right {
        font-size: 13px;
    }

    .container {
        padding: 110px 15px 20px;
        min-height: calc(100vh - 110px);
    }
}

@media (max-width: 480px) {

    .header-left {
        font-size: 13px;
    }

    .header-right {
        font-size: 12px;
    }

    .container {
        padding: 105px 10px 15px;
    }
}

/* ======================================
   TOOLTIP
====================================== */

.has-tooltip{
    position:relative;
    overflow:visible;
    z-index:1;
	
}

.has-tooltip:hover{
    z-index:999999;
}

.has-tooltip::after{
    content:attr(data-desc);
    position:absolute;
    left:50%;
    bottom:calc(100% + 15px);
    transform:translateX(-50%) translateY(8px);
    width:max-content;
    min-width:220px;
    max-width:320px;
    padding:12px 15px;
    background:#1f2937;
    color:#fff;
    border-radius:10px;
    text-align:center;
    line-height:1.6;
    opacity:0;
    visibility:hidden;
    box-shadow:
        0 15px 40px rgba(0,0,0,.35);
    transition:.25s;
    z-index:999999;
    pointer-events:none;
}

.has-tooltip::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:calc(100% + 1px);
    transform:translateX(-50%);
    border:8px solid transparent;
    border-top-color:#1f2937;
    opacity:0;
    visibility:hidden;
    transition:.25s;
    z-index:999999;

}

.has-tooltip:hover::after,
.has-tooltip:hover::before{
    opacity:1;
    visibility:visible;

}

.has-tooltip:hover::after{
    transform:translateX(-50%) translateY(0);

}

/* ======================================
   Tooltip Kanan
====================================== */

.tooltip-right::after{
    left:0;
    right:auto;

    transform:translateY(8px);

    font-size:10px;
    text-align:left;
}

.tooltip-right:hover::after{
    transform:translateY(0);
}

.tooltip-right::before{
    left:25px;
    right:auto;
}

/* ======================================
   Tooltip Kiri
====================================== */

.tooltip-left::after{
    left:auto;
    right:0;

    transform:translateY(8px);

    font-size:10px;
    text-align:left;
}

.tooltip-left:hover::after{
    transform:translateY(0);
}

.tooltip-left::before{
    left:auto;
    right:25px;
}


/* ===========================
   FLOWCHART
=========================== */

.architecture-layout{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:50px;
}

/* ===========================
   ROW
=========================== */

.row-grid{
    width:100%;
    display:grid;
    gap:80px;
    align-items:stretch;
}

/* ===========================
   ROW 1 (4 Kolom)
=========================== */

.row-1{
    grid-template-columns:
        1fr
        1.3fr
        4fr
        1.5fr;
}

/* ===========================
   ROW 2 (6 Kolom)
=========================== */

.row-2{
    grid-template-columns:
        1fr
        1.2fr
        .8fr
        2fr
        1.5fr
        1.2fr;
}

/* ===========================
   ROW 3 (4 Kolom)
=========================== */

.row-3{
    grid-template-columns:
        2fr
        1.5fr
        1fr
        2fr;
}


.platform-img{
    width:56px;
    height:56px;
    object-fit:contain;

}

@media (max-width:1200px){
    .row-1,
    .row-2,
    .row-3{
        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:768px){
	.row-1,
    .row-2,
    .row-3{
        grid-template-columns:1fr;

    }

}

/* ======================================
   CARD
====================================== */
.card{
    width:100%;
    min-height:120px;
    background:#fff;
    border-radius:12px;
    border:1px solid #000;
    display: flex;
	flex-wrap: wrap;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:10px;
    transition:.25s;
}


/* ======================================
   CARD HEADER
====================================== */

.card-header{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:12px 16px;
    background:linear-gradient(135deg, #3b4298, #747bd2);
    color:#fff;
    font-size:12px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    border-bottom:1px solid rgba(255,255,255,.15);
	width: 100%;
}

/* ======================================
   CARD LIST
====================================== */

.card-list{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:5px;
    flex:1;
	width:100%
}

/* ======================================
   CARD ITEM
====================================== */

.card-item{
    display:flex;
    align-items:center;
    gap:12px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:10px;
    transition:.25s;
    cursor:pointer;
}

.card-item:hover{
    background:#eef6ff;
    border-color:#1976d2;
    transform:translateX(4px);
}

/* ======================================
   CARD TITLE
====================================== */

.card-title{
    flex:1;
    font-size:12px;
    font-weight:600;
    color:#1f2937;
    text-align:left;
    line-height:1.4;
}

/* ======================================
   CARD ICON
====================================== */

.card-icon{
    width:40px;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-shrink:0;
}

.card-icon img{
    width:32px;
    height:32px;
    object-fit:contain;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width:768px){

    .card-header{
        font-size:14px;
        padding:10px;
    }

    .card-list{
        padding:12px;
    }

    .card-item{
        padding:10px;
        gap:10px;
    }

    .card-title{
        font-size:13px;
    }

    .card-icon{
        width:34px;
        height:34px;
    }

    .card-icon img{
        width:26px;
        height:26px;
    }

}

/* =====================================
   APPLICATION SYSTEM
===================================== */

.app-system{
    width:100%;
    background:#dfeaf5;
    border:2px solid #394b59;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

/* HEADER */

.app-system-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:5;
    background:#fff;
    border-bottom:2px solid #394b59;
	text-transform:uppercase;

}

.app-system-header span{
    font-size:12px;
    font-weight:700;
    color:#222;

}

.app-system-tech{
    display:flex;
    gap:8px;

}

.app-system-tech img{
    width:20px;
    height:20px;

}

/* GRID */

.app-grid{
    padding:25px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:18px;
    align-items:start;

}

/* NODE */

.app-node{
    min-height:25px;
    border-radius:10px;
    background:#cc6a17;
    color:#fff;
    font-size:10px;
    font-weight:700;
    text-align:center;
    display:flex;
    justify-content:center;
    align-items:center;
    border:2px solid #6d3a08;
    box-shadow:0 3px 8px rgba(0,0,0,.18);
    transition:.25s;
	cursor: pointer;
	text-decoration:none;

}

.app-node:hover{
    transform:translateY(-3px);
    background:#e37b1f;
    box-shadow:0 8px 20px rgba(0,0,0,.22);

}

/* RESPONSIVE */

@media(max-width:1200px){
    .app-grid{
        grid-template-columns:repeat(4,1fr);

    }

}

@media(max-width:992px){
    .app-grid{
        grid-template-columns:repeat(3,1fr);

    }

}

@media(max-width:768px){
    .app-grid{
        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:480px){
    .app-grid{
        grid-template-columns:1fr;

    }

    .app-system-header{
        flex-direction:column;
        gap:10px;

    }

}

/* =====================================
   CARD LIST SYSTEM
===================================== */
.card-list-sys{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:5px;
    padding:5px;
	width: 100%;
}

.card-list-sys2{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:5px;
    padding:5px;
	width: 100%;
}

.card-item-sys{
    display:flex;
    align-items:center;
    border:1px solid #d9dee3;
    border-radius:10px;
    background:#fff;
    transition:.25s;
    cursor:pointer;

}

.card-item-sys:hover{
    border-color:#1976d2;
    background:#f5f9ff;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.10);

}

.card-icon-sys{
    width: 100%;
    height:48px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-shrink:0;

}

.platform-img-sys{
    width:40px;
    height:40px;
	align-items: center;
}


@media(max-width:768px){

    .card-list-sys{

        grid-template-columns:1fr;

    }

}

/* ==========================================================
   SVG FLOW ARROW LIBRARY
   ========================================================== */

.diagram{
    position:relative;
}

/*------------------------------------------
  Base Arrow
-------------------------------------------*/

.svg-flow{
    position:absolute;
    overflow:visible;
    pointer-events:none;
    z-index:100;
}

.svg-flow svg{
    width:100%;
    height:100%;
    overflow:visible;
}

/*------------------------------------------
  Line
-------------------------------------------*/

.svg-flow .flow-line{

    fill:none;

    stroke:currentColor;

    stroke-width:4;

    stroke-linecap:round;

    stroke-linejoin:round;

    stroke-dasharray:12 8;

    animation:flowMove .65s linear infinite;

    filter:
        drop-shadow(0 0 2px rgba(0,0,0,.15))
        drop-shadow(0 0 5px currentColor);

}

/*------------------------------------------
  Arrow Head
-------------------------------------------*/

.svg-flow .flow-head{

    fill:none;

    stroke:currentColor;

    stroke-width:4;

    stroke-linejoin:round;

    stroke-linecap:round;

}

/*------------------------------------------
  Optional Glow
-------------------------------------------*/

.svg-flow.glow .flow-line{

    filter:
        drop-shadow(0 0 5px currentColor)
        drop-shadow(0 0 8px currentColor);

}

/*------------------------------------------
  Speed
-------------------------------------------*/

.speed-fast .flow-line{

    animation-duration:.45s;

}

.speed-normal .flow-line{

    animation-duration:.7s;

}

.speed-slow .flow-line{

    animation-duration:1.1s;

}

/*------------------------------------------
  Thickness
-------------------------------------------*/

.thin .flow-line,
.thin .flow-head{

    stroke-width:2;

}

.normal .flow-line,
.normal .flow-head{

    stroke-width:4;

}

.bold .flow-line,
.bold .flow-head{

    stroke-width:6;

}

/*------------------------------------------
  Colors
-------------------------------------------*/

.blue{

    color:#4169e1;

}

.red{

    color:#c00000;

}

.orange{

    color:#ff9800;

}

.green{

    color:#4d7c37;

}

.purple{

    color:#6a5acd;

}

.gray{

    color:#6b7280;

}

/*------------------------------------------
  Animation
-------------------------------------------*/

@keyframes flowMove{

    from{

        stroke-dashoffset:20;

    }

    to{

        stroke-dashoffset:0;

    }

}

/*------------------------------------------
  Pulse
-------------------------------------------*/

@keyframes pulse{

    0%{

        opacity:.5;

    }

    50%{

        opacity:1;

    }

    100%{

        opacity:.5;

    }

}

.pulse{

    animation:pulse 1.2s infinite;

}

/*------------------------------------------
  Floating
-------------------------------------------*/

@keyframes floating{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-2px);

    }

    100%{

        transform:translateY(0px);

    }

}

.float{

    animation:floating 1.5s ease-in-out infinite;

}

/* =====================================
   GEARS
===================================== */

.gears-group{
    width:100%;
    height:100%;
    overflow:visible;
}

/* =====================================
   GEAR
===================================== */

.gear{
    cursor:pointer;
    transform-box:fill-box;
    transform-origin:center center;
    will-change:transform;
}

/* =====================================
   ROTATION
===================================== */

.yellow-gear{
    animation:gear-cw 3.8s linear infinite;
}

.cyan-gear{
    animation:gear-ccw 4s linear infinite;
}

.red-gear{
    animation:gear-cw 3.8s linear infinite;
}

/* =====================================
   HOVER
===================================== */

.process-card:hover .yellow-gear{
    animation-duration:1.5s;
}

.process-card:hover .cyan-gear{
    animation-duration:1.5s;
}

.process-card:hover .red-gear{
    animation-duration:1.5s;
}

/* Pause ketika diarahkan mouse */

.gear:hover{
    animation-play-state:paused;
}

/* =====================================
   SHADOW
===================================== */

.gear circle:first-child{
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.20));
    transition:filter .3s ease;
}

.process-card:hover .gear circle:first-child{
    filter:
        brightness(1.08)
        drop-shadow(0 0 8px rgba(255,255,255,.40))
        drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* =====================================
   OPTIONAL SCALE EFFECT
===================================== */

.gear{
    transition:transform .3s ease;
}

.process-card:hover .gear{
    transform:scale(1.03);
}

/* =====================================
   KEYFRAME
===================================== */

@keyframes gear-cw{
    from{
        rotate:0deg;
    }
    to{
        rotate:360deg;
    }
}

@keyframes gear-ccw{
    from{
        rotate:360deg;
    }
    to{
        rotate:0deg;
    }
}

/* =====================================
   REDUCE MOTION
===================================== */

@media (prefers-reduced-motion: reduce){

    .gear{
        animation:none !important;
    }

}

/* =====================================
   ANALYTICS GEAR
===================================== */

.analytics-gear-svg{
    width:100%;
    height:100%;
    overflow:visible;
}

/* Gear */

.green-gear{

    transform-box:fill-box;
    transform-origin:center center;

    animation:gearRotate 5s linear infinite;

    will-change:transform;
}

/* Hover */

.analytics-card:hover .green-gear{

    animation-duration:2s;

}

/* Pause */

.green-gear:hover{

    animation-play-state:paused;

}

/* Glow */

.green-gear circle:first-child{

    filter:
        drop-shadow(0 2px 4px rgba(0,0,0,.18));

    transition:.3s;

}

.analytics-card:hover .green-gear circle:first-child{

    filter:
        brightness(1.08)
        drop-shadow(0 0 8px rgba(124,179,66,.55));

}

.analytics-center{

    transform-origin:center;
    transform-box:fill-box;

    animation:pulseCenter 2s ease-in-out infinite;

}

@keyframes pulseCenter{

    0%,100%{

        transform:scale(1);

        opacity:1;

    }

    50%{

        transform:scale(1.08);

        opacity:.9;

    }

}

/* Rotation */

@keyframes gearRotate{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce){

    .green-gear{

        animation:none;

    }

}
