/* ============================================================================
   Devlan Solutions LTD - Design System
   A custom, self-contained UI. No Bootstrap, no jQuery, no template.
   Built to demonstrate the kind of work Devlan ships.
   ============================================================================ */

/* ------------------------------------------------------------------ Tokens */
:root {
    /* Ink (dark, green-tinted charcoal) */
    --ink-900: #05070500;      /* transparent helper */
    --bg:       #070a08;
    --bg-elev:  #0b0f0c;
    --surface:  #0e1410;
    --surface-2:#131b15;
    --line:     rgba(150, 200, 160, 0.10);
    --line-2:   rgba(150, 200, 160, 0.18);

    /* Brand green scale (anchored on the logo's #318e05) */
    --brand-700: #256b12;
    --brand-600: #2f8317;
    --brand-500: #3f9e22;
    --brand-400: #57c23a;
    --brand-300: #7ada5b;
    --brand-glow: #8dff67;
    --brand: var(--brand-400);

    /* Text */
    --text:      #e9f1eb;
    --text-soft: #b7c6bb;
    --text-muted:#8a9c8f;
    --text-dim:  #62726a;

    /* Accents & effects */
    --glow: 0 0 40px rgba(87, 194, 58, 0.35);
    --glow-soft: 0 0 60px rgba(87, 194, 58, 0.18);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85);

    /* Type */
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

    /* Layout */
    --container: 1200px;
    --gutter: clamp(20px, 5vw, 40px);
    --nav-h: 78px;

    --gradient-brand: linear-gradient(120deg, var(--brand-500), var(--brand-300));
    --gradient-text: linear-gradient(120deg, #ffffff 20%, var(--brand-300) 90%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient page background: mesh + fine grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 50% at 80% -5%, rgba(87, 194, 58, 0.16), transparent 60%),
        radial-gradient(50% 40% at 0% 10%, rgba(47, 131, 23, 0.12), transparent 55%),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(150, 200, 160, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 200, 160, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
    pointer-events: none;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--brand-500); color: #04120a; }

/* Focus visibility for keyboard users */
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }

/* -------------------------------------------------------------- Primitives */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(70px, 10vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-300);
    padding: 7px 14px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    background: rgba(87, 194, 58, 0.06);
    backdrop-filter: blur(6px);
}
.eyebrow svg { width: 14px; height: 14px; margin-right: -2px; }
.eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand-400);
    box-shadow: 0 0 10px var(--brand-400);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4.6vw, 52px); margin-top: 20px; }
.section-sub { color: var(--text-muted); font-size: clamp(15px, 1.6vw, 17.5px); margin-top: 18px; max-width: 640px; }
.section-head.center .section-sub { margin-inline: auto; }

.grad-text {
    background: var(--gradient-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.brand-text { color: var(--brand-300); }

/* ------------------------------------------------------------------ Buttons */
.btn {
    --btn-bg: var(--brand-500);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    border-radius: 100px;
    font-weight: 600; font-size: 15px;
    border: 1px solid transparent;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
    white-space: nowrap;
    position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
    background: var(--gradient-brand);
    color: #052b0e;
    box-shadow: 0 10px 30px -10px rgba(87,194,58,.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(87,194,58,.7); }
.btn--ghost {
    background: rgba(255,255,255,.03);
    color: var(--text);
    border-color: var(--line-2);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand-400); color: #fff; background: rgba(87,194,58,.08); }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------- Nav */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: height .3s, background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    height: 66px;
    background: rgba(7, 10, 8, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}
.nav__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
    padding: 9px 15px; border-radius: 100px; font-size: 14.5px; font-weight: 500;
    color: var(--text-soft); transition: color .2s, background .2s; position: relative;
}
.nav__links a:hover, .nav__links a.active { color: #fff; background: rgba(255,255,255,.05); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(5,8,6,.96); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: 100px var(--gutter) 40px;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform .45s cubic-bezier(.5,0,0,1), opacity .3s, visibility .45s;
}
.drawer.open { transform: translateY(0); opacity: 1; visibility: visible; }
.drawer a { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--text-soft); padding: 12px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .2s; }
.drawer a:hover { color: var(--brand-300); padding-left: 10px; }
.drawer .btn { margin-top: 28px; align-self: flex-start; }

/* --------------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(50px, 9vw, 110px)); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__content { max-width: 640px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); margin: 26px 0 0; }
.hero__lead { color: var(--text-soft); font-size: clamp(16px, 1.9vw, 20px); margin-top: 26px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); margin-top: 54px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero__stat .num { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: #fff; line-height: 1; }
.hero__stat .num .plus { color: var(--brand-400); }
.hero__stat .lbl { color: var(--text-muted); font-size: 13.5px; margin-top: 8px; }

/* Hero visual: glass terminal card */
.hero__visual { position: relative; }
.terminal {
    background: linear-gradient(160deg, rgba(19,27,21,.9), rgba(11,15,12,.9));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
}
.terminal::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(160deg, rgba(87,194,58,.5), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot.r { background: #ff5f57; } .terminal__dot.y { background: #febc2e; } .terminal__dot.g { background: #28c840; }
.terminal__title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.terminal__body { padding: 22px 22px 26px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; }
.terminal__body .ln { display: block; opacity: 0; transform: translateY(6px); animation: lineIn .5s forwards; }
.terminal__body .c-key { color: var(--brand-300); } .terminal__body .c-str { color: #9ad;} .terminal__body .c-fn { color: #e6c07b; } .terminal__body .c-com { color: var(--text-dim); } .terminal__body .c-punc { color: var(--text-muted);}
.terminal__body .cursor { display: inline-block; width: 8px; height: 16px; background: var(--brand-400); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes lineIn { to { opacity: 1; transform: translateY(0);} }
@keyframes blink { 50% { opacity: 0; } }
.hero__badge {
    position: absolute; right: -14px; bottom: -18px;
    background: rgba(11,15,12,.9); border: 1px solid var(--line-2); border-radius: 14px;
    padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.hero__badge .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--gradient-brand); display: grid; place-items: center; color: #052b0e; }
.hero__badge .ico svg { width: 22px; height: 22px; }
.hero__badge .t { font-weight: 700; color: #fff; font-size: 14px; }
.hero__badge .s { color: var(--text-muted); font-size: 12px; }

/* ------------------------------------------------------------- Trust strip */
.trust { padding-block: 42px; border-block: 1px solid var(--line); }
.trust__label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll-x 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 34px; width: auto; object-fit: contain; opacity: .55; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s; }
.marquee__track img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Services */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
    position: relative; padding: 30px 28px; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-elev));
    border: 1px solid var(--line); overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
}
.svc::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: radial-gradient(120% 90% at 50% 0%, rgba(87,194,58,.14), transparent 60%); pointer-events: none; }
.svc:hover { transform: translateY(-6px); border-color: var(--line-2); }
.svc:hover::after { opacity: 1; }
.svc__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(87,194,58,.1); border: 1px solid var(--line-2); color: var(--brand-300); margin-bottom: 22px; transition: background .35s, color .35s; }
.svc__ico svg { width: 26px; height: 26px; }
.svc:hover .svc__ico { background: var(--gradient-brand); color: #052b0e; }
.svc__title { font-size: 20px; margin-bottom: 10px; }
.svc__desc { color: var(--text-muted); font-size: 14.5px; }
.svc__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--brand-300); font-family: var(--font-mono); }
.svc__link svg { width: 15px; height: 15px; transition: transform .25s; }
.svc:hover .svc__link svg { transform: translateX(4px); }
.svc__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* ------------------------------------------------------------------ About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__body p { color: var(--text-muted); margin-top: 20px; font-size: 16px; }
.about__body strong { color: var(--text-soft); font-weight: 600; }
.about__points { display: grid; gap: 14px; margin-top: 30px; }
.about__point { display: flex; align-items: flex-start; gap: 13px; color: var(--text-soft); font-size: 15px; }
.about__point .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(87,194,58,.12); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--brand-300); margin-top: 2px; }
.about__point .tick svg { width: 13px; height: 13px; }

.stats-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-cell { background: linear-gradient(180deg, var(--surface), var(--bg-elev)); padding: 34px 30px; transition: background .3s; }
.stat-cell:hover { background: var(--surface-2); }
.stat-cell .num { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 50px); font-weight: 700; color: #fff; line-height: 1; }
.stat-cell .num .plus, .stat-cell .num .pct { color: var(--brand-400); }
.stat-cell .lbl { color: var(--text-muted); font-size: 14px; margin-top: 12px; }

/* ------------------------------------------------------------------ Why/values */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 32px 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--line); transition: transform .35s, border-color .35s; }
.value:hover { transform: translateY(-5px); border-color: var(--line-2); }
.value__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(87,194,58,.1); color: var(--brand-300); margin-bottom: 20px; }
.value__ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 19px; margin-bottom: 10px; }
.value p { color: var(--text-muted); font-size: 14.5px; }

/* ------------------------------------------------------------------ Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--brand-400); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ------------------------------------------------------------------ CTA band */
.cta {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    padding: clamp(46px, 6vw, 76px);
    background: linear-gradient(120deg, rgba(47,131,23,.22), rgba(11,15,12,.6));
    border: 1px solid var(--line-2);
    text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% 0%, rgba(87,194,58,.25), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.cta h2 { font-size: clamp(28px, 4.2vw, 46px); }
.cta p { color: var(--text-soft); margin-top: 18px; font-size: 17px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ------------------------------------------------------------------ Footer */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); position: relative; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__logo img { height: 40px; margin-bottom: 22px; }
.footer__about { color: var(--text-muted); font-size: 15px; max-width: 320px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; font-weight: 500; }
.footer__col ul { display: grid; gap: 13px; }
.footer__col a, .footer__contact a { color: var(--text-soft); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--brand-300); }
.footer__contact { display: grid; gap: 16px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-soft); font-size: 15px; }
.footer__contact .ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgba(87,194,58,.09); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-300); }
.footer__contact .ico svg { width: 16px; height: 16px; }
.footer__contact a:hover { color: var(--brand-300); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); }
.footer__bottom p { color: var(--text-dim); font-size: 14px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-soft); transition: transform .25s, color .25s, border-color .25s, background .25s; }
.footer__social a:hover { transform: translateY(-3px); color: var(--brand-300); border-color: var(--brand-400); background: rgba(87,194,58,.08); }
.footer__social svg { width: 18px; height: 18px; }

/* =====================================================================
   INNER-PAGE COMPONENTS
   ===================================================================== */

/* ------------------------------------------------------ Page hero/banner */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px)); padding-bottom: clamp(46px, 6vw, 76px); overflow: hidden; text-align: center; }
.page-hero::after { content: ""; position: absolute; left: 50%; top: 0; width: 620px; height: 320px; transform: translateX(-50%); background: radial-gradient(circle, rgba(87,194,58,.18), transparent 65%); pointer-events: none; z-index: -1; }
.page-hero__inner { max-width: 760px; margin-inline: auto; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin-top: 22px; }
.page-hero p { color: var(--text-muted); font-size: clamp(15px, 1.7vw, 18px); margin-top: 20px; max-width: 620px; margin-inline: auto; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin-top: 28px; }
.breadcrumb a { color: var(--brand-300); }
.breadcrumb span { opacity: .5; }

/* --------------------------------------------------------------- Prose */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 44px 0 16px; }
.prose h3 { font-size: 20px; margin: 30px 0 12px; color: var(--text); }
.prose p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 4px; display: grid; gap: 10px; }
.prose ul li, .prose ol li { color: var(--text-muted); padding-left: 28px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 8px var(--brand-500); }
.prose ol { counter-reset: pr; }
.prose ol li { counter-increment: pr; }
.prose ol li::before { content: counter(pr); position: absolute; left: 0; top: 0; color: var(--brand-300); font-family: var(--font-mono); font-size: 13px; }
.prose a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-soft); }
.prose__meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------- Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 96px); }
.feature-row--rev .feature-row__media { order: -1; }
.feature-row__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); aspect-ratio: 4/3; }
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row h2 { font-size: clamp(24px, 3.2vw, 36px); }
.feature-row p { color: var(--text-muted); margin-top: 18px; }

/* --------------------------------------------------------------- Card grids */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--line); transition: transform .35s, border-color .35s; }
.post-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); position: relative; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-300); background: rgba(7,10,8,.72); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 100px; backdrop-filter: blur(6px); }
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.post-card__meta svg { width: 15px; height: 15px; flex: none; color: var(--brand-300); }
.post-card__title { font-size: 19px; line-height: 1.3; }
.post-card__title a { transition: color .2s; }
.post-card:hover .post-card__title a { color: var(--brand-300); }
.post-card__excerpt { color: var(--text-muted); font-size: 14.5px; margin-top: 12px; flex: 1; }
.post-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--brand-300); }
.post-card__link svg { width: 15px; height: 15px; transition: transform .25s; }
.post-card:hover .post-card__link svg { transform: translateX(4px); }

.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--bg-elev); }
.empty-state .ico { width: 60px; height: 60px; border-radius: 16px; background: rgba(87,194,58,.1); color: var(--brand-300); display: grid; place-items: center; margin: 0 auto 20px; }
.empty-state .ico svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { color: var(--text-muted); margin-top: 10px; }

/* --------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; transition: border-color .3s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__q { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--brand-300); transition: transform .3s, background .3s; }
.faq__item[open] .faq__q .ico { transform: rotate(45deg); background: var(--brand-500); color: #04120a; border-color: transparent; }
.faq__q .ico svg { width: 16px; height: 16px; }
.faq__a { padding: 0 26px 24px; color: var(--text-muted); font-size: 15.5px; }

/* --------------------------------------------------------------- Forms */
.form-card { background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-soft); font-family: var(--font-mono); letter-spacing: .02em; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 15px;
    background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--text);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); background: rgba(87,194,58,.05); box-shadow: 0 0 0 3px rgba(87,194,58,.12); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ada5b' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form-card .btn { margin-top: 6px; }
.contact-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info__item { display: flex; gap: 15px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.contact-info__item .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(87,194,58,.1); color: var(--brand-300); display: grid; place-items: center; }
.contact-info__item .ico svg { width: 21px; height: 21px; }
.contact-info__item .t { font-size: 12.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 5px; }
.contact-info__item .v { color: var(--text); font-weight: 500; }
.contact-info__item .v a:hover { color: var(--brand-300); }

/* --------------------------------------------------------------- Client grid */
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client-tile {
    aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px;
    border: 1px solid var(--line); border-radius: var(--radius);
    /* Light tile so every logo reads crisp and full-colour, whatever its own palette */
    background: #f4f7f4;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.client-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(0,0,0,.7); }
a.client-tile:hover { border-color: var(--brand-400); }
.client-tile img {
    max-height: 60px; max-width: 100%; width: auto; object-fit: contain;
    opacity: 1; filter: none;
}
.client-tile--cta {
    background: linear-gradient(135deg, rgba(87,194,58,.16), rgba(11,15,12,.55));
    border-color: var(--line-2); text-align: center;
}
.client-tile--cta:hover { border-color: var(--brand-400); box-shadow: var(--glow-soft); transform: translateY(-4px); }
.client-tile--cta .t { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 15.5px; line-height: 1.25; }
.client-tile--cta .s { font-family: var(--font-mono); font-size: 12.5px; color: var(--brand-300); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.client-tile--cta .s svg { width: 14px; height: 14px; transition: transform .25s; }
.client-tile--cta:hover .s svg { transform: translate(3px, -3px); }
@media (max-width: 1024px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px)  { .client-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------- Honeypot (bot filter) */
.dv-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- Checkboxes */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.02); cursor: pointer; font-size: 14px; color: var(--text-soft); transition: border-color .2s, background .2s, color .2s; }
.check:hover { border-color: var(--brand-400); color: #fff; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .2s, color .2s, border-color .2s; }
.check__box svg { width: 14px; height: 14px; }
.check input:checked + .check__box { background: var(--gradient-brand); border-color: transparent; color: #052b0e; }
.check input:focus-visible + .check__box { outline: 2px solid var(--brand-400); outline-offset: 2px; }
@media (max-width: 760px) { .check-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .check-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Toast */
.toast-host { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 12px; max-width: min(92vw, 380px); }
.toast { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 14px; background: rgba(11,15,12,.94); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); color: var(--text); font-size: 14.5px; transform: translateY(10px); opacity: 0; animation: toastIn .4s forwards; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast--ok svg { color: var(--brand-400); } .toast--err svg { color: #ff6b6b; } .toast--info svg { color: #ffcf5c; }
.toast.hide { animation: toastOut .4s forwards; }
@keyframes toastIn { to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }

/* --------------------------------------------------------------- Misc */
.section-alt { background: linear-gradient(180deg, transparent, rgba(11,15,12,.5), transparent); }
.center-cta { text-align: center; margin-top: clamp(40px, 6vw, 64px); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.pill { font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text-soft); }

@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .feature-row, .card-grid, .card-grid--2, .form-grid { grid-template-columns: 1fr; }
    .feature-row--rev .feature-row__media { order: 0; }
}

/* --------------------------------------------------------------- Reveal fx */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 520px; }
    .services__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 760px) {
    :root { --nav-h: 68px; }
    .nav__links, .nav__cta .btn { display: none; }
    .nav__burger { display: flex; }
    .about__grid, .services__grid, .why__grid, .steps, .stats-card { grid-template-columns: 1fr; }
    .stats-card { grid-template-columns: 1fr 1fr; }
    .hero__stats { gap: 28px; }
    .footer__top { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .hero__badge { display: none; }
}
@media (max-width: 420px) {
    .stats-card { grid-template-columns: 1fr; }
}
