/* ==========================================================================
   Metalytiq — New Site Stylesheet
   Built around a dark/light theme system and motion-first design
   ========================================================================== */

/* ---------- Theme tokens ---------- */
:root {
    /* Brand */
    --brand-blue: #044181;
    --brand-blue-2: #0a5fbd;
    --brand-green: #089b54;
    --brand-green-2: #16c47f;
    --brand-accent: #ffc847;

    /* Light theme (default) */
    --bg: #f6f8fb;
    --bg-elev: #ffffff;
    --bg-soft: #eef2f7;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(8, 30, 70, 0.08);
    --text: #0e1a2b;
    --text-soft: #475467;
    --text-muted: #6b7785;
    --heading: #042144;
    --shadow-sm: 0 1px 2px rgba(8, 30, 70, 0.06), 0 2px 8px rgba(8, 30, 70, 0.04);
    --shadow-md: 0 8px 28px rgba(8, 30, 70, 0.08), 0 2px 6px rgba(8, 30, 70, 0.04);
    --shadow-lg: 0 24px 60px rgba(8, 30, 70, 0.16);
    --grid-line: rgba(8, 30, 70, 0.06);

    /* Type */
    --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    /* Layout */
    --container: 1240px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --header-h: 78px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
    --bg: #07101f;
    --bg-elev: #0e1a2e;
    --bg-soft: #122339;
    --surface: rgba(20, 36, 60, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text: #e9eef5;
    --text-soft: #b9c4d4;
    --text-muted: #8492a6;
    --heading: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
    --grid-line: rgba(255, 255, 255, 0.05);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text);
    background: transparent;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.3s ease;
    font-weight: 450;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* Headings: distinctive display font, bold and crisp */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.18rem; }
p  { margin: 0 0 1em; color: var(--text-soft); }

::selection { background: var(--brand-green); color: #fff; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    padding: 110px 0;
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
}

/* ---------- Coming-soon banner on top (used when this site is also linked from old site) ---------- */
.site-banner {
    position: relative;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    color: #fff;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.02em;
    overflow: hidden;
    z-index: 100;
}
.site-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15), transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.15), transparent 40%);
    pointer-events: none;
}
.site-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-banner .sparkle {
    display: inline-block;
    animation: sparkle 1.6s ease-in-out infinite;
}
@keyframes sparkle {
    0%,100% { transform: scale(1); opacity: 1; }
    50%     { transform: scale(1.25); opacity: 0.7; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
    border-bottom: 1px solid var(--surface-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img { height: 40px; width: auto; }
.brand .brand-tag {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}
[data-theme="dark"] .brand .brand-tag { color: #ffffff; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav a {
    position: relative;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.97rem;
    color: var(--text-soft);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.nav a:hover,
.nav a.active {
    color: var(--heading);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

/* Dropdown */
.nav .has-sub { position: relative; z-index: 100; }
.nav .submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s var(--ease-out);
    z-index: 100;
}
.nav .submenu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
}
.nav .submenu a::after { display: none; }
.nav .submenu a:hover { background: var(--bg-soft); }
.nav .has-sub:hover .submenu,
.nav .has-sub:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--surface-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out), background 0.2s ease;
    color: var(--text);
}
.theme-toggle:hover { transform: rotate(20deg); background: var(--bg-elev); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #fff;
    box-shadow: 0 8px 24px rgba(8, 65, 129, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8, 65, 129, 0.35); }
.btn-ghost {
    background: var(--bg-soft);
    color: var(--heading);
    border: 1px solid var(--surface-border);
}
.btn-ghost:hover { background: var(--bg-elev); transform: translateY(-2px); }

.btn svg { transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
    .nav { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-actions .btn-primary { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s var(--ease-out);
    padding: 24px;
    overflow-y: auto;
}
.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}
.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
}
.mobile-drawer nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading);
    border-bottom: 1px solid var(--surface-border);
}
.mobile-drawer nav a:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 130px 0 110px;
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.hero-glow.g1 { top: -200px; left: -150px; background: var(--brand-blue); }
.hero-glow.g2 { bottom: -250px; right: -100px; background: var(--brand-green); }
[data-theme="dark"] .hero-glow { opacity: 0.32; }

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 50px; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 22px;
}
.eyebrow .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
}

.hero h1 {
    margin-bottom: 22px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--brand-blue), var(--brand-green) 50%, var(--brand-blue-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero p.lead {
    font-size: 1.13rem;
    max-width: 540px;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 10px;
}
.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-weight: 500;
}
.hero-bullets li .tick {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-green) 18%, transparent);
    color: var(--brand-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}
.hero-bullets li .tick svg { width: 12px; height: 12px; }

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* 3D card / visual side */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    perspective: 1400px;
}
.hero-canvas-3d {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.hero-card-stack {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-card {
    position: absolute;
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--heading);
}
.hero-card .ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
}
.hero-card-1 { top: 12%; left: -4%; animation: floatA 7s ease-in-out infinite; }
.hero-card-2 { top: 45%; right: -6%; animation: floatB 8s ease-in-out infinite; }
.hero-card-3 { bottom: 8%; left: 12%; animation: floatA 6s ease-in-out infinite reverse; }
.hero-card-1 .ico { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2)); }
.hero-card-2 .ico { background: linear-gradient(135deg, var(--brand-green), var(--brand-green-2)); }
.hero-card-3 .ico { background: linear-gradient(135deg, var(--brand-accent), #ff8a3d); }

@keyframes floatA {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-18px); }
}
@keyframes floatB {
    0%,100% { transform: translateY(0) translateX(0); }
    50%     { transform: translateY(14px) translateX(-8px); }
}

/* ---------- Stats strip ---------- */
.stats {
    padding: 50px 0;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    background: var(--bg-soft);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ---------- Section title block ---------- */
.section-head {
    max-width: 780px;
    margin: 0 auto 64px;
    text-align: center;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 .grad {
    background: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-head p {
    font-size: 1.06rem;
    color: var(--text-soft);
}

/* ---------- Services grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
        color-mix(in srgb, var(--brand-blue) 10%, transparent),
        transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(8, 65, 129, 0.25);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.18rem; }
.service-card p { font-size: 0.96rem; margin: 0; }

/* ---------- About / Features split ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ico {
    flex: 0 0 38px; width: 38px; height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand-green) 14%, transparent);
    color: var(--brand-green);
    display: inline-flex; align-items: center; justify-content: center;
}
.feature-list .ico svg { width: 18px; height: 18px; }
.feature-list h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--heading); }
.feature-list p { margin: 0; font-size: 0.94rem; color: var(--text-soft); }

/* About visual: rotating 3D-feel cube */
.about-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--brand-blue) 18%, transparent),
            color-mix(in srgb, var(--brand-green) 18%, transparent));
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-visual canvas { width: 100% !important; height: 100% !important; }

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
}
.team-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.team-card:hover .team-thumb img { transform: scale(1.06); }
.team-body { padding: 22px; }
.team-body h4 { margin: 0 0 4px; font-size: 1.13rem; color: var(--heading); }
.team-body .role { margin: 0; color: var(--brand-green); font-weight: 600; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item.open { border-color: color-mix(in srgb, var(--brand-blue) 30%, transparent); box-shadow: var(--shadow-md); }
.faq-q {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.04rem;
    color: var(--heading);
    text-align: left;
}
.faq-q .plus {
    flex: 0 0 32px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.4s var(--ease-out), background 0.2s ease;
    color: var(--brand-blue);
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--brand-blue); color: #fff; }
.faq-q .plus svg { width: 14px; height: 14px; }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s var(--ease-out), padding 0.4s ease;
    padding: 0 24px;
    color: var(--text-soft);
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }

/* ---------- CTA strip ---------- */
.cta-strip {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    background: linear-gradient(135deg, #021c39 0%, #044181 40%, #066c4a 100%);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-strip::before, .cta-strip::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(80px);
}
.cta-strip::before { width: 360px; height: 360px; background: rgba(22, 196, 127, 0.4); top: -80px; left: -80px; }
.cta-strip::after  { width: 320px; height: 320px; background: rgba(10, 95, 189, 0.6); bottom: -100px; right: -60px; }
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-strip .btn-primary { background: #fff; color: var(--brand-blue); }
.cta-strip .btn-primary:hover { color: var(--brand-green); }
.cta-strip .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }

@media (max-width: 640px) { .cta-strip { padding: 40px 28px; } }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--surface-border);
    padding: 72px 0 28px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--heading);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--brand-green); }
.footer-about p { font-size: 0.96rem; color: var(--text-soft); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}
.footer-socials a:hover { background: var(--brand-blue); color: #fff; transform: translateY(-3px); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-contact li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.94rem; color: var(--text-soft);
}
.footer-contact .ico {
    flex: 0 0 32px; width: 32px; height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
    color: var(--brand-blue);
    display: inline-flex; align-items: center; justify-content: center;
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid var(--surface-border);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.88rem;
    flex-wrap: wrap; gap: 12px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
    position: relative;
    padding: 100px 0 70px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(800px 400px at 50% 0%, color-mix(in srgb, var(--brand-blue) 14%, transparent), transparent 70%),
        var(--bg);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero h1 .grad {
    background: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.breadcrumbs {
    display: inline-flex; gap: 10px; align-items: center;
    font-size: 0.92rem; color: var(--text-soft);
    margin-bottom: 16px;
}
.breadcrumbs a { color: var(--brand-blue); font-weight: 600; }
[data-theme="dark"] .breadcrumbs a { color: var(--brand-green-2); }

/* ---------- Generic content blocks ---------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 720px) { .content-grid { grid-template-columns: 1fr; } }
.content-card {
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.content-card h3 { margin-bottom: 10px; }
.content-card .icon-circle {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.content-card .icon-circle svg { width: 22px; height: 22px; }

/* Process steps */
.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
    position: relative;
    padding: 30px 26px 26px;
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    counter-increment: step;
}
.step::before {
    content: "0" counter(step);
    position: absolute;
    top: 16px; right: 22px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.2rem;
    color: color-mix(in srgb, var(--brand-blue) 30%, transparent);
    letter-spacing: -0.04em;
}
.step h4 { margin: 0 0 6px; padding-right: 60px; }
.step p { margin: 0; font-size: 0.95rem; }

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--surface-border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-blue) 14%, transparent);
}
.contact-info {
    display: grid; gap: 18px;
}
.contact-info .ci-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px;
    background: var(--bg-elev);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    transition: transform 0.3s var(--ease-out);
}
.contact-info .ci-card:hover { transform: translateY(-3px); }
.contact-info .ci-card .ico {
    flex: 0 0 48px; width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-info h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info p { margin: 0; font-size: 0.95rem; color: var(--text-soft); }

.form-alert {
    padding: 14px 16px; border-radius: 12px; margin-bottom: 16px;
    font-size: 0.95rem; font-weight: 500;
}
.form-alert.success { background: color-mix(in srgb, var(--brand-green) 15%, transparent); color: var(--brand-green); border: 1px solid color-mix(in srgb, var(--brand-green) 40%, transparent); }
.form-alert.error   { background: rgba(220, 38, 38, 0.12); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.35); }

/* ---------- Reveal animation utility ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Marquee brand strip */
.marquee {
    overflow: hidden;
    padding: 30px 0;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    background: var(--bg-soft);
}
.marquee-track {
    display: flex;
    gap: 70px;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track img {
    height: 36px; width: auto;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.marquee-track img:hover { opacity: 1; filter: grayscale(0); }
[data-theme="dark"] .marquee-track img { filter: grayscale(1) brightness(2); opacity: 0.5; }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
    z-index: 200;
    pointer-events: none;
}

/* Persistent fixed 3D background canvas — sits behind everything */
#bg-canvas-3d {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}
#bg-canvas-3d canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
[data-theme="light"] #bg-canvas-3d { opacity: 0.55; }

/* Lift all main content above the background canvas.
   Header gets a HIGHER z-index than main so the Services dropdown
   (which overflows out of the header) stays on top of page content. */
.site-header {
    position: relative;
    z-index: 50;
}
main, .site-footer {
    position: relative;
    z-index: 2;
}

/* Add a translucent backdrop to body sections so content stays legible
   while the 3D background is visible at edges */
main > section {
    position: relative;
    z-index: 2;
}

/* Hide background canvas on very small screens for performance */
@media (max-width: 640px) {
    #bg-canvas-3d { opacity: 0.4; }
}

/* Cursor follower (subtle 3D feel) */
.cursor-glow {
    position: fixed;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-blue) 14%, transparent), transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
    filter: blur(0.5px);
}
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-blue) 9%, transparent), transparent 60%);
    mix-blend-mode: multiply;
}
@media (hover: hover) and (pointer: fine) {
    body:hover .cursor-glow { opacity: 1; }
}
@media (max-width: 900px) {
    .cursor-glow { display: none; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   App Launcher (9-dot "Our Products" popup)
   Glassmorphism popup with staggered tile reveal — matches the site's
   existing glass-header recipe (translucent surface + backdrop blur).
   ========================================================================== */
.app-launcher { position: relative; display: inline-flex; }

.app-launcher-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--surface-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--ease-out), color 0.2s ease;
}
.app-launcher-btn:hover { background: var(--bg-elev); transform: scale(1.05); }
.app-launcher-btn svg circle { fill: currentColor; transition: fill 0.2s ease; }
.app-launcher-btn:hover svg circle { fill: var(--brand-green); }
.app-launcher-btn[aria-expanded="true"] {
    background: var(--bg-elev);
    color: var(--brand-green);
    transform: rotate(45deg);
}
.app-launcher-btn[aria-expanded="true"] svg circle { fill: var(--brand-green); }

[data-theme="dark"] .app-launcher-btn { color: var(--text); }

/* Glass popup — same recipe as .site-header (translucent + blur) */
.app-launcher-popup {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 320px;
    background: color-mix(in srgb, var(--bg-elev) 72%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 16px 12px 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(-8px);
    transform-origin: top right;
    transition:
        opacity 0.28s var(--ease-out),
        transform 0.32s var(--ease-out),
        visibility 0.32s;
    z-index: 110;
}
.app-launcher.open .app-launcher-popup {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Subtle inner glow gradient line at the top — adds the "premium" feel */
.app-launcher-popup::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-green-2), transparent);
    opacity: 0.6;
}

.app-launcher-head {
    text-align: center;
    padding: 2px 0 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--surface-border);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    letter-spacing: 0.01em;
}

.app-launcher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

/* Tile entrance: staggered fade + lift. Each tile gets a delay below. */
.app-launcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 6px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    opacity: 0;
    transform: translateY(8px);
    transition:
        background 0.2s ease,
        transform 0.25s var(--ease-out),
        opacity 0.25s var(--ease-out);
}
.app-launcher.open .app-launcher-item {
    opacity: 1;
    transform: translateY(0);
}
.app-launcher.open .app-launcher-item:nth-child(1) { transition-delay: 0.08s; }
.app-launcher.open .app-launcher-item:nth-child(2) { transition-delay: 0.14s; }
.app-launcher.open .app-launcher-item:nth-child(3) { transition-delay: 0.20s; }
.app-launcher.open .app-launcher-item:nth-child(4) { transition-delay: 0.26s; }
.app-launcher.open .app-launcher-item:nth-child(5) { transition-delay: 0.32s; }
.app-launcher.open .app-launcher-item:nth-child(6) { transition-delay: 0.38s; }

.app-launcher-item:hover {
    background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
    transform: translateY(-3px);
    transition-delay: 0s;  /* override stagger delay on hover */
}
.app-launcher-item:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

/* Icon tile — gradient background, theme-independent (looks identical light/dark) */
.app-launcher-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(8, 30, 70, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.app-launcher-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}
.app-launcher-item:hover .app-launcher-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 12px 24px rgba(8, 30, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Per-icon tile backgrounds — gradients drawn with brand colors */
.app-launcher-icon[data-icon="metapass"]  { background: linear-gradient(135deg, #044181 0%, #0a5fbd 100%); }
.app-launcher-icon[data-icon="metadrive"] { background: linear-gradient(135deg, #089b54 0%, #16c47f 100%); }
.app-launcher-icon[data-icon="metadata"]  { background: linear-gradient(135deg, #042144 0%, #044181 50%, #089b54 100%); }

.app-launcher-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Respect reduced motion: no transforms or stagger */
@media (prefers-reduced-motion: reduce) {
    .app-launcher-btn[aria-expanded="true"] { transform: none; }
    .app-launcher-popup,
    .app-launcher.open .app-launcher-popup,
    .app-launcher-item,
    .app-launcher.open .app-launcher-item {
        transform: none;
        transition-duration: 0.001ms;
        transition-delay: 0s;
    }
    .app-launcher-item:hover { transform: none; }
    .app-launcher-item:hover .app-launcher-icon { transform: none; }
}

/* Hide on small mobile (available in the drawer instead — see header.php) */
@media (max-width: 560px) {
    .app-launcher { display: none; }
    .app-launcher-popup { right: -8px; width: 280px; }
}

/* Mobile drawer — Products section */
.mobile-drawer-products {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
}
.mobile-drawer-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px 16px;
}
.mobile-drawer-products a {
    padding: 12px 16px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--heading);
    border-bottom: 1px solid var(--surface-border);
    text-decoration: none;
}
.mobile-drawer-products a:hover { background: var(--bg-soft); }
