/* =========================================================
   COMMUNITY RELOAD
   GLOBAL DESIGN SYSTEM
   PT KREASI KOMUNITAS NUSANTARA
   ========================================================= */

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    /* Shared heading scale: readable wrapping on desktop and mobile. */
    --type-hero: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
    --type-section: clamp(1.75rem, 1.2rem + 2vw, 3rem);
    --type-cta: clamp(1.75rem, 1.2rem + 1.8vw, 2.85rem);
    /* -----------------------------------------------------
       Core colors
       ----------------------------------------------------- */

    --color-primary: #6847f5;
    --color-primary-dark: #5232d6;
    --color-primary-light: #866cf8;

    --color-secondary: #16b8d4;
    --color-secondary-dark: #0798b4;
    --color-secondary-light: #4dd7e9;

    --color-accent: #f2c94c;
    --color-success: #18a66a;
    --color-danger: #dc4f5f;
    --color-warning: #d99027;


    /* -----------------------------------------------------
       Light surfaces
       ----------------------------------------------------- */

    --color-white: #ffffff;
    --color-background: #f6f8fc;
    --color-background-soft: #f0f3f8;
    --color-surface: #ffffff;
    --color-surface-soft: #f8faff;
    --color-surface-muted: #eef2f7;


    /* -----------------------------------------------------
       Text
       ----------------------------------------------------- */

    --color-text: #162033;
    --color-text-strong: #101827;
    --color-text-muted: #647084;
    --color-text-soft: #8290a3;
    --color-text-light: #9aa6b6;


    /* -----------------------------------------------------
       Dark surfaces
       ----------------------------------------------------- */

    --color-dark: #101827;
    --color-dark-soft: #172234;
    --color-dark-deep: #0b1220;
    --color-dark-muted: #263349;


    /* -----------------------------------------------------
       Borders
       ----------------------------------------------------- */

    --border-color: #e4e9f1;
    --border-color-strong: #d6deea;
    --border-color-light: rgba(255, 255, 255, 0.16);


    /* -----------------------------------------------------
       Shadows
       ----------------------------------------------------- */

    --shadow-xs:
        0 2px 8px rgba(19, 31, 51, 0.04);

    --shadow-sm:
        0 8px 24px rgba(19, 31, 51, 0.06);

    --shadow-md:
        0 16px 40px rgba(19, 31, 51, 0.08);

    --shadow-lg:
        0 25px 65px rgba(19, 31, 51, 0.12);

    --shadow-xl:
        0 35px 90px rgba(19, 31, 51, 0.16);

    --shadow-primary:
        0 16px 40px rgba(104, 71, 245, 0.22);


    /* -----------------------------------------------------
       Typography
       ----------------------------------------------------- */

    --font-body:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-heading:
        "Plus Jakarta Sans",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;


    /* -----------------------------------------------------
       Layout
       ----------------------------------------------------- */

    --container-width: 1180px;
    --container-wide: 1280px;

    --section-space: 110px;
    --section-space-mobile: 78px;


    /* -----------------------------------------------------
       Radius
       ----------------------------------------------------- */

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-pill: 999px;


    /* -----------------------------------------------------
       Motion
       ----------------------------------------------------- */

    --ease:
        cubic-bezier(0.22, 1, 0.36, 1);

    --ease-soft:
        cubic-bezier(0.25, 0.8, 0.25, 1);

    --transition-fast:
        180ms var(--ease-soft);

    --transition:
        300ms var(--ease);

    --transition-slow:
        600ms var(--ease);
}


/* =========================================================
   02. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #f5f7fb 100%
        );

    color: var(--color-text);

    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;

    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

body.intro-active {
    overflow: hidden;
}

main {
    display: block;
}

section,
header,
footer,
nav,
aside,
article,
figure,
figcaption {
    display: block;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    margin: 0;
    font: inherit;
}

button {
    border: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    padding-left: 1.25rem;
}


/* =========================================================
   03. ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;

    z-index: 9999;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: var(--radius-pill);

    background: var(--color-dark);
    color: var(--color-white);

    font-size: 0.78rem;
    font-weight: 700;

    box-shadow: var(--shadow-lg);

    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid rgba(104, 71, 245, 0.25);
    outline-offset: 3px;
}


/* =========================================================
   04. CONTAINER
   ========================================================= */

.container {
    width: min(
        var(--container-width),
        calc(100% - 48px)
    );

    margin-inline: auto;
}

.container-wide {
    width: min(
        var(--container-wide),
        calc(100% - 48px)
    );

    margin-inline: auto;
}


/* =========================================================
   05. SECTION
   ========================================================= */

.section {
    position: relative;

    padding-top: var(--section-space);
    padding-bottom: var(--section-space);

    isolation: isolate;
}

.section-light {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8faff 100%
        );
}


/* =========================================================
   06. SECTION HEADER
   ========================================================= */

.section-header {
    max-width: 820px;
    margin-bottom: 56px;
}

.section-header.center {
    margin-inline: auto;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 18px;

    color: var(--color-text-strong);

    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.045em;
}

.section-header p {
    max-width: 720px;
    margin: 0;

    color: var(--color-text-muted);

    font-size: 0.98rem;
    line-height: 1.8;
}

.section-header.center p {
    margin-inline: auto;
}


/* =========================================================
   07. SECTION KICKER
   ========================================================= */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 17px;

    color: var(--color-primary);

    font-size: 0.68rem;
    font-weight: 800;

    line-height: 1;
    letter-spacing: 0.17em;

    text-transform: uppercase;
}

.section-kicker::before {
    content: "";

    width: 28px;
    height: 2px;

    flex: 0 0 auto;

    border-radius: var(--radius-pill);

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            var(--color-secondary)
        );
}

.section-header.center .section-kicker {
    justify-content: center;
}


/* =========================================================
   08. GRADIENT TEXT
   ========================================================= */

.gradient-text {
    background:
        linear-gradient(
            100deg,
            var(--color-primary) 0%,
            #8b63f7 40%,
            var(--color-secondary) 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   09. HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-strong);

    font-family: var(--font-heading);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--type-hero);
}

h2 {
    font-size: var(--type-section);
}

/* Accented words are part of the heading, not small uppercase labels. */
h1 > span.gradient-text,
h2 > span.gradient-text,
h3 > span.gradient-text {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    margin: 0;
}

main :is(h1, h2, h3) {
    overflow-wrap: break-word;
    text-wrap: balance;
}

/* Text columns must shrink instead of overflowing their grid tracks. */
:is(.hero-layout, .about-layout, .technology-layout, .report-hero-layout,
    .contact-cta, .registration-cta, .about-cta, .report-cta,
    .seo-hero-layout, .seo-intro-grid, .seo-cta, .integration-hero-layout) > * {
    min-width: 0;
}

h3 {
    font-size: 1.2rem;
}

p {
    color: var(--color-text-muted);
}


/* =========================================================
   10. BUTTON SYSTEM
   ========================================================= */

.button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    min-height: 50px;

    padding: 0 21px;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: var(--color-white);
    color: var(--color-text);

    font-size: 0.8rem;
    font-weight: 750;

    line-height: 1;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.button span {
    position: relative;
    z-index: 2;
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 3px solid rgba(104, 71, 245, 0.22);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Primary
   --------------------------------------------------------- */

.button-primary {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #6241ef 0%,
            #7652f5 48%,
            #6040e7 100%
        );

    color: var(--color-white);

    box-shadow:
        0 12px 28px rgba(104, 71, 245, 0.20);
}

.button-primary::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 25%,
            rgba(255, 255, 255, 0.18) 48%,
            transparent 70%
        );

    transform: translateX(-120%);

    transition:
        transform 650ms var(--ease);
}

.button-primary:hover {
    box-shadow:
        0 18px 38px rgba(104, 71, 245, 0.27);
}

.button-primary:hover::before {
    transform: translateX(120%);
}


/* ---------------------------------------------------------
   Secondary
   --------------------------------------------------------- */

.button-secondary {
    border-color: var(--border-color-strong);

    background:
        rgba(255, 255, 255, 0.86);

    color: var(--color-text);

    box-shadow: var(--shadow-xs);
}

.button-secondary:hover {
    border-color: rgba(104, 71, 245, 0.28);

    background: var(--color-white);

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   11. PAGE HERO
   ========================================================= */

.page-hero {
    position: relative;

    min-height: 470px;

    display: flex;
    align-items: center;

    padding-top: 150px;
    padding-bottom: 95px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #f3f6fb 100%
        );
}

.page-hero-background {
    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;
    overflow: hidden;
}

.page-hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(4px);

    pointer-events: none;
}

.page-hero-glow-one {
    width: 620px;
    height: 620px;

    left: -260px;
    top: -250px;

    background:
        radial-gradient(
            circle,
            rgba(104, 71, 245, 0.13) 0%,
            rgba(104, 71, 245, 0.04) 42%,
            transparent 72%
        );
}

.page-hero-glow-two {
    width: 560px;
    height: 560px;

    right: -220px;
    bottom: -290px;

    background:
        radial-gradient(
            circle,
            rgba(22, 184, 212, 0.12) 0%,
            rgba(22, 184, 212, 0.035) 45%,
            transparent 72%
        );
}

.page-hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.5;

    background-image:
        linear-gradient(
            rgba(54, 73, 102, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(54, 73, 102, 0.045) 1px,
            transparent 1px
        );

    background-size: 58px 58px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            rgba(0, 0, 0, 0.45),
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black,
            rgba(0, 0, 0, 0.45),
            transparent
        );
}

.page-hero-content {
    position: relative;

    max-width: 850px;
}

.page-hero-content h1 {
    max-width: 900px;

    margin: 0 0 22px;

    color: var(--color-text-strong);

    font-family: var(--font-heading);

    font-size: clamp(
        2.8rem,
        6vw,
        5.5rem
    );

    font-weight: 800;

    line-height: 0.99;

    letter-spacing: -0.065em;
}

.page-hero-content > p {
    max-width: 700px;

    margin: 0;

    color: var(--color-text-muted);

    font-size: 1rem;
    line-height: 1.85;
}


/* =========================================================
   12. BREADCRUMB
   ========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;

    color: var(--color-text-soft);

    font-size: 0.68rem;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--color-text-muted);

    transition:
        color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span[aria-hidden="true"] {
    color: #b4bdca;
}

.breadcrumb span:last-child {
    color: var(--color-primary);
    font-weight: 700;
}


/* =========================================================
   13. COMMON STATUS
   ========================================================= */

.status-dot {
    display: inline-block;

    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--color-success);

    box-shadow:
        0 0 0 4px rgba(24, 166, 106, 0.09),
        0 0 16px rgba(24, 166, 106, 0.28);
}


/* =========================================================
   14. COMMON GLASS SURFACE
   ========================================================= */

.glass {
    border:
        1px solid rgba(255, 255, 255, 0.62);

    background:
        rgba(255, 255, 255, 0.74);

    box-shadow:
        0 20px 60px rgba(31, 45, 68, 0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   15. REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translate3d(0, 28px, 0);

    transition:
        opacity 700ms var(--ease),
        transform 700ms var(--ease);

    will-change:
        opacity,
        transform;
}

.reveal.visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0);
}


/* =========================================================
   16. COMMON CARD INTERACTION
   ========================================================= */

.card-hover {
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card-hover:hover {
    transform: translateY(-6px);

    box-shadow:
        var(--shadow-lg);
}


/* =========================================================
   17. FORM BASE
   ========================================================= */

input,
textarea,
select {
    width: 100%;

    border:
        1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: var(--color-white);
    color: var(--color-text);

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color: #a3adbb;
}

input:focus,
textarea:focus,
select:focus {
    border-color:
        rgba(104, 71, 245, 0.55);

    box-shadow:
        0 0 0 4px
        rgba(104, 71, 245, 0.08);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   18. SELECTION
   ========================================================= */

::selection {
    background: rgba(104, 71, 245, 0.18);
    color: var(--color-text-strong);
}


/* =========================================================
   19. SCROLLBAR
   ========================================================= */

html {
    scrollbar-width: thin;
    scrollbar-color:
        #b6bfcc
        #f0f3f7;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #f0f3f7;
}

::-webkit-scrollbar-thumb {
    border-radius: var(--radius-pill);

    background:
        linear-gradient(
            180deg,
            #aeb8c7,
            #8f9caf
        );

    border:
        2px solid #f0f3f7;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #8e9aae,
            #737f92
        );
}


/* =========================================================
   20. DECORATIVE 3D UTILITIES
   ========================================================= */

.perspective {
    perspective: 1200px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.float-3d {
    transform:
        perspective(1200px)
        rotateX(2deg)
        rotateY(-3deg)
        translateZ(0);

    transition:
        transform 500ms var(--ease),
        box-shadow 500ms var(--ease);
}

.float-3d:hover {
    transform:
        perspective(1200px)
        rotateX(0deg)
        rotateY(0deg)
        translateY(-7px)
        translateZ(12px);
}


/* =========================================================
   21. COMMON DECORATIVE ORB
   ========================================================= */

.decorative-orb {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(1px);
}

.decorative-orb-primary {
    background:
        radial-gradient(
            circle,
            rgba(104, 71, 245, 0.22),
            rgba(104, 71, 245, 0.04) 50%,
            transparent 72%
        );
}

.decorative-orb-secondary {
    background:
        radial-gradient(
            circle,
            rgba(22, 184, 212, 0.18),
            rgba(22, 184, 212, 0.03) 50%,
            transparent 72%
        );
}


/* =========================================================
   22. COMMON DIVIDER
   ========================================================= */

.divider {
    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--border-color),
            transparent
        );
}


/* =========================================================
   23. RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

    :root {
        --section-space: 95px;
    }

    .container,
    .container-wide {
        width: min(
            calc(100% - 40px),
            var(--container-width)
        );
    }

    .page-hero-content h1 {
        font-size: clamp(
            2.7rem,
            6.5vw,
            4.8rem
        );
    }
}


/* =========================================================
   24. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 850px) {

    html {
        scroll-padding-top: 78px;
    }

    .container,
    .container-wide {
        width: calc(100% - 32px);
    }

    .section {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .section-header {
        margin-bottom: 42px;
    }

    .section-header h2 {
        font-size: clamp(
            2rem,
            7vw,
            3.1rem
        );
    }

    .page-hero {
        min-height: 420px;

        padding-top: 130px;
        padding-bottom: 78px;
    }

    .page-hero-content h1 {
        font-size: clamp(
            2.7rem,
            8vw,
            4.4rem
        );
    }

    .page-hero-content > p {
        font-size: 0.94rem;
    }

    .button {
        min-height: 48px;
    }
}


/* =========================================================
   25. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    :root {
        --section-space: 76px;
    }

    body {
        font-size: 15px;
    }

    .container,
    .container-wide {
        width: calc(100% - 28px);
    }

    .section {
        padding-top: var(--section-space-mobile);
        padding-bottom: var(--section-space-mobile);
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        margin-bottom: 15px;

        font-size:
            clamp(
                1.9rem,
                9vw,
                2.7rem
            );

        letter-spacing: -0.04em;
    }

    .section-header p {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .section-kicker {
        margin-bottom: 14px;

        font-size: 0.6rem;

        letter-spacing: 0.14em;
    }

    .section-kicker::before {
        width: 21px;
    }

    .page-hero {
        min-height: 390px;

        padding-top: 120px;
        padding-bottom: 65px;
    }

    .page-hero-content h1 {
        margin-bottom: 18px;

        font-size:
            clamp(
                2.5rem,
                13vw,
                3.8rem
            );

        line-height: 1;

        letter-spacing: -0.06em;
    }

    .page-hero-content > p {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .breadcrumb {
        margin-top: 23px;
        font-size: 0.62rem;
    }

    .button {
        min-height: 46px;
        padding-inline: 17px;

        font-size: 0.74rem;
    }

    .glass {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}


/* =========================================================
   26. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .container,
    .container-wide {
        width: calc(100% - 24px);
    }

    .page-hero {
        padding-top: 110px;
    }

    .page-hero-content h1 {
        font-size: 2.45rem;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }
}


/* =========================================================
   27. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   28. PRINT
   ========================================================= */

@media print {

    *,
    *::before,
    *::after {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    .navbar,
    .menu-toggle,
    .skip-link {
        display: none !important;
    }

    .page-hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================================================
   END OF GLOBAL.CSS
   ========================================================= */
