/* =========================================================
   LMAK GLOBAL — GLOBAL SYSTEM
   ========================================================= */

:root {
    --yellow: #F2CB20;
    --yellow-light: #FFD92F;
    --green: #38C86A;
    --green-bright: #59E37D;
    --green-dark: #075F2D;

    --bg: #030806;
    --bg-2: #06100A;
    --surface: rgba(12, 27, 18, .72);
    --surface-solid: #0A1810;
    --surface-2: #0D2015;

    --white: #FFFFFF;
    --text: #F4F7F4;
    --text-soft: #C7D1CA;
    --text-muted: #8A978F;

    --border: rgba(255,255,255,.085);
    --border-strong: rgba(255,255,255,.14);
    --border-green: rgba(56,200,106,.25);
    --border-yellow: rgba(242,203,32,.25);

    --font: "Manrope", Arial, Helvetica, sans-serif;
    --container: 1240px;
    --gutter: 32px;
    --header-height: 86px;
    --section-space: clamp(92px, 8vw, 132px);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --ease: cubic-bezier(.22,.61,.36,1);
    --ease-smooth: cubic-bezier(.16,1,.3,1);
}

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 78% 8%, rgba(56,200,106,.055), transparent 24%),
        radial-gradient(circle at 12% 35%, rgba(242,203,32,.035), transparent 22%),
        var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

::selection {
    color: #061008;
    background: var(--yellow);
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }
button { border: 0; background: none; cursor: pointer; }

ul, ol { list-style: none; }

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 5px;
}

.container {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--yellow);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--yellow), var(--green));
}

.section-header {
    max-width: 940px;
    margin-bottom: 48px;
}

.section-title {
    margin-top: 18px;
    color: var(--white);
    font-size: clamp(44px, 4.8vw, 68px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.section-title span,
.why-title span,
.ecosystem-title span,
.motion-title span {
    color: var(--green);
}

.section-description {
    max-width: 720px;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    transition: color .3s var(--ease), gap .45s var(--ease);
}

.text-link span {
    color: var(--yellow);
    font-size: 18px;
    transition: transform .45s var(--ease);
}

.text-link:hover { color: var(--yellow); gap: 16px; }
.text-link:hover span { transform: translateX(3px); }

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: transform .45s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
    will-change: transform;
}

.btn-arrow { font-size: 18px; line-height: 1; }

.btn-primary {
    color: #071008;
    background: var(--yellow);
    box-shadow: 0 12px 35px rgba(242,203,32,.12);
}

.btn-primary:hover {
    background: var(--yellow-light);
    box-shadow: 0 16px 45px rgba(242,203,32,.2);
}

.btn-secondary {
    color: var(--white);
    border-color: var(--border-strong);
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    color: var(--yellow);
    border-color: var(--border-yellow);
    background: rgba(242,203,32,.06);
}

.btn-large {
    min-height: 62px;
    padding-inline: 28px;
    font-size: 15px;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(3,8,6,.72), rgba(3,8,6,0));
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}

.site-header.scrolled {
    border-color: var(--border);
    background: rgba(3,8,6,.78);
    backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.055em;
}

.logo-lmak { color: var(--yellow); }
.logo-global { color: var(--green); }

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.4vw, 36px);
    margin-left: auto;
}

.site-nav a {
    position: relative;
    padding-block: 8px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    transition: color .3s var(--ease);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}

.site-nav a:hover { color: var(--white); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { min-height: 46px; padding-inline: 18px; font-size: 13px; }

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(255,255,255,.035);
}

.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: var(--white);
    transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle.active span:first-child { transform: rotate(45deg); }
.menu-toggle.active span:last-child { transform: rotate(-45deg); }

.mobile-navigation {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    padding: 28px var(--gutter) 40px;
    background: rgba(3,8,6,.97);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .45s var(--ease);
}

.mobile-navigation.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-navigation-inner {
    width: min(100%, 680px);
    margin: 0 auto;
    display: grid;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.mobile-navigation a span {
    width: 28px;
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.mobile-navigation .mobile-cta {
    justify-content: center;
    margin-top: 26px;
    padding: 17px 22px;
    border: 0;
    border-radius: var(--radius-pill);
    color: #071008;
    background: var(--yellow);
    font-size: 15px;
}

/* Global utilities */
/* Cursor glow removed: avoids stray crosshair/overlay artifacts. */
.cursor-glow {
    display: none !important;
}

.scroll-progress {
    position: fixed;
    z-index: 1100;
    inset: 0 auto auto 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--green));
    box-shadow: 0 0 16px rgba(56,200,106,.35);
    pointer-events: none;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity .75s var(--ease), visibility .75s var(--ease);
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    width: min(300px, 70vw);
    text-align: center;
}

.preloader-logo {
    width: 190px;
    height: 190px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.preloader-line {
    width: 100%;
    height: 1px;
    overflow: hidden;
    background: rgba(255,255,255,.1);
}

.preloader-line span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--yellow), var(--green));
    animation: preloader-line 1.9s var(--ease) forwards;
}

.preloader p {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
}

@keyframes preloader-line { to { transform: scaleX(1); } }

/* Animation fallback: content is always visible unless GSAP explicitly opts in. */
.reveal { opacity: 1; transform: none; }

.animations-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
}

.animations-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    :root { --gutter: 24px; }
    .site-nav, .header-cta { display: none; }
    .menu-toggle { display: grid; position: relative; }
    .mobile-navigation { display: block; }
}

@media (max-width: 700px) {
    :root { --gutter: 20px; --header-height: 74px; }
    .section { padding-block: 96px; }
    .section-header { margin-bottom: 42px; }
    .section-description { line-height: 1.72; }
    .site-logo-mark { width: 36px; height: 36px; }
    .site-logo-text { font-size: 18px; }
    .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}


/* LMak Global contact details */
.footer-contact-location {
    display: block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-contact-location {
        margin-top: 0.1rem;
    }
}
