/* ============================================================
   MTKWeb Solutions — 2026 rebrand
   Dark canvas · warm heritage orange accent
   ============================================================ */

:root {
    --bg:        #0a0b10;
    --bg-2:      #0d0f16;
    --surface:   #12141d;
    --surface-2: #171a25;
    --line:      rgba(255,255,255,.08);
    --line-2:    rgba(255,255,255,.14);

    --text:      #f3f4f7;
    --muted:     #9aa1b2;
    --muted-2:   #6d7488;

    --accent:    #f7871f;   /* heritage orange */
    --accent-2:  #ffb057;
    --accent-3:  #ff5f2e;
    --grad:      linear-gradient(100deg, #ffb057 0%, #f7871f 45%, #ff5f2e 100%);

    --radius:    16px;
    --radius-lg: 24px;
    --maxw:      1180px;
    --ease:      cubic-bezier(.22,.61,.36,1);
    --shadow:    0 24px 60px -24px rgba(0,0,0,.7);

    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography helpers ---------- */
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    padding: 15px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
    white-space: nowrap;
}
.btn--primary {
    background: var(--grad);
    color: #1a0d02;
    box-shadow: 0 12px 30px -10px rgba(247,135,31,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(247,135,31,.7); }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(10,11,16,.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

/* Wordmark */
.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}
.brand__mark { font-size: 1.32rem; color: var(--text); }
.brand__mark--full { color: var(--accent); margin-left: -7px; }
.brand__sub {
    font-size: .66rem;
    letter-spacing: .28em;
    color: var(--muted);
    font-weight: 500;
    align-self: center;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
    font-size: .95rem;
    color: var(--muted);
    font-weight: 500;
    transition: color .25s var(--ease);
    position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__links a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
    padding: 10px 20px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text) !important;
    transition: border-color .25s var(--ease), background .25s var(--ease), color .25s;
}
.nav__cta:hover { border-color: var(--accent); background: rgba(247,135,31,.1); color: var(--accent-2) !important; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav__toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 190px 0 120px;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
}
.hero__glow--1 {
    width: 520px; height: 520px;
    top: -120px; right: -60px;
    background: radial-gradient(circle, rgba(247,135,31,.55), transparent 70%);
}
.hero__glow--2 {
    width: 420px; height: 420px;
    bottom: -160px; left: -80px;
    background: radial-gradient(circle, rgba(255,95,46,.35), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    color: var(--muted);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 30px;
}
.badge__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(247,135,31,.18);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 26px;
}
.hero__lead {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 0 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    list-style: none;
    margin: 0; padding: 0;
    border-top: 1px solid var(--line);
    padding-top: 34px;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.hero__stats span { font-size: .88rem; color: var(--muted-2); margin-top: 8px; }

/* ============================================================
   CLIENT STRIP (marquee)
   ============================================================ */
.clients-strip {
    padding: 40px 0 54px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.clients-strip__label {
    text-align: center;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin: 0 0 30px;
}
.marquee { 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;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-chip {
    flex: 0 0 auto;
    height: 66px;
    padding: 0 22px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .78;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.logo-chip:hover { opacity: 1; transform: translateY(-3px); }
.logo-chip img { max-height: 42px; width: auto; object-fit: contain; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding: 110px 0; }
.section--dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: 62px; }
.section__head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 20px;
}
.section__intro { font-size: 1.12rem; color: var(--muted); margin: 0; }
.section__intro a { color: var(--accent-2); border-bottom: 1px solid rgba(255,176,87,.4); }
.section__intro a:hover { color: var(--accent); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Service cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(247,135,31,.1);
    border: 1px solid rgba(247,135,31,.22);
    border-radius: 12px;
    margin-bottom: 22px;
}
.card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 10px; font-weight: 600; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Process ---------- */
.process {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    counter-reset: step;
    position: relative;
}
.process::before {
    content: "";
    position: absolute;
    top: 24px; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.process__step { padding: 0 18px; position: relative; }
.process__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-2);
    margin: 0 auto 22px;
    position: relative;
    z-index: 1;
    transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.process__step:hover .process__num { border-color: var(--accent); background: rgba(247,135,31,.12); transform: scale(1.08); }
.process__step h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; text-align: center; }
.process__step p { color: var(--muted); font-size: .92rem; margin: 0; text-align: center; }

/* ---------- Technologies ---------- */
.tech-list { display: flex; flex-direction: column; gap: 18px; }
.tech {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 34px;
    transition: border-color .35s var(--ease), background .35s var(--ease);
}
.tech:hover { border-color: var(--line-2); background: var(--surface-2); }
.tech__k span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -.01em;
}
.tech__body h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 8px; font-weight: 600; }
.tech__body p { color: var(--muted); margin: 0; }

/* ---------- Industries ---------- */
.ind {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.ind:hover { transform: translateY(-5px); border-color: var(--accent); }
.ind h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 12px;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.ind h3::before {
    content: ""; width: 8px; height: 8px; border-radius: 2px;
    background: var(--grad);
}
.ind p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Clients grid ---------- */
.clients-full { margin-top: 72px; text-align: center; }
.clients-full__label {
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted-2); margin: 0 0 30px;
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.clients-grid .logo-chip { width: 100%; height: 84px; opacity: .82; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: start;
}
.about__lead p { color: var(--muted); font-size: 1.08rem; }
.about__note { color: var(--muted-2) !important; font-size: .98rem !important; }
.about__caps {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.about__caps li {
    padding: 16px 0 16px 34px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    position: relative;
    font-size: 1rem;
}
.about__caps li::before {
    content: "";
    position: absolute;
    left: 4px; top: 22px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.about__caps li:last-child { border-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg .hero__glow--1 { top: -180px; left: 50%; transform: translateX(-50%); right: auto; opacity: .35; }
.contact .container { position: relative; z-index: 1; }
.contact__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 760px;
    margin: 12px auto 0;
}
.ccard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
    position: relative;
}
.ccard:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--surface-2); }
.ccard__k {
    font-family: var(--font-display);
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-2);
}
.ccard__v { font-size: 1.16rem; font-weight: 500; color: var(--text); }
.ccard__arrow {
    margin-top: auto;
    font-size: 1.3rem;
    color: var(--muted-2);
    transition: transform .3s var(--ease), color .3s var(--ease);
}
.ccard:hover .ccard__arrow { transform: translateX(6px); color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 60px 0 40px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px 40px;
    align-items: start;
}
.footer__brand p { color: var(--muted-2); font-size: .92rem; margin: 14px 0 0; max-width: 320px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-self: end; }
.footer__links a { color: var(--muted); font-size: .95rem; transition: color .25s; }
.footer__links a:hover { color: var(--accent-2); }
.footer__copy {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: .86rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger children inside grids */
.grid .reveal:nth-child(2), .contact__cards .reveal:nth-child(2), .process .reveal:nth-child(2) { transition-delay: .06s; }
.grid .reveal:nth-child(3), .contact__cards .reveal:nth-child(3), .process .reveal:nth-child(3) { transition-delay: .12s; }
.grid .reveal:nth-child(4), .process .reveal:nth-child(4) { transition-delay: .18s; }
.grid .reveal:nth-child(5), .process .reveal:nth-child(5) { transition-delay: .24s; }
.grid .reveal:nth-child(6) { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee__track { animation: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 40px; }
    .process { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .process::before { display: none; }
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
    .contact__cards { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__links { justify-self: start; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav__links {
        position: fixed;
        inset: 74px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10,11,16,.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 24px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s var(--ease), transform .3s var(--ease);
    }
    .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
    .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
    .nav__links a::after { display: none; }
    .nav__cta { text-align: center; margin-top: 14px; border-color: var(--accent) !important; }
    .nav__toggle { display: flex; }

    .hero { padding: 140px 0 90px; }
    .hero__stats { gap: 30px 40px; }
    .section { padding: 80px 0; }
    .grid--3 { grid-template-columns: 1fr; }
    .tech { grid-template-columns: 1fr; gap: 14px; padding: 26px; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .section__head { margin-bottom: 44px; }
}

@media (max-width: 420px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__stats { flex-direction: row; }
    .hero__stats strong { font-size: 1.8rem; }
}
