/* ==========================================================================
   Softmen Technology — Design System
   Royal Blue & Deep Navy · Clean White & Light Gray
   ========================================================================== */

:root {
    /* Palet default — Royal Blue */
    --navy:        #0A1733;
    --navy-2:      #0F2447;
    --navy-3:      #16305C;
    --royal:       #2563EB;
    --royal-light: #3B82F6;
    --royal-soft:  #EAF1FE;
    --white:       #FFFFFF;
    --gray-100:    #F4F6FA;
    --gray-200:    #E5E9F2;
    --gray-400:    #93A0B8;
    --text:        #1B2437;
    --muted:       #55627A;

    /* Warna pendukung yang ikut berubah per tema */
    --page-bg:        #FFFFFF;
    --on-dark-muted:  #AEBBD4;
    --on-dark-soft:   #C7D2E6;
    --on-dark-body:   #DCE5F5;
    --footer-bg:      #071022;
    --footer-text:    #B7C3D9;
    --gradient-start: #7EABFF;
    --gradient-end:   #3B82F6;
    --navy-rgb:       10, 23, 51;
    --royal-rgb:      37, 99, 235;
    --royal-light-rgb: 59, 130, 246;
    --nebula-star:    #AEC6F5;
    --nebula-inner:   #9FD8FF;
    --nebula-mid:     #2563EB;
    --nebula-outer:   #4C3FA8;

    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius:   16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(var(--navy-rgb), .08);
    --shadow-lg: 0 24px 60px rgba(var(--navy-rgb), .16);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ============================== TEMA WARNA ============================== */

:root[data-theme="ocean"] {
    --navy:        #062A3A;
    --navy-2:      #083B52;
    --navy-3:      #0B4C68;
    --royal:       #0891B2;
    --royal-light: #22D3EE;
    --royal-soft:  #E0F7FA;
    --gray-100:    #F2FAFC;
    --gray-200:    #DDF0F4;
    --gray-400:    #8FB3BE;
    --text:        #102A33;
    --muted:       #4A6570;
    --page-bg:        #F7FCFD;
    --on-dark-muted:  #A9CFDA;
    --on-dark-soft:   #C3E2EA;
    --on-dark-body:   #D9EEF3;
    --footer-bg:      #031E2B;
    --footer-text:    #B8D7E0;
    --gradient-start: #67E8F9;
    --gradient-end:   #0891B2;
    --navy-rgb:       6, 42, 58;
    --royal-rgb:      8, 145, 178;
    --royal-light-rgb: 34, 211, 238;
    --nebula-star:    #BAE6FD;
    --nebula-inner:   #A5F3FC;
    --nebula-mid:     #0891B2;
    --nebula-outer:   #164E63;
}

:root[data-theme="safari"] {
    --navy:        #2B1D12;
    --navy-2:      #3D2A1A;
    --navy-3:      #523823;
    --royal:       #B45309;
    --royal-light: #F59E0B;
    --royal-soft:  #FEF3C7;
    --gray-100:    #FAF6EE;
    --gray-200:    #EDE2D0;
    --gray-400:    #B3A38C;
    --text:        #2B2118;
    --muted:       #6B5A48;
    --page-bg:        #FFFCF5;
    --on-dark-muted:  #CBBBA6;
    --on-dark-soft:   #DED0BE;
    --on-dark-body:   #EFE5D8;
    --footer-bg:      #1C1209;
    --footer-text:    #D8C9B6;
    --gradient-start: #FCD34D;
    --gradient-end:   #D97706;
    --navy-rgb:       43, 29, 18;
    --royal-rgb:      180, 83, 9;
    --royal-light-rgb: 245, 158, 11;
    --nebula-star:    #FDE68A;
    --nebula-inner:   #FEF3C7;
    --nebula-mid:     #D97706;
    --nebula-outer:   #7C2D12;
}

:root[data-theme="forest"] {
    --navy:        #0B2318;
    --navy-2:      #103322;
    --navy-3:      #16452E;
    --royal:       #15803D;
    --royal-light: #22C55E;
    --royal-soft:  #DCFCE7;
    --gray-100:    #F3FAF5;
    --gray-200:    #DFEEE4;
    --gray-400:    #93AB9B;
    --text:        #14251B;
    --muted:       #52685A;
    --page-bg:        #F8FCF9;
    --on-dark-muted:  #B2CBBB;
    --on-dark-soft:   #CBE0D4;
    --on-dark-body:   #E0EFE6;
    --footer-bg:      #06170E;
    --footer-text:    #B8D4C2;
    --gradient-start: #86EFAC;
    --gradient-end:   #16A34A;
    --navy-rgb:       11, 35, 24;
    --royal-rgb:      21, 128, 61;
    --royal-light-rgb: 34, 197, 94;
    --nebula-star:    #BBF7D0;
    --nebula-inner:   #DCFCE7;
    --nebula-mid:     #16A34A;
    --nebula-outer:   #14532D;
}

:root[data-theme="sunset"] {
    --navy:        #2A1030;
    --navy-2:      #3B1544;
    --navy-3:      #4E1D59;
    --royal:       #DB2777;
    --royal-light: #FB7185;
    --royal-soft:  #FFE4E6;
    --gray-100:    #FDF4F7;
    --gray-200:    #F6E2EA;
    --gray-400:    #C29BAC;
    --text:        #2A1520;
    --muted:       #6E5260;
    --page-bg:        #FFF8FA;
    --on-dark-muted:  #D8B6C5;
    --on-dark-soft:   #E8CAD6;
    --on-dark-body:   #F3DDE5;
    --footer-bg:      #1C0A16;
    --footer-text:    #E0C4D1;
    --gradient-start: #FDA4AF;
    --gradient-end:   #E11D48;
    --navy-rgb:       42, 16, 48;
    --royal-rgb:      219, 39, 119;
    --royal-light-rgb: 251, 113, 133;
    --nebula-star:    #FECDD3;
    --nebula-inner:   #FFE4E6;
    --nebula-mid:     #E11D48;
    --nebula-outer:   #6B21A8;
}

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

/* WebGL latar unik — medan gelombang yang mengisi ruang kosong halaman */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--navy);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(var(--navy-rgb), .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: .85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--white);
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    transition: transform .25s var(--ease);
}

.brand:hover .brand-logo { transform: scale(1.03); }

.brand-logo-footer { height: 48px; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .01em;
    color: var(--white);
}

.brand-text small {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: var(--gray-400);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: .01em;
}

.brand-text small {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--gray-400);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.main-nav > a {
    color: var(--on-dark-soft);
    font-size: .93rem;
    font-weight: 500;
    transition: color .25s var(--ease);
}

.main-nav > a:hover,
.main-nav > a.is-active { color: var(--white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .4rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* ============================== BUTTONS ============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease), color .25s var(--ease);
}

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

.btn-accent {
    background: linear-gradient(135deg, var(--royal), var(--royal-light));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(var(--royal-rgb), .35);
}

.btn-accent:hover { box-shadow: 0 14px 34px rgba(var(--royal-rgb), .45); }

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .35);
}

.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn-outline {
    color: var(--royal);
    border-color: var(--royal);
    background: transparent;
}

.btn-outline:hover { background: var(--royal); color: var(--white); }

.btn-lg  { padding: .95rem 2rem; font-size: 1rem; }
.btn-sm  { padding: .45rem 1rem; font-size: .85rem; }

/* ============================== HERO ============================== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 80% -10%, rgba(var(--royal-rgb), .35), transparent 60%),
        radial-gradient(700px 420px at 10% 110%, rgba(var(--royal-light-rgb), .18), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    padding-block: 8rem 7rem;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .8;
}

.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--royal-light);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--white);
    max-width: 20ch;
    margin-inline: auto;
}

.hero-title .text-gradient {
    display: block;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--on-dark-muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    max-width: 62ch;
    margin: 1.4rem auto 2.4rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================== SECTIONS ============================== */

.section { padding-block: 5rem; }
.section-tint { background: var(--gray-100); }

.section-head { text-align: center; max-width: 64ch; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.page-hero {
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(var(--royal-rgb), .3), transparent 60%),
        linear-gradient(180deg, var(--navy), var(--navy-2));
    padding-block: 5.5rem 4rem;
    text-align: center;
}

/* Hero khusus halaman Contact — latar WebGL nebula/black hole */
.page-hero-nebula {
    position: relative;
    overflow: hidden;
    padding-block: 7rem 6rem;
}

#nebula-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero-nebula .container { position: relative; z-index: 2; }

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 3rem);
    max-width: 24ch;
    margin-inline: auto;
}

.page-hero-sub {
    color: var(--on-dark-muted);
    max-width: 64ch;
    margin: 1.2rem auto 0;
}

/* ============================== STATS ============================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--royal);
    line-height: 1;
}

.stat-label { color: var(--muted); font-size: .92rem; margin-top: .8rem; }

/* ============================== CLIENT LOGOS ============================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.2rem;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: 1.6rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.client-logo:hover {
    transform: translateY(-4px);
    border-color: var(--royal-light);
    box-shadow: var(--shadow);
}

.client-monogram {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy);
    background: var(--royal-soft);
    border-radius: 12px;
    padding: .55rem 1rem;
    letter-spacing: .04em;
}

.client-name { font-size: .82rem; color: var(--muted); text-align: center; }

/* ============================== BENTO GRID ============================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease),
                border-color .35s var(--ease);
}

.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(var(--royal-rgb), .06), transparent 55%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}

.bento-card:hover,
.bento-card.is-hovered {
    transform: translateY(-6px);
    border-color: var(--royal-light);
    box-shadow: var(--shadow-lg);
}

.bento-card:hover::after,
.bento-card.is-hovered::after { opacity: 1; }

.bento-wide { grid-column: span 2; }

.bento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--royal-soft);
    color: var(--royal);
    transition: background .35s var(--ease), color .35s var(--ease);
}

.bento-card:hover .bento-icon,
.bento-card.is-hovered .bento-icon { background: var(--royal); color: var(--white); }

.bento-card h3 { font-size: 1.25rem; }
.bento-card p  { color: var(--muted); font-size: .95rem; }

.feature-list {
    list-style: none;
    display: grid;
    gap: .5rem;
    margin-top: .4rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: .9rem;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--royal);
}

/* ============================== SPLIT PANEL ============================== */

.split-panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}

.split-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.split-panel p  { color: var(--muted); margin-bottom: 1.6rem; }

.panel-quote {
    background: linear-gradient(160deg, var(--navy), var(--navy-3));
    color: var(--on-dark-body);
    border-radius: var(--radius);
    padding: 2.4rem 2.2rem;
    box-shadow: var(--shadow-lg);
}

.panel-quote blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.55;
}

.panel-quote cite {
    display: block;
    margin-top: 1.2rem;
    font-style: normal;
    font-size: .85rem;
    color: var(--gray-400);
}

.process-steps {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.process-steps li {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--royal);
    border-radius: var(--radius-sm);
    padding: 1rem 1.3rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.process-steps li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.process-steps strong { color: var(--navy); }
.process-steps span   { color: var(--muted); font-size: .9rem; }

/* ============================== FILTER TABS + PROJECTS ============================== */

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 2.4rem;
    justify-content: center;
}

.filter-tab {
    padding: .55rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    transition: all .25s var(--ease);
}

.filter-tab:hover { border-color: var(--royal-light); color: var(--royal); }

.filter-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.6rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--royal-light);
    box-shadow: var(--shadow-lg);
}

.project-industry {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--royal);
    background: var(--royal-soft);
    border-radius: 999px;
    padding: .3rem .8rem;
}

.project-card h3 { font-size: 1.25rem; }

.project-client {
    font-weight: 600;
    color: var(--navy-3);
    font-size: .92rem;
}

.project-headline { color: var(--royal); font-weight: 600; font-size: .95rem; }
.project-summary  { color: var(--muted); font-size: .93rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

.tag {
    font-size: .74rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--muted);
    border-radius: 6px;
    padding: .22rem .6rem;
}

.projects-empty { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ============================== CONTACT ============================== */

.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-channels h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.contact-channels > p { color: var(--muted); margin-bottom: 1.8rem; }

.contact-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-channel:hover {
    transform: translateX(6px);
    border-color: var(--royal-light);
    box-shadow: var(--shadow);
}

.channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--royal-soft);
    color: var(--royal);
    font-weight: 700;
}

.contact-channel span:last-child { display: flex; flex-direction: column; }
.contact-channel small { color: var(--muted); }

.contact-form {
    display: grid;
    gap: .85rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-lg);
    max-width: 620px;
    justify-self: end;
    width: 100%;
}

.contact-form h3 { font-size: 1.1rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

.form-field { display: grid; gap: .3rem; }

.form-field > span {
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    font: inherit;
    font-size: .88rem;
    background: var(--gray-100);
    transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--royal);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(var(--royal-rgb), .12);
}

.field-error { color: #D0342C; font-size: .8rem; }
.form-note   { color: var(--gray-400); text-align: center; }

.form-success {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid #B9E3C6;
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow);
    max-width: 620px;
    justify-self: end;
}

.form-success h3 { color: #14713D; }
.form-success p  { color: var(--muted); margin-block: .5rem 1rem; }

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #E4F7EB;
    color: #14713D;
}

/* ============================== CTA BAND ============================== */

.cta-band {
    background:
        radial-gradient(800px 400px at 15% 0%, rgba(var(--royal-light-rgb), .3), transparent 60%),
        linear-gradient(120deg, var(--navy), var(--navy-3));
    text-align: center;
}

.cta-inner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p  { color: var(--on-dark-muted); margin: .8rem 0 2rem; }

/* ============================== BAGIAN PRODUK ============================== */

.products-section { background: var(--gray-100); scroll-margin-top: 84px; }

.section-sub {
    color: var(--muted);
    max-width: 60ch;
    margin: .9rem auto 0;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.35rem 1.3rem;
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--royal-rgb), .35);
    box-shadow: var(--shadow-lg);
}

.product-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.product-card-title { min-width: 0; }
.product-card-title h3 { font-size: 1.02rem; }

.product-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--royal-soft);
    color: var(--royal);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .02em;
}

.product-icon-lg {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: .82rem;
}

.product-meta {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--royal);
    margin-top: .15rem;
}

.product-version {
    margin-left: auto;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--royal-soft);
    color: var(--royal);
    font-size: .64rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-desc {
    color: var(--muted);
    font-size: .9rem;
    flex: 1;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .2rem;
}

.product-actions .btn { width: 100%; }

.product-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .55rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--gray-200);
}

.product-download {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    font-weight: 600;
    color: var(--navy);
    transition: color .25s var(--ease);
}

.product-download svg { color: var(--royal); flex-shrink: 0; }
.product-download:hover { color: var(--royal); }

.products-section-foot {
    text-align: center;
    margin-top: 2.2rem;
}

.products-empty {
    text-align: center;
    color: var(--muted);
}

/* ============================== FOOTER ============================== */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.4rem;
    padding-block: 3.5rem 2.5rem;
}

.footer-brand p { font-size: .9rem; color: var(--gray-400); margin-top: 1rem; max-width: 34ch; }

.footer-col { display: grid; gap: .55rem; align-content: start; }

.footer-col h4 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: .4rem;
}

.footer-col a { font-size: .9rem; color: var(--footer-text); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--royal-light); }

.footer-note { font-size: .85rem; color: var(--gray-400); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 1.2rem; }
.footer-bottom small { color: var(--gray-400); font-size: .82rem; }

/* ============================== MOTION & 3D LAYER ============================== */

:root {
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --spot-x: 50%;
    --spot-y: 50%;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 120;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--royal), var(--royal-light) 45%, var(--gradient-start));
    box-shadow: 0 0 16px rgba(var(--royal-light-rgb), .7);
}

/* ---------- Header saat halaman di-scroll ---------- */

.site-header {
    transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(var(--navy-rgb), .94);
    box-shadow: 0 16px 42px rgba(var(--navy-rgb), .32);
    border-bottom-color: rgba(var(--royal-light-rgb), .28);
}

.header-inner { transition: padding .35s var(--ease); }
.site-header.is-scrolled .header-inner { padding-block: .55rem; }

.brand-logo { transition: transform .25s var(--ease), height .35s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 42px; }

.main-nav > a:not(.nav-cta) { position: relative; }

.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.45rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--royal-light), var(--gradient-start));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .3s var(--ease);
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta).is-active::after { transform: scaleX(1); }

/* ---------- Hero: aurora, grid perspektif, orb 3D ---------- */

.hero-aurora {
    position: absolute;
    inset: -20% -10%;
    z-index: 0;
    pointer-events: none;
}

.hero-aurora span {
    position: absolute;
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .32;
    mix-blend-mode: screen;
    animation: aurora-drift 18s ease-in-out infinite alternate;
}

.hero-aurora span:nth-child(1) {
    top: -18%;
    left: -8%;
    background: radial-gradient(circle, rgba(var(--royal-light-rgb), .85), transparent 66%);
}

.hero-aurora span:nth-child(2) {
    top: 12%;
    right: -12%;
    background: radial-gradient(circle, rgba(var(--royal-rgb), .8), transparent 66%);
    animation-delay: -6s;
}

.hero-aurora span:nth-child(3) {
    bottom: -34%;
    left: 32%;
    background: radial-gradient(circle, rgba(var(--royal-light-rgb), .5), transparent 68%);
    animation-delay: -11s;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4%, 6%, 0) scale(1.12); }
    100% { transform: translate3d(-5%, -3%, 0) scale(.94); }
}

.hero-grid {
    position: absolute;
    left: -15%;
    right: -15%;
    bottom: -34%;
    height: 72%;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--royal-light-rgb), .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--royal-light-rgb), .3) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(460px) rotateX(64deg);
    transform-origin: 50% 0;
    opacity: .22;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 92%);
    mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 92%);
    animation: grid-scroll 14s linear infinite;
}

@keyframes grid-scroll { to { background-position: 0 56px, 56px 0; } }

.hero-orb {
    position: absolute;
    top: 50%;
    right: clamp(-30px, 2vw, 50px);
    width: clamp(270px, 30vw, 410px);
    aspect-ratio: 1;
    z-index: 1;
    pointer-events: none;
    opacity: .5;
    transform: translateY(-50%) perspective(900px) rotateX(10deg) rotateY(-16deg);
    transform-style: preserve-3d;
    animation: orb-sway 14s ease-in-out infinite alternate;
}

.hero-orb span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--royal-light-rgb), .48);
    box-shadow: 0 0 40px rgba(var(--royal-light-rgb), .16),
                inset 0 0 40px rgba(var(--royal-light-rgb), .1);
}

.hero-orb span:nth-child(1) { transform: rotateY(72deg); }
.hero-orb span:nth-child(2) { transform: rotateY(-72deg); }
.hero-orb span:nth-child(3) { transform: rotateX(72deg); }

.hero-orb::before {
    content: "";
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--royal-light) 32%, var(--royal) 62%, transparent 74%);
    box-shadow: 0 0 70px 10px rgba(var(--royal-rgb), .55);
    animation: orb-pulse 4.5s ease-in-out infinite;
}

@keyframes orb-sway {
    to { transform: translateY(-50%) perspective(900px) rotateX(-8deg) rotateY(18deg); }
}

@keyframes orb-pulse {
    50% { transform: scale(1.08); opacity: .82; }
}

/* ---------- Tombol: kilau + magnetik ---------- */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-accent::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg) translateX(-160%);
    transition: transform .75s var(--ease);
    pointer-events: none;
    z-index: -1;
}

.btn-accent:hover::before { transform: skewX(-18deg) translateX(420%); }

[data-magnetic] { will-change: transform; }

/* ---------- Kartu: tilt 3D + sorotan kursor ---------- */

[data-tilt] {
    transform-style: preserve-3d;
    transition: transform .5s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

[data-tilt].is-tilting {
    transition: transform .12s ease-out, box-shadow .35s var(--ease), border-color .35s var(--ease);
}

[data-spotlight] { position: relative; }

[data-spotlight]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(240px circle at var(--spot-x) var(--spot-y), rgba(var(--royal-light-rgb), .22), transparent 68%);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
    z-index: 0;
}

[data-spotlight]:hover::before { opacity: 1; }

[data-spotlight] > * { position: relative; z-index: 1; }

/* ---------- Reveal on scroll (dengan varian arah) ---------- */

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal="left"]  { transform: translateX(-40px); }
html.js [data-reveal="right"] { transform: translateX(40px); }
html.js [data-reveal="zoom"]  { transform: scale(.9); }
html.js [data-reveal="flip"]  { transform: perspective(900px) rotateX(-14deg) translateY(26px); }

html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Judul hero: animasi per kata ---------- */

html.js [data-split] { opacity: 0; }
html.js [data-split].is-split { opacity: 1; }

[data-split] .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}

[data-split] .word > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(115%);
}

[data-split] .split-block {
    display: block;
    opacity: 0;
    transform: translateY(26px);
}

[data-split].is-split .word > span {
    animation: word-rise .85s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}

[data-split].is-split .split-block {
    animation: block-rise 1s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 60ms + 140ms);
}

@keyframes word-rise  { to { opacity: 1; transform: translateY(0); } }
@keyframes block-rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Garis aksen judul section ---------- */

.section-head h2 { position: relative; }

.section-head h2::after {
    content: "";
    display: block;
    width: 76px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--royal), var(--royal-light), var(--gradient-start));
    transition: transform .8s var(--ease) .1s;
}

html.js .section-head h2::after { transform: scaleX(0); }
html.js .section-head.is-inview h2::after { transform: scaleX(1); }

/* ---------- Angka statistik: gradien hidup ---------- */

.stat-value {
    background: linear-gradient(110deg, var(--royal), var(--royal-light) 55%, var(--gradient-start));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: stat-shimmer 7s linear infinite;
}

@keyframes stat-shimmer { to { background-position: 200% 0; } }

/* ---------- Marquee logo klien ---------- */

.clients-marquee {
    position: relative;
    overflow: hidden;
    padding-block: .4rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    animation: clients-scroll 46s linear infinite;
}

.clients-marquee:hover .clients-track,
.clients-marquee:focus-within .clients-track { animation-play-state: paused; }

.clients-marquee.is-paused .clients-track { animation-play-state: paused; }

.marquee-toggle {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: max-content;
    margin: 1.1rem auto 0;
    padding: .35rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--muted);
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}

.marquee-toggle:hover { color: var(--royal); border-color: var(--royal-light); }

.marquee-toggle-icon {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
}

.marquee-toggle-icon::before,
.marquee-toggle-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 3px;
    height: 10px;
    border-radius: 1px;
    background: currentColor;
}

.marquee-toggle-icon::before { left: 0; }
.marquee-toggle-icon::after  { right: 0; }

.marquee-toggle[aria-pressed="true"] .marquee-toggle-icon::before {
    left: 1px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
    background: none;
    border-radius: 0;
}

.marquee-toggle[aria-pressed="true"] .marquee-toggle-icon::after { display: none; }

.clients-group {
    display: flex;
    gap: 1.2rem;
    padding-right: 1.2rem;
}

.clients-group .client-logo {
    width: 232px;
    flex: 0 0 auto;
}

@keyframes clients-scroll { to { transform: translateX(-50%); } }

/* ---------- CTA band: glow mengambang ---------- */

.cta-band { position: relative; overflow: hidden; }

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    width: 46vw;
    height: 46vw;
    border-radius: 50%;
    background: var(--royal-light);
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
    animation: cta-float 16s ease-in-out infinite alternate;
}

.cta-band::before { left: -12%; top: -40%; }
.cta-band::after  { right: -10%; bottom: -50%; background: var(--gradient-start); animation-delay: -7s; }

.cta-inner { position: relative; z-index: 1; }

@keyframes cta-float {
    to { transform: translate3d(6%, 10%, 0) scale(1.15); }
}

/* ---------- Panel kutipan ---------- */

.panel-quote { position: relative; }

.panel-quote::before {
    content: "\201C";
    position: absolute;
    top: -.2rem;
    right: 1.4rem;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: rgba(255, 255, 255, .1);
    pointer-events: none;
}

/* ---------- Kembali ke atas ---------- */

.to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(var(--royal-rgb), .28);
    background: rgba(var(--navy-rgb), .9);
    color: var(--white);
    backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: opacity .3s var(--ease), transform .3s var(--ease),
                visibility .3s var(--ease), background .3s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover { background: var(--royal); }
.to-top:focus-visible { outline: 2px solid var(--royal-light); outline-offset: 3px; }

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

@media (max-width: 1260px) {
    .product-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .hero-orb { display: none; }
}

@media (max-width: 960px) {
    .bento-grid      { grid-template-columns: 1fr 1fr; }
    .bento-wide      { grid-column: span 2; }
    .split-panel,
    .contact-layout  { grid-template-columns: 1fr; }
    .footer-grid     { grid-template-columns: 1fr 1fr; }

    .hero-aurora span { opacity: .24; }
}

@media (max-width: 720px) {
    .hero { padding-block: 5.5rem 4.5rem; }
    .section { padding-block: 3.5rem; }

    .nav-toggle { display: flex; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--navy);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        padding: .5rem 1.25rem 1rem;
        display: none;
    }

    .main-nav.is-open { display: flex; }

    .main-nav > a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .main-nav .nav-cta { margin-top: .8rem; border-bottom: 0; justify-content: center; }
    .main-nav > a:not(.nav-cta)::after { display: none; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
    .form-row   { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .product-cards { grid-template-columns: 1fr; }
    .product-card { padding: 1.2rem 1.1rem; }

    .clients-group .client-logo { width: 200px; }
    .to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html.js [data-reveal],
    html.js [data-split] { opacity: 1; transform: none; }

    [data-split] .word > span,
    [data-split] .split-block {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .hero-aurora span,
    .hero-grid,
    .hero-orb,
    .hero-orb::before,
    .cta-band::before,
    .cta-band::after,
    .stat-value { animation: none !important; }

    html.js .section-head h2::after { transform: scaleX(1); }

    .clients-track {
        flex-wrap: wrap;
        width: 100%;
        animation: none !important;
    }

    .clients-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        width: 100%;
    }

    .clients-group .client-logo { width: auto; }
    .clients-group[aria-hidden="true"] { display: none; }
    .marquee-toggle { display: none !important; }
    .project-card { opacity: 1; transform: none; }
}
