/* ==========================================================================
   Leapinfotech Solutions — design system
   ========================================================================== */
:root {
    --bg: #05070f;
    --bg-2: #0a0e1c;
    --bg-3: #0f1426;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.14);
    --text: #eef1f8;
    --text-2: #b6bdd0;
    --muted: #7d869e;
    --blue: #4dafe3;
    --blue-2: #2b8fd6;
    --violet: #8b5cf6;
    --red: #ef2b3a;
    --green: #34d399;
    --grad: linear-gradient(110deg, #4dafe3 0%, #8b5cf6 52%, #ef2b3a 100%);
    --grad-soft: linear-gradient(110deg, rgba(77,175,227,.18), rgba(139,92,246,.18) 52%, rgba(239,43,58,.18));
    --radius: 20px;
    --radius-lg: 28px;
    --radius-sm: 12px;
    --container: 1220px;
    --font-head: "Sora", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }

.bg-noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    font-size: 13px; font-weight: 500; color: var(--text-2);
    letter-spacing: .01em;
}
.eyebrow .icon { color: var(--blue); width: 15px; height: 15px; }
.grad-text, h1 em, h2 em, h3 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    padding-right: .06em;
}
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); margin: 20px 0 18px; }
.section-head p { color: var(--text-2); font-size: 18px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head--split > div { max-width: 640px; }
.lead { font-size: 19px; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
    --h: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--h); padding: 0 24px;
    border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    cursor: pointer; white-space: nowrap;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 16px; }
.btn--primary {
    background: #fff; color: #070a14;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0), 0 10px 30px -10px rgba(77, 175, 227, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(139, 92, 246, .15), 0 18px 40px -12px rgba(139, 92, 246, .7); }
.btn--grad { background: var(--grad); color: #fff; background-size: 160% 100%; background-position: 0 0; }
.btn--grad:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn--ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.link-arrow .icon { transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav__inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    height: 68px; padding: 0 12px 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background .4s, border-color .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__inner, .nav.is-open .nav__inner {
    background: rgba(10, 14, 28, .72);
    border-color: var(--border);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: 999px;
    font-size: 14.5px; font-weight: 500; color: var(--text-2);
    transition: color .3s, background .3s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--violet); animation: pulse 2s infinite; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle .icon { width: 20px; height: 20px; }
.nav__mobile {
    display: none; flex-direction: column; gap: 4px;
    max-width: var(--container); margin: 10px auto 0; padding: 14px;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: rgba(10, 14, 28, .94); backdrop-filter: blur(18px);
}
.nav__mobile a { padding: 14px 16px; border-radius: 12px; font-weight: 500; color: var(--text-2); }
.nav__mobile a.is-active, .nav__mobile a:hover { background: var(--surface-2); color: var(--text); }
.nav__mobile .btn { margin-top: 8px; color: #070a14; }
.nav.is-open .nav__mobile { display: flex; animation: dropIn .4s var(--ease); }

@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Background decor ---------- */
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; }
.orb--blue { background: radial-gradient(circle, #2b8fd6, transparent 70%); }
.orb--violet { background: radial-gradient(circle, #7c3aed, transparent 70%); }
.orb--red { background: radial-gradient(circle, #e11d48, transparent 70%); }
.grid-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 100px; overflow: hidden; }
.hero .orb--blue { width: 620px; height: 620px; top: -160px; left: -140px; }
.hero .orb--violet { width: 560px; height: 560px; top: 40px; right: -160px; opacity: .45; }
.hero .orb--red { width: 420px; height: 420px; bottom: -200px; left: 40%; opacity: .25; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 78px); line-height: 1.02; margin: 26px 0 26px; letter-spacing: -0.04em; }
.hero h1 em { font-size: 1.08em; }
.hero__sub { font-size: 19px; color: var(--text-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero__meta strong { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.hero__meta span { font-size: 14px; color: var(--muted); }

/* AI console visual */
.console {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.03) 40%, rgba(139,92,246,.35));
    box-shadow: var(--shadow), 0 0 120px -30px rgba(139, 92, 246, .55);
}
.console__inner { border-radius: calc(var(--radius-lg) - 1px); background: linear-gradient(180deg, #0d1224, #080b17); overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3045; }
.console__bar i:nth-child(1) { background: #ff5f57; } .console__bar i:nth-child(2) { background: #febc2e; } .console__bar i:nth-child(3) { background: #28c840; }
.console__bar span { margin: 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.console__status { margin: 0 !important; color: var(--green); font-size: 12px; }
.console__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.console__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.is-in { opacity: 1; transform: none; }
.msg--user { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.msg--ai { align-self: flex-start; background: linear-gradient(135deg, rgba(77,175,227,.14), rgba(139,92,246,.14)); border: 1px solid rgba(139,92,246,.25); border-bottom-left-radius: 4px; }
.msg--ai b { color: #fff; font-weight: 600; }
.msg__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.msg__label .icon { width: 13px; height: 13px; }
.console__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .2); color: #8ef0c6; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tool-chip .icon { width: 12px; height: 12px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.console__input { display: flex; align-items: center; gap: 10px; margin: 0 22px 22px; padding: 12px 12px 12px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.025); color: var(--muted); font-size: 14px; }
.console__input span { flex: 1; }
.console__input b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; }
.console__input .icon { width: 16px; height: 16px; }
.float-card {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 16px;
    background: rgba(13, 18, 36, .85); border: 1px solid var(--border-2);
    backdrop-filter: blur(14px); box-shadow: var(--shadow);
    font-size: 13px; color: var(--text-2);
    animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--text); font-size: 15px; font-family: var(--font-head); }
.float-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border-2); color: #fff; }
.float-card--a { top: -34px; left: -56px; }
.float-card--b { bottom: 40px; right: -36px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Logo marquee ---------- */
.logos { padding: 30px 0 90px; }
.logos__title { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 30px; letter-spacing: .02em; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile {
    display: grid; place-items: center;
    width: 170px; height: 84px; padding: 16px 22px;
    border-radius: 16px; background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    transition: transform .4s var(--ease), background .3s;
}
.logo-tile img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .4s, opacity .4s; }
.logo-tile:hover { transform: translateY(-4px); background: #fff; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Cards & bento ---------- */
.card {
    position: relative; overflow: hidden;
    padding: 32px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border: 1px solid var(--border);
    transition: border-color .4s, transform .5s var(--ease), background .4s;
    isolation: isolate;
}
.card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .14), transparent 40%);
    transition: opacity .4s;
}
.card:hover { border-color: var(--border-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; margin: 22px 0 12px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card__icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 15px;
    background: var(--grad-soft); border: 1px solid var(--border-2);
    color: #fff;
}
.card__icon .icon { width: 24px; height: 24px; }
.card__list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__list li { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.card__link { margin-top: 26px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.card--feature { padding: 40px; min-height: 100%; display: flex; flex-direction: column; }
.card--feature h3 { font-size: 28px; }
.card--feature .card__link { margin-top: auto; padding-top: 26px; }
.card--ai { background: linear-gradient(135deg, rgba(77,175,227,.12), rgba(139,92,246,.12) 50%, rgba(239,43,58,.08)), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border-color: rgba(139,92,246,.3); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--grad); color: #fff; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- AI spotlight ---------- */
.ai-spot { position: relative; overflow: hidden; }
.ai-spot .orb--violet { width: 700px; height: 700px; top: 10%; left: -300px; opacity: .3; }
.ai-spot .orb--blue { width: 500px; height: 500px; bottom: -100px; right: -150px; opacity: .3; }
.ai-spot__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ai-list { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; }
.ai-list__item {
    display: flex; gap: 18px; padding: 18px 20px; border-radius: 16px;
    border: 1px solid transparent; cursor: pointer;
    transition: background .3s, border-color .3s;
}
.ai-list__item:hover, .ai-list__item.is-active { background: var(--surface); border-color: var(--border); }
.ai-list__item .card__icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.ai-list__item .card__icon .icon { width: 20px; height: 20px; }
.ai-list__item h4 { font-size: 17px; margin-bottom: 4px; }
.ai-list__item p { font-size: 14.5px; color: var(--text-2); }

/* Agent flow diagram */
.flow { position: relative; padding: 1px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.03) 50%, rgba(77,175,227,.3)); box-shadow: var(--shadow); }
.flow__inner { position: relative; border-radius: calc(var(--radius-lg) - 1px); background: #080b17; padding: 34px; overflow: hidden; }
.flow__inner .grid-bg { background-size: 32px 32px; mask-image: none; -webkit-mask-image: none; opacity: .6; }
.flow__head { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.flow__head strong { font-family: var(--font-head); color: var(--text); font-size: 16px; font-weight: 600; }
.flow__nodes { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; }
.node {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 14px;
    background: rgba(255,255,255,.035); border: 1px solid var(--border);
    font-size: 14px;
}
.node .card__icon { width: 38px; height: 38px; border-radius: 10px; }
.node .card__icon .icon { width: 18px; height: 18px; }
.node strong { display: block; font-size: 14.5px; font-weight: 600; }
.node small { color: var(--muted); font-size: 12.5px; }
.node__state { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(52,211,153,.1); color: #8ef0c6; border: 1px solid rgba(52,211,153,.2); }
.node__state--run { background: rgba(139,92,246,.12); color: #c4b5fd; border-color: rgba(139,92,246,.3); }
.node + .node::before { content: ""; position: absolute; left: 34px; top: -15px; width: 2px; height: 15px; background: linear-gradient(var(--blue), var(--violet)); }
.flow__result { position: relative; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(139,92,246,.3); font-size: 14px; color: var(--text-2); }
.flow__result b { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 40px 32px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(40px, 4.5vw, 58px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #fff, #9aa3bb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.process--5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .5s var(--ease); }
.step:hover { border-color: var(--border-2); transform: translateY(-6px); }
.step__num { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .1em; }
.step__num b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; letter-spacing: -0.03em; display: block; margin-bottom: 18px; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14px; }

/* ---------- Products ---------- */
.product { padding: 0; display: flex; flex-direction: column; }
.product__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__media .badge { position: absolute; top: 16px; left: 16px; }
.product__media--examgo { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #34d399, transparent 55%), linear-gradient(135deg, #0f766e, #064e3b); }
.product__media--examgo span { font-family: var(--font-head); font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -0.04em; color: #fff; transition: transform .8s var(--ease); }
.product__media--examgo span b { color: #a7f3d0; }
.product:hover .product__media--examgo span { transform: scale(1.05); }
.product-row__media.product__media--examgo span { font-size: clamp(48px, 6vw, 80px); }
.product__body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { margin: 0 0 6px; }
.product__kind { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.product__body .card__link { margin-top: auto; padding-top: 24px; }
.product__feat { margin-top: 18px; display: grid; gap: 10px; }
.product__feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.product__feat .icon { color: var(--green); margin-top: 3px; width: 16px; height: 16px; }

.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--border); }
.product-row:first-child { border-top: 0; padding-top: 0; }
.product-row:nth-child(even) .product-row__media { order: 2; }
.product-row__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.product-row__media img { width: 100%; height: 100%; object-fit: cover; }
.product-row__media--contain img { object-fit: contain; padding: 10%; }
.product-row h3 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 16px; }
.product-row p { color: var(--text-2); font-size: 17px; }
.product-row .product__feat { grid-template-columns: 1fr 1fr; margin: 28px 0 32px; }

/* ---------- Industries / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 500; color: var(--text-2); transition: border-color .3s, color .3s, background .3s; }
.chip .icon { color: var(--blue); }
.chip:hover { border-color: var(--border-2); color: var(--text); background: var(--surface-2); }
.chips--center { justify-content: center; }

.tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tech span { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-2); text-align: center; transition: color .3s, border-color .3s; }
.tech span:hover { color: var(--text); border-color: var(--border-2); }
.tech-group + .tech-group { margin-top: 36px; }
.tech-group h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,7,15,.7)); }
.split h2 { font-size: clamp(32px, 4vw, 50px); margin: 20px 0 22px; }
.split p + p { margin-top: 16px; }
.split p { color: var(--text-2); font-size: 17px; }
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks .icon { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(52,211,153,.12); color: var(--green); margin-top: 1px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 190px 0 90px; overflow: hidden; text-align: center; }
.page-hero .orb--blue { width: 520px; height: 520px; top: -200px; left: 10%; }
.page-hero .orb--violet { width: 520px; height: 520px; top: -160px; right: 8%; opacity: .4; }
.page-hero h1 { position: relative; font-size: clamp(42px, 6vw, 76px); letter-spacing: -0.04em; margin: 24px auto 22px; max-width: 920px; }
.page-hero p { position: relative; max-width: 680px; margin: 0 auto; color: var(--text-2); font-size: 19px; }
.page-hero .hero__actions { justify-content: center; position: relative; }
.crumbs { position: relative; display: inline-flex; gap: 10px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- Service detail ---------- */
.service-block { display: grid; grid-template-columns: 380px 1fr; gap: 64px; padding: 72px 0; border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.service-block:first-of-type { border-top: 0; }
.service-block__head { position: sticky; top: 120px; align-self: start; }
.service-block__head h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 22px 0 16px; }
.service-block__head p { color: var(--text-2); }
.service-block__head .btn { margin-top: 28px; }
.service-block .grid-2 { gap: 16px; }
.service-block .card { padding: 26px; }
.service-block .card h3 { font-size: 18px; margin: 0 0 8px; }
.service-block .card p { font-size: 14.5px; }
.service-block .card .card__icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px; }
.service-block .card .card__icon .icon { width: 19px; height: 19px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 500; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .4s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--text); }
.faq details p { padding: 0 26px 24px; color: var(--text-2); }
.faq__q { font: inherit; letter-spacing: inherit; margin: 0; }

/* ---------- Definition block ---------- */
.definition { max-width: 900px; margin: 0 auto; text-align: center; padding: 40px 36px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.definition h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.definition p { color: var(--text-2); font-size: 17.5px; }

/* ---------- Values / vision ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm .card { padding: 44px; }
.vm .card h3 { font-size: 28px; }
.vm .card p { font-size: 17px; }

/* ---------- Clients page ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.client-grid .logo-tile { width: auto; height: 110px; }
.client-grid .logo-tile img { max-height: 64px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.contact__item { display: flex; gap: 18px; padding: 24px; }
.contact__item .card__icon { width: 46px; height: 46px; border-radius: 13px; }
.contact__item .card__icon .icon { width: 20px; height: 20px; }
.contact__item h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.contact__item p, .contact__item a { color: var(--text); font-size: 16px; }
.contact__item a:hover { color: var(--blue); }
.form { padding: 40px; }
.form h2 { font-size: 30px; margin-bottom: 8px; }
.form > p { color: var(--text-2); margin-bottom: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--border-2); background: rgba(5,7,15,.6);
    color: var(--text); font: inherit; font-size: 15px;
    transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d869e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { background: var(--bg-3); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.pills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pills label { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: 14px; color: var(--text-2); cursor: pointer; transition: all .25s; }
.pills input:checked + label { background: #fff; color: #070a14; border-color: #fff; }
.pills input:focus-visible + label { box-shadow: 0 0 0 3px rgba(139,92,246,.4); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.alert--ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #a7f3d0; }
.alert--err { background: rgba(239,43,58,.1); border: 1px solid rgba(239,43,58,.3); color: #fecdd3; }
.map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 300px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.9); }

/* ---------- CTA band ---------- */
.cta-band { padding: 40px 0 120px; }
.cta-band__card {
    position: relative; overflow: hidden; text-align: center;
    padding: 90px 40px; border-radius: 36px;
    border: 1px solid var(--border-2);
    background: radial-gradient(ellipse at top, rgba(139,92,246,.22), transparent 60%), linear-gradient(180deg, #0e1328, #070a15);
}
.cta-band__glow { position: absolute; left: 50%; bottom: -240px; width: 900px; height: 400px; transform: translateX(-50%); background: var(--grad); filter: blur(120px); opacity: .35; pointer-events: none; }
.cta-band__card > *:not(.cta-band__glow) { position: relative; }
.cta-band h2 { font-size: clamp(34px, 5vw, 62px); max-width: 860px; margin: 24px auto 20px; letter-spacing: -0.035em; }
.cta-band p { max-width: 600px; margin: 0 auto; color: var(--text-2); font-size: 18px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--border); padding: 80px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--bg), #03040a); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand p { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 340px; }
.footer__social { display: flex; gap: 10px; margin-top: 26px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--text-2); transition: all .3s; }
.footer__social a:hover { background: #fff; color: #070a14; border-color: #fff; }
.footer__social .icon { width: 18px; height: 18px; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 20px; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { color: var(--text-2); font-size: 15px; transition: color .3s; }
.footer ul a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.footer__contact .icon { margin-top: 4px; color: var(--blue); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding: 26px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.footer__wordmark {
    font-family: var(--font-head); font-weight: 700; letter-spacing: -0.06em; line-height: .8;
    font-size: clamp(80px, 17vw, 260px); text-align: center; white-space: nowrap;
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    user-select: none; margin-bottom: -0.12em;
}

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .msg { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav__links a { padding: 9px 11px; font-size: 14px; }
    .process { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .service-block { grid-template-columns: 1fr; gap: 36px; }
    .service-block__head { position: static; }
}
@media (max-width: 980px) {
    .nav__links, .nav__cta { display: none; }
    .nav__toggle { display: inline-flex; }
    .hero { padding-top: 150px; }
    .hero__grid, .ai-spot__grid, .split, .contact, .product-row { grid-template-columns: 1fr; gap: 56px; }
    .product-row:nth-child(even) .product-row__media { order: 0; }
    .float-card--a { left: 0; } .float-card--b { right: 0; }
    .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 6; }
    .bento .card--half { grid-column: span 3; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .section-head--split { flex-direction: column; align-items: flex-start; }
    .vm { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 84px 0; }
    .container { padding: 0 20px; }
    .nav { top: 10px; padding: 0 10px; }
    .nav__inner { height: 60px; padding: 0 8px 0 16px; }
    .nav__logo img { height: 34px; }
    .hero h1 { font-size: 44px; }
    .hero__meta { gap: 24px; }
    .hero__meta strong { font-size: 28px; }
    .float-card { display: none; }
    .bento .card--half { grid-column: span 6; }
    .grid-2, .grid-3, .grid-4, .form__row, .product-row .product__feat { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr 1fr; }
    .card, .card--feature { padding: 26px; }
    .form { padding: 26px; }
    .vm .card { padding: 30px; }
    .cta-band__card { padding: 64px 22px; border-radius: 28px; }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .logo-tile { width: 140px; height: 72px; }
    .page-hero { padding: 150px 0 64px; }
    .stat { padding: 28px 22px; }
}
